Knowledge Center         Contents    Previous  Next    
Platform Computing Corp.

lsb_openstream()

Open and create an lsb_stream file.

.

DESCRIPTION

lsb_openstream() opens the streamFile .

This API function is inside liblsbstream.so.

SYNOPSIS

#include <lsf/lsbatch.h> 
int lsb_openstream(const struct lsbStream *params) 
struct lsbStream { 
    char   *streamFile; 
    int    maxStreamSize; 
    int    maxStreamFileNum; 
    int    trace; 
    int    (*trs)(const char *); 
};  

PARAMETERS

* streamFile

Pointer to the full path name of the stream file.

maxStreamSize

Maximium size of the stream file in bytes.

maxStreamFileNum

Maximium number of backup stream files.

trace

Set to 1 to enable tracing of the stream.

* trs

Pointer to a function that the library invokes, passing a trace buffer.

RETURN VALUES

integer:0

The function was successful.

integer:-1 or NULL

The function failed.

ERRORS

If the function fails, lsberrno is set to indicate the error.

SEE ALSO

Related APIs

lsb_closestream(): Close the stream file.

lsb_readstreamline(): Read a line from the stream file.

lsb_writestream(): Write an event to the stream file.

lsb_readstream(): Read from the stream file.

lsb_streamversion(): Version of the current event type supported by mbatchd.

Equivalent line command

None

Files

lsb.params


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