X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibposix.so_src%2Finclude_exp%2Ffcntl.h;h=6057b132a81700e0c9eadce931f214b9f311383f;hb=5f750c175569e11a01902f5ea443fe5e9b7918e4;hp=bdb5422641ae72b56d7489db283d86f4710acb8e;hpb=4c78a1bdd506cda6cda27ee342165c7dfa7ecdc2;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libposix.so_src/include_exp/fcntl.h b/Usermode/Libraries/libposix.so_src/include_exp/fcntl.h index bdb54226..6057b132 100644 --- a/Usermode/Libraries/libposix.so_src/include_exp/fcntl.h +++ b/Usermode/Libraries/libposix.so_src/include_exp/fcntl.h @@ -1,9 +1,9 @@ /* - * Acess2 C Library (UNIX Emulation) + * Acess2 POSIX Emulation Library * - By John Hodge (thePowersGang) * * fcntl.h - * - ?? + * - File descriptor control? */ #ifndef _FCNTL_H_ @@ -32,7 +32,14 @@ enum e_fcntl_cmds F_GETLK, // (struct flock *) }; -static inline int fcntl(int fd __attribute__((unused)), int cmd __attribute__((unused)), ...) { return -1; } +enum e_flock_types +{ + F_RDLCK, // read + F_WRLCK, // write + F_UNLCK, // unlock +}; + +extern int fcntl(int fd, int cmd, ...); #endif