projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
966f66b
)
(__fcntl_nocancel): Change
author
Andreas Jaeger
<aj@suse.de>
Fri, 5 Sep 2003 06:10:20 +0000
(06:10 +0000)
committer
Andreas Jaeger
<aj@suse.de>
Fri, 5 Sep 2003 06:10:20 +0000
(06:10 +0000)
prototype to use variable argument lists and get the possible one
argument via va_arg.
sysdeps/unix/sysv/linux/i386/fcntl.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/i386/fcntl.c
b/sysdeps/unix/sysv/linux/i386/fcntl.c
index
c0ca125
..
f47d98e
100644
(file)
--- 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)