BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kflock - apply or remove an advisory lock on an open transport descriptor

LIBRARY CALL

int kflock(
   int id,
   int operation)

INPUT

OUTPUT

none

RETURN VALUE

-1 or 0 depending on whether the operation failed or succeeded.

DESCRIPTION

This function is used to lock the transport. Depending on the different transport being used the behavior will be different. For a file it calls flock() to lock the file, but for a shared memory segment it it calls shmctl() to lock & unlock the shared memory segment.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/ktransport.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.