X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibposix.so_src%2Finclude_exp%2Ffcntl.h;h=6057b132a81700e0c9eadce931f214b9f311383f;hb=4e407e69bd660e9a32644281733192193ee6e8c8;hp=bdb5422641ae72b56d7489db283d86f4710acb8e;hpb=e91f60e14b8857312238d729fa580d6ab44ba27a;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