From d60f1e8d315a85cebe9f38c26b8a4830c09bb7ae Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 5 Sep 2003 06:10:20 +0000 Subject: (__fcntl_nocancel): Change prototype to use variable argument lists and get the possible one argument via va_arg. --- sysdeps/unix/sysv/linux/i386/fcntl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/i386/fcntl.c b/sysdeps/unix/sysv/linux/i386/fcntl.c index c0ca125..f47d98e 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) -- cgit v1.1