daababb4e213bc697aa0be0847d70177db620896
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / fcntl.h
1 /*
2  * Acess2 C Library (UNIX Emulation)
3  * - By John Hodge (thePowersGang)
4  *
5  * fcntl.h
6  * - ??
7  */
8
9 #ifndef _FCNTL_H_
10 #define _FCNTL_H_
11
12 //#include <sys/sys.h>
13
14 // Hacks to handle different behaviors in Acess
15
16 // Open doesn't take a chmod
17 //#define open(_1,_2,...)       open(_1, _2)
18
19 // Close returns void
20 //#define close(_1)     (close(_1),0)
21
22 // Acess doesn't implement lseek
23 #define lseek(_1,_2,_3) (seek(_1,_2,_3),tell(_1))
24
25 enum e_fcntl_cmds
26 {
27         F_SETFL
28 };
29
30 static inline int fcntl(int fd __attribute__((unused)), int cmd __attribute__((unused)), ...) { return -1; }
31
32 #endif
33

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