svn commit: trunk/uClibc/libc: misc/internals sysdeps/linux/common
psm at uclibc.org
psm at uclibc.org
Sat Jan 21 00:18:03 UTC 2006
Author: psm
Date: 2006-01-20 16:18:02 -0800 (Fri, 20 Jan 2006)
New Revision: 13472
Log:
Use __typeof instead of adding full prototypes
Modified:
trunk/uClibc/libc/misc/internals/__uClibc_main.c
trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c
trunk/uClibc/libc/sysdeps/linux/common/open.c
trunk/uClibc/libc/sysdeps/linux/common/open64.c
Changeset:
Modified: trunk/uClibc/libc/misc/internals/__uClibc_main.c
===================================================================
--- trunk/uClibc/libc/misc/internals/__uClibc_main.c 2006-01-20 23:45:10 UTC (rev 13471)
+++ trunk/uClibc/libc/misc/internals/__uClibc_main.c 2006-01-21 00:18:02 UTC (rev 13472)
@@ -38,9 +38,9 @@
libc_hidden_proto(abort)
libc_hidden_proto(exit)
-extern int __libc_open (__const char *__file, int __oflag, ...) __nonnull ((1));
+extern __typeof(open) __libc_open;
libc_hidden_proto(__libc_open)
-extern int __libc_fcntl (int __fd, int __cmd, ...);
+extern __typeof(fcntl) __libc_fcntl;
libc_hidden_proto(__libc_fcntl)
#ifndef SHARED
Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c 2006-01-20 23:45:10 UTC (rev 13471)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c 2006-01-21 00:18:02 UTC (rev 13472)
@@ -12,11 +12,11 @@
#include <fcntl.h>
#include <bits/wordsize.h>
-extern int __libc_fcntl(int fd, int cmd, ...);
+extern __typeof(fcntl) __libc_fcntl;
libc_hidden_proto(__libc_fcntl)
#if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
-extern int __libc_fcntl64(int fd, int cmd, ...);
+extern __typeof(fcntl64) __libc_fcntl64;
libc_hidden_proto(__libc_fcntl64)
#endif
Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c 2006-01-20 23:45:10 UTC (rev 13471)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c 2006-01-21 00:18:02 UTC (rev 13472)
@@ -12,7 +12,7 @@
#include <fcntl.h>
#if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
-extern int __libc_fcntl64(int fd, int cmd, ...);
+extern __typeof(fcntl64) __libc_fcntl64;
libc_hidden_proto(__libc_fcntl64)
#define __NR___syscall_fcntl64 __NR_fcntl64
Modified: trunk/uClibc/libc/sysdeps/linux/common/open.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/open.c 2006-01-20 23:45:10 UTC (rev 13471)
+++ trunk/uClibc/libc/sysdeps/linux/common/open.c 2006-01-21 00:18:02 UTC (rev 13472)
@@ -14,7 +14,7 @@
#include <string.h>
#include <sys/param.h>
-extern int __libc_open(const char *file, int flags, ...);
+extern __typeof(open) __libc_open;
libc_hidden_proto(__libc_open)
#define __NR___syscall_open __NR_open
Modified: trunk/uClibc/libc/sysdeps/linux/common/open64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/open64.c 2006-01-20 23:45:10 UTC (rev 13471)
+++ trunk/uClibc/libc/sysdeps/linux/common/open64.c 2006-01-21 00:18:02 UTC (rev 13472)
@@ -14,7 +14,7 @@
# define O_LARGEFILE 0100000
#endif
-extern int __libc_open (__const char *__file, int __oflag, ...) __nonnull ((1));
+extern __typeof(open) __libc_open;
libc_hidden_proto(__libc_open)
/* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
More information about the uClibc-cvs
mailing list