Merge branch 'master' of ssh.ucc.asn.au:tpg/acess2
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / fcntl.h
index bdb5422..6057b13 100644 (file)
@@ -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
 

UCC git Repository :: git.ucc.asn.au