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: 350885 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 2026B140086 for ; Wed, 21 May 2014 07:21:05 +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:from:to:cc:subject:date:message-id; q=dns; s= default; b=SGppN5WYoyIDJrx+mFDrEBPGwpGO46/eQeeEj9t+F8LJjBaH7Sh4Z MAkRRjFUSQjKoSqjJ2HuUvtjMXRd8l/vYosMPrtuLiI57R6Qtxr7NCsnZSkYjqEL M0qOwxqOv7a0GdENGE0y3KoaBz0i24CBSrBh8MJhx0RDWUwVvcc3Ps= 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=EdyRoNipxm6C+jWxwEX7Ek00u7aa aVsymjSi62dr+vb5fVZvMgrFJF1Dd08tIvC0ma4du2sWie8yw901nUYfRo68sGFS VwjS2eLCxHkj/gDo7GTHA2CK0tJgdCJ+oWF7U6PxJfV5xOZgBdyj2LeebzeV3qfx eyuNvMuKuPp8CCw= 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> 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