IBM

lsb_geteventrecbyline

Parse an event line and put the result in an event record structure.

The lsb_geteventrecbyline function parses an event line and puts the result in an event record structure.

If the line to be parsed is a comment line, lsb_geteventrecbyline sets errno to bad event format and logs an error.

To prevent the event record structure from being corrupted on subsequent calls to the function, use memory copy to allocate memory and store the event record structure.

#include <lsf/lsbatch.h>

int lsb_geteventrecbyline(char *line, struct eventRec *logRec)

Parameters:
*line Buffer containing a line of event text string
*logRec Pointer to an eventRec structure
Data Structures:
eventRec
eventLog
xFile
jobAttrSetLog
logSwitchLog
dataLoggingLog
jgrpNewLog
jgrpCtrlLog
jgrpStatusLog
jobNewLog
jobModLog
jobStartLog
jobStartAcceptLog
jobExecuteLog
jobStatusLog
sbdJobStatusLog
sbdUnreportedStatusLog
jobSwitchLog
jobMoveLog
chkpntLog
jobRequeueLog
jobCleanLog
jobExceptionLog
sigactLog
migLog
signalLog
queueCtrlLog
hostCtrlLog
hgCtrlLog
mbdStartLog
mbdDieLog
unfulfillLog
jobFinishLog
loadIndexLog
calendarLog
jobForwardLog
jobAcceptLog
statusAckLog
jobMsgLog
jobMsgAckLog
jobOccupyReqLog
jobVacatedLog
jobForceRequestLog
jobChunkLog
jobExternalMsgLog
rsvRes
rsvFinishLog
cpuProfileLog
jobRunRusageLog
slaLog
perfmonLogInfo
perfmonLog
taskFinishLog
eventEOSLog
jobResizeNotifyStartLog
jobResizeNotifyAcceptLog
jobResizeNotifyDoneLog
jobResizeReleaseLog
jobResizeCancelLog
jobResizeLog
jRusage
jobFinish2Log
jobStartLimitLog
jobProvisionStartLog
jobProvisionEndLog
Define Statements:
none
Pre-Conditions:
The event record structure must have been initialized outside the lsb_geteventrecbyline function.
Returns:
int: 0
Function was successful.

int:-1
Function failed and lserrno was set.

Errors:
none
Equivalent line commands:
none
Files:
none
See also:
none


     
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.