ls_errlog
Logs error messages.ls_errlog is a LSLIB library routine for logging 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_errlog is very similar to the fprintf() function, except that it prints out the time before it prints other information. You can specify an additional conversion char 'm' in the format to represent the error message that corresponds to lserrno. This function is typically used by load sharing applications running in the background (such as daemons) to log error messages to a log file.
The vector of error message strings, ls_errmsg[ ], is provided for the benefit of application programs. You can use lserrno as an index into this table to obtain the corresponding LSF error message. The global variable ls_nerr indicates the size of the table.
#include <lsf/lsf.h>
void ls_errlog(FILE *fp, char *fmt, ...)
Data Structures:
- Parameters:
*fp File pointer where the error messages are logged. *fmt Format string of error messages. ls_errmsg Vector of error message strings, provided for the benefit of application programs. lserrno Index into this table to obtain the corresponding LSF error message. ls_nerr Indicates the size of the table. Define Statements:
- none
- none
Errors:
- Returns:
- void
There is no return value.Equivalent line commands:
- Systems that conform to the Single UNIX specification are not required to detect error conditions for this function.
Files:
- none
- lsf/lsf.h
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.