From patchwork Wed Apr 30 10:30:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 344080 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 6EF9B14010F for ; Wed, 30 Apr 2014 20:31:00 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=EhtwOhVRG4NZpU1YT9txUuaKcoMei LGUsxGfjgEJCgmfYuJ5DB95xcrcHZeXSRdHXC0Ei4fQwXdiAKBx3goOC+9oM30UX +GLJM8C1nYBQyOYzd6JYB3YtHMPPIwv7eKCWmKDIFFioFKbDSYAPbUyTTWYrfgKt jhNy0O9XRku0PE= 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:to:from:subject:date:message-id:mime-version :content-type; s=default; bh=1vrkhuxlxvJWxeWoNdLbdZJSYvg=; b=l8h NKJ9MgG/g6cii+pmVB6U+6bJ/JZRkTafLZ1NXdvjeOMhW+MHhElXX3oUfbD/l2hd Q/LW1LwcjDX+25reOmtRZL9MKi5lXX77lKqX/0DC4P5RjW9PApaQZ5DDHi6/xPev 2pa86Z9Jn2DlJj5GsIzzN+gQtYx88xQ3p/cRqA+c= Received: (qmail 10836 invoked by alias); 30 Apr 2014 10:30:53 -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 10826 invoked by uid 89); 30 Apr 2014 10:30:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: libc-alpha@sourceware.org From: Rasmus Villemoes Subject: [PATCH] Fix prototype for eventfd Date: Wed, 30 Apr 2014 12:30:32 +0200 Lines: 52 Message-ID: <8761lraz3r.fsf@rasmusvillemoes.dk> Mime-Version: 1.0 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Both the man-page and the actual kernel source says that the first argument to eventfd is unsigned int, not simply int. Signed-off-by: Rasmus Villemoes --- ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h | 2 +- sysdeps/unix/sysv/linux/eventfd.c | 2 +- sysdeps/unix/sysv/linux/sys/eventfd.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h b/ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h index 2d198a8..a3c340e 100644 --- a/ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h +++ b/ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h @@ -40,7 +40,7 @@ __BEGIN_DECLS /* Return file descriptor for generic event channel. Set initial value to COUNT. */ -extern int eventfd (int __count, int __flags) __THROW; +extern int eventfd (unsigned int __count, int __flags) __THROW; /* Read event counter and possibly wait for events. */ extern int eventfd_read (int __fd, eventfd_t *__value); diff --git a/sysdeps/unix/sysv/linux/eventfd.c b/sysdeps/unix/sysv/linux/eventfd.c index 425c811..83da67f 100644 --- a/sysdeps/unix/sysv/linux/eventfd.c +++ b/sysdeps/unix/sysv/linux/eventfd.c @@ -22,7 +22,7 @@ int -eventfd (int count, int flags) +eventfd (unsigned int count, int flags) { #ifdef __NR_eventfd2 int res = INLINE_SYSCALL (eventfd2, 2, count, flags); diff --git a/sysdeps/unix/sysv/linux/sys/eventfd.h b/sysdeps/unix/sysv/linux/sys/eventfd.h index 7f977ed..0806891 100644 --- a/sysdeps/unix/sysv/linux/sys/eventfd.h +++ b/sysdeps/unix/sysv/linux/sys/eventfd.h @@ -31,7 +31,7 @@ __BEGIN_DECLS /* Return file descriptor for generic event channel. Set initial value to COUNT. */ -extern int eventfd (int __count, int __flags) __THROW; +extern int eventfd (unsigned int __count, int __flags) __THROW; /* Read event counter and possibly wait for events. */ extern int eventfd_read (int __fd, eventfd_t *__value);