[uClibc-cvs] uClibc/libc/sysdeps/linux/common syscalls.c, 1.111, 1.112
Erik Andersen
andersen at uclibc.org
Mon Sep 8 06:31:25 UTC 2003
Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory winder:/tmp/cvs-serv24507
Modified Files:
syscalls.c
Log Message:
mjn3 pointed out that my brain was not in gear....
Index: syscalls.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/syscalls.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- syscalls.c 7 Sep 2003 05:02:52 -0000 1.111
+++ syscalls.c 8 Sep 2003 06:31:16 -0000 1.112
@@ -2074,12 +2074,16 @@
//#define __NR_fcntl64 221
#ifdef L___syscall_fcntl64
-#ifdef __UCLIBC_HAS_LFS__
#include <stdarg.h>
#include <fcntl.h>
+#ifdef __UCLIBC_HAS_LFS__
#define __NR___syscall_fcntl64 __NR_fcntl64
static inline
_syscall3(int, __syscall_fcntl64, int, fd, int, cmd, long, arg);
+#else
+#define __syscall_fcntl64 __syscall_fcntl
+extern int __syscall_fcntl(int fd, int cmd, ...);
+#endif
int __libc_fcntl64(int fd, int cmd, ...)
{
long arg;
@@ -2090,9 +2094,6 @@
return(__syscall_fcntl64(fd, cmd, arg));
}
weak_alias(__libc_fcntl64, fcntl64)
-#else
-weak_alias(__libc_fcntl64, __libc_fcntl)
-#endif
#endif
//#define __NR_security 223 /* syscall for security modules */
More information about the uClibc-cvs
mailing list