diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:43:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:43:11 +0000 |
commit | fc22b3d6507c6745911b9dfcc68f1e665ae13dbc (patch) | |
tree | ce1e3bce06471410239a6f41282e328770aa404a /templates/man3/scandir.3.pot | |
parent | Initial commit. (diff) | |
download | manpages-l10n-fc22b3d6507c6745911b9dfcc68f1e665ae13dbc.tar.xz manpages-l10n-fc22b3d6507c6745911b9dfcc68f1e665ae13dbc.zip |
Adding upstream version 4.22.0.upstream/4.22.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'templates/man3/scandir.3.pot')
-rw-r--r-- | templates/man3/scandir.3.pot | 825 |
1 files changed, 825 insertions, 0 deletions
diff --git a/templates/man3/scandir.3.pot b/templates/man3/scandir.3.pot new file mode 100644 index 00000000..e75e53ad --- /dev/null +++ b/templates/man3/scandir.3.pot @@ -0,0 +1,825 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2024-03-01 17:07+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. type: TH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "scandir" +msgstr "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "2023-10-31" +msgstr "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NAME" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"scandir, scandirat, alphasort, versionsort - scan a directory for matching " +"entries" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "LIBRARY" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Standard C library (I<libc>, I<-lc>)" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SYNOPSIS" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<#include E<lt>dirent.hE<gt>>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<int scandir(const char *restrict >I<dirp>B<,>\n" +"B< struct dirent ***restrict >I<namelist>B<,>\n" +"B< int (*>I<filter>B<)(const struct dirent *),>\n" +"B< int (*>I<compar>B<)(const struct dirent **,>\n" +"B<const struct dirent **));>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<int alphasort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n" +"B<int versionsort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<#include E<lt>fcntl.hE<gt>> /* Definition of AT_* constants */\n" +"B<#include E<lt>dirent.hE<gt>>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n" +"B< struct dirent ***restrict >I<namelist>B<,>\n" +"B< int (*>I<filter>B<)(const struct dirent *),>\n" +"B< int (*>I<compar>B<)(const struct dirent **,>\n" +"B<const struct dirent **));>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "B<scandir>(), B<alphasort>():" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +" /* Since glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200809L\n" +" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "B<versionsort>():" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid " _GNU_SOURCE\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "B<scandirat>():" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "DESCRIPTION" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<scandir>() function scans the directory I<dirp>, calling I<filter>() " +"on each directory entry. Entries for which I<filter>() returns nonzero are " +"stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with " +"the comparison function I<compar>(), and collected in array I<namelist> " +"which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are " +"selected." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<alphasort>() and B<versionsort>() functions can be used as the " +"comparison function I<compar>(). The former sorts directory entries using " +"B<strcoll>(3), the latter using B<strverscmp>(3) on the strings I<(*a)-" +"E<gt>d_name> and I<(*b)-E<gt>d_name>." +msgstr "" + +#. type: SS +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "scandirat()" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<scandirat>() function operates in exactly the same way as " +"B<scandir>(), except for the differences described here." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If the pathname given in I<dirp> is relative, then it is interpreted " +"relative to the directory referred to by the file descriptor I<dirfd> " +"(rather than relative to the current working directory of the calling " +"process, as is done by B<scandir>() for a relative pathname)." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If I<dirp> is relative and I<dirfd> is the special value B<AT_FDCWD>, then " +"I<dirp> is interpreted relative to the current working directory of the " +"calling process (like B<scandir>())." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "If I<dirp> is absolute, then I<dirfd> is ignored." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "See B<openat>(2) for an explanation of the need for B<scandirat>()." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "RETURN VALUE" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<scandir>() function returns the number of directory entries " +"selected. On error, -1 is returned, with I<errno> set to indicate the error." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<alphasort>() and B<versionsort>() functions return an integer less " +"than, equal to, or greater than zero if the first argument is considered to " +"be respectively less than, equal to, or greater than the second." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ERRORS" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EBADF>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"(B<scandirat>()) I<dirp> is relative but I<dirfd> is neither B<AT_FDCWD> " +"nor a valid file descriptor." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ENOENT>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The path in I<dirp> does not exist." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ENOMEM>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Insufficient memory to complete the operation." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ENOTDIR>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The path in I<dirp> is not a directory." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"(B<scandirat>()) I<dirp> is a relative pathname and I<dirfd> is a file " +"descriptor referring to a file other than a directory." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ATTRIBUTES" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"For an explanation of the terms used in this section, see B<attributes>(7)." +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Interface" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Attribute" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Value" +msgstr "" + +#. type: tbl table +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid ".na\n" +msgstr "" + +#. type: tbl table +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid ".nh\n" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<scandir>(),\n" +"B<scandirat>()" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Thread safety" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "MT-Safe" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<alphasort>(),\n" +"B<versionsort>()" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "MT-Safe locale" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "STANDARDS" +msgstr "" + +#. type: TP +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<alphasort>()" +msgstr "" + +#. type: TQ +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<scandir>()" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "POSIX.1-2008." +msgstr "" + +#. type: TP +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<versionsort>()" +msgstr "" + +#. type: TP +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<scandirat>()" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "GNU." +msgstr "" + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "HISTORY" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "4.3BSD, POSIX.1-2008." +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "glibc 2.1." +msgstr "" + +#. #-#-#-#-# archlinux: scandir.3.pot (PACKAGE VERSION) #-#-#-#-# +#. .P +#. The functions +#. .BR scandir () +#. and +#. .BR alphasort () +#. are from 4.3BSD, and have been available under Linux since libc4. +#. Libc4 and libc5 use the more precise prototype +#. .sp +#. .nf +#. int alphasort(const struct dirent ** a, +#. const struct dirent **b); +#. .fi +#. .sp +#. but glibc 2.0 returns to the imprecise BSD prototype. +#. type: Plain text +#. #-#-#-#-# debian-unstable: scandir.3.pot (PACKAGE VERSION) #-#-#-#-# +#. .LP +#. The functions +#. .BR scandir () +#. and +#. .BR alphasort () +#. are from 4.3BSD, and have been available under Linux since libc4. +#. Libc4 and libc5 use the more precise prototype +#. .sp +#. .nf +#. int alphasort(const struct dirent ** a, +#. const struct dirent **b); +#. .fi +#. .sp +#. but glibc 2.0 returns to the imprecise BSD prototype. +#. type: Plain text +#. #-#-#-#-# fedora-40: scandir.3.pot (PACKAGE VERSION) #-#-#-#-# +#. .P +#. The functions +#. .BR scandir () +#. and +#. .BR alphasort () +#. are from 4.3BSD, and have been available under Linux since libc4. +#. Libc4 and libc5 use the more precise prototype +#. .sp +#. .nf +#. int alphasort(const struct dirent ** a, +#. const struct dirent **b); +#. .fi +#. .sp +#. but glibc 2.0 returns to the imprecise BSD prototype. +#. type: Plain text +#. #-#-#-#-# fedora-rawhide: scandir.3.pot (PACKAGE VERSION) #-#-#-#-# +#. .P +#. The functions +#. .BR scandir () +#. and +#. .BR alphasort () +#. are from 4.3BSD, and have been available under Linux since libc4. +#. Libc4 and libc5 use the more precise prototype +#. .sp +#. .nf +#. int alphasort(const struct dirent ** a, +#. const struct dirent **b); +#. .fi +#. .sp +#. but glibc 2.0 returns to the imprecise BSD prototype. +#. type: Plain text +#. #-#-#-#-# mageia-cauldron: scandir.3.pot (PACKAGE VERSION) #-#-#-#-# +#. .P +#. The functions +#. .BR scandir () +#. and +#. .BR alphasort () +#. are from 4.3BSD, and have been available under Linux since libc4. +#. Libc4 and libc5 use the more precise prototype +#. .sp +#. .nf +#. int alphasort(const struct dirent ** a, +#. const struct dirent **b); +#. .fi +#. .sp +#. but glibc 2.0 returns to the imprecise BSD prototype. +#. type: Plain text +#. #-#-#-#-# opensuse-leap-15-6: scandir.3.pot (PACKAGE VERSION) #-#-#-#-# +#. .LP +#. The functions +#. .BR scandir () +#. and +#. .BR alphasort () +#. are from 4.3BSD, and have been available under Linux since libc4. +#. Libc4 and libc5 use the more precise prototype +#. .sp +#. .nf +#. int alphasort(const struct dirent ** a, +#. const struct dirent **b); +#. .fi +#. .sp +#. but glibc 2.0 returns to the imprecise BSD prototype. +#. type: Plain text +#. #-#-#-#-# opensuse-tumbleweed: scandir.3.pot (PACKAGE VERSION) #-#-#-#-# +#. .LP +#. The functions +#. .BR scandir () +#. and +#. .BR alphasort () +#. are from 4.3BSD, and have been available under Linux since libc4. +#. Libc4 and libc5 use the more precise prototype +#. .sp +#. .nf +#. int alphasort(const struct dirent ** a, +#. const struct dirent **b); +#. .fi +#. .sp +#. but glibc 2.0 returns to the imprecise BSD prototype. +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "glibc 2.15." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NOTES" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Since glibc 2.1, B<alphasort>() calls B<strcoll>(3); earlier it used " +"B<strcmp>(3)." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Before glibc 2.10, the two arguments of B<alphasort>() and " +"B<versionsort>() were typed as I<const void\\ *>. When B<alphasort>() was " +"standardized in POSIX.1-2008, the argument type was specified as the type-" +"safe I<const struct dirent\\ **>, and glibc 2.10 changed the definition of " +"B<alphasort>() (and the nonstandard B<versionsort>()) to match the " +"standard." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "EXAMPLES" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The program below prints a list of the files in the current directory in " +"reverse order." +msgstr "" + +#. type: SS +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Program source" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"#define _DEFAULT_SOURCE\n" +"#include E<lt>dirent.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"\\&\n" +"int\n" +"main(void)\n" +"{\n" +" struct dirent **namelist;\n" +" int n;\n" +"\\&\n" +" n = scandir(\".\", &namelist, NULL, alphasort);\n" +" if (n == -1) {\n" +" perror(\"scandir\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" while (n--) {\n" +" printf(\"%s\\en\", namelist[n]-E<gt>d_name);\n" +" free(namelist[n]);\n" +" }\n" +" free(namelist);\n" +"\\&\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. SRC END +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SEE ALSO" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<closedir>(3), B<fnmatch>(3), B<opendir>(3), B<readdir>(3), " +"B<rewinddir>(3), B<seekdir>(3), B<strcmp>(3), B<strcoll>(3), " +"B<strverscmp>(3), B<telldir>(3)" +msgstr "" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "2023-02-05" +msgstr "" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "Linux man-pages 6.03" +msgstr "" + +#. type: SH +#: debian-bookworm +#, no-wrap +msgid "VERSIONS" +msgstr "" + +#. type: Plain text +#: debian-bookworm +msgid "B<versionsort>() was added in glibc 2.1." +msgstr "" + +#. type: Plain text +#: debian-bookworm +msgid "B<scandirat>() was added in glibc 2.15." +msgstr "" + +#. type: Plain text +#: debian-bookworm +msgid "B<alphasort>(), B<scandir>(): 4.3BSD, POSIX.1-2008." +msgstr "" + +#. .LP +#. The functions +#. .BR scandir () +#. and +#. .BR alphasort () +#. are from 4.3BSD, and have been available under Linux since libc4. +#. Libc4 and libc5 use the more precise prototype +#. .sp +#. .nf +#. int alphasort(const struct dirent ** a, +#. const struct dirent **b); +#. .fi +#. .sp +#. but glibc 2.0 returns to the imprecise BSD prototype. +#. type: Plain text +#: debian-bookworm +msgid "B<versionsort>() and B<scandirat>() are GNU extensions." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"#define _DEFAULT_SOURCE\n" +"#include E<lt>dirent.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"int\n" +"main(void)\n" +"{\n" +" struct dirent **namelist;\n" +" int n;\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" n = scandir(\".\", &namelist, NULL, alphasort);\n" +" if (n == -1) {\n" +" perror(\"scandir\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" while (n--) {\n" +" printf(\"%s\\en\", namelist[n]-E<gt>d_name);\n" +" free(namelist[n]);\n" +" }\n" +" free(namelist);\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "2023-07-20" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages 6.05.01" +msgstr "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "2023-03-30" +msgstr "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "Linux man-pages 6.04" +msgstr "" |