BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kaccess - determine accessibility of file

LIBRARY CALL

int kaccess(
   const char *path,
   int         mode)

INPUT

OUTPUT

none

RETURN VALUE

return -1 for failure otherwise 0 for success

DESCRIPTION

This function is a replacement for the system "access" call. The only difference is that kaccess() checks more than just files, it will also check other data transports as well, such as shared memory, pipes, files, etc.

The routine will check to see if the token specified by the transport is either readable (R_OK), writeable (W_OK), or executable (X_OK), or accessible (F_OK) any possible combination by or'ing the flags together.

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.