diff options
author | maximilian attems <max@stro.at> | 2011-09-05 10:56:35 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-09-05 10:58:31 +0200 |
commit | 6c82efff8561f0abdaea3054a7170f0aa4605fd6 (patch) | |
tree | f1cb2d65293ad1faf628c12c9af8db0655170630 | |
parent | 7974377940f744375bd595c45cf36fa652eee5ca (diff) | |
download | klibc-6c82efff8561f0abdaea3054a7170f0aa4605fd6.tar.gz |
[klibc] include: [sys/file.h] define flock(2) there
SUSv3 is silent on that definition, but seen several userspace
software that expects flock to be defined in that file and
complain that it is missing in klibc. Current declaration is in
unistd.h.
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/include/sys/file.h | 9 | ||||
-rw-r--r-- | usr/include/unistd.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/usr/include/sys/file.h b/usr/include/sys/file.h new file mode 100644 index 0000000000000..7b580f36672df --- /dev/null +++ b/usr/include/sys/file.h @@ -0,0 +1,9 @@ +#ifndef _SYS_FILE_H +#define _SYS_FILE_H + +/* LOCK_ definitions */ +#include <fcntl.h> + +__extern int flock(int, int); + +#endif /* _SYS_FILE_H */ diff --git a/usr/include/unistd.h b/usr/include/unistd.h index f286c332ca098..3eaeaee5a1aa2 100644 --- a/usr/include/unistd.h +++ b/usr/include/unistd.h @@ -105,7 +105,6 @@ __extern int dup(int); __extern int dup2(int, int); __extern int fcntl(int, int, ...); __extern int ioctl(int, int, void *); -__extern int flock(int, int); __extern int ftruncate(int, off_t); /* |