IBM

lsb_sysmsg

Returns a pointer to static data.

lsb_sysmsg returns a pointer to static data which stores the batch error message corresponding to lsberrno. The global variable lsberrno maintained by LSBLIB holds the error number from the most recent LSBLIB call that caused an error. If lsberrno == LSBE_SYS_CALL, then the system error message defined by errno is also returned. If lsberrno == LSBE_LSLIB, then the error message returned by ls_sysmsg is returned.

#include <lsf/lsbatch.h>

char *lsb_sysmsg (void)

Parameters:
void 
Data Structures:
none
Define Statements:
none
Returns:
char *:Return LSBATCH error message defined by lsberrno.
If lsberrno == LSBE_SYS_CALL, then the system error message defined by errno is also returned.
If lsberrno == LSBE_LSLIB, then the error message returned by ls_sysmsg is returned.

NULL
Function failed.

Errors:
If the function fails, lsberrno is set to indicate the error.
Equivalent line commands:
none
Files:
none
See also:
ls_perror

ls_sysmsg



     
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.