Knowledge Center         Contents    Previous  Next    
Platform Computing Corp.

ls_stdinmode()

Allows an application program to query and specify how stdin is assigned to remote tasks on a local application.

DESCRIPTION

ls_stdinmode() gives an application program the ability to query and specify how stdin is assigned to remote tasks. It allows you to assign stdin to the local program only. You can change this setting at any time.

ls_stdinmode() specifies whether standard input is read by the calling (local) application or its remote children.

This routine returns 0 on success; otherwise, it returns -1 and sets lserrno to indicate the error.

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_stdinmode(int remote) 

PARAMETERS

remote

If remote is non-zero, then the application will not read subsequent standard input, and the remote children will read standard input. This mode of operation is called the remote stdin mode. Remote stdin mode is the default. In remote stdin mode, standard input is read by the Network I/O Server (NIOS) and forwarded to the appropriate remote tasks. If remote is zero, then the application reads the subsequent standard input, and it is not forwarded to remote children. This mode of operation is called the local stdin mode.

RETURN VALUES

integer:0

The function was successful.

integer:-1

The function failed.

ERRORS

If the function fails, lserrno is set to indicate the error.

SEE ALSO

Related APIs

ls_getstdin()

ls_setstdin()

ls_initrex()

Equivalent line command

none

Files

${LSF_ENVDIR-/etc}/lsf.conf


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