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: 753 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id 24E2D36007E for ; Wed, 30 Apr 2014 03:30:56 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14307373) id C990012DA614; Wed, 30 Apr 2014 03:30:55 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx21.g.dreamhost.com 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 homiemail-mx21.g.dreamhost.com (Postfix) with ESMTPS id 925CB12C3265 for ; Wed, 30 Apr 2014 03:30:55 -0700 (PDT) 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=jZqJKs9EvxSh3xJzs0dV6ejynx3Cy z7ZllRjGx3a7j6hK1MeeqzqXk+1gHKwSbXJaaSbkifP6vi5+7eDUmmzqmUoB6rsH 8GHw31yPVHl/m8zScxjdsQ958SvBDnAl6oWqut/tIdzoK6hwf4Da36lJ4ZB8r5st 08fbd6nMnyuAEc= 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=AEv ScVvQl7+JDgmoeH7Auj+9qz22ybB7vcLC2y88p2uBL/bt8+yAHoGFvS32IHvyREu YB/WZ3/HGGkzwxFEGGBQdy3cHnSaWNGBQhhco2D2Osn+r6PvzignVXhHLqjmBMsH hs6nhawPm35ROIRnuOlrRWMEKvi/rIvBBT8ztILU= 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) X-DH-Original-To: glibc@patchwork.siddhesh.in 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);