From patchwork Thu Nov 5 23:02:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 9572 Received: (qmail 118736 invoked by alias); 5 Nov 2015 23:02:03 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 118727 invoked by uid 89); 5 Nov 2015 23:02:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Fix some stub prototypes missing ... after K&R conversion Message-Id: <20151105230200.2D3422C3B4C@topped-with-meat.com> Date: Thu, 5 Nov 2015 15:02:00 -0800 (PST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=RZ8DVTdv c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=hOe2yjtxAAAA:8 a=kj9zAlcOel0A:10 a=tdu1dXcVQzksdMTTrxYA:9 a=CjuIK1q_8ugA:10 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 * 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;