unix.ffi: adding "access".

db4
John Benediktsson 2012-10-24 16:37:05 -07:00
parent 0ae18456fd
commit 98b52e624c
1 changed files with 6 additions and 0 deletions

View File

@ -54,7 +54,13 @@ STRUCT: protoent
{ aliases void* }
{ proto int } ;
CONSTANT: F_OK 0 ! test for existence of file
CONSTANT: X_OK 1 ! test for execute or search permission
CONSTANT: W_OK 2 ! test for write permission
CONSTANT: R_OK 4 ! test for read permission
FUNCTION: int accept ( int s, void* sockaddr, socklen_t* socklen ) ;
FUNCTION: int access ( c-string path, int amode ) ;
FUNCTION: int bind ( int s, void* name, socklen_t namelen ) ;
FUNCTION: int chdir ( c-string path ) ;
FUNCTION: int chmod ( c-string path, mode_t mode ) ;