IBM

ls_perror

Prints LSF error messages.

ls_perror is a LSLIB library routine for printing LSF error messages. The global variable lserrno, maintained by LSLIB, indicates the error number of the most recent LSLIB call that caused an error.

ls_perror prints on the standard error output the char string usrMsg, if it is not a null pointer, followed by a colon and a space, then an error message that describes the error that corresponds to the value of lserrno, followed by a newline. If an LSLIB call failed due to a system error, then the system error message as indicated by errno is included in the error message.

#include <lsf/lsf.h>

void ls_perror(char *usrMsg)

Parameters:
*usrMsg The standard output error string.
Data Structures:
none
Define Statements:
none
Returns:
void
There is no return value.
Errors:
Systems that conform to the Single UNIX specification are not required to detect error conditions for this function.
Equivalent line commands:
none
Files:
${LSF_ENVDIR:-/etc}/lsf.conf
See also:
ls_sysmsg

ls_errlog



     
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.