X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=po4a%2Fdirent%2Fpo%2Fdirent.pot;h=78b7b7dcecc6aa9a76552125ea15e84ee454398d;hb=8a7f723a0530d2fb90ab139c03452e84d1e19905;hp=7029cf0170082e267630c1fba3c461906bc25c4b;hpb=5c2d025590394905b1220b98359404a1d1a7581c;p=linuxjm%2FLDP_man-pages.git diff --git a/po4a/dirent/po/dirent.pot b/po4a/dirent/po/dirent.pot index 7029cf01..78b7b7dc 100644 --- a/po4a/dirent/po/dirent.pot +++ b/po4a/dirent/po/dirent.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-03-22 04:25+0900\n" +"POT-Creation-Date: 2013-03-22 01:04+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,66 +17,66 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #. type: TH -#: build/C/man3/closedir.3:29 +#: build/C/man3/closedir.3:31 #, no-wrap msgid "CLOSEDIR" msgstr "" #. type: TH -#: build/C/man3/closedir.3:29 +#: build/C/man3/closedir.3:31 #, no-wrap msgid "2008-09-23" msgstr "" #. type: TH -#: build/C/man3/closedir.3:29 build/C/man3/dirfd.3:23 build/C/man2/getdents.2:27 build/C/man3/getdirentries.3:27 build/C/man3/opendir.3:30 build/C/man2/readdir.2:28 build/C/man3/readdir.3:34 build/C/man3/rewinddir.3:29 build/C/man3/scandir.3:36 build/C/man3/seekdir.3:28 build/C/man3/telldir.3:28 +#: build/C/man3/closedir.3:31 build/C/man3/dirfd.3:25 build/C/man2/getdents.2:30 build/C/man3/getdirentries.3:27 build/C/man3/opendir.3:32 build/C/man2/readdir.2:30 build/C/man3/readdir.3:36 build/C/man3/rewinddir.3:31 build/C/man3/scandir.3:36 build/C/man3/scandirat.3:25 build/C/man3/seekdir.3:30 build/C/man3/telldir.3:30 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH -#: build/C/man3/closedir.3:30 build/C/man3/dirfd.3:24 build/C/man2/getdents.2:28 build/C/man3/getdirentries.3:28 build/C/man3/opendir.3:31 build/C/man2/readdir.2:29 build/C/man3/readdir.3:35 build/C/man3/rewinddir.3:30 build/C/man3/scandir.3:37 build/C/man3/seekdir.3:29 build/C/man3/telldir.3:29 +#: build/C/man3/closedir.3:32 build/C/man3/dirfd.3:26 build/C/man2/getdents.2:31 build/C/man3/getdirentries.3:28 build/C/man3/opendir.3:33 build/C/man2/readdir.2:31 build/C/man3/readdir.3:37 build/C/man3/rewinddir.3:32 build/C/man3/scandir.3:37 build/C/man3/scandirat.3:26 build/C/man3/seekdir.3:31 build/C/man3/telldir.3:31 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:32 +#: build/C/man3/closedir.3:34 msgid "closedir - close a directory" msgstr "" #. type: SH -#: build/C/man3/closedir.3:32 build/C/man3/dirfd.3:26 build/C/man2/getdents.2:30 build/C/man3/getdirentries.3:30 build/C/man3/opendir.3:33 build/C/man2/readdir.2:31 build/C/man3/readdir.3:37 build/C/man3/rewinddir.3:32 build/C/man3/scandir.3:39 build/C/man3/seekdir.3:32 build/C/man3/telldir.3:31 +#: build/C/man3/closedir.3:34 build/C/man3/dirfd.3:28 build/C/man2/getdents.2:33 build/C/man3/getdirentries.3:30 build/C/man3/opendir.3:35 build/C/man2/readdir.2:33 build/C/man3/readdir.3:39 build/C/man3/rewinddir.3:34 build/C/man3/scandir.3:39 build/C/man3/scandirat.3:28 build/C/man3/seekdir.3:34 build/C/man3/telldir.3:33 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:35 build/C/man3/opendir.3:36 build/C/man3/rewinddir.3:35 +#: build/C/man3/closedir.3:37 build/C/man3/opendir.3:38 build/C/man3/rewinddir.3:37 #, no-wrap msgid "B<#include Esys/types.hE>\n" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:37 build/C/man3/opendir.3:38 build/C/man3/readdir.3:40 build/C/man3/rewinddir.3:37 build/C/man3/scandir.3:42 build/C/man3/seekdir.3:35 build/C/man3/telldir.3:34 +#: build/C/man3/closedir.3:39 build/C/man3/opendir.3:40 build/C/man3/readdir.3:42 build/C/man3/rewinddir.3:39 build/C/man3/scandir.3:42 build/C/man3/seekdir.3:37 build/C/man3/telldir.3:36 #, no-wrap msgid "B<#include Edirent.hE>\n" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:39 +#: build/C/man3/closedir.3:41 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: SH -#: build/C/man3/closedir.3:40 build/C/man3/dirfd.3:52 build/C/man2/getdents.2:35 build/C/man3/getdirentries.3:43 build/C/man3/opendir.3:61 build/C/man2/readdir.2:37 build/C/man3/readdir.3:59 build/C/man3/rewinddir.3:40 build/C/man3/scandir.3:65 build/C/man3/seekdir.3:46 build/C/man3/telldir.3:45 +#: build/C/man3/closedir.3:42 build/C/man3/dirfd.3:54 build/C/man2/getdents.2:41 build/C/man3/getdirentries.3:43 build/C/man3/opendir.3:63 build/C/man2/readdir.2:42 build/C/man3/readdir.3:61 build/C/man3/rewinddir.3:42 build/C/man3/scandir.3:65 build/C/man3/scandirat.3:44 build/C/man3/seekdir.3:48 build/C/man3/telldir.3:47 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:51 +#: build/C/man3/closedir.3:53 msgid "" "The B() function closes the directory stream associated with " "I. A successful call to B() also closes the underlying " @@ -85,145 +85,145 @@ msgid "" msgstr "" #. type: SH -#: build/C/man3/closedir.3:51 build/C/man3/dirfd.3:67 build/C/man2/getdents.2:136 build/C/man3/getdirentries.3:56 build/C/man3/opendir.3:81 build/C/man2/readdir.2:86 build/C/man3/readdir.3:117 build/C/man3/rewinddir.3:45 build/C/man3/scandir.3:92 build/C/man3/seekdir.3:58 build/C/man3/telldir.3:50 +#: build/C/man3/closedir.3:53 build/C/man3/dirfd.3:69 build/C/man2/getdents.2:142 build/C/man3/getdirentries.3:56 build/C/man3/opendir.3:83 build/C/man2/readdir.2:91 build/C/man3/readdir.3:119 build/C/man3/rewinddir.3:47 build/C/man3/scandir.3:92 build/C/man3/scandirat.3:78 build/C/man3/seekdir.3:60 build/C/man3/telldir.3:52 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:58 +#: build/C/man3/closedir.3:60 msgid "" "The B() function returns 0 on success. On error, -1 is returned, " "and I is set appropriately." msgstr "" #. type: SH -#: build/C/man3/closedir.3:58 build/C/man3/dirfd.3:70 build/C/man2/getdents.2:142 build/C/man3/getdirentries.3:62 build/C/man3/opendir.3:90 build/C/man2/readdir.2:92 build/C/man3/readdir.3:141 build/C/man3/scandir.3:105 build/C/man3/telldir.3:58 +#: build/C/man3/closedir.3:60 build/C/man3/dirfd.3:72 build/C/man2/getdents.2:148 build/C/man3/getdirentries.3:62 build/C/man3/opendir.3:92 build/C/man2/readdir.2:97 build/C/man3/readdir.3:143 build/C/man3/scandir.3:105 build/C/man3/scandirat.3:85 build/C/man3/telldir.3:60 #, no-wrap msgid "ERRORS" msgstr "" #. type: TP -#: build/C/man3/closedir.3:59 build/C/man2/getdents.2:143 build/C/man3/opendir.3:94 build/C/man2/readdir.2:93 build/C/man3/readdir.3:142 build/C/man3/telldir.3:59 +#: build/C/man3/closedir.3:61 build/C/man2/getdents.2:149 build/C/man3/opendir.3:96 build/C/man2/readdir.2:98 build/C/man3/readdir.3:144 build/C/man3/scandirat.3:92 build/C/man3/telldir.3:61 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:62 build/C/man3/readdir.3:145 build/C/man3/telldir.3:62 +#: build/C/man3/closedir.3:64 build/C/man3/readdir.3:147 build/C/man3/telldir.3:64 msgid "Invalid directory stream descriptor I." msgstr "" #. type: SH -#: build/C/man3/closedir.3:62 build/C/man3/dirfd.3:83 build/C/man2/getdents.2:159 build/C/man3/getdirentries.3:64 build/C/man3/opendir.3:116 build/C/man2/readdir.2:109 build/C/man3/readdir.3:145 build/C/man3/rewinddir.3:49 build/C/man3/scandir.3:118 build/C/man3/seekdir.3:62 build/C/man3/telldir.3:62 +#: build/C/man3/closedir.3:64 build/C/man3/dirfd.3:85 build/C/man2/getdents.2:165 build/C/man3/getdirentries.3:64 build/C/man3/opendir.3:118 build/C/man2/readdir.2:114 build/C/man3/readdir.3:147 build/C/man3/rewinddir.3:51 build/C/man3/scandir.3:118 build/C/man3/scandirat.3:105 build/C/man3/seekdir.3:64 build/C/man3/telldir.3:64 #, no-wrap msgid "CONFORMING TO" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:64 +#: build/C/man3/closedir.3:66 msgid "SVr4, POSIX.1-2001, 4.3BSD." msgstr "" #. type: SH -#: build/C/man3/closedir.3:64 build/C/man3/dirfd.3:95 build/C/man2/getdents.2:273 build/C/man3/getdirentries.3:72 build/C/man3/opendir.3:138 build/C/man2/readdir.2:117 build/C/man3/readdir.3:239 build/C/man3/rewinddir.3:51 build/C/man3/scandir.3:174 build/C/man3/seekdir.3:72 build/C/man3/telldir.3:72 +#: build/C/man3/closedir.3:66 build/C/man3/dirfd.3:97 build/C/man2/getdents.2:282 build/C/man3/getdirentries.3:72 build/C/man3/opendir.3:140 build/C/man2/readdir.2:125 build/C/man3/readdir.3:243 build/C/man3/rewinddir.3:53 build/C/man3/scandir.3:174 build/C/man3/scandirat.3:112 build/C/man3/seekdir.3:74 build/C/man3/telldir.3:74 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:72 +#: build/C/man3/closedir.3:74 msgid "" "B(2), B(3), B(3), B(3), B(3), " "B(3), B(3)" msgstr "" #. type: SH -#: build/C/man3/closedir.3:72 build/C/man3/dirfd.3:104 build/C/man2/getdents.2:276 build/C/man3/getdirentries.3:75 build/C/man3/opendir.3:147 build/C/man2/readdir.2:120 build/C/man3/readdir.3:251 build/C/man3/rewinddir.3:58 build/C/man3/scandir.3:185 build/C/man3/seekdir.3:80 build/C/man3/telldir.3:79 +#: build/C/man3/closedir.3:74 build/C/man3/dirfd.3:106 build/C/man2/getdents.2:285 build/C/man3/getdirentries.3:75 build/C/man3/opendir.3:149 build/C/man2/readdir.2:128 build/C/man3/readdir.3:255 build/C/man3/rewinddir.3:60 build/C/man3/scandir.3:186 build/C/man3/scandirat.3:116 build/C/man3/seekdir.3:82 build/C/man3/telldir.3:81 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text -#: build/C/man3/closedir.3:79 build/C/man3/dirfd.3:111 build/C/man2/getdents.2:283 build/C/man3/getdirentries.3:82 build/C/man3/opendir.3:154 build/C/man2/readdir.2:127 build/C/man3/readdir.3:258 build/C/man3/rewinddir.3:65 build/C/man3/scandir.3:192 build/C/man3/seekdir.3:87 build/C/man3/telldir.3:86 +#: build/C/man3/closedir.3:81 build/C/man3/dirfd.3:113 build/C/man2/getdents.2:292 build/C/man3/getdirentries.3:82 build/C/man3/opendir.3:156 build/C/man2/readdir.2:135 build/C/man3/readdir.3:262 build/C/man3/rewinddir.3:67 build/C/man3/scandir.3:193 build/C/man3/scandirat.3:123 build/C/man3/seekdir.3:89 build/C/man3/telldir.3:88 msgid "" -"This page is part of release 3.37 of the Linux I project. A " +"This page is part of release 3.50 of the Linux I project. A " "description of the project, and information about reporting bugs, can be " "found at http://www.kernel.org/doc/man-pages/." msgstr "" #. type: TH -#: build/C/man3/dirfd.3:23 +#: build/C/man3/dirfd.3:25 #, no-wrap msgid "DIRFD" msgstr "" #. type: TH -#: build/C/man3/dirfd.3:23 +#: build/C/man3/dirfd.3:25 #, no-wrap msgid "2010-09-26" msgstr "" #. type: TH -#: build/C/man3/dirfd.3:23 build/C/man2/getdents.2:27 build/C/man2/readdir.2:28 +#: build/C/man3/dirfd.3:25 build/C/man2/getdents.2:30 build/C/man2/readdir.2:30 build/C/man3/scandirat.3:25 #, no-wrap msgid "Linux" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:26 +#: build/C/man3/dirfd.3:28 msgid "dirfd - get directory stream file descriptor" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:28 +#: build/C/man3/dirfd.3:30 msgid "B<#include Esys/types.hE>" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:30 build/C/man3/getdirentries.3:32 +#: build/C/man3/dirfd.3:32 build/C/man3/getdirentries.3:32 msgid "B<#include Edirent.hE>" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:32 +#: build/C/man3/dirfd.3:34 msgid "BIB<);>" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:36 build/C/man3/getdirentries.3:39 build/C/man3/opendir.3:46 build/C/man3/readdir.3:50 build/C/man3/scandir.3:57 build/C/man3/seekdir.3:42 build/C/man3/telldir.3:41 +#: build/C/man3/dirfd.3:38 build/C/man3/getdirentries.3:39 build/C/man3/opendir.3:48 build/C/man3/readdir.3:52 build/C/man3/scandir.3:57 build/C/man3/seekdir.3:44 build/C/man3/telldir.3:43 msgid "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:39 +#: build/C/man3/dirfd.3:41 msgid "B():" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:44 +#: build/C/man3/dirfd.3:46 msgid "_BSD_SOURCE || _SVID_SOURCE" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:46 +#: build/C/man3/dirfd.3:48 msgid "|| /* Since glibc 2.10: */" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:48 +#: build/C/man3/dirfd.3:50 msgid "(_POSIX_C_SOURCE\\ E=\\ 200809L || _XOPEN_SOURCE\\ E=\\ 700)" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:57 +#: build/C/man3/dirfd.3:59 msgid "" "The function B() returns the file descriptor associated with the " "directory stream I." msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:67 +#: build/C/man3/dirfd.3:69 msgid "" "This descriptor is the one used internally by the directory stream. As a " "result, it is only useful for functions which do not depend on or alter the " @@ -232,7 +232,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:70 +#: build/C/man3/dirfd.3:72 msgid "" "On success, a nonnegative file descriptor is returned. On error, -1 is " "returned." @@ -240,31 +240,31 @@ msgstr "" #. glibc 2.8 #. type: Plain text -#: build/C/man3/dirfd.3:75 +#: build/C/man3/dirfd.3:77 msgid "" "POSIX.1-2008 specifies two errors, neither of which is returned by the " "current implementation." msgstr "" #. type: TP -#: build/C/man3/dirfd.3:75 build/C/man2/getdents.2:150 build/C/man2/readdir.2:100 +#: build/C/man3/dirfd.3:77 build/C/man2/getdents.2:156 build/C/man2/readdir.2:105 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:79 +#: build/C/man3/dirfd.3:81 msgid "I does not refer to a valid directory stream." msgstr "" #. type: TP -#: build/C/man3/dirfd.3:79 +#: build/C/man3/dirfd.3:81 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:83 +#: build/C/man3/dirfd.3:85 msgid "" "The implementation does not support the association of a file descriptor " "with a directory." @@ -272,51 +272,51 @@ msgstr "" #. It is present in libc5 (since 5.1.2) and in glibc2. #. type: Plain text -#: build/C/man3/dirfd.3:87 +#: build/C/man3/dirfd.3:89 msgid "" "POSIX.1-2008. This function was a BSD extension, present in 4.3BSD-Reno, " "not in 4.2BSD." msgstr "" #. type: SH -#: build/C/man3/dirfd.3:87 build/C/man2/getdents.2:162 build/C/man3/opendir.3:121 build/C/man2/readdir.2:111 build/C/man3/readdir.3:147 build/C/man3/seekdir.3:64 build/C/man3/telldir.3:64 +#: build/C/man3/dirfd.3:89 build/C/man2/getdents.2:168 build/C/man3/opendir.3:123 build/C/man2/readdir.2:116 build/C/man3/readdir.3:149 build/C/man3/scandirat.3:107 build/C/man3/seekdir.3:66 build/C/man3/telldir.3:66 #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:95 +#: build/C/man3/dirfd.3:97 msgid "" "The prototype for B() is only available if B<_BSD_SOURCE> or " "B<_SVID_SOURCE> is defined." msgstr "" #. type: Plain text -#: build/C/man3/dirfd.3:104 +#: build/C/man3/dirfd.3:106 msgid "" "B(2), B(3), B(3), B(3), B(3), " "B(3), B(3), B(3)" msgstr "" #. type: TH -#: build/C/man2/getdents.2:27 +#: build/C/man2/getdents.2:30 #, no-wrap msgid "GETDENTS" msgstr "" #. type: TH -#: build/C/man2/getdents.2:27 +#: build/C/man2/getdents.2:30 #, no-wrap -msgid "2010-11-21" +msgid "2012-08-03" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:30 +#: build/C/man2/getdents.2:33 msgid "getdents - get directory entries" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:34 +#: build/C/man2/getdents.2:37 #, no-wrap msgid "" "BIB<, struct linux_dirent *>IB<,>\n" @@ -324,7 +324,12 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:41 +#: build/C/man2/getdents.2:41 build/C/man2/readdir.2:42 +msgid "I: There is no glibc wrapper for this system call; see NOTES." +msgstr "" + +#. type: Plain text +#: build/C/man2/getdents.2:47 msgid "" "This is not the function you are interested in. Look at B(3) for " "the POSIX conforming C library interface. This page documents the bare " @@ -332,7 +337,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:54 +#: build/C/man2/getdents.2:60 msgid "" "The system call B() reads several I structures from " "the directory referred to by the open file descriptor I into the buffer " @@ -341,12 +346,12 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:58 +#: build/C/man2/getdents.2:64 msgid "The I structure is declared as follows:" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:73 +#: build/C/man2/getdents.2:79 #, no-wrap msgid "" "struct linux_dirent {\n" @@ -364,13 +369,13 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:75 +#: build/C/man2/getdents.2:81 #, no-wrap msgid "}\n" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:88 +#: build/C/man2/getdents.2:94 msgid "" "I is an inode number. I is the distance from the start of the " "directory to the start of the next I. I is the size " @@ -378,7 +383,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:93 +#: build/C/man2/getdents.2:99 msgid "" "I is a byte at the end of the structure that indicates the file " "type. It contains one of the following values (defined in " @@ -386,84 +391,84 @@ msgid "" msgstr "" #. type: TP -#: build/C/man2/getdents.2:93 build/C/man3/readdir.3:176 +#: build/C/man2/getdents.2:99 build/C/man3/readdir.3:178 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:96 build/C/man3/readdir.3:179 +#: build/C/man2/getdents.2:102 build/C/man3/readdir.3:181 msgid "This is a block device." msgstr "" #. type: TP -#: build/C/man2/getdents.2:96 build/C/man3/readdir.3:179 +#: build/C/man2/getdents.2:102 build/C/man3/readdir.3:181 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:99 build/C/man3/readdir.3:182 +#: build/C/man2/getdents.2:105 build/C/man3/readdir.3:184 msgid "This is a character device." msgstr "" #. type: TP -#: build/C/man2/getdents.2:99 build/C/man3/readdir.3:182 +#: build/C/man2/getdents.2:105 build/C/man3/readdir.3:184 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:102 build/C/man3/readdir.3:185 +#: build/C/man2/getdents.2:108 build/C/man3/readdir.3:187 msgid "This is a directory." msgstr "" #. type: TP -#: build/C/man2/getdents.2:102 build/C/man3/readdir.3:185 +#: build/C/man2/getdents.2:108 build/C/man3/readdir.3:187 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:105 build/C/man3/readdir.3:188 +#: build/C/man2/getdents.2:111 build/C/man3/readdir.3:190 msgid "This is a named pipe (FIFO)." msgstr "" #. type: TP -#: build/C/man2/getdents.2:105 build/C/man3/readdir.3:188 +#: build/C/man2/getdents.2:111 build/C/man3/readdir.3:190 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:108 build/C/man3/readdir.3:191 +#: build/C/man2/getdents.2:114 build/C/man3/readdir.3:193 msgid "This is a symbolic link." msgstr "" #. type: TP -#: build/C/man2/getdents.2:108 build/C/man3/readdir.3:191 +#: build/C/man2/getdents.2:114 build/C/man3/readdir.3:193 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:111 build/C/man3/readdir.3:194 +#: build/C/man2/getdents.2:117 build/C/man3/readdir.3:196 msgid "This is a regular file." msgstr "" #. type: TP -#: build/C/man2/getdents.2:111 build/C/man3/readdir.3:194 +#: build/C/man2/getdents.2:117 build/C/man3/readdir.3:196 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:114 build/C/man3/readdir.3:197 +#: build/C/man2/getdents.2:120 build/C/man3/readdir.3:199 msgid "This is a UNIX domain socket." msgstr "" #. type: TP -#: build/C/man2/getdents.2:114 build/C/man3/readdir.3:197 +#: build/C/man2/getdents.2:120 build/C/man3/readdir.3:199 #, no-wrap msgid "B" msgstr "" @@ -471,12 +476,12 @@ msgstr "" #. The glibc manual says that on some systems this is the only #. value returned #. type: Plain text -#: build/C/man2/getdents.2:117 build/C/man3/readdir.3:202 +#: build/C/man2/getdents.2:123 build/C/man3/readdir.3:204 msgid "The file type is unknown." msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:127 +#: build/C/man2/getdents.2:133 msgid "" "The I field is implemented since Linux 2.6.4. It occupies a space " "that was previously a zero-filled padding byte in the I " @@ -487,7 +492,7 @@ msgstr "" #. kernel 2.6.27 #. The same sentence is in getdents.2 #. type: Plain text -#: build/C/man2/getdents.2:136 build/C/man3/readdir.3:216 +#: build/C/man2/getdents.2:142 build/C/man3/readdir.3:218 msgid "" "Currently, only some file systems (among them: Btrfs, ext2, ext3, and ext4) " "have full support for returning the file type in I. All " @@ -495,76 +500,76 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:142 +#: build/C/man2/getdents.2:148 msgid "" "On success, the number of bytes read is returned. On end of directory, 0 is " "returned. On error, -1 is returned, and I is set appropriately." msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:147 build/C/man2/readdir.2:97 +#: build/C/man2/getdents.2:153 build/C/man2/readdir.2:102 msgid "Invalid file descriptor I." msgstr "" #. type: TP -#: build/C/man2/getdents.2:147 build/C/man2/readdir.2:97 +#: build/C/man2/getdents.2:153 build/C/man2/readdir.2:102 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:150 build/C/man2/readdir.2:100 +#: build/C/man2/getdents.2:156 build/C/man2/readdir.2:105 msgid "Argument points outside the calling process's address space." msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:153 build/C/man2/readdir.2:103 +#: build/C/man2/getdents.2:159 build/C/man2/readdir.2:108 msgid "Result buffer is too small." msgstr "" #. type: TP -#: build/C/man2/getdents.2:153 build/C/man3/opendir.3:104 build/C/man2/readdir.2:103 build/C/man3/scandir.3:106 +#: build/C/man2/getdents.2:159 build/C/man3/opendir.3:106 build/C/man2/readdir.2:108 build/C/man3/scandir.3:106 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:156 build/C/man2/readdir.2:106 +#: build/C/man2/getdents.2:162 build/C/man2/readdir.2:111 msgid "No such directory." msgstr "" #. type: TP -#: build/C/man2/getdents.2:156 build/C/man3/opendir.3:110 build/C/man2/readdir.2:106 build/C/man3/scandir.3:112 +#: build/C/man2/getdents.2:162 build/C/man3/opendir.3:112 build/C/man2/readdir.2:111 build/C/man3/scandir.3:112 build/C/man3/scandirat.3:96 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:159 build/C/man2/readdir.2:109 +#: build/C/man2/getdents.2:165 build/C/man2/readdir.2:114 msgid "File descriptor does not refer to a directory." msgstr "" #. SVr4 documents additional ENOLINK, EIO error conditions. #. type: Plain text -#: build/C/man2/getdents.2:162 +#: build/C/man2/getdents.2:168 msgid "SVr4." msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:168 +#: build/C/man2/getdents.2:177 msgid "" "Glibc does not provide a wrapper for this system call; call it using " "B(2). You will need to define the I structure " -"yourself." +"yourself. However, you probably want to use B(3) instead." msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:171 +#: build/C/man2/getdents.2:180 msgid "This call supersedes B(2)." msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:184 +#: build/C/man2/getdents.2:193 msgid "" "The original Linux B() system call did not handle large file " "systems and large file offsets. Consequently, Linux 2.4 added " @@ -573,7 +578,7 @@ msgid "" msgstr "" #. type: SH -#: build/C/man2/getdents.2:184 build/C/man3/scandir.3:150 +#: build/C/man2/getdents.2:193 build/C/man3/scandir.3:150 #, no-wrap msgid "EXAMPLE" msgstr "" @@ -581,7 +586,7 @@ msgstr "" #. FIXME: This program uses the older getdents(0 system call #. and the structure with smaller field widths. #. type: Plain text -#: build/C/man2/getdents.2:191 +#: build/C/man2/getdents.2:200 msgid "" "The program below demonstrates the use of B(). The following " "output shows an example of what we see when running this program on an ext2 " @@ -589,7 +594,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:204 +#: build/C/man2/getdents.2:213 #, no-wrap msgid "" "$B< ./a.out /testfs/>\n" @@ -605,13 +610,13 @@ msgid "" msgstr "" #. type: SS -#: build/C/man2/getdents.2:206 +#: build/C/man2/getdents.2:215 #, no-wrap msgid "Program source" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:217 +#: build/C/man2/getdents.2:226 #, no-wrap msgid "" "#define _GNU_SOURCE\n" @@ -625,7 +630,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:220 +#: build/C/man2/getdents.2:229 #, no-wrap msgid "" "#define handle_error(msg) \\e\n" @@ -633,7 +638,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:227 +#: build/C/man2/getdents.2:236 #, no-wrap msgid "" "struct linux_dirent {\n" @@ -645,13 +650,13 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:229 +#: build/C/man2/getdents.2:238 #, no-wrap msgid "#define BUF_SIZE 1024\n" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:238 +#: build/C/man2/getdents.2:247 #, no-wrap msgid "" "int\n" @@ -665,7 +670,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:242 +#: build/C/man2/getdents.2:251 #, no-wrap msgid "" " fd = open(argc E 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" @@ -674,7 +679,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:247 +#: build/C/man2/getdents.2:256 #, no-wrap msgid "" " for ( ; ; ) {\n" @@ -684,7 +689,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:250 +#: build/C/man2/getdents.2:259 #, no-wrap msgid "" " if (nread == 0)\n" @@ -692,7 +697,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:269 +#: build/C/man2/getdents.2:278 #, no-wrap msgid "" " printf(\"--------------- nread=%d ---------------\\en\", nread);\n" @@ -710,14 +715,14 @@ msgid "" " (d_type == DT_CHR) ? \"char dev\" : " "\"???\");\n" " printf(\"%4d %10lld %s\\en\", d-Ed_reclen,\n" -" (long long) d-Ed_off, (char *) d-Ed_name);\n" +" (long long) d-Ed_off, d-Ed_name);\n" " bpos += d-Ed_reclen;\n" " }\n" " }\n" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:272 +#: build/C/man2/getdents.2:281 #, no-wrap msgid "" " exit(EXIT_SUCCESS);\n" @@ -725,7 +730,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/getdents.2:276 +#: build/C/man2/getdents.2:285 msgid "B(2), B(3)" msgstr "" @@ -742,7 +747,7 @@ msgid "2007-07-26" msgstr "" #. type: TH -#: build/C/man3/getdirentries.3:27 build/C/man3/opendir.3:30 build/C/man3/scandir.3:36 +#: build/C/man3/getdirentries.3:27 build/C/man3/opendir.3:32 build/C/man3/scandir.3:36 #, no-wrap msgid "GNU" msgstr "" @@ -798,24 +803,24 @@ msgid "B(2), B(2)" msgstr "" #. type: TH -#: build/C/man3/opendir.3:30 +#: build/C/man3/opendir.3:32 #, no-wrap msgid "OPENDIR" msgstr "" #. type: TH -#: build/C/man3/opendir.3:30 +#: build/C/man3/opendir.3:32 #, no-wrap msgid "2010-06-20" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:33 +#: build/C/man3/opendir.3:35 msgid "opendir, fdopendir - open a directory" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:41 +#: build/C/man3/opendir.3:43 #, no-wrap msgid "" "BIB<);>\n" @@ -823,34 +828,34 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:49 +#: build/C/man3/opendir.3:51 msgid "B():" msgstr "" #. type: TP -#: build/C/man3/opendir.3:52 +#: build/C/man3/opendir.3:54 #, no-wrap msgid "Since glibc 2.10:" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:55 +#: build/C/man3/opendir.3:57 msgid "_XOPEN_SOURCE\\ E=\\ 700 || _POSIX_C_SOURCE\\ E=\\ 200809L" msgstr "" #. type: TP -#: build/C/man3/opendir.3:55 +#: build/C/man3/opendir.3:57 #, no-wrap msgid "Before glibc 2.10:" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:58 +#: build/C/man3/opendir.3:60 msgid "_GNU_SOURCE" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:67 +#: build/C/man3/opendir.3:69 msgid "" "The B() function opens a directory stream corresponding to the " "directory I, and returns a pointer to the directory stream. The " @@ -858,7 +863,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:81 +#: build/C/man3/opendir.3:83 msgid "" "The B() function is like B(), but returns a directory " "stream for the directory referred to by the open file descriptor I. " @@ -867,7 +872,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:90 +#: build/C/man3/opendir.3:92 msgid "" "The B() and B() functions return a pointer to the " "directory stream. On error, NULL is returned, and I is set " @@ -875,91 +880,91 @@ msgid "" msgstr "" #. type: TP -#: build/C/man3/opendir.3:91 +#: build/C/man3/opendir.3:93 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:94 +#: build/C/man3/opendir.3:96 msgid "Permission denied." msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:98 +#: build/C/man3/opendir.3:100 msgid "I is not a valid file descriptor opened for reading." msgstr "" #. type: TP -#: build/C/man3/opendir.3:98 +#: build/C/man3/opendir.3:100 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:101 +#: build/C/man3/opendir.3:103 msgid "Too many file descriptors in use by process." msgstr "" #. type: TP -#: build/C/man3/opendir.3:101 +#: build/C/man3/opendir.3:103 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:104 +#: build/C/man3/opendir.3:106 msgid "Too many files are currently open in the system." msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:107 +#: build/C/man3/opendir.3:109 msgid "Directory does not exist, or I is an empty string." msgstr "" #. type: TP -#: build/C/man3/opendir.3:107 build/C/man3/scandir.3:109 +#: build/C/man3/opendir.3:109 build/C/man3/scandir.3:109 #, no-wrap msgid "B" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:110 build/C/man3/scandir.3:112 +#: build/C/man3/opendir.3:112 build/C/man3/scandir.3:112 msgid "Insufficient memory to complete the operation." msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:113 +#: build/C/man3/opendir.3:115 msgid "I is not a directory." msgstr "" #. type: SH -#: build/C/man3/opendir.3:113 build/C/man3/scandir.3:115 +#: build/C/man3/opendir.3:115 build/C/man3/scandir.3:115 build/C/man3/scandirat.3:102 #, no-wrap msgid "VERSIONS" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:116 +#: build/C/man3/opendir.3:118 msgid "B() is available in glibc since version 2.4." msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:121 +#: build/C/man3/opendir.3:123 msgid "" "B() is present on SVr4, 4.3BSD, and specified in POSIX.1-2001. " "B() is specified in POSIX.1-2008." msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:124 +#: build/C/man3/opendir.3:126 msgid "" "The underlying file descriptor of the directory stream can be obtained using " "B(3)." msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:138 +#: build/C/man3/opendir.3:140 msgid "" "The B() function sets the close-on-exec flag for the file " "descriptor underlying the I. The B() function leaves the " @@ -970,31 +975,31 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/opendir.3:147 +#: build/C/man3/opendir.3:149 msgid "" "B(2), B(3), B(3), B(3), B(3), " "B(3), B(3), B(3)" msgstr "" #. type: TH -#: build/C/man2/readdir.2:28 build/C/man3/readdir.3:34 +#: build/C/man2/readdir.2:30 build/C/man3/readdir.3:36 #, no-wrap msgid "READDIR" msgstr "" #. type: TH -#: build/C/man2/readdir.2:28 +#: build/C/man2/readdir.2:30 #, no-wrap -msgid "2008-10-02" +msgid "2012-07-13" msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:31 +#: build/C/man2/readdir.2:33 msgid "readdir - read directory entry" msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:36 +#: build/C/man2/readdir.2:38 #, no-wrap msgid "" "BIB<, struct old_linux_dirent *>IB<,>\n" @@ -1002,7 +1007,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:45 +#: build/C/man2/readdir.2:50 msgid "" "This is not the function you are interested in. Look at B(3) for " "the POSIX conforming C library interface. This page documents the bare " @@ -1010,7 +1015,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:59 +#: build/C/man2/readdir.2:64 msgid "" "B() reads one I structure from the directory " "referred to by the file descriptor I into the buffer pointed to by " @@ -1019,12 +1024,12 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:63 +#: build/C/man2/readdir.2:68 msgid "The I structure is declared as follows:" msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:72 +#: build/C/man2/readdir.2:77 #, no-wrap msgid "" "struct old_linux_dirent {\n" @@ -1036,7 +1041,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:86 +#: build/C/man2/readdir.2:91 msgid "" "I is an inode number. I is the distance from the start of the " "directory to this I. I is the size of " @@ -1045,49 +1050,49 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:92 +#: build/C/man2/readdir.2:97 msgid "" "On success, 1 is returned. On end of directory, 0 is returned. On error, " "-1 is returned, and I is set appropriately." msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:111 +#: build/C/man2/readdir.2:116 msgid "This system call is Linux-specific." msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:117 +#: build/C/man2/readdir.2:125 msgid "" "Glibc does not provide a wrapper for this system call; call it using " "B(2). You will need to define the I structure " -"yourself." +"yourself. However, probably you should use B(3) instead." msgstr "" #. type: Plain text -#: build/C/man2/readdir.2:120 +#: build/C/man2/readdir.2:128 msgid "B(2), B(3)" msgstr "" #. type: TH -#: build/C/man3/readdir.3:34 +#: build/C/man3/readdir.3:36 #, no-wrap -msgid "2010-09-10" +msgid "2012-07-07" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:37 +#: build/C/man3/readdir.3:39 msgid "readdir, readdir_r - read a directory" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:42 +#: build/C/man3/readdir.3:44 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:45 +#: build/C/man3/readdir.3:47 #, no-wrap msgid "" "BIB<, struct dirent *>IB<, struct dirent " @@ -1095,19 +1100,19 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:54 +#: build/C/man3/readdir.3:56 msgid "B():" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:57 +#: build/C/man3/readdir.3:59 msgid "" "_POSIX_C_SOURCE\\ E=\\ 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE " "|| _POSIX_SOURCE" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:67 +#: build/C/man3/readdir.3:69 msgid "" "The B() function returns a pointer to a I structure " "representing the next directory entry in the directory stream pointed to by " @@ -1116,12 +1121,12 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:71 +#: build/C/man3/readdir.3:73 msgid "On Linux, the I structure is defined as follows:" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:82 +#: build/C/man3/readdir.3:84 #, no-wrap msgid "" "struct dirent {\n" @@ -1135,7 +1140,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:96 +#: build/C/man3/readdir.3:98 msgid "" "The only fields in the I structure that are mandated by POSIX.1 are: " "I[], of unspecified size, with at most B characters " @@ -1145,14 +1150,14 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:102 +#: build/C/man3/readdir.3:104 msgid "" "The data returned by B() may be overwritten by subsequent calls to " "B() for the same directory stream." msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:117 +#: build/C/man3/readdir.3:119 msgid "" "The B() function is a reentrant version of B(). It " "reads the next directory entry from the directory stream I, and " @@ -1163,7 +1168,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:132 +#: build/C/man3/readdir.3:134 msgid "" "On success, B() returns a pointer to a I structure. (This " "structure may be statically allocated; do not attempt to B(3) it.) " @@ -1173,7 +1178,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:141 +#: build/C/man3/readdir.3:143 msgid "" "The B() function returns 0 on success. On error, it returns a " "positive error number (listed under ERRORS). If the end of the directory " @@ -1182,12 +1187,12 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:147 build/C/man3/rewinddir.3:51 +#: build/C/man3/readdir.3:149 build/C/man3/rewinddir.3:53 msgid "SVr4, 4.3BSD, POSIX.1-2001." msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:163 +#: build/C/man3/readdir.3:165 msgid "" "Only the fields I and I are specified in POSIX.1-2001. The " "remaining fields are available on many, but not all systems. Under glibc, " @@ -1198,7 +1203,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:176 +#: build/C/man3/readdir.3:178 msgid "" "Other than Linux, the I field is available mainly only on BSD " "systems. This field makes it possible to avoid the expense of calling " @@ -1208,14 +1213,14 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:207 +#: build/C/man3/readdir.3:209 msgid "" "If the file type could not be determined, the value B is " "returned in I." msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:226 +#: build/C/man3/readdir.3:228 msgid "" "Since POSIX.1 does not specify the size of the I field, and other " "nonstandard fields may precede that field within the I structure, " @@ -1224,21 +1229,23 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:232 +#: build/C/man3/readdir.3:236 #, no-wrap msgid "" -"len = offsetof(struct dirent, d_name) +\n" -" pathconf(dirpath, _PC_NAME_MAX) + 1\n" +"name_max = pathconf(dirpath, _PC_NAME_MAX);\n" +"if (name_max == -1) /* Limit not defined, or error */\n" +" name_max = 255; /* Take a guess */\n" +"len = offsetof(struct dirent, d_name) + name_max + 1;\n" "entryp = malloc(len);\n" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:239 +#: build/C/man3/readdir.3:243 msgid "(POSIX.1 requires that I is the last field in a I.)" msgstr "" #. type: Plain text -#: build/C/man3/readdir.3:251 +#: build/C/man3/readdir.3:255 msgid "" "B(2), B(2), B(3), B(3), B(3), " "B(3), B(3), B(3), B(3), " @@ -1246,42 +1253,42 @@ msgid "" msgstr "" #. type: TH -#: build/C/man3/rewinddir.3:29 +#: build/C/man3/rewinddir.3:31 #, no-wrap msgid "REWINDDIR" msgstr "" #. type: TH -#: build/C/man3/rewinddir.3:29 +#: build/C/man3/rewinddir.3:31 #, no-wrap msgid "1995-06-11" msgstr "" #. type: Plain text -#: build/C/man3/rewinddir.3:32 +#: build/C/man3/rewinddir.3:34 msgid "rewinddir - reset directory stream" msgstr "" #. type: Plain text -#: build/C/man3/rewinddir.3:39 +#: build/C/man3/rewinddir.3:41 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: Plain text -#: build/C/man3/rewinddir.3:45 +#: build/C/man3/rewinddir.3:47 msgid "" "The B() function resets the position of the directory stream " "I to the beginning of the directory." msgstr "" #. type: Plain text -#: build/C/man3/rewinddir.3:49 +#: build/C/man3/rewinddir.3:51 msgid "The B() function returns no value." msgstr "" #. type: Plain text -#: build/C/man3/rewinddir.3:58 +#: build/C/man3/rewinddir.3:60 msgid "" "B(3), B(3), B(3), B(3), B(3), " "B(3)" @@ -1296,7 +1303,7 @@ msgstr "" #. type: TH #: build/C/man3/scandir.3:36 #, no-wrap -msgid "2011-09-08" +msgid "2012-04-26" msgstr "" #. type: Plain text @@ -1311,7 +1318,7 @@ msgid "BIB<, struct dirent ***>IB<,>\n msgstr "" #. type: Plain text -#: build/C/man3/scandir.3:47 +#: build/C/man3/scandir.3:47 build/C/man3/scandirat.3:42 #, no-wrap msgid "" "BIB<)(const struct dirent *),>\n" @@ -1456,7 +1463,7 @@ msgstr "" #: build/C/man3/scandir.3:173 #, no-wrap msgid "" -" n = scandir(\".\", &namelist, 0, alphasort);\n" +" n = scandir(\".\", &namelist, NULL, alphasort);\n" " if (n E 0)\n" " perror(\"scandir\");\n" " else {\n" @@ -1470,45 +1477,160 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/scandir.3:185 +#: build/C/man3/scandir.3:186 msgid "" "B(3), B(3), B(3), B(3), " -"B(3), B(3), B(3), B(3), " -"B(3), B(3)" +"B(3), B(3), B(3), B(3), " +"B(3), B(3), B(3)" +msgstr "" + +#. type: TH +#: build/C/man3/scandirat.3:25 +#, no-wrap +msgid "SCANDIRAT" +msgstr "" + +#. type: TH +#: build/C/man3/scandirat.3:25 +#, no-wrap +msgid "2012-03-17" +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:28 +msgid "scandirat - scan a directory relative to a directory file descriptor" +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:31 +#, no-wrap +msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:34 +#, no-wrap +msgid "" +"B<#include Efcntl.hE> /* Definition of AT_* constants */\n" +"B<#include Edirent.hE>\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:38 +msgid "" +"BIB<, const char *>IB<,> BIB<,>" +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:50 +msgid "" +"The B() system call operates in exactly the same way as " +"B(3), except for the differences described in this manual page." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:60 +msgid "" +"If the pathname given in I is relative, then it is interpreted " +"relative to the directory referred to by the file descriptor I " +"(rather than relative to the current working directory of the calling " +"process, as is done by B(3) for a relative pathname)." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:72 +msgid "" +"If I is relative and I is the special value B, then " +"I is interpreted relative to the current working directory of the " +"calling process (like B(3))." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:78 +msgid "If I is absolute, then I is ignored." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:85 +msgid "" +"On success, B() returns the number of directory entries " +"selected. On error, -1 is returned and I is set to indicate the " +"error." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:92 +msgid "" +"The same errors that occur for B(3) can also occur for " +"B(). The following additional errors can occur for " +"B():" +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:96 +msgid "I is not a valid file descriptor." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:102 +msgid "" +"I is a relative path and I is a file descriptor referring to a " +"file other than a directory." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:105 +msgid "B() was added to glibc in version 2.15." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:107 +msgid "This function is a GNU extension." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:112 +msgid "See B(2) for an explanation of the need for B()." +msgstr "" + +#. type: Plain text +#: build/C/man3/scandirat.3:116 +msgid "B(2), B(3), B(7)" msgstr "" #. type: TH -#: build/C/man3/seekdir.3:28 +#: build/C/man3/seekdir.3:30 #, no-wrap msgid "SEEKDIR" msgstr "" #. type: TH -#: build/C/man3/seekdir.3:28 build/C/man3/telldir.3:28 +#: build/C/man3/seekdir.3:30 build/C/man3/telldir.3:30 #, no-wrap msgid "2009-03-11" msgstr "" #. type: Plain text -#: build/C/man3/seekdir.3:32 +#: build/C/man3/seekdir.3:34 msgid "" "seekdir - set the position of the next readdir() call in the directory " "stream." msgstr "" #. type: Plain text -#: build/C/man3/seekdir.3:37 +#: build/C/man3/seekdir.3:39 #, no-wrap msgid "BIB<, long >IB<);>\n" msgstr "" #. type: Plain text -#: build/C/man3/seekdir.3:46 +#: build/C/man3/seekdir.3:48 msgid "B(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE" msgstr "" #. type: Plain text -#: build/C/man3/seekdir.3:58 +#: build/C/man3/seekdir.3:60 msgid "" "The B() function sets the location in the directory stream from " "which the next B(2) call will start. B() should be used " @@ -1516,17 +1638,17 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/seekdir.3:62 +#: build/C/man3/seekdir.3:64 msgid "The B() function returns no value." msgstr "" #. type: Plain text -#: build/C/man3/seekdir.3:64 build/C/man3/telldir.3:64 +#: build/C/man3/seekdir.3:66 build/C/man3/telldir.3:66 msgid "4.3BSD, POSIX.1-2001." msgstr "" #. type: Plain text -#: build/C/man3/seekdir.3:72 +#: build/C/man3/seekdir.3:74 msgid "" "In glibc up to version 2.1.1, the type of the I argument was " "I. POSIX.1-2001 specifies I, and this is the type used since " @@ -1534,43 +1656,43 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/seekdir.3:80 +#: build/C/man3/seekdir.3:82 msgid "" "B(2), B(3), B(3), B(3), B(3), " "B(3), B(3)" msgstr "" #. type: TH -#: build/C/man3/telldir.3:28 +#: build/C/man3/telldir.3:30 #, no-wrap msgid "TELLDIR" msgstr "" #. type: Plain text -#: build/C/man3/telldir.3:31 +#: build/C/man3/telldir.3:33 msgid "telldir - return current location in directory stream" msgstr "" #. type: Plain text -#: build/C/man3/telldir.3:36 +#: build/C/man3/telldir.3:38 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: Plain text -#: build/C/man3/telldir.3:45 +#: build/C/man3/telldir.3:47 msgid "B(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE" msgstr "" #. type: Plain text -#: build/C/man3/telldir.3:50 +#: build/C/man3/telldir.3:52 msgid "" "The B() function returns the current location associated with the " "directory stream I." msgstr "" #. type: Plain text -#: build/C/man3/telldir.3:58 +#: build/C/man3/telldir.3:60 msgid "" "On success, the B() function returns the current location in the " "directory stream. On error, -1 is returned, and I is set " @@ -1578,7 +1700,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/telldir.3:72 +#: build/C/man3/telldir.3:74 msgid "" "In glibc up to version 2.1.1, the return type of B() was " "I. POSIX.1-2001 specifies I, and this is the type used since " @@ -1586,7 +1708,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/telldir.3:79 +#: build/C/man3/telldir.3:81 msgid "" "B(3), B(3), B(3), B(3), " "B(3), B(3)"