Knowledge Center         Contents    Previous  Next    
Platform Computing Corp.

ls_errlog()

Logs error messages.

DESCRIPTION

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 character `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.

SYNOPSIS

#include <lsf/lsf.h> 
void ls_errlog(FILE *fp, char *fmt, ...)

char *ls_errmsg[ ];
int lserrno;
int ls_nerr; 

PARAMETERS

*fp

.

*fmt

.

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.

RETURN VALUES

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. - Error handling

SEE ALSO

Related APIs

ls_perror()

ls_sysmsg()

Equivalent line command

none

Files

lsf/lsf.h


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