diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-08-12 08:46:30 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-08-12 08:46:30 +0000 |
commit | 966e8ffc0042d817f63d08a12145147c3785f242 (patch) | |
tree | f33ba1dd1f32ef8822c26904d7c1008f4b6b9d2f /sysdeps | |
parent | 977588cd9323ec624375de12bc050868991cc11b (diff) | |
download | glibc-966e8ffc0042d817f63d08a12145147c3785f242.tar.gz glibc-966e8ffc0042d817f63d08a12145147c3785f242.tar.xz glibc-966e8ffc0042d817f63d08a12145147c3785f242.zip |
Define __have_no_fcntl64 static.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/fcntl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/fcntl.c b/sysdeps/unix/sysv/linux/i386/fcntl.c index 05708bf42d..dbd47f5847 100644 --- a/sysdeps/unix/sysv/linux/i386/fcntl.c +++ b/sysdeps/unix/sysv/linux/i386/fcntl.c @@ -25,10 +25,9 @@ #include "../kernel-features.h" -# if __ASSUME_FCNTL64 == 0 +#if __ASSUME_FCNTL64 == 0 /* This variable is shared with all files that check for fcntl64. */ -int __have_no_fcntl64; -# endif +static int __have_no_fcntl64; #endif int @@ -65,14 +64,14 @@ __libc_fcntl (int fd, int cmd, ...) fl.l_start = (off_t)fl64->l_start; /* Check if we can represent the values with the smaller type. */ - if ((off64_t)fl.l_start != fl64->l_start) + if ((off64_t) fl.l_start != fl64->l_start) { __set_errno (EOVERFLOW); return -1; } - fl.l_len = (off_t)fl64->l_len; + fl.l_len = (off_t) fl64->l_len; /* Check if we can represent the values with the smaller type. */ - if ((off64_t)fl.l_len != fl64->l_len) + if ((off64_t) fl.l_len != fl64->l_len) { __set_errno (EOVERFLOW); return -1; @@ -99,16 +98,17 @@ __libc_fcntl (int fd, int cmd, ...) { struct flock fl; struct flock64 *fl64 = arg; - fl.l_start = (off_t)fl64->l_start; + + fl.l_start = (off_t) fl64->l_start; /* Check if we can represent the values with the smaller type. */ - if ((off64_t)fl.l_start != fl64->l_start) + if ((off64_t) fl.l_start != fl64->l_start) { __set_errno (EOVERFLOW); return -1; } fl.l_len = (off_t)fl64->l_len; /* Check if we can represent the values with the smaller type. */ - if ((off64_t)fl.l_len != fl64->l_len) + if ((off64_t) fl.l_len != fl64->l_len) { __set_errno (EOVERFLOW); return -1; |