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: 540737 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CD6ED140E31 for ; Fri, 6 Nov 2015 10:02:08 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=hyOkB0Dy; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=EJ+oJA/AnzH4+jce/09A9gre6vgnfWvgyQJ6enXn+ItSMl eIQGfZYwMTyF9h0De4Sae1rhlNJwbI2HtOBUOYyvqR+4xonGZLaoWIFh07JggAw4 OUPxUvijg5GZTPWU7bgG262RP1mjXXbeNxE5zfm5U0Hj9iBDFFkJZyh7Ff5wM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=YWJ/pN9gfcJ6ZKPlNLLjqvHW56U=; b=hyOkB0DyGDJ8IUDMvu6Q dU7vxhaJveLJxGNsqlcOXkLXQDeIs+f5wbm5hOTO9Sgitn17844ZFESgBswO7f1R 7KhjmjLcd05NTnfuRlSduplSDuNoNl5ESbKRWvH+gp7cNAG2LjYn7wDOmPSONGiv Wztb4ZVVUGSBkIxto4ZrTgo= 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;