ls_fdbusy
Tests if a specified file descriptor is in use or reserved by LSF.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.
#include <lsf/lsf.h>
int ls_fdbusy(int fd)
Data Structures:
- Parameters:
fd fd is the file descriptor to test. Define Statements:
- none
- none
Errors:
- Returns:
- int:True
Returned if fd is in use or reserved by LSF.int:False
Returned if fd is not in use or reserved by LSF.Equivalent line commands:
- Systems that conform to the Single UNIX specification are not required to detect error conditions for this function.
Files:
- none
- ${LSF_ENVDIR:-/etc}/lsf.conf
- See also:
- ls_initrex
Date Modified: 16 Jul 2014
Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.