git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode - More hackery to get glib compiling
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libposix.so_src
/
include_exp
/
fcntl.h
diff --git
a/Usermode/Libraries/libposix.so_src/include_exp/fcntl.h
b/Usermode/Libraries/libposix.so_src/include_exp/fcntl.h
index
bdb5422
..
6057b13
100644
(file)
--- 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
* - By John Hodge (thePowersGang)
*
* fcntl.h
- * -
?
?
+ * -
File descriptor control
?
*/
#ifndef _FCNTL_H_
*/
#ifndef _FCNTL_H_
@@
-32,7
+32,14
@@
enum e_fcntl_cmds
F_GETLK, // (struct flock *)
};
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
#endif
UCC
git Repository :: git.ucc.asn.au