diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-01-17 15:47:04 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-01-17 15:47:04 +0000 |
commit | 0e4cf8c30079e273e9a79bee1f18c133927650a6 (patch) | |
tree | 1efa7abf26e1ab70cd48e06d4215e419ce4dd522 /include/fcntl.h | |
parent | 23457259675d4a21f6840a30e2b41014540eab2d (diff) |
Enable fcntl64, and fix fcntl when large fils is enabled.
Diffstat (limited to 'include/fcntl.h')
-rw-r--r-- | include/fcntl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h index 951fd8016..1ab84f2a9 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -57,7 +57,16 @@ __BEGIN_DECLS /* Do the file control operation described by CMD on FD. The remaining arguments are interpreted depending on CMD. */ +#ifndef __USE_FILE_OFFSET64 extern int fcntl (int __fd, int __cmd, ...) __THROW; +#else +# ifdef __REDIRECT +extern int __REDIRECT (fcntl, (int __fd, int __cmd, ...) __THROW, + fcntl64); +# else +# define fcntl fcntl64 +# endif +#endif /* Open FILE and return a new file descriptor for it, or -1 on error. OFLAG determines the type of access used. If O_CREAT is on OFLAG, |