BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

klseek - move read/write pointer of a transport descriptor

LIBRARY CALL

off_t klseek(
   int id,
   off_t offset,
   int whence)

INPUT

OUTPUT

none

RETURN VALUE

-1 or the new seeked position within the transport

DESCRIPTION

This function is used to seek the transport. Depending on the different transport being used the behavior will be different. For a file it calls lseek() to lock the file, but for a shared memory segment it it simply resets the internal offset pointer.

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.