diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-08-21 03:59:01 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-08-21 03:59:01 +0000 |
commit | 7f0ba78b3c49b124122d8af73ea4bc793824da33 (patch) | |
tree | 4b28288316fc1a576c2f8db0820986f624ef7b8f /libc/sysdeps/linux/common/__syscall_fcntl64.c | |
parent | 2cadc1dd27a445024be74e58782fb0e1b1ac6877 (diff) | |
download | uClibc-alpine-7f0ba78b3c49b124122d8af73ea4bc793824da33.tar.bz2 uClibc-alpine-7f0ba78b3c49b124122d8af73ea4bc793824da33.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/sysdeps/linux/common/__syscall_fcntl64.c')
-rw-r--r-- | libc/sysdeps/linux/common/__syscall_fcntl64.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/__syscall_fcntl64.c b/libc/sysdeps/linux/common/__syscall_fcntl64.c index 9231808e3..a1daa7375 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl64.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl64.c @@ -2,7 +2,7 @@ /* * __syscall_fcntl64() for uClibc * - * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org> + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ @@ -12,10 +12,12 @@ #include <fcntl.h> #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64 -#undef fcntl64 +extern __typeof(fcntl64) __libc_fcntl64; +libc_hidden_proto(__libc_fcntl64) + #define __NR___syscall_fcntl64 __NR_fcntl64 static inline _syscall3(int, __syscall_fcntl64, int, fd, int, cmd, long, arg); -int attribute_hidden __fcntl64(int fd, int cmd, ...) +int __libc_fcntl64(int fd, int cmd, ...) { long arg; va_list list; @@ -26,6 +28,9 @@ int attribute_hidden __fcntl64(int fd, int cmd, ...) va_end(list); return (__syscall_fcntl64(fd, cmd, arg)); } -strong_alias(__fcntl64,fcntl64) -weak_alias(__fcntl64,__libc_fcntl64) +libc_hidden_def(__libc_fcntl64) + +libc_hidden_proto(fcntl64) +strong_alias(__libc_fcntl64,fcntl64) +libc_hidden_weak(fcntl64) #endif |