lfc_startsess man page

LFC_STARTSESS(3) LFC Library Functions LFC_STARTSESS(3)

[1mNAME[0m
lfc_startsess - start session

[1mSYNOPSIS[0m
[1m#include <sys/types.h>[0m
[1m#include "lfc_api.h"[0m

[1mint lfc_startsess (char *[4m[22mserver[24m[1m, char *[4m[22mcomment[24m[1m);[0m

[1mDESCRIPTION[0m
[1mlfc_startsess [22mstarts session. The connection to the Name Server is
kept open until [1mlfc_endsess [22mis explicitly called. Requests issued
between [1mlfc_startsess [22mand [1mlfc_endsess [22mare independent from each other
and are individually committed or rolled back. The [4mcomment[24m is logged
in the server log.

[1mRETURN VALUE[0m
This routine returns 0 if the operation was successful or -1 if the
operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mERRORS[0m
[1mEINVAL [22mThe length of [4mcomment[24m exceeds [1mCA_MAXCOMMENTLEN[22m.

[1mSENOSHOST [22mHost unknown.

[1mSENOSSERV [22mService unknown.

[1mSECOMERR [22mCommunication error.

[1mENSNACT [22mName server is not running or is being shutdown.

[1mSEE ALSO[0m
[1mlfc_endsess(3)[0m

LFC $Date: 2010-04-05 09:51:26 +0200 (Mon, 05 Apr 2010L)FC$_STARTSESS(3)

Info