From patchwork Tue May 20 21:20:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1042 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 C8643360098 for ; Tue, 20 May 2014 14:21:03 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14307373) id 770471985A3C; Tue, 20 May 2014 14:21:03 -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 E45C31985A93 for ; Tue, 20 May 2014 14:21:02 -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:from:to:cc:subject:date:message-id; q=dns; s= default; b=yeijZSI1DeViLPZGgLjV9k/BNQwYiNzNmE+CIO1IDKdfsNrgecR5K 5eiQOYWXU6wio/SQpxoOHqhaItw59qETYv6Mbhk/2LcdCZtngrBep2jg0u5u6gjq aOELdJBWzj0qwM4XAzOKGYj47CPutxFgAWONI59UulNxIR/ZSPAZbg= 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:from:to:cc:subject:date:message-id; s=default; bh=o3O+IjTpQCpwfc3ZjoO1PwIbb44=; b=bAc6G62Z5ZiX793GU9vb13jlWmRn JgI2P/bqjhKkVYHGu6Z6sRiOCMA8zuLW0Z6C+gGqaxGnhJL6sxST35mPEQs0hvYk Sr1XO2zVRhairmn+qyqVKffB80mTDYQUkXc3XnBthGnF43xGHshU+8Et5G7fibfJ DyUPDgQalyIUcrI= Received: (qmail 13580 invoked by alias); 20 May 2014 21:21:01 -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 13561 invoked by uid 89); 20 May 2014 21:20:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-la0-f41.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JR8+6RgK+oiOGgyGJpDtKIu9o4XrFT2Yuf/rAnwiMVg=; b=IVR7UGzJslhIDdMToDfxQNFQ66CWPT73Ipb/Zrbw0y7o/pYZzH/hwVHmDKvx7SZKsr cYi3KDruRHPXbXj6YGKIq1iKQJEf50ClcmBd4sPVy37ZSMxSZMuJACxuR+HrjGuvTaJ1 WZU23/BjcLJVXiAzwQXuXLuxwEX+0Qul5ya2YpNE0fKPgX5JlEgrhMXbA2EUimY3wcFa /uPpZUvEYE3i9+MiZTVDvGm/wnz/CINR30et0ICzYUeQwcU+K/Y899vW1BK64ZSVbPHB mLJ3sxcSMHen1tg2ac55QXS4s7wB8m3DV5LJwKlL4pxDlO9kLm88zg7uOPu1IR7mKh1R NHyQ== X-Gm-Message-State: ALoCoQnn53JAl/cKlC3jyXhXG+Damf5EblaF1F2R4MsVJB2qd6IBfRcM8JMCptVITAALyfPHR89p X-Received: by 10.112.180.225 with SMTP id dr1mr13581431lbc.51.1400620855097; Tue, 20 May 2014 14:20:55 -0700 (PDT) From: Rasmus Villemoes To: libc-alpha@sourceware.org Cc: Rasmus Villemoes Subject: [PATCH] manual: Update prototypes for alphasort and friends Date: Tue, 20 May 2014 23:20:19 +0200 Message-Id: <1400620819-2798-1-git-send-email-rv@rasmusvillemoes.dk> X-DH-Original-To: glibc@patchwork.siddhesh.in The four functions {alpha,version}sort{,64} take parameters of type const struct dirent{,64} **, not const void *. Signed-off-by: Rasmus Villemoes --- manual/filesys.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manual/filesys.texi b/manual/filesys.texi index 9bf5baf..7d55b43 100644 --- a/manual/filesys.texi +++ b/manual/filesys.texi @@ -748,7 +748,7 @@ are very helpful for this purpose. @comment dirent.h @comment BSD/SVID -@deftypefun int alphasort (const void *@var{a}, const void *@var{b}) +@deftypefun int alphasort (const struct dirent **@var{a}, const struct dirent **@var{b}) @safety{@prelim{}@mtsafe{@mtslocale{}}@asunsafe{@ascuheap{}}@acunsafe{@acsmem{}}} @c Calls strcoll. The @code{alphasort} function behaves like the @code{strcoll} function @@ -762,7 +762,7 @@ than zero depending on the order of the two entries @var{a} and @var{b}. @comment dirent.h @comment GNU -@deftypefun int versionsort (const void *@var{a}, const void *@var{b}) +@deftypefun int versionsort (const struct dirent **@var{a}, const struct dirent **@var{b}) @safety{@prelim{}@mtsafe{@mtslocale{}}@assafe{}@acsafe{}} @c Calls strverscmp, which will accesses the locale object multiple @c times. @@ -797,7 +797,7 @@ argument. Instead we provide the two replacement functions below. @comment dirent.h @comment GNU -@deftypefun int alphasort64 (const void *@var{a}, const void *@var{b}) +@deftypefun int alphasort64 (const struct dirent64 **@var{a}, const struct dirent **@var{b}) @safety{@prelim{}@mtsafe{@mtslocale{}}@asunsafe{@ascuheap{}}@acunsafe{@acsmem{}}} @c See alphasort. The @code{alphasort64} function behaves like the @code{strcoll} function @@ -811,7 +811,7 @@ than zero depending on the order of the two entries @var{a} and @var{b}. @comment dirent.h @comment GNU -@deftypefun int versionsort64 (const void *@var{a}, const void *@var{b}) +@deftypefun int versionsort64 (const struct dirent64 **@var{a}, const struct dirent64 **@var{b}) @safety{@prelim{}@mtsafe{@mtslocale{}}@assafe{}@acsafe{}} @c See versionsort. The @code{versionsort64} function is like @code{alphasort64}, excepted that it