diff options
author | Andreas Jaeger <aj@suse.de> | 2003-09-05 06:10:20 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2003-09-05 06:10:20 +0000 |
commit | d60f1e8d315a85cebe9f38c26b8a4830c09bb7ae (patch) | |
tree | 559a2f0c3002f2f2321a9d36977106b074a01833 | |
parent | 966f66bbbf546a0fd2b49c6036585ef55d452fc5 (diff) | |
download | glibc-d60f1e8d315a85cebe9f38c26b8a4830c09bb7ae.tar.gz glibc-d60f1e8d315a85cebe9f38c26b8a4830c09bb7ae.tar.xz glibc-d60f1e8d315a85cebe9f38c26b8a4830c09bb7ae.zip |
(__fcntl_nocancel): Change
prototype to use variable argument lists and get the possible one argument via va_arg.
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/fcntl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/fcntl.c b/sysdeps/unix/sysv/linux/i386/fcntl.c index c0ca1257f1..f47d98e6bf 100644 --- a/sysdeps/unix/sysv/linux/i386/fcntl.c +++ b/sysdeps/unix/sysv/linux/i386/fcntl.c @@ -32,8 +32,15 @@ int __have_no_fcntl64; int -__fcntl_nocancel (int fd, int cmd, void *arg) +__fcntl_nocancel (int fd, int cmd, ...) { + va_list ap; + void *arg; + + va_start (ap, cmd); + arg = va_arg (ap, void *); + va_end (ap); + #if __ASSUME_FCNTL64 == 0 # ifdef __NR_fcntl64 if (! __have_no_fcntl64) |