This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Fix some stub prototypes missing ... after K&R conversion
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Thu, 5 Nov 2015 15:02:00 -0800 (PST)
- Subject: [COMMITTED PATCH] Fix some stub prototypes missing ... after K&R conversion
- Authentication-results: sourceware.org; auth=none
These definitions were converted to prototype style in a mechanical fashion
that failed to add the ", ..." they needed. There might be other such
cases in stub files. I only noticed the ones that broke the arm-nacl build.
2015-11-05 Roland McGrath <roland@hack.frob.com>
* io/fcntl.c (__fcntl): Add ... to prototype.
* misc/ioctl.c (__ioctl): Likewise.
* misc/syscall.c (syscall): Likewise.
diff --git a/io/fcntl.c b/io/fcntl.c
index 996a0d5..8bfda94 100644
--- a/io/fcntl.c
+++ b/io/fcntl.c
@@ -20,7 +20,7 @@
/* Perform file control operations on FD. */
int
-__fcntl (int fd, int cmd)
+__fcntl (int fd, int cmd, ...)
{
if (fd < 0)
{
diff --git a/misc/ioctl.c b/misc/ioctl.c
index d07c3d9..edc2743 100644
--- a/misc/ioctl.c
+++ b/misc/ioctl.c
@@ -21,7 +21,7 @@
/* Perform the I/O control operation specified by REQUEST on FD.
The actual type and use of ARG and the return value depend on REQUEST. */
int
-__ioctl (int fd, unsigned long int request)
+__ioctl (int fd, unsigned long int request, ...)
{
__set_errno (ENOSYS);
return -1;
diff --git a/misc/syscall.c b/misc/syscall.c
index f823736..ed5109c 100644
--- a/misc/syscall.c
+++ b/misc/syscall.c
@@ -23,7 +23,7 @@
This only makes sense in certain operating systems. */
long int
-syscall (long int callno)
+syscall (long int callno, ...)
{
__set_errno (ENOSYS);
return -1;