diff options
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/unistd.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libgcompat/unistd.c b/libgcompat/unistd.c index 011fba2..c2e4a8a 100644 --- a/libgcompat/unistd.c +++ b/libgcompat/unistd.c @@ -1,9 +1,11 @@ + #include <assert.h> /* assert */ #include <fcntl.h> /* O_CREAT */ #include <limits.h> /* NGROUPS_MAX */ #include <stddef.h> /* NULL, size_t */ #include <unistd.h> /* confstr, getcwd, getgroups, ... */ #include <errno.h> /* ENOSYS, ENOMEM */ +#include <stdarg.h> /* va_list, va_start, va_end */ #include <stdlib.h> /* calloc */ #include <dlfcn.h> /* dlsym */ #include <string.h> /* strcmp */ @@ -250,3 +252,14 @@ int __close(int fd) { return close(fd); } + +int fcntl64(int fd, int cmd, ...) { + int ret; + va_list va; + + va_start(va, cmd); + ret = fcntl(fd, cmd, va); + va_end(va); + + return ret; +} |