Knowledge Center         Contents    Previous  Next    
Platform Computing Corp.

ls_fdbusy()

Tests if a specified file descriptor is in use or reserved by LSF.

DESCRIPTION

ls_fdbusy() tests if a specified file descriptor is in use or reserved by LSF. The possible descriptors used by LSF are those used for contacting the LIM and for remote execution. fd is the file descriptor to test. This call is typically used when an application wants to close all unneeded file descriptors.

Any program using this routine must call ls_initrex() first.

Any program using this API must be setuid to root if LSF_AUTH is not defined in the lsf.conf file.

SYNOPSIS

#include <lsf/lsf.h> 
int ls_fdbusy(int fd) 

PARAMETERS

fd

fd is the file descriptor to test.

RETURN VALUES

integer:True

Returned if fd is in use or reserved by LSF.

integer:False

Returned if fd is not in use or reserved by LSF.

ERRORS

Systems that conform to the Single UNIX specification are not required to detect error conditions for this function. - Error handling

SEE ALSO

Related APIs

ls_initrex()

Equivalent line command

none

Files

${LSF_ENVDIR-/etc}/lsf.conf


Platform Computing Inc.
www.platform.com
Knowledge Center         Contents    Previous  Next