summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorRasmus Villemoes <rv@rasmusvillemoes.dk>2014-05-20 23:20:19 +0200
committerOndřej Bílka <neleai@seznam.cz>2014-05-23 11:26:06 +0200
commit2302d679ce8b36854022207b58e554b3e89dd8c7 (patch)
tree1925e4eb608c229fe02bac8112da6f9db043e9c3 /manual
parent32999d63fd5b37d14972fc128502ad212df4f056 (diff)
downloadglibc-2302d679ce8b36854022207b58e554b3e89dd8c7.tar.gz
glibc-2302d679ce8b36854022207b58e554b3e89dd8c7.tar.xz
glibc-2302d679ce8b36854022207b58e554b3e89dd8c7.zip
manual: Update prototypes for alphasort and friends
The four functions {alpha,version}sort{,64} take parameters of type
const struct dirent{,64} **, not const void *.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Diffstat (limited to 'manual')
-rw-r--r--manual/filesys.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/manual/filesys.texi b/manual/filesys.texi
index 9bf5baf2c2..7d55b43cf2 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