OSDN Git Service

(split) LDP: Update POT and ja.po to LDP v3.54
[linuxjm/LDP_man-pages.git] / po4a / filesystem / po / filesystem.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2013-09-28 04:06+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: build/C/man5/filesystems.5:26
21 #, no-wrap
22 msgid "FILESYSTEMS"
23 msgstr ""
24
25 #. type: TH
26 #: build/C/man5/filesystems.5:26 build/C/man2/spu_create.2:25 build/C/man2/spu_run.2:26
27 #, no-wrap
28 msgid "2012-08-05"
29 msgstr ""
30
31 #. type: TH
32 #: build/C/man5/filesystems.5:26 build/C/man3/fts.3:40 build/C/man3/ftw.3:35 build/C/man2/getxattr.2:25 build/C/man2/listxattr.2:25 build/C/man2/mount.2:40 build/C/man7/path_resolution.7:25 build/C/man2/removexattr.2:25 build/C/man2/setxattr.2:25 build/C/man2/spu_create.2:25 build/C/man2/spu_run.2:26 build/C/man7/spufs.7:27 build/C/man2/stat.2:40 build/C/man2/statfs.2:28 build/C/man3/statvfs.3:30 build/C/man2/sysfs.2:27 build/C/man2/umount.2:30 build/C/man2/ustat.2:30
33 #, no-wrap
34 msgid "Linux"
35 msgstr ""
36
37 #. type: TH
38 #: build/C/man5/filesystems.5:26 build/C/man3/fts.3:40 build/C/man3/ftw.3:35 build/C/man3/getfsent.3:27 build/C/man3/getmntent.3:32 build/C/man2/getxattr.2:25 build/C/man2/listxattr.2:25 build/C/man2/mount.2:40 build/C/man7/path_resolution.7:25 build/C/man2/removexattr.2:25 build/C/man2/setxattr.2:25 build/C/man2/spu_create.2:25 build/C/man2/spu_run.2:26 build/C/man7/spufs.7:27 build/C/man2/stat.2:40 build/C/man2/statfs.2:28 build/C/man3/statvfs.3:30 build/C/man2/sysfs.2:27 build/C/man2/umount.2:30 build/C/man2/ustat.2:30
39 #, no-wrap
40 msgid "Linux Programmer's Manual"
41 msgstr ""
42
43 #. type: SH
44 #: build/C/man5/filesystems.5:28 build/C/man3/fts.3:41 build/C/man3/ftw.3:36 build/C/man3/getfsent.3:28 build/C/man3/getmntent.3:33 build/C/man2/getxattr.2:26 build/C/man2/listxattr.2:26 build/C/man2/mount.2:41 build/C/man7/path_resolution.7:26 build/C/man2/removexattr.2:26 build/C/man2/setxattr.2:26 build/C/man2/spu_create.2:26 build/C/man2/spu_run.2:27 build/C/man7/spufs.7:28 build/C/man2/stat.2:41 build/C/man2/statfs.2:29 build/C/man3/statvfs.3:31 build/C/man2/sysfs.2:28 build/C/man2/umount.2:31 build/C/man2/ustat.2:31
45 #, no-wrap
46 msgid "NAME"
47 msgstr ""
48
49 #. type: Plain text
50 #: build/C/man5/filesystems.5:32
51 msgid ""
52 "filesystems - Linux filesystem types: minix, ext, ext2, ext3, ext4, "
53 "Reiserfs, XFS, JFS, xia, msdos, umsdos, vfat, ntfs, proc, nfs, iso9660, "
54 "hpfs, sysv, smb, ncpfs"
55 msgstr ""
56
57 #. type: SH
58 #: build/C/man5/filesystems.5:32 build/C/man3/fts.3:61 build/C/man3/ftw.3:55 build/C/man3/getfsent.3:42 build/C/man3/getmntent.3:65 build/C/man2/getxattr.2:42 build/C/man2/listxattr.2:41 build/C/man2/mount.2:51 build/C/man7/path_resolution.7:28 build/C/man2/removexattr.2:39 build/C/man2/setxattr.2:42 build/C/man2/spu_create.2:40 build/C/man2/spu_run.2:39 build/C/man7/spufs.7:30 build/C/man2/stat.2:72 build/C/man2/statfs.2:37 build/C/man3/statvfs.3:39 build/C/man2/sysfs.2:36 build/C/man2/umount.2:41 build/C/man2/ustat.2:43
59 #, no-wrap
60 msgid "DESCRIPTION"
61 msgstr ""
62
63 #. type: Plain text
64 #: build/C/man5/filesystems.5:42
65 msgid ""
66 "When, as is customary, the B<proc> filesystem is mounted on I</proc>, you "
67 "can find in the file I</proc/filesystems> which filesystems your kernel "
68 "currently supports.  If you need a currently unsupported one, insert the "
69 "corresponding module or recompile the kernel."
70 msgstr ""
71
72 #. type: Plain text
73 #: build/C/man5/filesystems.5:47
74 msgid "In order to use a filesystem, you have to I<mount> it; see B<mount>(8)."
75 msgstr ""
76
77 #. type: Plain text
78 #: build/C/man5/filesystems.5:49
79 msgid "Below a short description of a few of the available filesystems."
80 msgstr ""
81
82 #. type: TP
83 #: build/C/man5/filesystems.5:49
84 #, no-wrap
85 msgid "B<minix>"
86 msgstr ""
87
88 #. type: Plain text
89 #: build/C/man5/filesystems.5:56
90 msgid ""
91 "is the filesystem used in the Minix operating system, the first to run under "
92 "Linux.  It has a number of shortcomings: a 64MB partition size limit, short "
93 "filenames, a single timestamp, etc.  It remains useful for floppies and RAM "
94 "disks."
95 msgstr ""
96
97 #. type: TP
98 #: build/C/man5/filesystems.5:56
99 #, no-wrap
100 msgid "B<ext>"
101 msgstr ""
102
103 #. type: Plain text
104 #: build/C/man5/filesystems.5:65
105 msgid ""
106 "is an elaborate extension of the B<minix> filesystem.  It has been "
107 "completely superseded by the second version of the extended filesystem "
108 "(B<ext2>)  and has been removed from the kernel (in 2.1.21)."
109 msgstr ""
110
111 #. type: TP
112 #: build/C/man5/filesystems.5:65
113 #, no-wrap
114 msgid "B<ext2>"
115 msgstr ""
116
117 #. type: Plain text
118 #: build/C/man5/filesystems.5:75
119 msgid ""
120 "is the high performance disk filesystem used by Linux for fixed disks as "
121 "well as removable media.  The second extended filesystem was designed as an "
122 "extension of the extended filesystem (B<ext>).  B<ext2> offers the best "
123 "performance (in terms of speed and CPU usage) of the filesystems supported "
124 "under Linux."
125 msgstr ""
126
127 #. type: TP
128 #: build/C/man5/filesystems.5:75
129 #, no-wrap
130 msgid "B<ext3>"
131 msgstr ""
132
133 #. type: Plain text
134 #: build/C/man5/filesystems.5:80
135 msgid ""
136 "is a journaling version of the ext2 filesystem.  It is easy to switch back "
137 "and forth between ext2 and ext3."
138 msgstr ""
139
140 #. type: TP
141 #: build/C/man5/filesystems.5:80
142 #, no-wrap
143 msgid "B<ext4>"
144 msgstr ""
145
146 #. type: Plain text
147 #: build/C/man5/filesystems.5:85
148 msgid ""
149 "is a set of upgrades to ext3 including substantial performance and "
150 "reliability enhancements, plus large increases in volume, file, and "
151 "directory size limits."
152 msgstr ""
153
154 #. type: TP
155 #: build/C/man5/filesystems.5:85
156 #, no-wrap
157 msgid "B<Reiserfs>"
158 msgstr ""
159
160 #. type: Plain text
161 #: build/C/man5/filesystems.5:89
162 msgid ""
163 "is a journaling filesystem, designed by Hans Reiser, that was integrated "
164 "into Linux in kernel 2.4.1."
165 msgstr ""
166
167 #. type: TP
168 #: build/C/man5/filesystems.5:89
169 #, no-wrap
170 msgid "B<XFS>"
171 msgstr ""
172
173 #. type: Plain text
174 #: build/C/man5/filesystems.5:93
175 msgid ""
176 "is a journaling filesystem, developed by SGI, that was integrated into Linux "
177 "in kernel 2.4.20."
178 msgstr ""
179
180 #. type: TP
181 #: build/C/man5/filesystems.5:93
182 #, no-wrap
183 msgid "B<JFS>"
184 msgstr ""
185
186 #. type: Plain text
187 #: build/C/man5/filesystems.5:97
188 msgid ""
189 "is a journaling filesystem, developed by IBM, that was integrated into Linux "
190 "in kernel 2.4.24."
191 msgstr ""
192
193 #. type: TP
194 #: build/C/man5/filesystems.5:97
195 #, no-wrap
196 msgid "B<xiafs>"
197 msgstr ""
198
199 #. type: Plain text
200 #: build/C/man5/filesystems.5:107
201 msgid ""
202 "was designed and implemented to be a stable, safe filesystem by extending "
203 "the Minix filesystem code.  It provides the basic most requested features "
204 "without undue complexity.  The B<xia> filesystem is no longer actively "
205 "developed or maintained.  It was removed from the kernel in 2.1.21."
206 msgstr ""
207
208 #. type: TP
209 #: build/C/man5/filesystems.5:107
210 #, no-wrap
211 msgid "B<msdos>"
212 msgstr ""
213
214 #. type: Plain text
215 #: build/C/man5/filesystems.5:113
216 msgid ""
217 "is the filesystem used by DOS, Windows, and some OS/2 computers.  B<msdos> "
218 "filenames can be no longer than 8 characters, followed by an optional period "
219 "and 3 character extension."
220 msgstr ""
221
222 #. type: TP
223 #: build/C/man5/filesystems.5:113
224 #, no-wrap
225 msgid "B<umsdos>"
226 msgstr ""
227
228 #. type: Plain text
229 #: build/C/man5/filesystems.5:120
230 msgid ""
231 "is an extended DOS filesystem used by Linux.  It adds capability for long "
232 "filenames, UID/GID, POSIX permissions, and special files (devices, named "
233 "pipes, etc.)  under the DOS filesystem, without sacrificing compatibility "
234 "with DOS."
235 msgstr ""
236
237 #. type: TP
238 #: build/C/man5/filesystems.5:120
239 #, no-wrap
240 msgid "B<vfat>"
241 msgstr ""
242
243 #. type: Plain text
244 #: build/C/man5/filesystems.5:124
245 msgid ""
246 "is an extended DOS filesystem used by Microsoft Windows95 and Windows NT.  "
247 "VFAT adds the capability to use long filenames under the MSDOS filesystem."
248 msgstr ""
249
250 #. type: TP
251 #: build/C/man5/filesystems.5:124
252 #, no-wrap
253 msgid "B<ntfs>"
254 msgstr ""
255
256 #. type: Plain text
257 #: build/C/man5/filesystems.5:129
258 msgid ""
259 "replaces Microsoft Window's FAT filesystems (VFAT, FAT32).  It has "
260 "reliability, performance, and space-utilization enhancements plus features "
261 "like ACLs, journaling, encryption, and so on."
262 msgstr ""
263
264 #. type: TP
265 #: build/C/man5/filesystems.5:129
266 #, no-wrap
267 msgid "B<proc>"
268 msgstr ""
269
270 #. type: Plain text
271 #: build/C/man5/filesystems.5:137
272 msgid ""
273 "is a pseudo filesystem which is used as an interface to kernel data "
274 "structures rather than reading and interpreting I</dev/kmem>.  In "
275 "particular, its files do not take disk space.  See B<proc>(5)."
276 msgstr ""
277
278 #. type: TP
279 #: build/C/man5/filesystems.5:137
280 #, no-wrap
281 msgid "B<iso9660>"
282 msgstr ""
283
284 #. type: Plain text
285 #: build/C/man5/filesystems.5:140
286 msgid "is a CD-ROM filesystem type conforming to the ISO 9660 standard."
287 msgstr ""
288
289 #. type: TP
290 #: build/C/man5/filesystems.5:141
291 #, no-wrap
292 msgid "B<High Sierra>"
293 msgstr ""
294
295 #. type: Plain text
296 #: build/C/man5/filesystems.5:148
297 msgid ""
298 "Linux supports High Sierra, the precursor to the ISO 9660 standard for "
299 "CD-ROM filesystems.  It is automatically recognized within the B<iso9660> "
300 "filesystem support under Linux."
301 msgstr ""
302
303 #. type: TP
304 #: build/C/man5/filesystems.5:148
305 #, no-wrap
306 msgid "B<Rock Ridge>"
307 msgstr ""
308
309 #. type: Plain text
310 #: build/C/man5/filesystems.5:159
311 msgid ""
312 "Linux also supports the System Use Sharing Protocol records specified by the "
313 "Rock Ridge Interchange Protocol.  They are used to further describe the "
314 "files in the B<iso9660> filesystem to a UNIX host, and provide information "
315 "such as long filenames, UID/GID, POSIX permissions, and devices.  It is "
316 "automatically recognized within the B<iso9660> filesystem support under "
317 "Linux."
318 msgstr ""
319
320 #. type: TP
321 #: build/C/man5/filesystems.5:160
322 #, no-wrap
323 msgid "B<hpfs>"
324 msgstr ""
325
326 #. type: Plain text
327 #: build/C/man5/filesystems.5:165
328 msgid ""
329 "is the High Performance Filesystem, used in OS/2.  This filesystem is "
330 "read-only under Linux due to the lack of available documentation."
331 msgstr ""
332
333 #. type: TP
334 #: build/C/man5/filesystems.5:165
335 #, no-wrap
336 msgid "B<sysv>"
337 msgstr ""
338
339 #. type: Plain text
340 #: build/C/man5/filesystems.5:169
341 msgid ""
342 "is an implementation of the SystemV/Coherent filesystem for Linux.  It "
343 "implements all of Xenix FS, SystemV/386 FS, and Coherent FS."
344 msgstr ""
345
346 #. type: TP
347 #: build/C/man5/filesystems.5:169
348 #, no-wrap
349 msgid "B<nfs>"
350 msgstr ""
351
352 #. type: Plain text
353 #: build/C/man5/filesystems.5:172
354 msgid "is the network filesystem used to access disks located on remote computers."
355 msgstr ""
356
357 #. type: TP
358 #: build/C/man5/filesystems.5:172
359 #, no-wrap
360 msgid "B<smb>"
361 msgstr ""
362
363 #. type: Plain text
364 #: build/C/man5/filesystems.5:176
365 msgid ""
366 "is a network filesystem that supports the SMB protocol, used by Windows for "
367 "Workgroups, Windows NT, and Lan Manager."
368 msgstr ""
369
370 #. type: Plain text
371 #: build/C/man5/filesystems.5:183
372 msgid ""
373 "To use B<smb> fs, you need a special mount program, which can be found in "
374 "the ksmbfs package, found at E<.UR "
375 "ftp://sunsite.unc.edu\\:/pub\\:/Linux\\:/system\\:/Filesystems\\:/smbfs> "
376 "E<.UE .>"
377 msgstr ""
378
379 #. type: TP
380 #: build/C/man5/filesystems.5:183
381 #, no-wrap
382 msgid "B<ncpfs>"
383 msgstr ""
384
385 #. type: Plain text
386 #: build/C/man5/filesystems.5:187
387 msgid ""
388 "is a network filesystem that supports the NCP protocol, used by Novell "
389 "NetWare."
390 msgstr ""
391
392 #. type: Plain text
393 #: build/C/man5/filesystems.5:193
394 msgid ""
395 "To use B<ncpfs>, you need special programs, which can be found at E<.UR "
396 "ftp://linux01.gwdg.de\\:/pub\\:/ncpfs> E<.UE .>"
397 msgstr ""
398
399 #. type: SH
400 #: build/C/man5/filesystems.5:193 build/C/man3/fts.3:785 build/C/man3/ftw.3:405 build/C/man3/getfsent.3:139 build/C/man3/getmntent.3:219 build/C/man2/getxattr.2:141 build/C/man2/listxattr.2:153 build/C/man2/mount.2:482 build/C/man7/path_resolution.7:237 build/C/man2/removexattr.2:110 build/C/man2/setxattr.2:152 build/C/man2/spu_create.2:270 build/C/man2/spu_run.2:264 build/C/man7/spufs.7:766 build/C/man2/stat.2:655 build/C/man2/statfs.2:277 build/C/man3/statvfs.3:181 build/C/man2/umount.2:170 build/C/man2/ustat.2:118
401 #, no-wrap
402 msgid "SEE ALSO"
403 msgstr ""
404
405 #. type: Plain text
406 #: build/C/man5/filesystems.5:198
407 msgid "B<proc>(5), B<fsck>(8), B<mkfs>(8), B<mount>(8)"
408 msgstr ""
409
410 #. type: SH
411 #: build/C/man5/filesystems.5:198 build/C/man3/fts.3:791 build/C/man3/ftw.3:409 build/C/man3/getfsent.3:142 build/C/man3/getmntent.3:223 build/C/man2/getxattr.2:151 build/C/man2/listxattr.2:163 build/C/man2/mount.2:488 build/C/man7/path_resolution.7:242 build/C/man2/removexattr.2:120 build/C/man2/setxattr.2:162 build/C/man2/spu_create.2:275 build/C/man2/spu_run.2:269 build/C/man7/spufs.7:773 build/C/man2/stat.2:664 build/C/man2/statfs.2:281 build/C/man3/statvfs.3:183 build/C/man2/sysfs.2:104 build/C/man2/umount.2:175 build/C/man2/ustat.2:121
412 #, no-wrap
413 msgid "COLOPHON"
414 msgstr ""
415
416 #. type: Plain text
417 #: build/C/man5/filesystems.5:205 build/C/man3/fts.3:798 build/C/man3/ftw.3:416 build/C/man3/getfsent.3:149 build/C/man3/getmntent.3:230 build/C/man2/getxattr.2:158 build/C/man2/listxattr.2:170 build/C/man2/mount.2:495 build/C/man7/path_resolution.7:249 build/C/man2/removexattr.2:127 build/C/man2/setxattr.2:169 build/C/man2/spu_create.2:282 build/C/man2/spu_run.2:276 build/C/man7/spufs.7:780 build/C/man2/stat.2:671 build/C/man2/statfs.2:288 build/C/man3/statvfs.3:190 build/C/man2/sysfs.2:111 build/C/man2/umount.2:182 build/C/man2/ustat.2:128
418 msgid ""
419 "This page is part of release 3.54 of the Linux I<man-pages> project.  A "
420 "description of the project, and information about reporting bugs, can be "
421 "found at \\%http://www.kernel.org/doc/man-pages/."
422 msgstr ""
423
424 #. type: TH
425 #: build/C/man3/fts.3:40
426 #, no-wrap
427 msgid "FTS"
428 msgstr ""
429
430 #. type: TH
431 #: build/C/man3/fts.3:40
432 #, no-wrap
433 msgid "2012-10-25"
434 msgstr ""
435
436 #. type: Plain text
437 #: build/C/man3/fts.3:44
438 msgid ""
439 "fts, fts_open, fts_read, fts_children, fts_set, fts_close - traverse a file "
440 "hierarchy"
441 msgstr ""
442
443 #. type: SH
444 #: build/C/man3/fts.3:44 build/C/man3/ftw.3:38 build/C/man3/getfsent.3:30 build/C/man3/getmntent.3:36 build/C/man2/getxattr.2:28 build/C/man2/listxattr.2:28 build/C/man2/mount.2:43 build/C/man2/removexattr.2:28 build/C/man2/setxattr.2:28 build/C/man2/spu_create.2:28 build/C/man2/spu_run.2:29 build/C/man2/stat.2:43 build/C/man2/statfs.2:31 build/C/man3/statvfs.3:33 build/C/man2/sysfs.2:30 build/C/man2/umount.2:33 build/C/man2/ustat.2:33
445 #, no-wrap
446 msgid "SYNOPSIS"
447 msgstr ""
448
449 #. type: Plain text
450 #: build/C/man3/fts.3:49
451 #, no-wrap
452 msgid ""
453 "B<#include E<lt>sys/types.hE<gt>>\n"
454 "B<#include E<lt>sys/stat.hE<gt>>\n"
455 "B<#include E<lt>fts.hE<gt>>\n"
456 msgstr ""
457
458 #. type: Plain text
459 #: build/C/man3/fts.3:52
460 #, no-wrap
461 msgid ""
462 "B<FTS *fts_open(char * const *>I<path_argv>B<, int >I<options>B<, >\n"
463 "B<              int (*>I<compar>B<)(const FTSENT **, const FTSENT **));>\n"
464 msgstr ""
465
466 #. type: Plain text
467 #: build/C/man3/fts.3:54
468 #, no-wrap
469 msgid "B<FTSENT *fts_read(FTS *>I<ftsp>B<);>\n"
470 msgstr ""
471
472 #. type: Plain text
473 #: build/C/man3/fts.3:56
474 #, no-wrap
475 msgid "B<FTSENT *fts_children(FTS *>I<ftsp>B<, int >I<options>B<);>\n"
476 msgstr ""
477
478 #. type: Plain text
479 #: build/C/man3/fts.3:58
480 #, no-wrap
481 msgid "B<int fts_set(FTS *>I<ftsp>B<, FTSENT *>I<f>B<, int >I<options>B<);>\n"
482 msgstr ""
483
484 #. type: Plain text
485 #: build/C/man3/fts.3:60
486 #, no-wrap
487 msgid "B<int fts_close(FTS *>I<ftsp>B<);>\n"
488 msgstr ""
489
490 #. type: Plain text
491 #: build/C/man3/fts.3:87
492 msgid ""
493 "The fts functions are provided for traversing file hierarchies.  A simple "
494 "overview is that the B<fts_open>()  function returns a \"handle\" on a file "
495 "hierarchy, which is then supplied to the other fts functions.  The function "
496 "B<fts_read>()  returns a pointer to a structure describing one of the files "
497 "in the file hierarchy.  The function B<fts_children>()  returns a pointer to "
498 "a linked list of structures, each of which describes one of the files "
499 "contained in a directory in the hierarchy.  In general, directories are "
500 "visited two distinguishable times; in preorder (before any of their "
501 "descendants are visited) and in postorder (after all of their descendants "
502 "have been visited).  Files are visited once.  It is possible to walk the "
503 "hierarchy \"logically\" (visiting the files that symbolic links point to)  "
504 "or physically (visiting the symbolic links themselves), order the walk of "
505 "the hierarchy or prune and/or revisit portions of the hierarchy."
506 msgstr ""
507
508 #. type: Plain text
509 #: build/C/man3/fts.3:108
510 msgid ""
511 "Two structures are defined (and typedef'd) in the include file "
512 "I<E<lt>fts.hE<gt>>.  The first is I<FTS>, the structure that represents the "
513 "file hierarchy itself.  The second is I<FTSENT>, the structure that "
514 "represents a file in the file hierarchy.  Normally, an I<FTSENT> structure "
515 "is returned for every file in the file hierarchy.  In this manual page, "
516 "\"file\" and \"FTSENT structure\" are generally interchangeable.  The "
517 "I<FTSENT> structure contains at least the following fields, which are "
518 "described in greater detail below:"
519 msgstr ""
520
521 #. type: Plain text
522 #: build/C/man3/fts.3:127
523 #, no-wrap
524 msgid ""
525 "typedef struct _ftsent {\n"
526 "    unsigned short fts_info;     /* flags for FTSENT structure */\n"
527 "    char          *fts_accpath;  /* access path */\n"
528 "    char          *fts_path;     /* root path */\n"
529 "    short          fts_pathlen;  /* strlen(fts_path) */\n"
530 "    char          *fts_name;     /* filename */\n"
531 "    short          fts_namelen;  /* strlen(fts_name) */\n"
532 "    short          fts_level;    /* depth (-1 to N) */\n"
533 "    int            fts_errno;    /* file errno */\n"
534 "    long           fts_number;   /* local numeric value */\n"
535 "    void          *fts_pointer;  /* local address value */\n"
536 "    struct ftsent *fts_parent;   /* parent directory */\n"
537 "    struct ftsent *fts_link;     /* next file structure */\n"
538 "    struct ftsent *fts_cycle;    /* cycle structure */\n"
539 "    struct stat   *fts_statp;    /* stat(2) information */\n"
540 "} FTSENT;\n"
541 msgstr ""
542
543 #.  .Bl -tag -width "fts_namelen"
544 #. type: Plain text
545 #: build/C/man3/fts.3:132
546 msgid "These fields are defined as follows:"
547 msgstr ""
548
549 #. type: TP
550 #: build/C/man3/fts.3:132
551 #, no-wrap
552 msgid "I<fts_info>"
553 msgstr ""
554
555 #.  .Bl  -tag -width FTS_DEFAULT
556 #. type: Plain text
557 #: build/C/man3/fts.3:144
558 msgid ""
559 "One of the following flags describing the returned I<FTSENT> structure and "
560 "the file it represents.  With the exception of directories without errors "
561 "(B<FTS_D>), all of these entries are terminal, that is, they will not be "
562 "revisited, nor will any of their descendants be visited."
563 msgstr ""
564
565 #. type: TP
566 #: build/C/man3/fts.3:145
567 #, no-wrap
568 msgid "B<FTS_D>"
569 msgstr ""
570
571 #. type: Plain text
572 #: build/C/man3/fts.3:148
573 msgid "A directory being visited in preorder."
574 msgstr ""
575
576 #. type: TP
577 #: build/C/man3/fts.3:148
578 #, no-wrap
579 msgid "B<FTS_DC>"
580 msgstr ""
581
582 #. type: Plain text
583 #: build/C/man3/fts.3:156
584 msgid ""
585 "A directory that causes a cycle in the tree.  (The I<fts_cycle> field of the "
586 "I<FTSENT> structure will be filled in as well.)"
587 msgstr ""
588
589 #. type: TP
590 #: build/C/man3/fts.3:156
591 #, no-wrap
592 msgid "B<FTS_DEFAULT>"
593 msgstr ""
594
595 #. type: Plain text
596 #: build/C/man3/fts.3:164
597 msgid ""
598 "Any I<FTSENT> structure that represents a file type not explicitly described "
599 "by one of the other I<fts_info> values."
600 msgstr ""
601
602 #. type: TP
603 #: build/C/man3/fts.3:164
604 #, no-wrap
605 msgid "B<FTS_DNR>"
606 msgstr ""
607
608 #. type: Plain text
609 #: build/C/man3/fts.3:170
610 msgid ""
611 "A directory which cannot be read.  This is an error return, and the "
612 "I<fts_errno> field will be set to indicate what caused the error."
613 msgstr ""
614
615 #. type: TP
616 #: build/C/man3/fts.3:170
617 #, no-wrap
618 msgid "B<FTS_DOT>"
619 msgstr ""
620
621 #. type: Plain text
622 #: build/C/man3/fts.3:180
623 msgid ""
624 "A file named \".\" or \"..\" which was not specified as a filename to "
625 "B<fts_open>()  (see B<FTS_SEEDOT>)."
626 msgstr ""
627
628 #. type: TP
629 #: build/C/man3/fts.3:180
630 #, no-wrap
631 msgid "B<FTS_DP>"
632 msgstr ""
633
634 #. type: Plain text
635 #: build/C/man3/fts.3:190
636 msgid ""
637 "A directory being visited in postorder.  The contents of the I<FTSENT> "
638 "structure will be unchanged from when it was returned in preorder, that is, "
639 "with the I<fts_info> field set to B<FTS_D>."
640 msgstr ""
641
642 #. type: TP
643 #: build/C/man3/fts.3:190
644 #, no-wrap
645 msgid "B<FTS_ERR>"
646 msgstr ""
647
648 #. type: Plain text
649 #: build/C/man3/fts.3:195
650 msgid ""
651 "This is an error return, and the I<fts_errno> field will be set to indicate "
652 "what caused the error."
653 msgstr ""
654
655 #. type: TP
656 #: build/C/man3/fts.3:195
657 #, no-wrap
658 msgid "B<FTS_F>"
659 msgstr ""
660
661 #. type: Plain text
662 #: build/C/man3/fts.3:198
663 msgid "A regular file."
664 msgstr ""
665
666 #. type: TP
667 #: build/C/man3/fts.3:198
668 #, no-wrap
669 msgid "B<FTS_NS>"
670 msgstr ""
671
672 #. type: Plain text
673 #: build/C/man3/fts.3:209
674 msgid ""
675 "A file for which no B<stat>(2)  information was available.  The contents of "
676 "the I<fts_statp> field are undefined.  This is an error return, and the "
677 "I<fts_errno> field will be set to indicate what caused the error."
678 msgstr ""
679
680 #. type: TP
681 #: build/C/man3/fts.3:209
682 #, no-wrap
683 msgid "B<FTS_NSOK>"
684 msgstr ""
685
686 #. type: Plain text
687 #: build/C/man3/fts.3:217
688 msgid ""
689 "A file for which no B<stat>(2)  information was requested.  The contents of "
690 "the I<fts_statp> field are undefined."
691 msgstr ""
692
693 #. type: TP
694 #: build/C/man3/fts.3:217
695 #, no-wrap
696 msgid "B<FTS_SL>"
697 msgstr ""
698
699 #. type: Plain text
700 #: build/C/man3/fts.3:220
701 msgid "A symbolic link."
702 msgstr ""
703
704 #. type: TP
705 #: build/C/man3/fts.3:220
706 #, no-wrap
707 msgid "B<FTS_SLNONE>"
708 msgstr ""
709
710 #.  .El
711 #. type: Plain text
712 #: build/C/man3/fts.3:228
713 msgid ""
714 "A symbolic link with a nonexistent target.  The contents of the I<fts_statp> "
715 "field reference the file characteristic information for the symbolic link "
716 "itself."
717 msgstr ""
718
719 #. type: TP
720 #: build/C/man3/fts.3:229
721 #, no-wrap
722 msgid "I<fts_accpath>"
723 msgstr ""
724
725 #. type: Plain text
726 #: build/C/man3/fts.3:232
727 msgid "A path for accessing the file from the current directory."
728 msgstr ""
729
730 #. type: TP
731 #: build/C/man3/fts.3:232
732 #, no-wrap
733 msgid "I<fts_path>"
734 msgstr ""
735
736 #. type: Plain text
737 #: build/C/man3/fts.3:238
738 msgid ""
739 "The path for the file relative to the root of the traversal.  This path "
740 "contains the path specified to B<fts_open>()  as a prefix."
741 msgstr ""
742
743 #. type: TP
744 #: build/C/man3/fts.3:238
745 #, no-wrap
746 msgid "I<fts_pathlen>"
747 msgstr ""
748
749 #. type: Plain text
750 #: build/C/man3/fts.3:242
751 msgid "The length of the string referenced by I<fts_path>."
752 msgstr ""
753
754 #. type: TP
755 #: build/C/man3/fts.3:242
756 #, no-wrap
757 msgid "I<fts_name>"
758 msgstr ""
759
760 #. type: Plain text
761 #: build/C/man3/fts.3:245
762 msgid "The name of the file."
763 msgstr ""
764
765 #. type: TP
766 #: build/C/man3/fts.3:245
767 #, no-wrap
768 msgid "I<fts_namelen>"
769 msgstr ""
770
771 #. type: Plain text
772 #: build/C/man3/fts.3:249
773 msgid "The length of the string referenced by I<fts_name>."
774 msgstr ""
775
776 #. type: TP
777 #: build/C/man3/fts.3:249
778 #, no-wrap
779 msgid "I<fts_level>"
780 msgstr ""
781
782 #. type: Plain text
783 #: build/C/man3/fts.3:260
784 msgid ""
785 "The depth of the traversal, numbered from -1 to N, where this file was "
786 "found.  The I<FTSENT> structure representing the parent of the starting "
787 "point (or root)  of the traversal is numbered -1, and the I<FTSENT> "
788 "structure for the root itself is numbered 0."
789 msgstr ""
790
791 #. type: TP
792 #: build/C/man3/fts.3:260
793 #, no-wrap
794 msgid "I<fts_errno>"
795 msgstr ""
796
797 #. type: Plain text
798 #: build/C/man3/fts.3:283
799 msgid ""
800 "Upon return of a I<FTSENT> structure from the B<fts_children>()  or "
801 "B<fts_read>()  functions, with its I<fts_info> field set to B<FTS_DNR>, "
802 "B<FTS_ERR> or B<FTS_NS>, the I<fts_errno> field contains the value of the "
803 "external variable I<errno> specifying the cause of the error.  Otherwise, "
804 "the contents of the I<fts_errno> field are undefined."
805 msgstr ""
806
807 #. type: TP
808 #: build/C/man3/fts.3:283
809 #, no-wrap
810 msgid "I<fts_number>"
811 msgstr ""
812
813 #. type: Plain text
814 #: build/C/man3/fts.3:289
815 msgid ""
816 "This field is provided for the use of the application program and is not "
817 "modified by the fts functions.  It is initialized to 0."
818 msgstr ""
819
820 #. type: TP
821 #: build/C/man3/fts.3:289
822 #, no-wrap
823 msgid "I<fts_pointer>"
824 msgstr ""
825
826 #. type: Plain text
827 #: build/C/man3/fts.3:296
828 msgid ""
829 "This field is provided for the use of the application program and is not "
830 "modified by the fts functions.  It is initialized to NULL."
831 msgstr ""
832
833 #. type: TP
834 #: build/C/man3/fts.3:296
835 #, no-wrap
836 msgid "I<fts_parent>"
837 msgstr ""
838
839 #. type: Plain text
840 #: build/C/man3/fts.3:310
841 msgid ""
842 "A pointer to the I<FTSENT> structure referencing the file in the hierarchy "
843 "immediately above the current file, that is, the directory of which this "
844 "file is a member.  A parent structure for the initial entry point is "
845 "provided as well, however, only the I<fts_level>, I<fts_number> and "
846 "I<fts_pointer> fields are guaranteed to be initialized."
847 msgstr ""
848
849 #. type: TP
850 #: build/C/man3/fts.3:310
851 #, no-wrap
852 msgid "I<fts_link>"
853 msgstr ""
854
855 #. type: Plain text
856 #: build/C/man3/fts.3:321
857 msgid ""
858 "Upon return from the B<fts_children>()  function, the I<fts_link> field "
859 "points to the next structure in the NULL-terminated linked list of directory "
860 "members.  Otherwise, the contents of the I<fts_link> field are undefined."
861 msgstr ""
862
863 #. type: TP
864 #: build/C/man3/fts.3:321
865 #, no-wrap
866 msgid "I<fts_cycle>"
867 msgstr ""
868
869 #. type: Plain text
870 #: build/C/man3/fts.3:337
871 msgid ""
872 "If a directory causes a cycle in the hierarchy (see B<FTS_DC>), either "
873 "because of a hard link between two directories, or a symbolic link pointing "
874 "to a directory, the I<fts_cycle> field of the structure will point to the "
875 "I<FTSENT> structure in the hierarchy that references the same file as the "
876 "current I<FTSENT> structure.  Otherwise, the contents of the I<fts_cycle> "
877 "field are undefined."
878 msgstr ""
879
880 #. type: TP
881 #: build/C/man3/fts.3:337
882 #, no-wrap
883 msgid "I<fts_statp>"
884 msgstr ""
885
886 #.  .El
887 #. type: Plain text
888 #: build/C/man3/fts.3:343
889 msgid "A pointer to B<stat>(2)  information for the file."
890 msgstr ""
891
892 #. type: Plain text
893 #: build/C/man3/fts.3:370
894 msgid ""
895 "A single buffer is used for all of the paths of all of the files in the file "
896 "hierarchy.  Therefore, the I<fts_path> and I<fts_accpath> fields are "
897 "guaranteed to be null-terminated I<only> for the file most recently returned "
898 "by B<fts_read>().  To use these fields to reference any files represented by "
899 "other I<FTSENT> structures will require that the path buffer be modified "
900 "using the information contained in that I<FTSENT> structure's I<fts_pathlen> "
901 "field.  Any such modifications should be undone before further calls to "
902 "B<fts_read>()  are attempted.  The I<fts_name> field is always "
903 "null-terminated."
904 msgstr ""
905
906 #. type: SS
907 #: build/C/man3/fts.3:370
908 #, no-wrap
909 msgid "fts_open()"
910 msgstr ""
911
912 #. type: Plain text
913 #: build/C/man3/fts.3:378
914 msgid ""
915 "The B<fts_open>()  function takes a pointer to an array of character "
916 "pointers naming one or more paths which make up a logical file hierarchy to "
917 "be traversed.  The array must be terminated by a NULL pointer."
918 msgstr ""
919
920 #.  .Bl -tag -width "FTS_PHYSICAL"
921 #. type: Plain text
922 #: build/C/man3/fts.3:388
923 msgid ""
924 "There are a number of options, at least one of which (either B<FTS_LOGICAL> "
925 "or B<FTS_PHYSICAL>)  must be specified.  The options are selected by ORing "
926 "the following values:"
927 msgstr ""
928
929 #. type: TP
930 #: build/C/man3/fts.3:388
931 #, no-wrap
932 msgid "B<FTS_COMFOLLOW>"
933 msgstr ""
934
935 #. type: Plain text
936 #: build/C/man3/fts.3:394
937 msgid ""
938 "This option causes any symbolic link specified as a root path to be followed "
939 "immediately whether or not B<FTS_LOGICAL> is also specified."
940 msgstr ""
941
942 #. type: TP
943 #: build/C/man3/fts.3:394
944 #, no-wrap
945 msgid "B<FTS_LOGICAL>"
946 msgstr ""
947
948 #. type: Plain text
949 #: build/C/man3/fts.3:413
950 msgid ""
951 "This option causes the fts routines to return I<FTSENT> structures for the "
952 "targets of symbolic links instead of the symbolic links themselves.  If this "
953 "option is set, the only symbolic links for which I<FTSENT> structures are "
954 "returned to the application are those referencing nonexistent files.  Either "
955 "B<FTS_LOGICAL> or B<FTS_PHYSICAL> I<must> be provided to the B<fts_open>()  "
956 "function."
957 msgstr ""
958
959 #. type: TP
960 #: build/C/man3/fts.3:413
961 #, no-wrap
962 msgid "B<FTS_NOCHDIR>"
963 msgstr ""
964
965 #. type: Plain text
966 #: build/C/man3/fts.3:429
967 msgid ""
968 "As a performance optimization, the fts functions change directories as they "
969 "walk the file hierarchy.  This has the side-effect that an application "
970 "cannot rely on being in any particular directory during the traversal.  The "
971 "B<FTS_NOCHDIR> option turns off this optimization, and the fts functions "
972 "will not change the current directory.  Note that applications should not "
973 "themselves change their current directory and try to access files unless "
974 "B<FTS_NOCHDIR> is specified and absolute pathnames were provided as "
975 "arguments to B<fts_open>()."
976 msgstr ""
977
978 #. type: TP
979 #: build/C/man3/fts.3:429
980 #, no-wrap
981 msgid "B<FTS_NOSTAT>"
982 msgstr ""
983
984 #. type: Plain text
985 #: build/C/man3/fts.3:445
986 msgid ""
987 "By default, returned I<FTSENT> structures reference file characteristic "
988 "information (the I<statp> field) for each file visited.  This option relaxes "
989 "that requirement as a performance optimization, allowing the fts functions "
990 "to set the I<fts_info> field to B<FTS_NSOK> and leave the contents of the "
991 "I<statp> field undefined."
992 msgstr ""
993
994 #. type: TP
995 #: build/C/man3/fts.3:445
996 #, no-wrap
997 msgid "B<FTS_PHYSICAL>"
998 msgstr ""
999
1000 #. type: Plain text
1001 #: build/C/man3/fts.3:464
1002 msgid ""
1003 "This option causes the fts routines to return I<FTSENT> structures for "
1004 "symbolic links themselves instead of the target files they point to.  If "
1005 "this option is set, I<FTSENT> structures for all symbolic links in the "
1006 "hierarchy are returned to the application.  Either B<FTS_LOGICAL> or "
1007 "B<FTS_PHYSICAL> I<must> be provided to the B<fts_open>()  function."
1008 msgstr ""
1009
1010 #. type: TP
1011 #: build/C/man3/fts.3:464
1012 #, no-wrap
1013 msgid "B<FTS_SEEDOT>"
1014 msgstr ""
1015
1016 #. type: Plain text
1017 #: build/C/man3/fts.3:477
1018 msgid ""
1019 "By default, unless they are specified as path arguments to B<fts_open>(), "
1020 "any files named \".\" or \"..\" encountered in the file hierarchy are "
1021 "ignored.  This option causes the fts routines to return I<FTSENT> structures "
1022 "for them."
1023 msgstr ""
1024
1025 #. type: TP
1026 #: build/C/man3/fts.3:477
1027 #, no-wrap
1028 msgid "B<FTS_XDEV>"
1029 msgstr ""
1030
1031 #.  .El
1032 #. type: Plain text
1033 #: build/C/man3/fts.3:483
1034 msgid ""
1035 "This option prevents fts from descending into directories that have a "
1036 "different device number than the file from which the descent began."
1037 msgstr ""
1038
1039 #. type: Plain text
1040 #: build/C/man3/fts.3:522
1041 msgid ""
1042 "The argument B<compar>()  specifies a user-defined function which may be "
1043 "used to order the traversal of the hierarchy.  It takes two pointers to "
1044 "pointers to I<FTSENT> structures as arguments and should return a negative "
1045 "value, zero, or a positive value to indicate if the file referenced by its "
1046 "first argument comes before, in any order with respect to, or after, the "
1047 "file referenced by its second argument.  The I<fts_accpath>, I<fts_path> and "
1048 "I<fts_pathlen> fields of the I<FTSENT> structures may I<never> be used in "
1049 "this comparison.  If the I<fts_info> field is set to B<FTS_NS> or "
1050 "B<FTS_NSOK>, the I<fts_statp> field may not either.  If the B<compar>()  "
1051 "argument is NULL, the directory traversal order is in the order listed in "
1052 "I<path_argv> for the root paths, and in the order listed in the directory "
1053 "for everything else."
1054 msgstr ""
1055
1056 #. type: SS
1057 #: build/C/man3/fts.3:522
1058 #, no-wrap
1059 msgid "fts_read()"
1060 msgstr ""
1061
1062 #. type: Plain text
1063 #: build/C/man3/fts.3:535
1064 msgid ""
1065 "The B<fts_read>()  function returns a pointer to an I<FTSENT> structure "
1066 "describing a file in the hierarchy.  Directories (that are readable and do "
1067 "not cause cycles) are visited at least twice, once in preorder and once in "
1068 "postorder.  All other files are visited at least once.  (Hard links between "
1069 "directories that do not cause cycles or symbolic links to symbolic links may "
1070 "cause files to be visited more than once, or directories more than twice.)"
1071 msgstr ""
1072
1073 #. type: Plain text
1074 #: build/C/man3/fts.3:556
1075 msgid ""
1076 "If all the members of the hierarchy have been returned, B<fts_read>()  "
1077 "returns NULL and sets the external variable I<errno> to 0.  If an error "
1078 "unrelated to a file in the hierarchy occurs, B<fts_read>()  returns NULL and "
1079 "sets I<errno> appropriately.  If an error related to a returned file occurs, "
1080 "a pointer to an I<FTSENT> structure is returned, and I<errno> may or may not "
1081 "have been set (see I<fts_info>)."
1082 msgstr ""
1083
1084 #. type: Plain text
1085 #: build/C/man3/fts.3:573
1086 msgid ""
1087 "The I<FTSENT> structures returned by B<fts_read>()  may be overwritten after "
1088 "a call to B<fts_close>()  on the same file hierarchy stream, or, after a "
1089 "call to B<fts_read>()  on the same file hierarchy stream unless they "
1090 "represent a file of type directory, in which case they will not be "
1091 "overwritten until after a call to B<fts_read>()  after the I<FTSENT> "
1092 "structure has been returned by the function B<fts_read>()  in postorder."
1093 msgstr ""
1094
1095 #. type: SS
1096 #: build/C/man3/fts.3:573
1097 #, no-wrap
1098 msgid "fts_children()"
1099 msgstr ""
1100
1101 #. type: Plain text
1102 #: build/C/man3/fts.3:591
1103 msgid ""
1104 "The B<fts_children>()  function returns a pointer to an I<FTSENT> structure "
1105 "describing the first entry in a NULL-terminated linked list of the files in "
1106 "the directory represented by the I<FTSENT> structure most recently returned "
1107 "by B<fts_read>().  The list is linked through the I<fts_link> field of the "
1108 "I<FTSENT> structure, and is ordered by the user-specified comparison "
1109 "function, if any.  Repeated calls to B<fts_children>()  will recreate this "
1110 "linked list."
1111 msgstr ""
1112
1113 #. type: Plain text
1114 #: build/C/man3/fts.3:619
1115 msgid ""
1116 "As a special case, if B<fts_read>()  has not yet been called for a "
1117 "hierarchy, B<fts_children>()  will return a pointer to the files in the "
1118 "logical directory specified to B<fts_open>(), that is, the arguments "
1119 "specified to B<fts_open>().  Otherwise, if the I<FTSENT> structure most "
1120 "recently returned by B<fts_read>()  is not a directory being visited in "
1121 "preorder, or the directory does not contain any files, B<fts_children>()  "
1122 "returns NULL and sets I<errno> to zero.  If an error occurs, "
1123 "B<fts_children>()  returns NULL and sets I<errno> appropriately."
1124 msgstr ""
1125
1126 #. type: Plain text
1127 #: build/C/man3/fts.3:630
1128 msgid ""
1129 "The I<FTSENT> structures returned by B<fts_children>()  may be overwritten "
1130 "after a call to B<fts_children>(), B<fts_close>()  or B<fts_read>()  on the "
1131 "same file hierarchy stream."
1132 msgstr ""
1133
1134 #.  .Bl -tag -width FTS_NAMEONLY
1135 #. type: Plain text
1136 #: build/C/man3/fts.3:634
1137 msgid "I<Option> may be set to the following value:"
1138 msgstr ""
1139
1140 #. type: TP
1141 #: build/C/man3/fts.3:634
1142 #, no-wrap
1143 msgid "B<FTS_NAMEONLY>"
1144 msgstr ""
1145
1146 #.  .El
1147 #. type: Plain text
1148 #: build/C/man3/fts.3:644
1149 msgid ""
1150 "Only the names of the files are needed.  The contents of all the fields in "
1151 "the returned linked list of structures are undefined with the exception of "
1152 "the I<fts_name> and I<fts_namelen> fields."
1153 msgstr ""
1154
1155 #. type: SS
1156 #: build/C/man3/fts.3:644
1157 #, no-wrap
1158 msgid "fts_set()"
1159 msgstr ""
1160
1161 #.  .Bl -tag -width FTS_PHYSICAL
1162 #. type: Plain text
1163 #: build/C/man3/fts.3:659
1164 msgid ""
1165 "The function B<fts_set>()  allows the user application to determine further "
1166 "processing for the file I<f> of the stream I<ftsp>.  The B<fts_set>()  "
1167 "function returns 0 on success, and -1 if an error occurs.  I<Option> must be "
1168 "set to one of the following values:"
1169 msgstr ""
1170
1171 #. type: TP
1172 #: build/C/man3/fts.3:659
1173 #, no-wrap
1174 msgid "B<FTS_AGAIN>"
1175 msgstr ""
1176
1177 #. type: Plain text
1178 #: build/C/man3/fts.3:677
1179 msgid ""
1180 "Revisit the file; any file type may be revisited.  The next call to "
1181 "B<fts_read>()  will return the referenced file.  The I<fts_stat> and "
1182 "I<fts_info> fields of the structure will be reinitialized at that time, but "
1183 "no other fields will have been changed.  This option is meaningful only for "
1184 "the most recently returned file from B<fts_read>().  Normal use is for "
1185 "postorder directory visits, where it causes the directory to be revisited "
1186 "(in both preorder and postorder) as well as all of its descendants."
1187 msgstr ""
1188
1189 #. type: TP
1190 #: build/C/man3/fts.3:677
1191 #, no-wrap
1192 msgid "B<FTS_FOLLOW>"
1193 msgstr ""
1194
1195 #. type: Plain text
1196 #: build/C/man3/fts.3:705
1197 msgid ""
1198 "The referenced file must be a symbolic link.  If the referenced file is the "
1199 "one most recently returned by B<fts_read>(), the next call to B<fts_read>()  "
1200 "returns the file with the I<fts_info> and I<fts_statp> fields reinitialized "
1201 "to reflect the target of the symbolic link instead of the symbolic link "
1202 "itself.  If the file is one of those most recently returned by "
1203 "B<fts_children>(), the I<fts_info> and I<fts_statp> fields of the structure, "
1204 "when returned by B<fts_read>(), will reflect the target of the symbolic link "
1205 "instead of the symbolic link itself.  In either case, if the target of the "
1206 "symbolic link does not exist the fields of the returned structure will be "
1207 "unchanged and the I<fts_info> field will be set to B<FTS_SLNONE>."
1208 msgstr ""
1209
1210 #. type: Plain text
1211 #: build/C/man3/fts.3:709
1212 msgid ""
1213 "If the target of the link is a directory, the preorder return, followed by "
1214 "the return of all of its descendants, followed by a postorder return, is "
1215 "done."
1216 msgstr ""
1217
1218 #. type: TP
1219 #: build/C/man3/fts.3:709
1220 #, no-wrap
1221 msgid "B<FTS_SKIP>"
1222 msgstr ""
1223
1224 #.  .El
1225 #. type: Plain text
1226 #: build/C/man3/fts.3:717
1227 msgid ""
1228 "No descendants of this file are visited.  The file may be one of those most "
1229 "recently returned by either B<fts_children>()  or B<fts_read>()."
1230 msgstr ""
1231
1232 #. type: SS
1233 #: build/C/man3/fts.3:717
1234 #, no-wrap
1235 msgid "fts_close()"
1236 msgstr ""
1237
1238 #. type: Plain text
1239 #: build/C/man3/fts.3:730
1240 msgid ""
1241 "The B<fts_close>()  function closes a file hierarchy stream I<ftsp> and "
1242 "restores the current directory to the directory from which B<fts_open>()  "
1243 "was called to open I<ftsp>.  The B<fts_close>()  function returns 0 on "
1244 "success, and -1 if an error occurs."
1245 msgstr ""
1246
1247 #. type: SH
1248 #: build/C/man3/fts.3:730 build/C/man2/getxattr.2:106 build/C/man2/listxattr.2:127 build/C/man2/mount.2:312 build/C/man2/removexattr.2:83 build/C/man2/setxattr.2:110 build/C/man2/spu_create.2:172 build/C/man2/spu_run.2:153 build/C/man2/stat.2:305 build/C/man2/statfs.2:134 build/C/man3/statvfs.3:101 build/C/man2/sysfs.2:79 build/C/man2/umount.2:104 build/C/man2/ustat.2:79
1249 #, no-wrap
1250 msgid "ERRORS"
1251 msgstr ""
1252
1253 #. type: Plain text
1254 #: build/C/man3/fts.3:739
1255 msgid ""
1256 "The function B<fts_open>()  may fail and set I<errno> for any of the errors "
1257 "specified for B<open>(2)  and B<malloc>(3)."
1258 msgstr ""
1259
1260 #. type: Plain text
1261 #: build/C/man3/fts.3:748
1262 msgid ""
1263 "The function B<fts_close>()  may fail and set I<errno> for any of the errors "
1264 "specified for B<chdir>(2)  and B<close>(2)."
1265 msgstr ""
1266
1267 #. type: Plain text
1268 #: build/C/man3/fts.3:762
1269 msgid ""
1270 "The functions B<fts_read>()  and B<fts_children>()  may fail and set "
1271 "I<errno> for any of the errors specified for B<chdir>(2), B<malloc>(3), "
1272 "B<opendir>(3), B<readdir>(3)  and B<stat>(2)."
1273 msgstr ""
1274
1275 #. type: Plain text
1276 #: build/C/man3/fts.3:771
1277 msgid ""
1278 "In addition, B<fts_children>(), B<fts_open>()  and B<fts_set>()  may fail "
1279 "and set I<errno> as follows:"
1280 msgstr ""
1281
1282 #. type: TP
1283 #: build/C/man3/fts.3:771 build/C/man2/mount.2:348 build/C/man2/spu_create.2:186 build/C/man2/spu_run.2:174 build/C/man2/sysfs.2:84 build/C/man2/umount.2:125 build/C/man2/ustat.2:84
1284 #, no-wrap
1285 msgid "B<EINVAL>"
1286 msgstr ""
1287
1288 #. type: Plain text
1289 #: build/C/man3/fts.3:774
1290 msgid "The options were invalid."
1291 msgstr ""
1292
1293 #. type: SH
1294 #: build/C/man3/fts.3:774 build/C/man2/getxattr.2:130 build/C/man2/listxattr.2:142 build/C/man2/mount.2:406 build/C/man2/removexattr.2:99 build/C/man2/setxattr.2:141 build/C/man2/spu_create.2:246 build/C/man2/spu_run.2:188 build/C/man2/umount.2:150
1295 #, no-wrap
1296 msgid "VERSIONS"
1297 msgstr ""
1298
1299 #. type: Plain text
1300 #: build/C/man3/fts.3:776
1301 msgid "These functions are available in Linux since glibc2."
1302 msgstr ""
1303
1304 #. type: SH
1305 #: build/C/man3/fts.3:776 build/C/man3/ftw.3:320 build/C/man3/getfsent.3:115 build/C/man3/getmntent.3:201 build/C/man2/getxattr.2:133 build/C/man2/listxattr.2:145 build/C/man2/mount.2:417 build/C/man2/removexattr.2:102 build/C/man2/setxattr.2:144 build/C/man2/spu_create.2:250 build/C/man2/spu_run.2:192 build/C/man2/stat.2:361 build/C/man2/statfs.2:190 build/C/man3/statvfs.3:157 build/C/man2/sysfs.2:92 build/C/man2/umount.2:156 build/C/man2/ustat.2:94
1306 #, no-wrap
1307 msgid "CONFORMING TO"
1308 msgstr ""
1309
1310 #.  The following statement is years old, and seems no closer to
1311 #.  being true -- mtk
1312 #.  The
1313 #.  .I fts
1314 #.  utility is expected to be included in a future
1315 #.  POSIX.1
1316 #.  revision.
1317 #. type: Plain text
1318 #: build/C/man3/fts.3:785
1319 msgid "4.4BSD."
1320 msgstr ""
1321
1322 #. type: Plain text
1323 #: build/C/man3/fts.3:791
1324 msgid "B<find>(1), B<chdir>(2), B<stat>(2), B<ftw>(3), B<qsort>(3)"
1325 msgstr ""
1326
1327 #. type: TH
1328 #: build/C/man3/ftw.3:35
1329 #, no-wrap
1330 msgid "FTW"
1331 msgstr ""
1332
1333 #. type: TH
1334 #: build/C/man3/ftw.3:35
1335 #, no-wrap
1336 msgid "2010-09-20"
1337 msgstr ""
1338
1339 #. type: Plain text
1340 #: build/C/man3/ftw.3:38
1341 msgid "ftw, nftw - file tree walk"
1342 msgstr ""
1343
1344 #. type: Plain text
1345 #: build/C/man3/ftw.3:41
1346 #, no-wrap
1347 msgid "B<#include E<lt>ftw.hE<gt>>\n"
1348 msgstr ""
1349
1350 #. type: Plain text
1351 #: build/C/man3/ftw.3:46
1352 #, no-wrap
1353 msgid ""
1354 "B<int ftw(const char *>I<dirpath>B<,>\n"
1355 "B<        int (*>I<fn>B<) (const char *>I<fpath>B<, const struct stat "
1356 "*>I<sb>B<,>\n"
1357 "B<                   int >I<typeflag>B<),>\n"
1358 "B<        int >I<nopenfd>B<);>\n"
1359 msgstr ""
1360
1361 #. type: Plain text
1362 #: build/C/man3/ftw.3:49
1363 #, no-wrap
1364 msgid ""
1365 "B<#define _XOPEN_SOURCE 500>   /* See feature_test_macros(7) */\n"
1366 "B<#include E<lt>ftw.hE<gt>>\n"
1367 msgstr ""
1368
1369 #. type: Plain text
1370 #: build/C/man3/ftw.3:54
1371 #, no-wrap
1372 msgid ""
1373 "B<int nftw(const char *>I<dirpath>B<,>\n"
1374 "B<        int (*>I<fn>B<) (const char *>I<fpath>B<, const struct stat "
1375 "*>I<sb>B<,>\n"
1376 "B<                   int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n"
1377 "B<        int >I<nopenfd>B<, int >I<flags>B<);>\n"
1378 msgstr ""
1379
1380 #. type: Plain text
1381 #: build/C/man3/ftw.3:62
1382 msgid ""
1383 "B<ftw>()  walks through the directory tree that is located under the "
1384 "directory I<dirpath>, and calls I<fn>() once for each entry in the tree.  By "
1385 "default, directories are handled before the files and subdirectories they "
1386 "contain (preorder traversal)."
1387 msgstr ""
1388
1389 #. type: Plain text
1390 #: build/C/man3/ftw.3:75
1391 msgid ""
1392 "To avoid using up all of the calling process's file descriptors, I<nopenfd> "
1393 "specifies the maximum number of directories that B<ftw>()  will hold open "
1394 "simultaneously.  When the search depth exceeds this, B<ftw>()  will become "
1395 "slower because directories have to be closed and reopened.  B<ftw>()  uses "
1396 "at most one file descriptor for each level in the directory tree."
1397 msgstr ""
1398
1399 #. type: Plain text
1400 #: build/C/man3/ftw.3:104
1401 msgid ""
1402 "For each entry found in the tree, B<ftw>()  calls I<fn>() with three "
1403 "arguments: I<fpath>, I<sb>, and I<typeflag>.  I<fpath> is the pathname of "
1404 "the entry, and is expressed either as a pathname relative to the calling "
1405 "process's current working directory at the time of the call to B<ftw>(), if "
1406 "I<dirpath> was expressed as a relative pathname, or as an absolute pathname, "
1407 "if I<dirpath> was expressed as an absolute pathname.  I<sb> is a pointer to "
1408 "the I<stat> structure returned by a call to B<stat>(2)  for I<fpath>.  "
1409 "I<typeflag> is an integer that has one of the following values:"
1410 msgstr ""
1411
1412 #. type: TP
1413 #: build/C/man3/ftw.3:104
1414 #, no-wrap
1415 msgid "B<FTW_F>"
1416 msgstr ""
1417
1418 #. type: Plain text
1419 #: build/C/man3/ftw.3:108
1420 msgid "I<fpath> is a regular file."
1421 msgstr ""
1422
1423 #. type: TP
1424 #: build/C/man3/ftw.3:108
1425 #, no-wrap
1426 msgid "B<FTW_D>"
1427 msgstr ""
1428
1429 #. type: Plain text
1430 #: build/C/man3/ftw.3:112
1431 msgid "I<fpath> is a directory."
1432 msgstr ""
1433
1434 #. type: TP
1435 #: build/C/man3/ftw.3:112
1436 #, no-wrap
1437 msgid "B<FTW_DNR>"
1438 msgstr ""
1439
1440 #. type: Plain text
1441 #: build/C/man3/ftw.3:116
1442 msgid "I<fpath> is a directory which can't be read."
1443 msgstr ""
1444
1445 #. type: TP
1446 #: build/C/man3/ftw.3:116
1447 #, no-wrap
1448 msgid "B<FTW_NS>"
1449 msgstr ""
1450
1451 #. type: Plain text
1452 #: build/C/man3/ftw.3:123
1453 msgid "The B<stat>(2)  call failed on I<fpath>, which is not a symbolic link."
1454 msgstr ""
1455
1456 #. type: Plain text
1457 #: build/C/man3/ftw.3:132
1458 msgid ""
1459 "If I<fpath> is a symbolic link and B<stat>(2)  failed, POSIX.1-2001 states "
1460 "that it is undefined whether B<FTW_NS> or B<FTW_SL> (see below)  is passed "
1461 "in I<typeflag>."
1462 msgstr ""
1463
1464 #. type: Plain text
1465 #: build/C/man3/ftw.3:143
1466 msgid ""
1467 "To stop the tree walk, I<fn>() returns a nonzero value; this value will "
1468 "become the return value of B<ftw>().  As long as I<fn>() returns 0, B<ftw>()  "
1469 "will continue either until it has traversed the entire tree, in which case "
1470 "it will return zero, or until it encounters an error (such as a B<malloc>(3)  "
1471 "failure), in which case it will return -1."
1472 msgstr ""
1473
1474 #. type: Plain text
1475 #: build/C/man3/ftw.3:153
1476 msgid ""
1477 "Because B<ftw>()  uses dynamic data structures, the only safe way to exit "
1478 "out of a tree walk is to return a nonzero value from I<fn>().  To allow a "
1479 "signal to terminate the walk without causing a memory leak, have the handler "
1480 "set a global flag that is checked by I<fn>().  I<Don't> use B<longjmp>(3)  "
1481 "unless the program is going to terminate."
1482 msgstr ""
1483
1484 #. type: SS
1485 #: build/C/man3/ftw.3:153
1486 #, no-wrap
1487 msgid "nftw()"
1488 msgstr ""
1489
1490 #. type: Plain text
1491 #: build/C/man3/ftw.3:160
1492 msgid ""
1493 "The function B<nftw>()  is the same as B<ftw>(), except that it has one "
1494 "additional argument, I<flags>, and calls I<fn>() with one more argument, "
1495 "I<ftwbuf>."
1496 msgstr ""
1497
1498 #. type: Plain text
1499 #: build/C/man3/ftw.3:163
1500 msgid ""
1501 "This I<flags> argument is formed by ORing zero or more of the following "
1502 "flags:"
1503 msgstr ""
1504
1505 #. type: TP
1506 #: build/C/man3/ftw.3:163
1507 #, no-wrap
1508 msgid "B<FTW_ACTIONRETVAL> (since glibc 2.3.3)"
1509 msgstr ""
1510
1511 #. type: Plain text
1512 #: build/C/man3/ftw.3:172
1513 msgid ""
1514 "If this glibc-specific flag is set, then B<nftw>()  handles the return value "
1515 "from I<fn>()  differently.  I<fn>()  should return one of the following "
1516 "values:"
1517 msgstr ""
1518
1519 #. type: TP
1520 #: build/C/man3/ftw.3:173
1521 #, no-wrap
1522 msgid "B<FTW_CONTINUE>"
1523 msgstr ""
1524
1525 #. type: Plain text
1526 #: build/C/man3/ftw.3:178
1527 msgid "Instructs B<nftw>()  to continue normally."
1528 msgstr ""
1529
1530 #. type: TP
1531 #: build/C/man3/ftw.3:178
1532 #, no-wrap
1533 msgid "B<FTW_SKIP_SIBLINGS>"
1534 msgstr ""
1535
1536 #.  If \fBFTW_DEPTH\fP
1537 #.  is set, the entry's parent directory is processed next (with
1538 #.  \fIflag\fP set to \fBFTW_DP\fP).
1539 #. type: Plain text
1540 #: build/C/man3/ftw.3:186
1541 msgid ""
1542 "If I<fn>() returns this value, then siblings of the current entry will be "
1543 "skipped, and processing continues in the parent."
1544 msgstr ""
1545
1546 #. type: TP
1547 #: build/C/man3/ftw.3:186
1548 #, no-wrap
1549 msgid "B<FTW_SKIP_SUBTREE>"
1550 msgstr ""
1551
1552 #. type: Plain text
1553 #: build/C/man3/ftw.3:194
1554 msgid ""
1555 "If I<fn>() is called with an entry that is a directory (I<typeflag> is "
1556 "B<FTW_D>), this return value will prevent objects within that directory from "
1557 "being passed as arguments to I<fn>().  B<nftw>()  continues processing with "
1558 "the next sibling of the directory."
1559 msgstr ""
1560
1561 #. type: TP
1562 #: build/C/man3/ftw.3:194
1563 #, no-wrap
1564 msgid "B<FTW_STOP>"
1565 msgstr ""
1566
1567 #. type: Plain text
1568 #: build/C/man3/ftw.3:200
1569 msgid "Causes B<nftw>()  to return immediately with the return value B<FTW_STOP>."
1570 msgstr ""
1571
1572 #. type: Plain text
1573 #: build/C/man3/ftw.3:203
1574 msgid ""
1575 "Other return values could be associated with new actions in the future; "
1576 "I<fn>() should not return values other than those listed above."
1577 msgstr ""
1578
1579 #. type: Plain text
1580 #: build/C/man3/ftw.3:212
1581 msgid ""
1582 "The feature test macro B<_GNU_SOURCE> must be defined (before including "
1583 "I<any> header files)  in order to obtain the definition of "
1584 "B<FTW_ACTIONRETVAL> from I<E<lt>ftw.hE<gt>>."
1585 msgstr ""
1586
1587 #. type: TP
1588 #: build/C/man3/ftw.3:213
1589 #, no-wrap
1590 msgid "B<FTW_CHDIR>"
1591 msgstr ""
1592
1593 #. type: Plain text
1594 #: build/C/man3/ftw.3:220
1595 msgid ""
1596 "If set, do a B<chdir>(2)  to each directory before handling its contents.  "
1597 "This is useful if the program needs to perform some action in the directory "
1598 "in which I<fpath> resides."
1599 msgstr ""
1600
1601 #. type: TP
1602 #: build/C/man3/ftw.3:220
1603 #, no-wrap
1604 msgid "B<FTW_DEPTH>"
1605 msgstr ""
1606
1607 #. type: Plain text
1608 #: build/C/man3/ftw.3:226
1609 msgid ""
1610 "If set, do a post-order traversal, that is, call I<fn>() for the directory "
1611 "itself I<after> handling the contents of the directory and its "
1612 "subdirectories.  (By default, each directory is handled I<before> its "
1613 "contents.)"
1614 msgstr ""
1615
1616 #. type: TP
1617 #: build/C/man3/ftw.3:226
1618 #, no-wrap
1619 msgid "B<FTW_MOUNT>"
1620 msgstr ""
1621
1622 #. type: Plain text
1623 #: build/C/man3/ftw.3:230
1624 msgid "If set, stay within the same filesystem (i.e., do not cross mount points)."
1625 msgstr ""
1626
1627 #. type: TP
1628 #: build/C/man3/ftw.3:230
1629 #, no-wrap
1630 msgid "B<FTW_PHYS>"
1631 msgstr ""
1632
1633 #. type: Plain text
1634 #: build/C/man3/ftw.3:235
1635 msgid ""
1636 "If set, do not follow symbolic links.  (This is what you want.)  If not set, "
1637 "symbolic links are followed, but no file is reported twice."
1638 msgstr ""
1639
1640 #. type: Plain text
1641 #: build/C/man3/ftw.3:240
1642 msgid ""
1643 "If B<FTW_PHYS> is not set, but B<FTW_DEPTH> is set, then the function "
1644 "I<fn>()  is never called for a directory that would be a descendant of "
1645 "itself."
1646 msgstr ""
1647
1648 #. type: Plain text
1649 #: build/C/man3/ftw.3:255
1650 msgid ""
1651 "For each entry in the directory tree, B<nftw>()  calls I<fn>()  with four "
1652 "arguments.  I<fpath> and I<sb> are as for B<ftw>().  I<typeflag> may receive "
1653 "any of the same values as with B<ftw>(), or any of the following values:"
1654 msgstr ""
1655
1656 #. type: TP
1657 #: build/C/man3/ftw.3:255
1658 #, no-wrap
1659 msgid "B<FTW_DP>"
1660 msgstr ""
1661
1662 #. type: Plain text
1663 #: build/C/man3/ftw.3:261
1664 msgid ""
1665 "I<fpath> is a directory, and B<FTW_DEPTH> was specified in I<flags>.  All of "
1666 "the files and subdirectories within I<fpath> have been processed."
1667 msgstr ""
1668
1669 #. type: TP
1670 #: build/C/man3/ftw.3:261
1671 #, no-wrap
1672 msgid "B<FTW_SL>"
1673 msgstr ""
1674
1675 #.  To obtain the definition of this constant from
1676 #.  .IR <ftw.h> ,
1677 #.  either
1678 #.  .B _BSD_SOURCE
1679 #.  must be defined, or
1680 #.  .BR _XOPEN_SOURCE
1681 #.  must be defined with a value of 500 or more.
1682 #. type: Plain text
1683 #: build/C/man3/ftw.3:272
1684 msgid "I<fpath> is a symbolic link, and B<FTW_PHYS> was set in I<flags>."
1685 msgstr ""
1686
1687 #. type: TP
1688 #: build/C/man3/ftw.3:272
1689 #, no-wrap
1690 msgid "B<FTW_SLN>"
1691 msgstr ""
1692
1693 #. type: Plain text
1694 #: build/C/man3/ftw.3:277
1695 msgid ""
1696 "I<fpath> is a symbolic link pointing to a nonexistent file.  (This occurs "
1697 "only if B<FTW_PHYS> is not set.)"
1698 msgstr ""
1699
1700 #. type: Plain text
1701 #: build/C/man3/ftw.3:283
1702 msgid ""
1703 "The fourth argument that B<nftw>()  supplies when calling I<fn>()  is a "
1704 "structure of type I<FTW>:"
1705 msgstr ""
1706
1707 #. type: Plain text
1708 #: build/C/man3/ftw.3:290
1709 #, no-wrap
1710 msgid ""
1711 "struct FTW {\n"
1712 "    int base;\n"
1713 "    int level;\n"
1714 "};\n"
1715 msgstr ""
1716
1717 #. type: Plain text
1718 #: build/C/man3/ftw.3:303
1719 msgid ""
1720 "I<base> is the offset of the filename (i.e., basename component)  in the "
1721 "pathname given in I<fpath>.  I<level> is the depth of I<fpath> in the "
1722 "directory tree, relative to the root of the tree (I<dirpath>, which has "
1723 "depth 0)."
1724 msgstr ""
1725
1726 #. type: SH
1727 #: build/C/man3/ftw.3:303 build/C/man3/getfsent.3:99 build/C/man3/getmntent.3:174 build/C/man2/getxattr.2:100 build/C/man2/listxattr.2:121 build/C/man2/mount.2:307 build/C/man2/removexattr.2:78 build/C/man2/setxattr.2:105 build/C/man2/spu_create.2:165 build/C/man2/spu_run.2:102 build/C/man2/stat.2:300 build/C/man2/statfs.2:129 build/C/man3/statvfs.3:96 build/C/man2/sysfs.2:67 build/C/man2/umount.2:99 build/C/man2/ustat.2:70
1728 #, no-wrap
1729 msgid "RETURN VALUE"
1730 msgstr ""
1731
1732 #. type: Plain text
1733 #: build/C/man3/ftw.3:305
1734 msgid "These functions return 0 on success, and -1 if an error occurs."
1735 msgstr ""
1736
1737 #. type: Plain text
1738 #: build/C/man3/ftw.3:312
1739 msgid ""
1740 "If I<fn>() returns nonzero, then the tree walk is terminated and the value "
1741 "returned by I<fn>()  is returned as the result of B<ftw>()  or B<nftw>()."
1742 msgstr ""
1743
1744 #. type: Plain text
1745 #: build/C/man3/ftw.3:320
1746 msgid ""
1747 "If B<nftw>()  is called with the B<FTW_ACTIONRETVAL> flag, then the only "
1748 "nonzero value that should be used by I<fn>()  to terminate the tree walk is "
1749 "B<FTW_STOP>, and that value is returned as the result of B<nftw>()."
1750 msgstr ""
1751
1752 #. type: Plain text
1753 #: build/C/man3/ftw.3:325
1754 msgid "POSIX.1-2001, SVr4, SUSv1.  POSIX.1-2008 marks B<ftw>()  as obsolete."
1755 msgstr ""
1756
1757 #. type: SH
1758 #: build/C/man3/ftw.3:325 build/C/man3/getfsent.3:127 build/C/man3/getmntent.3:207 build/C/man2/mount.2:420 build/C/man2/spu_create.2:254 build/C/man2/spu_run.2:196 build/C/man2/stat.2:499 build/C/man2/statfs.2:196 build/C/man3/statvfs.3:159 build/C/man2/sysfs.2:94 build/C/man2/umount.2:159 build/C/man2/ustat.2:98
1759 #, no-wrap
1760 msgid "NOTES"
1761 msgstr ""
1762
1763 #. type: Plain text
1764 #: build/C/man3/ftw.3:329
1765 msgid ""
1766 "POSIX.1-2001 note that the results are unspecified if I<fn> does not "
1767 "preserve the current working directory."
1768 msgstr ""
1769
1770 #. type: Plain text
1771 #: build/C/man3/ftw.3:335
1772 msgid ""
1773 "The function B<nftw>()  and the use of B<FTW_SL> with B<ftw>()  were "
1774 "introduced in SUSv1."
1775 msgstr ""
1776
1777 #. type: Plain text
1778 #: build/C/man3/ftw.3:345
1779 msgid ""
1780 "On some systems B<ftw>()  will never use B<FTW_SL>, on other systems "
1781 "B<FTW_SL> occurs only for symbolic links that do not point to an existing "
1782 "file, and again on other systems B<ftw>()  will use B<FTW_SL> for each "
1783 "symbolic link.  For predictable control, use B<nftw>()."
1784 msgstr ""
1785
1786 #. type: Plain text
1787 #: build/C/man3/ftw.3:349
1788 msgid ""
1789 "Under Linux, libc4 and libc5 and glibc 2.0.6 will use B<FTW_F> for all "
1790 "objects (files, symbolic links, FIFOs, etc.)  that can be stat'ed but are "
1791 "not a directory."
1792 msgstr ""
1793
1794 #. type: Plain text
1795 #: build/C/man3/ftw.3:353
1796 msgid "The function B<nftw>()  is available since glibc 2.1."
1797 msgstr ""
1798
1799 #. type: Plain text
1800 #: build/C/man3/ftw.3:355
1801 msgid "B<FTW_ACTIONRETVAL> is glibc-specific."
1802 msgstr ""
1803
1804 #. type: SH
1805 #: build/C/man3/ftw.3:355 build/C/man2/spu_create.2:265 build/C/man2/spu_run.2:207 build/C/man7/spufs.7:759 build/C/man2/stat.2:590
1806 #, no-wrap
1807 msgid "EXAMPLE"
1808 msgstr ""
1809
1810 #. type: Plain text
1811 #: build/C/man3/ftw.3:364
1812 msgid ""
1813 "The following program traverses the directory tree under the path named in "
1814 "its first command-line argument, or under the current directory if no "
1815 "argument is supplied.  It displays various information about each file.  The "
1816 "second command-line argument can be used to specify characters that control "
1817 "the value assigned to the I<flags> argument when calling B<nftw>()."
1818 msgstr ""
1819
1820 #. type: Plain text
1821 #: build/C/man3/ftw.3:372
1822 #, no-wrap
1823 msgid ""
1824 "#define _XOPEN_SOURCE 500\n"
1825 "#include E<lt>ftw.hE<gt>\n"
1826 "#include E<lt>stdio.hE<gt>\n"
1827 "#include E<lt>stdlib.hE<gt>\n"
1828 "#include E<lt>string.hE<gt>\n"
1829 "#include E<lt>stdint.hE<gt>\n"
1830 msgstr ""
1831
1832 #. type: Plain text
1833 #: build/C/man3/ftw.3:386
1834 #, no-wrap
1835 msgid ""
1836 "static int\n"
1837 "display_info(const char *fpath, const struct stat *sb,\n"
1838 "             int tflag, struct FTW *ftwbuf)\n"
1839 "{\n"
1840 "    printf(\"%-3s %2d %7jd   %-40s %d %s\\en\",\n"
1841 "        (tflag == FTW_D) ?   \"d\"   : (tflag == FTW_DNR) ? \"dnr\" :\n"
1842 "        (tflag == FTW_DP) ?  \"dp\"  : (tflag == FTW_F) ?   \"f\" :\n"
1843 "        (tflag == FTW_NS) ?  \"ns\"  : (tflag == FTW_SL) ?  \"sl\" :\n"
1844 "        (tflag == FTW_SLN) ? \"sln\" : \"???\",\n"
1845 "        ftwbuf-E<gt>level, (intmax_t) sb-E<gt>st_size,\n"
1846 "        fpath, ftwbuf-E<gt>base, fpath + ftwbuf-E<gt>base);\n"
1847 "    return 0;           /* To tell nftw() to continue */\n"
1848 "}\n"
1849 msgstr ""
1850
1851 #. type: Plain text
1852 #: build/C/man3/ftw.3:391
1853 #, no-wrap
1854 msgid ""
1855 "int\n"
1856 "main(int argc, char *argv[])\n"
1857 "{\n"
1858 "    int flags = 0;\n"
1859 msgstr ""
1860
1861 #. type: Plain text
1862 #: build/C/man3/ftw.3:396
1863 #, no-wrap
1864 msgid ""
1865 "    if (argc E<gt> 2 && strchr(argv[2], \\(aqd\\(aq) != NULL)\n"
1866 "        flags |= FTW_DEPTH;\n"
1867 "    if (argc E<gt> 2 && strchr(argv[2], \\(aqp\\(aq) != NULL)\n"
1868 "        flags |= FTW_PHYS;\n"
1869 msgstr ""
1870
1871 #. type: Plain text
1872 #: build/C/man3/ftw.3:404
1873 #, no-wrap
1874 msgid ""
1875 "    if (nftw((argc E<lt> 2) ? \".\" : argv[1], display_info, 20, flags)\n"
1876 "            == -1) {\n"
1877 "        perror(\"nftw\");\n"
1878 "        exit(EXIT_FAILURE);\n"
1879 "    }\n"
1880 "    exit(EXIT_SUCCESS);\n"
1881 "}\n"
1882 msgstr ""
1883
1884 #. type: Plain text
1885 #: build/C/man3/ftw.3:409
1886 msgid "B<stat>(2), B<fts>(3), B<readdir>(3)"
1887 msgstr ""
1888
1889 #. type: TH
1890 #: build/C/man3/getfsent.3:27
1891 #, no-wrap
1892 msgid "GETFSENT"
1893 msgstr ""
1894
1895 #. type: TH
1896 #: build/C/man3/getfsent.3:27
1897 #, no-wrap
1898 msgid "2002-02-28"
1899 msgstr ""
1900
1901 #. type: TH
1902 #: build/C/man3/getfsent.3:27
1903 #, no-wrap
1904 msgid "GNU"
1905 msgstr ""
1906
1907 #. type: Plain text
1908 #: build/C/man3/getfsent.3:30
1909 msgid "getfsent, getfsspec, getfsfile, setfsent, endfsent - handle fstab entries"
1910 msgstr ""
1911
1912 #. type: Plain text
1913 #: build/C/man3/getfsent.3:32
1914 msgid "B<#include E<lt>fstab.hE<gt>>"
1915 msgstr ""
1916
1917 #. type: Plain text
1918 #: build/C/man3/getfsent.3:34
1919 msgid "B<void endfsent(void);>"
1920 msgstr ""
1921
1922 #. type: Plain text
1923 #: build/C/man3/getfsent.3:36
1924 msgid "B<struct fstab *getfsent(void);>"
1925 msgstr ""
1926
1927 #. type: Plain text
1928 #: build/C/man3/getfsent.3:38
1929 msgid "B<struct fstab *getfsfile(const char *>I<mount_point>B<);>"
1930 msgstr ""
1931
1932 #. type: Plain text
1933 #: build/C/man3/getfsent.3:40
1934 msgid "B<struct fstab *getfsspec(const char *>I<special_file>B<);>"
1935 msgstr ""
1936
1937 #. type: Plain text
1938 #: build/C/man3/getfsent.3:42
1939 msgid "B<int setfsent(void);>"
1940 msgstr ""
1941
1942 #. type: Plain text
1943 #: build/C/man3/getfsent.3:48
1944 msgid ""
1945 "These functions read from the file I</etc/fstab>.  The I<struct fstab> is "
1946 "defined by:"
1947 msgstr ""
1948
1949 #. type: Plain text
1950 #: build/C/man3/getfsent.3:60
1951 #, no-wrap
1952 msgid ""
1953 "struct fstab {\n"
1954 "    char       *fs_spec;       /* block device name */\n"
1955 "    char       *fs_file;       /* mount point */\n"
1956 "    char       *fs_vfstype;    /* file-sysem type */\n"
1957 "    char       *fs_mntops;     /* mount options */\n"
1958 "    const char *fs_type;       /* rw/rq/ro/sw/xx option */\n"
1959 "    int         fs_freq;       /* dump frequency, in days */\n"
1960 "    int         fs_passno;     /* pass number on parallel dump */\n"
1961 "};\n"
1962 msgstr ""
1963
1964 #. type: Plain text
1965 #: build/C/man3/getfsent.3:68
1966 msgid ""
1967 "Here the field I<fs_type> contains (on a *BSD system)  one of the five "
1968 "strings \"rw\", \"rq\", \"ro\", \"sw\", \"xx\" (read-write, read-write with "
1969 "quota, read-only, swap, ignore)."
1970 msgstr ""
1971
1972 #. type: Plain text
1973 #: build/C/man3/getfsent.3:72
1974 msgid ""
1975 "The function B<setfsent>()  opens the file when required and positions it at "
1976 "the first line."
1977 msgstr ""
1978
1979 #. type: Plain text
1980 #: build/C/man3/getfsent.3:77
1981 msgid ""
1982 "The function B<getfsent>()  parses the next line from the file.  (After "
1983 "opening it when required.)"
1984 msgstr ""
1985
1986 #. type: Plain text
1987 #: build/C/man3/getfsent.3:81
1988 msgid "The function B<endfsent>()  closes the file when required."
1989 msgstr ""
1990
1991 #. type: Plain text
1992 #: build/C/man3/getfsent.3:90
1993 msgid ""
1994 "The function B<getfsspec>()  searches the file from the start and returns "
1995 "the first entry found for which the I<fs_spec> field matches the "
1996 "I<special_file> argument."
1997 msgstr ""
1998
1999 #. type: Plain text
2000 #: build/C/man3/getfsent.3:99
2001 msgid ""
2002 "The function B<getfsfile>()  searches the file from the start and returns "
2003 "the first entry found for which the I<fs_file> field matches the "
2004 "I<mount_point> argument."
2005 msgstr ""
2006
2007 #.  .SH HISTORY
2008 #.  The
2009 #.  .BR getfsent ()
2010 #.  function appeared in 4.0BSD; the other four functions appeared in 4.3BSD.
2011 #. type: Plain text
2012 #: build/C/man3/getfsent.3:115
2013 msgid ""
2014 "Upon success, the functions B<getfsent>(), B<getfsfile>(), and "
2015 "B<getfsspec>()  return a pointer to a I<struct fstab>, while B<setfsent>()  "
2016 "returns 1.  Upon failure or end-of-file, these functions return NULL and 0, "
2017 "respectively."
2018 msgstr ""
2019
2020 #. type: Plain text
2021 #: build/C/man3/getfsent.3:127
2022 msgid ""
2023 "These functions are not in POSIX.1-2001.  Several operating systems have "
2024 "them, e.g., *BSD, SunOS, Digital UNIX, AIX (which also has a "
2025 "B<getfstype>()).  HP-UX has functions of the same names, that however use a "
2026 "I<struct checklist> instead of a I<struct fstab>, and calls these functions "
2027 "obsolete, superseded by B<getmntent>(3)."
2028 msgstr ""
2029
2030 #. type: Plain text
2031 #: build/C/man3/getfsent.3:129
2032 msgid "These functions are not thread-safe."
2033 msgstr ""
2034
2035 #. type: Plain text
2036 #: build/C/man3/getfsent.3:139
2037 msgid ""
2038 "Since Linux allows mounting a block special device in several places, and "
2039 "since several devices can have the same mount point, where the last device "
2040 "with a given mount point is the interesting one, while B<getfsfile>()  and "
2041 "B<getfsspec>()  only return the first occurrence, these two functions are "
2042 "not suitable for use under Linux."
2043 msgstr ""
2044
2045 #. type: Plain text
2046 #: build/C/man3/getfsent.3:142
2047 msgid "B<getmntent>(3), B<fstab>(5)"
2048 msgstr ""
2049
2050 #. type: TH
2051 #: build/C/man3/getmntent.3:32
2052 #, no-wrap
2053 msgid "GETMNTENT"
2054 msgstr ""
2055
2056 #. type: TH
2057 #: build/C/man3/getmntent.3:32
2058 #, no-wrap
2059 msgid "2009-09-15"
2060 msgstr ""
2061
2062 #. type: Plain text
2063 #: build/C/man3/getmntent.3:36
2064 msgid ""
2065 "getmntent, setmntent, addmntent, endmntent, hasmntopt, getmntent_r - get "
2066 "filesystem descriptor file entry"
2067 msgstr ""
2068
2069 #. type: Plain text
2070 #: build/C/man3/getmntent.3:40
2071 #, no-wrap
2072 msgid ""
2073 "B<#include E<lt>stdio.hE<gt>>\n"
2074 "B<#include E<lt>mntent.hE<gt>>\n"
2075 msgstr ""
2076
2077 #. type: Plain text
2078 #: build/C/man3/getmntent.3:42
2079 #, no-wrap
2080 msgid "B<FILE *setmntent(const char *>I<filename>B<, const char *>I<type>B<);>\n"
2081 msgstr ""
2082
2083 #. type: Plain text
2084 #: build/C/man3/getmntent.3:44
2085 #, no-wrap
2086 msgid "B<struct mntent *getmntent(FILE *>I<fp>B<);>\n"
2087 msgstr ""
2088
2089 #. type: Plain text
2090 #: build/C/man3/getmntent.3:46
2091 #, no-wrap
2092 msgid "B<int addmntent(FILE *>I<fp>B<, const struct mntent *>I<mnt>B<);>\n"
2093 msgstr ""
2094
2095 #. type: Plain text
2096 #: build/C/man3/getmntent.3:48
2097 #, no-wrap
2098 msgid "B<int endmntent(FILE *>I<fp>B<);>\n"
2099 msgstr ""
2100
2101 #. type: Plain text
2102 #: build/C/man3/getmntent.3:50
2103 #, no-wrap
2104 msgid "B<char *hasmntopt(const struct mntent *>I<mnt>B<, const char *>I<opt>B<);>\n"
2105 msgstr ""
2106
2107 #. type: Plain text
2108 #: build/C/man3/getmntent.3:53
2109 #, no-wrap
2110 msgid ""
2111 "/* GNU extension */\n"
2112 "B<#include E<lt>mntent.hE<gt>>\n"
2113 msgstr ""
2114
2115 #. type: Plain text
2116 #: build/C/man3/getmntent.3:56
2117 #, no-wrap
2118 msgid ""
2119 "B<struct mntent *getmntent_r(FILE *>I<fp>B<, struct mntent *>I<mntbuf>B<,>\n"
2120 "B<                           char *>I<buf>B<, int >I<buflen>B<);>\n"
2121 msgstr ""
2122
2123 #. type: Plain text
2124 #: build/C/man3/getmntent.3:61 build/C/man2/stat.2:59
2125 msgid "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
2126 msgstr ""
2127
2128 #. type: Plain text
2129 #: build/C/man3/getmntent.3:65
2130 msgid "B<getmntent_r>(): _BSD_SOURCE || _SVID_SOURCE"
2131 msgstr ""
2132
2133 #. type: Plain text
2134 #: build/C/man3/getmntent.3:70
2135 msgid ""
2136 "These routines are used to access the filesystem description file "
2137 "I</etc/fstab> and the mounted filesystem description file I</etc/mtab>."
2138 msgstr ""
2139
2140 #. type: Plain text
2141 #: build/C/man3/getmntent.3:84
2142 msgid ""
2143 "The B<setmntent>()  function opens the filesystem description file "
2144 "I<filename> and returns a file pointer which can be used by B<getmntent>().  "
2145 "The argument I<type> is the type of access required and can take the same "
2146 "values as the I<mode> argument of B<fopen>(3)."
2147 msgstr ""
2148
2149 #. type: Plain text
2150 #: build/C/man3/getmntent.3:96
2151 msgid ""
2152 "The B<getmntent>()  function reads the next line from the filesystem "
2153 "description file I<fp> and returns a pointer to a structure containing the "
2154 "broken out fields from a line in the file.  The pointer points to a static "
2155 "area of memory which is overwritten by subsequent calls to B<getmntent>()."
2156 msgstr ""
2157
2158 #. type: Plain text
2159 #: build/C/man3/getmntent.3:106
2160 msgid ""
2161 "The B<addmntent>()  function adds the I<mntent> structure I<mnt> to the end "
2162 "of the open file I<fp>."
2163 msgstr ""
2164
2165 #. type: Plain text
2166 #: build/C/man3/getmntent.3:111
2167 msgid "The B<endmntent>()  function closes the filesystem description file I<fp>."
2168 msgstr ""
2169
2170 #. type: Plain text
2171 #: build/C/man3/getmntent.3:128
2172 msgid ""
2173 "The B<hasmntopt>()  function scans the I<mnt_opts> field (see below)  of the "
2174 "I<mntent> structure I<mnt> for a substring that matches I<opt>.  See "
2175 "I<E<lt>mntent.hE<gt>> and B<mount>(8)  for valid mount options."
2176 msgstr ""
2177
2178 #. type: Plain text
2179 #: build/C/man3/getmntent.3:142
2180 msgid ""
2181 "The reentrant B<getmntent_r>()  function is similar to B<getmntent>(), but "
2182 "stores the I<struct mount> in the provided I<*mntbuf> and stores the strings "
2183 "pointed to by the entries in that struct in the provided array I<buf> of "
2184 "size I<buflen>."
2185 msgstr ""
2186
2187 #. type: Plain text
2188 #: build/C/man3/getmntent.3:148
2189 msgid "The I<mntent> structure is defined in I<E<lt>mntent.hE<gt>> as follows:"
2190 msgstr ""
2191
2192 #. type: Plain text
2193 #: build/C/man3/getmntent.3:159
2194 #, no-wrap
2195 msgid ""
2196 "struct mntent {\n"
2197 "    char *mnt_fsname;   /* name of mounted filesystem */\n"
2198 "    char *mnt_dir;      /* filesystem path prefix */\n"
2199 "    char *mnt_type;     /* mount type (see mntent.h) */\n"
2200 "    char *mnt_opts;     /* mount options (see mntent.h) */\n"
2201 "    int   mnt_freq;     /* dump frequency in days */\n"
2202 "    int   mnt_passno;   /* pass number on parallel fsck */\n"
2203 "};\n"
2204 msgstr ""
2205
2206 #. type: Plain text
2207 #: build/C/man3/getmntent.3:174
2208 msgid ""
2209 "Since fields in the mtab and fstab files are separated by whitespace, octal "
2210 "escapes are used to represent the four characters space (\\e040), tab "
2211 "(\\e011), newline (\\e012) and backslash (\\e134) in those files when they "
2212 "occur in one of the four strings in a I<mntent> structure.  The routines "
2213 "B<addmntent>()  and B<getmntent>()  will convert from string representation "
2214 "to escaped representation and back."
2215 msgstr ""
2216
2217 #. type: Plain text
2218 #: build/C/man3/getmntent.3:183
2219 msgid ""
2220 "The B<getmntent>()  and B<getmntent_r>()  functions return a pointer to the "
2221 "I<mntent> structure or NULL on failure."
2222 msgstr ""
2223
2224 #. type: Plain text
2225 #: build/C/man3/getmntent.3:187
2226 msgid "The B<addmntent>()  function returns 0 on success and 1 on failure."
2227 msgstr ""
2228
2229 #. type: Plain text
2230 #: build/C/man3/getmntent.3:191
2231 msgid "The B<endmntent>()  function always returns 1."
2232 msgstr ""
2233
2234 #. type: Plain text
2235 #: build/C/man3/getmntent.3:196
2236 msgid ""
2237 "The B<hasmntopt>()  function returns the address of the substring if a match "
2238 "is found and NULL otherwise."
2239 msgstr ""
2240
2241 #. type: SH
2242 #: build/C/man3/getmntent.3:196 build/C/man2/spu_create.2:240
2243 #, no-wrap
2244 msgid "FILES"
2245 msgstr ""
2246
2247 #. type: Plain text
2248 #: build/C/man3/getmntent.3:200
2249 #, no-wrap
2250 msgid ""
2251 "/etc/fstab          filesystem description file\n"
2252 "/etc/mtab           mounted filesystem description file\n"
2253 msgstr ""
2254
2255 #. type: Plain text
2256 #: build/C/man3/getmntent.3:207
2257 msgid ""
2258 "The nonreentrant functions are from SunOS 4.1.3.  A routine B<getmntent_r>()  "
2259 "was introduced in HP-UX 10, but it returns an int.  The prototype shown "
2260 "above is glibc-only."
2261 msgstr ""
2262
2263 #. type: Plain text
2264 #: build/C/man3/getmntent.3:219
2265 msgid ""
2266 "System V also has a B<getmntent>()  function but the calling sequence "
2267 "differs, and the returned structure is different.  Under System V "
2268 "I</etc/mnttab> is used.  4.4BSD and Digital UNIX have a routine "
2269 "B<getmntinfo>(), a wrapper around the system call B<getfsstat>()."
2270 msgstr ""
2271
2272 #. type: Plain text
2273 #: build/C/man3/getmntent.3:223
2274 msgid "B<fopen>(3), B<fstab>(5), B<mount>(8)"
2275 msgstr ""
2276
2277 #. type: TH
2278 #: build/C/man2/getxattr.2:25
2279 #, no-wrap
2280 msgid "GETXATTR"
2281 msgstr ""
2282
2283 #. type: TH
2284 #: build/C/man2/getxattr.2:25 build/C/man2/removexattr.2:25 build/C/man2/setxattr.2:25
2285 #, no-wrap
2286 msgid "2013-01-19"
2287 msgstr ""
2288
2289 #. type: Plain text
2290 #: build/C/man2/getxattr.2:28
2291 msgid "getxattr, lgetxattr, fgetxattr - retrieve an extended attribute value"
2292 msgstr ""
2293
2294 #. type: Plain text
2295 #: build/C/man2/getxattr.2:33 build/C/man2/listxattr.2:33 build/C/man2/removexattr.2:33 build/C/man2/setxattr.2:33
2296 #, no-wrap
2297 msgid ""
2298 "B<#include E<lt>sys/types.hE<gt>>\n"
2299 "B<#include E<lt>attr/xattr.hE<gt>>\n"
2300 msgstr ""
2301
2302 #. type: Plain text
2303 #: build/C/man2/getxattr.2:40
2304 #, no-wrap
2305 msgid ""
2306 "B<ssize_t getxattr(const char\\ *>I<path>B<, const char\\ *>I<name>B<,>\n"
2307 "B<                 void\\ *>I<value>B<, size_t >I<size>B<);>\n"
2308 "B<ssize_t lgetxattr(const char\\ *>I<path>B<, const char\\ *>I<name>B<,>\n"
2309 "B<                 void\\ *>I<value>B<, size_t >I<size>B<);>\n"
2310 "B<ssize_t fgetxattr(int >I<fd>B<, const char\\ *>I<name>B<,>\n"
2311 "B<                 void\\ *>I<value>B<, size_t >I<size>B<);>\n"
2312 msgstr ""
2313
2314 #. type: Plain text
2315 #: build/C/man2/getxattr.2:53 build/C/man2/setxattr.2:53
2316 msgid ""
2317 "Extended attributes are I<name>:I<value> pairs associated with inodes "
2318 "(files, directories, symbolic links, etc.).  They are extensions to the "
2319 "normal attributes which are associated with all inodes in the system (i.e., "
2320 "the B<stat>(2)  data).  A complete overview of extended attributes concepts "
2321 "can be found in B<attr>(5)."
2322 msgstr ""
2323
2324 #. type: Plain text
2325 #: build/C/man2/getxattr.2:65
2326 msgid ""
2327 "B<getxattr>()  retrieves the I<value> of the extended attribute identified "
2328 "by I<name> and associated with the given I<path> in the filesystem.  The "
2329 "length of the attribute I<value> is returned."
2330 msgstr ""
2331
2332 #. type: Plain text
2333 #: build/C/man2/getxattr.2:71
2334 msgid ""
2335 "B<lgetxattr>()  is identical to B<getxattr>(), except in the case of a "
2336 "symbolic link, where the link itself is interrogated, not the file that it "
2337 "refers to."
2338 msgstr ""
2339
2340 #. type: Plain text
2341 #: build/C/man2/getxattr.2:81
2342 msgid ""
2343 "B<fgetxattr>()  is identical to B<getxattr>(), only the open file referred "
2344 "to by I<fd> (as returned by B<open>(2))  is interrogated in place of "
2345 "I<path>."
2346 msgstr ""
2347
2348 #. type: Plain text
2349 #: build/C/man2/getxattr.2:89
2350 msgid ""
2351 "An extended attribute I<name> is a simple null-terminated string.  The name "
2352 "includes a namespace prefix; there may be several, disjoint namespaces "
2353 "associated with an individual inode.  The value of an extended attribute is "
2354 "a chunk of arbitrary textual or binary data of specified length."
2355 msgstr ""
2356
2357 #. type: Plain text
2358 #: build/C/man2/getxattr.2:96
2359 msgid ""
2360 "An empty buffer of I<size> zero can be passed into these calls to return the "
2361 "current size of the named extended attribute, which can be used to estimate "
2362 "the size of a buffer which is sufficiently large to hold the value "
2363 "associated with the extended attribute."
2364 msgstr ""
2365
2366 #. type: Plain text
2367 #: build/C/man2/getxattr.2:100
2368 msgid ""
2369 "The interface is designed to allow guessing of initial buffer sizes, and to "
2370 "enlarge buffers when the return value indicates that the buffer provided was "
2371 "too small."
2372 msgstr ""
2373
2374 #. type: Plain text
2375 #: build/C/man2/getxattr.2:106
2376 msgid ""
2377 "On success, a positive number is returned indicating the size of the "
2378 "extended attribute value.  On failure, -1 is returned and I<errno> is set "
2379 "appropriately."
2380 msgstr ""
2381
2382 #. type: TP
2383 #: build/C/man2/getxattr.2:107 build/C/man2/removexattr.2:84 build/C/man2/setxattr.2:119
2384 #, no-wrap
2385 msgid "B<ENOATTR>"
2386 msgstr ""
2387
2388 #. type: Plain text
2389 #: build/C/man2/getxattr.2:116
2390 msgid ""
2391 "The named attribute does not exist, or the process has no access to this "
2392 "attribute.  (B<ENOATTR> is defined to be a synonym for B<ENODATA> in "
2393 "I<E<lt>attr/xattr.hE<gt>>.)"
2394 msgstr ""
2395
2396 #. type: TP
2397 #: build/C/man2/getxattr.2:116 build/C/man2/listxattr.2:128 build/C/man2/removexattr.2:92 build/C/man2/setxattr.2:131
2398 #, no-wrap
2399 msgid "B<ENOTSUP>"
2400 msgstr ""
2401
2402 #. type: Plain text
2403 #: build/C/man2/getxattr.2:119 build/C/man2/listxattr.2:131 build/C/man2/removexattr.2:95
2404 msgid "Extended attributes are not supported by the filesystem, or are disabled."
2405 msgstr ""
2406
2407 #. type: TP
2408 #: build/C/man2/getxattr.2:119 build/C/man2/listxattr.2:131
2409 #, no-wrap
2410 msgid "B<ERANGE>"
2411 msgstr ""
2412
2413 #. type: Plain text
2414 #: build/C/man2/getxattr.2:126
2415 msgid "The I<size> of the I<value> buffer is too small to hold the result."
2416 msgstr ""
2417
2418 #. type: Plain text
2419 #: build/C/man2/getxattr.2:130 build/C/man2/listxattr.2:142 build/C/man2/removexattr.2:99 build/C/man2/setxattr.2:141
2420 msgid "In addition, the errors documented in B<stat>(2)  can also occur."
2421 msgstr ""
2422
2423 #. type: Plain text
2424 #: build/C/man2/getxattr.2:133 build/C/man2/listxattr.2:145 build/C/man2/removexattr.2:102 build/C/man2/setxattr.2:144
2425 msgid ""
2426 "These system calls have been available on Linux since kernel 2.4; glibc "
2427 "support is provided since version 2.3."
2428 msgstr ""
2429
2430 #.  .SH AUTHORS
2431 #.  Andreas Gruenbacher,
2432 #.  .RI < a.gruenbacher@computer.org >
2433 #.  and the SGI XFS development team,
2434 #.  .RI < linux-xfs@oss.sgi.com >.
2435 #.  Please send any bug reports or comments to these addresses.
2436 #. type: Plain text
2437 #: build/C/man2/getxattr.2:141 build/C/man2/listxattr.2:153 build/C/man2/removexattr.2:110 build/C/man2/setxattr.2:152
2438 msgid "These system calls are Linux-specific."
2439 msgstr ""
2440
2441 #. type: Plain text
2442 #: build/C/man2/getxattr.2:151
2443 msgid ""
2444 "B<getfattr>(1), B<setfattr>(1), B<listxattr>(2), B<open>(2), "
2445 "B<removexattr>(2), B<setxattr>(2), B<stat>(2), B<attr>(5), B<symlink>(7)"
2446 msgstr ""
2447
2448 #. type: TH
2449 #: build/C/man2/listxattr.2:25
2450 #, no-wrap
2451 msgid "LISTXATTR"
2452 msgstr ""
2453
2454 #. type: TH
2455 #: build/C/man2/listxattr.2:25
2456 #, no-wrap
2457 msgid "2013-04-09"
2458 msgstr ""
2459
2460 #. type: Plain text
2461 #: build/C/man2/listxattr.2:28
2462 msgid "listxattr, llistxattr, flistxattr - list extended attribute names"
2463 msgstr ""
2464
2465 #. type: Plain text
2466 #: build/C/man2/listxattr.2:39
2467 #, no-wrap
2468 msgid ""
2469 "B<ssize_t listxattr(const char\\ *>I<path>B<, char\\ *>I<list>B<, size_t "
2470 ">I<size>B<);>\n"
2471 "B<ssize_t llistxattr(const char\\ *>I<path>B<, char\\ *>I<list>B<, size_t "
2472 ">I<size>B<);>\n"
2473 "B<ssize_t flistxattr(int >I<fd>B<, char\\ *>I<list>B<, size_t "
2474 ">I<size>B<);>\n"
2475 msgstr ""
2476
2477 #. type: Plain text
2478 #: build/C/man2/listxattr.2:50
2479 msgid ""
2480 "Extended attributes are name:value pairs associated with inodes (files, "
2481 "directories, symbolic links, etc.).  They are extensions to the normal "
2482 "attributes which are associated with all inodes in the system (i.e., the "
2483 "B<stat>(2)  data).  A complete overview of extended attributes concepts can "
2484 "be found in B<attr>(5)."
2485 msgstr ""
2486
2487 #. type: Plain text
2488 #: build/C/man2/listxattr.2:66
2489 msgid ""
2490 "B<listxattr>()  retrieves the list of extended attribute names associated "
2491 "with the given I<path> in the filesystem.  The retrieved list is placed in "
2492 "I<list>, a caller-allocated buffer whose size (in bytes) is specified in the "
2493 "argument I<size>.  The list is the set of (null-terminated) names, one after "
2494 "the other.  Names of extended attributes to which the calling process does "
2495 "not have access may be omitted from the list.  The length of the attribute "
2496 "name I<list> is returned."
2497 msgstr ""
2498
2499 #. type: Plain text
2500 #: build/C/man2/listxattr.2:73
2501 msgid ""
2502 "B<llistxattr>()  is identical to B<listxattr>(), except in the case of a "
2503 "symbolic link, where the list of names of extended attributes associated "
2504 "with the link itself is retrieved, not the file that it refers to."
2505 msgstr ""
2506
2507 #. type: Plain text
2508 #: build/C/man2/listxattr.2:83
2509 msgid ""
2510 "B<flistxattr>()  is identical to B<listxattr>(), only the open file referred "
2511 "to by I<fd> (as returned by B<open>(2))  is interrogated in place of "
2512 "I<path>."
2513 msgstr ""
2514
2515 #. type: Plain text
2516 #: build/C/man2/listxattr.2:89
2517 msgid ""
2518 "A single extended attribute I<name> is a simple null-terminated string.  The "
2519 "name includes a namespace prefix; there may be several, disjoint namespaces "
2520 "associated with an individual inode."
2521 msgstr ""
2522
2523 #. type: Plain text
2524 #: build/C/man2/listxattr.2:95
2525 msgid ""
2526 "An empty buffer of I<size> zero can be passed into these calls to return the "
2527 "current size of the list of extended attribute names, which can be used to "
2528 "estimate the size of a buffer which is sufficiently large to hold the list "
2529 "of names."
2530 msgstr ""
2531
2532 #. type: SS
2533 #: build/C/man2/listxattr.2:95
2534 #, no-wrap
2535 msgid "Example"
2536 msgstr ""
2537
2538 #. type: Plain text
2539 #: build/C/man2/listxattr.2:100
2540 msgid ""
2541 "The I<list> of names is returned as an unordered array of null-terminated "
2542 "character strings (attribute names are separated by null bytes "
2543 "(\\(aq\\e0\\(aq)), like this:"
2544 msgstr ""
2545
2546 #. type: Plain text
2547 #: build/C/man2/listxattr.2:105
2548 #, no-wrap
2549 msgid "user.name1\\e0system.name1\\e0user.name2\\e0\n"
2550 msgstr ""
2551
2552 #. type: Plain text
2553 #: build/C/man2/listxattr.2:113
2554 msgid ""
2555 "Filesystems like ext2, ext3 and XFS which implement POSIX ACLs using "
2556 "extended attributes, might return a I<list> like this:"
2557 msgstr ""
2558
2559 #. type: Plain text
2560 #: build/C/man2/listxattr.2:118
2561 #, no-wrap
2562 msgid "system.posix_acl_access\\e0system.posix_acl_default\\e0\n"
2563 msgstr ""
2564
2565 #. type: Plain text
2566 #: build/C/man2/listxattr.2:127
2567 msgid ""
2568 "On success, a nonnegative number is returned indicating the size of the "
2569 "extended attribute name list.  On failure, -1 is returned and I<errno> is "
2570 "set appropriately."
2571 msgstr ""
2572
2573 #. type: Plain text
2574 #: build/C/man2/listxattr.2:138
2575 msgid "The I<size> of the I<list> buffer is too small to hold the result."
2576 msgstr ""
2577
2578 #. type: Plain text
2579 #: build/C/man2/listxattr.2:163
2580 msgid ""
2581 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<open>(2), "
2582 "B<removexattr>(2), B<setxattr>(2), B<stat>(2), B<attr>(5), B<symlink>(7)"
2583 msgstr ""
2584
2585 #. type: TH
2586 #: build/C/man2/mount.2:40
2587 #, no-wrap
2588 msgid "MOUNT"
2589 msgstr ""
2590
2591 #. type: TH
2592 #: build/C/man2/mount.2:40
2593 #, no-wrap
2594 msgid "2012-07-05"
2595 msgstr ""
2596
2597 #. type: Plain text
2598 #: build/C/man2/mount.2:43
2599 msgid "mount - mount filesystem"
2600 msgstr ""
2601
2602 #. type: Plain text
2603 #: build/C/man2/mount.2:46 build/C/man2/umount.2:36
2604 #, no-wrap
2605 msgid "B<#include E<lt>sys/mount.hE<gt>>\n"
2606 msgstr ""
2607
2608 #. type: Plain text
2609 #: build/C/man2/mount.2:50
2610 #, no-wrap
2611 msgid ""
2612 "B<int mount(const char *>I<source>B<, const char *>I<target>B<,>\n"
2613 "B<          const char *>I<filesystemtype>B<, unsigned long "
2614 ">I<mountflags>B<,>\n"
2615 "B<          const void *>I<data>B<);>\n"
2616 msgstr ""
2617
2618 #. type: Plain text
2619 #: build/C/man2/mount.2:58
2620 msgid ""
2621 "B<mount>()  attaches the filesystem specified by I<source> (which is often a "
2622 "device name, but can also be a directory name or a dummy) to the directory "
2623 "specified by I<target>."
2624 msgstr ""
2625
2626 #. type: Plain text
2627 #: build/C/man2/mount.2:62
2628 msgid ""
2629 "Appropriate privilege (Linux: the B<CAP_SYS_ADMIN> capability) is required "
2630 "to mount filesystems."
2631 msgstr ""
2632
2633 #.  Multiple mounts on same mount point: since 2.3.99pre7.
2634 #. type: Plain text
2635 #: build/C/man2/mount.2:67
2636 msgid ""
2637 "Since Linux 2.4 a single filesystem can be visible at multiple mount points, "
2638 "and multiple mounts can be stacked on the same mount point."
2639 msgstr ""
2640
2641 #. type: Plain text
2642 #: build/C/man2/mount.2:76
2643 msgid ""
2644 "Values for the I<filesystemtype> argument supported by the kernel are listed "
2645 "in I</proc/filesystems> (e.g., \"minix\", \"ext2\", \"ext3\", \"jfs\", "
2646 "\"xfs\", \"reiserfs\", \"msdos\", \"proc\", \"nfs\", \"iso9660\").  Further "
2647 "types may become available when the appropriate modules are loaded."
2648 msgstr ""
2649
2650 #.  (as defined in \fI<linux/fs.h>\fP for libc4 and libc5
2651 #.  and in \fI<sys/mount.h>\fP for glibc2)
2652 #.  FIXME 2.6.15 added flags for "shared subtree" functionality:
2653 #.  MS_UNBINDABLE, MS_PRIVATE, MS_SHARED, MS_SLAVE
2654 #
2655 #.      MS_PRIVATE.
2656 #.              All mounts are private by default. Previously shared mouns
2657 #.              can be remarked PRIVATE.
2658 #.      MS_SHARED
2659 #.              Mount points that are marked SHARED propagate mount events
2660 #.              to one another after bing cloned.
2661 #.      MS_SLAVE
2662 #.              A previously shared mount point can be marked SALVE, meaning
2663 #.              it receives propagated events, but does not propagate events.
2664 #.      MS_UNBINDABLE
2665 #.              mounts cannot be bound into other places, and will not be
2666 #.              propagated into new subtrees    
2667 #.      mount --make-rshared ==> MS_SHARED | MS_REC
2668 #
2669 #.  These settings are visible in proc/mountinfo
2670 #
2671 #
2672 #.  These need to be documented on this page.
2673 #.  See:
2674 #.  Documentation/filesystems/sharedsubtree.txt
2675 #
2676 #.  http://lwn.net/Articles/159077/
2677 #
2678 #.  http://myweb.sudhaa.com:2022/~ram/sharedsubtree/paper/sharedsubtree.1.pdf
2679 #.  Shared-Subtree Concept, Implementation, and Applications in Linux
2680 #.  Al Viro viro@ftp.linux.org.uk
2681 #.  Ram Pai linuxram@us.ibm.com
2682 #
2683 #.  http://foss.in/2005/slides/sharedsubtree1.pdf
2684 #.  Shared Subtree Concept and Implementation in the Linux Kernel
2685 #.  Ram Pai
2686 #
2687 #.  http://www.ibm.com/developerworks/linux/library/l-mount-namespaces/index.html
2688 #.      Applying mount namespaces
2689 #
2690 #.      Uncover practical applications for advanced Linux mounts features
2691 #.      Serge E. Hallyn (sergeh@us.ibm.com), Software Engineer, IBM 
2692 #.      Ram Pai (linuxram@us.ibm.com), Software Engineer, IBM
2693 #.      Date:  17 Sep 2007
2694 #
2695 #.  2.6.25 Added MS_I_VERSION, which needs to be documented.
2696 #. type: Plain text
2697 #: build/C/man2/mount.2:131
2698 msgid ""
2699 "The I<mountflags> argument may have the magic number 0xC0ED (B<MS_MGC_VAL>)  "
2700 "in the top 16 bits (this was required in kernel versions prior to 2.4, but "
2701 "is no longer required and ignored if specified), and various mount flags in "
2702 "the low order 16 bits:"
2703 msgstr ""
2704
2705 #. type: TP
2706 #: build/C/man2/mount.2:131
2707 #, no-wrap
2708 msgid "B<MS_BIND> (Linux 2.4 onward)"
2709 msgstr ""
2710
2711 #.  since 2.4.0-test9
2712 #.  with the exception of the "hidden" MS_REC mountflags bit
2713 #. type: Plain text
2714 #: build/C/man2/mount.2:150
2715 msgid ""
2716 "Perform a bind mount, making a file or a directory subtree visible at "
2717 "another point within a filesystem.  Bind mounts may cross filesystem "
2718 "boundaries and span B<chroot>(2)  jails.  The I<filesystemtype> and I<data> "
2719 "arguments are ignored.  Up until Linux 2.6.26, I<mountflags> was also "
2720 "ignored (the bind mount has the same mount options as the underlying mount "
2721 "point)."
2722 msgstr ""
2723
2724 #. type: TP
2725 #: build/C/man2/mount.2:150
2726 #, no-wrap
2727 msgid "B<MS_DIRSYNC> (since Linux 2.5.19)"
2728 msgstr ""
2729
2730 #. type: Plain text
2731 #: build/C/man2/mount.2:156
2732 msgid ""
2733 "Make directory changes on this filesystem synchronous.  (This property can "
2734 "be obtained for individual directories or subtrees using B<chattr>(1).)"
2735 msgstr ""
2736
2737 #. type: TP
2738 #: build/C/man2/mount.2:156
2739 #, no-wrap
2740 msgid "B<MS_MANDLOCK>"
2741 msgstr ""
2742
2743 #.  FIXME Say more about MS_MOVE
2744 #. type: Plain text
2745 #: build/C/man2/mount.2:163
2746 msgid ""
2747 "Permit mandatory locking on files in this filesystem.  (Mandatory locking "
2748 "must still be enabled on a per-file basis, as described in B<fcntl>(2).)"
2749 msgstr ""
2750
2751 #. type: TP
2752 #: build/C/man2/mount.2:163
2753 #, no-wrap
2754 msgid "B<MS_MOVE>"
2755 msgstr ""
2756
2757 #. type: Plain text
2758 #: build/C/man2/mount.2:174
2759 msgid ""
2760 "Move a subtree.  I<source> specifies an existing mount point and I<target> "
2761 "specifies the new location.  The move is atomic: at no point is the subtree "
2762 "unmounted.  The I<filesystemtype>, I<mountflags>, and I<data> arguments are "
2763 "ignored."
2764 msgstr ""
2765
2766 #. type: TP
2767 #: build/C/man2/mount.2:174
2768 #, no-wrap
2769 msgid "B<MS_NOATIME>"
2770 msgstr ""
2771
2772 #. type: Plain text
2773 #: build/C/man2/mount.2:177
2774 msgid "Do not update access times for (all types of) files on this filesystem."
2775 msgstr ""
2776
2777 #. type: TP
2778 #: build/C/man2/mount.2:177
2779 #, no-wrap
2780 msgid "B<MS_NODEV>"
2781 msgstr ""
2782
2783 #. type: Plain text
2784 #: build/C/man2/mount.2:180
2785 msgid "Do not allow access to devices (special files) on this filesystem."
2786 msgstr ""
2787
2788 #. type: TP
2789 #: build/C/man2/mount.2:180
2790 #, no-wrap
2791 msgid "B<MS_NODIRATIME>"
2792 msgstr ""
2793
2794 #. type: Plain text
2795 #: build/C/man2/mount.2:189
2796 msgid ""
2797 "Do not update access times for directories on this filesystem.  This flag "
2798 "provides a subset of the functionality provided by B<MS_NOATIME>; that is, "
2799 "B<MS_NOATIME> implies B<MS_NODIRATIME>."
2800 msgstr ""
2801
2802 #. type: TP
2803 #: build/C/man2/mount.2:189
2804 #, no-wrap
2805 msgid "B<MS_NOEXEC>"
2806 msgstr ""
2807
2808 #.  (Possibly useful for a filesystem that contains non-Linux executables.
2809 #.  Often used as a security feature, e.g., to make sure that restricted
2810 #.  users cannot execute files uploaded using ftp or so.)
2811 #. type: Plain text
2812 #: build/C/man2/mount.2:195
2813 msgid "Do not allow programs to be executed from this filesystem."
2814 msgstr ""
2815
2816 #. type: TP
2817 #: build/C/man2/mount.2:195
2818 #, no-wrap
2819 msgid "B<MS_NOSUID>"
2820 msgstr ""
2821
2822 #.  (This is a security feature to prevent users executing set-user-ID and
2823 #.  set-group-ID programs from removable disk devices.)
2824 #. type: Plain text
2825 #: build/C/man2/mount.2:201
2826 msgid ""
2827 "Do not honor set-user-ID and set-group-ID bits when executing programs from "
2828 "this filesystem."
2829 msgstr ""
2830
2831 #. type: TP
2832 #: build/C/man2/mount.2:201
2833 #, no-wrap
2834 msgid "B<MS_RDONLY>"
2835 msgstr ""
2836
2837 #
2838 #.  FIXME Document MS_REC, available since 2.4.11.
2839 #.  This flag has meaning in conjunction with MS_BIND and
2840 #.  also with the shared subtree flags.
2841 #. type: Plain text
2842 #: build/C/man2/mount.2:208
2843 msgid "Mount filesystem read-only."
2844 msgstr ""
2845
2846 #. type: TP
2847 #: build/C/man2/mount.2:208
2848 #, no-wrap
2849 msgid "B<MS_RELATIME> (Since Linux 2.6.20)"
2850 msgstr ""
2851
2852 #.  Matthew Garrett notes in the patch that added this behavior
2853 #.  that this lets utilities such as tmpreaper (which deletes
2854 #.  files based on last acces time) work correctly.
2855 #. type: Plain text
2856 #: build/C/man2/mount.2:229
2857 msgid ""
2858 "When a file on this filesystem is accessed, update the file's last access "
2859 "time (atime) only if the current value of atime is less than or equal to the "
2860 "file's last modification time (mtime)  or last status change time (ctime).  "
2861 "This option is useful for programs, such as B<mutt>(1), that need to know "
2862 "when a file has been read since it was last modified.  Since Linux 2.6.30, "
2863 "the kernel defaults to the behavior provided by this flag (unless "
2864 "B<MS_NOATIME> was specified), and the B<MS_STRICTATIME> flag is required to "
2865 "obtain traditional semantics.  In addition, since Linux 2.6.30, the file's "
2866 "last access time is always updated if it is more than 1 day old."
2867 msgstr ""
2868
2869 #. type: TP
2870 #: build/C/man2/mount.2:229
2871 #, no-wrap
2872 msgid "B<MS_REMOUNT>"
2873 msgstr ""
2874
2875 #. type: Plain text
2876 #: build/C/man2/mount.2:245
2877 msgid ""
2878 "Remount an existing mount.  This allows you to change the I<mountflags> and "
2879 "I<data> of an existing mount without having to unmount and remount the "
2880 "filesystem.  I<target> should be the same value specified in the initial "
2881 "B<mount>()  call; I<source> and I<filesystemtype> are ignored."
2882 msgstr ""
2883
2884 #. type: Plain text
2885 #: build/C/man2/mount.2:260
2886 msgid ""
2887 "The following I<mountflags> can be changed: B<MS_RDONLY>, B<MS_SYNCHRONOUS>, "
2888 "B<MS_MANDLOCK>; before kernel 2.6.16, the following could also be changed: "
2889 "B<MS_NOATIME> and B<MS_NODIRATIME>; and, additionally, before kernel 2.4.10, "
2890 "the following could also be changed: B<MS_NOSUID>, B<MS_NODEV>, "
2891 "B<MS_NOEXEC>."
2892 msgstr ""
2893
2894 #. type: TP
2895 #: build/C/man2/mount.2:260
2896 #, no-wrap
2897 msgid "B<MS_SILENT> (since Linux 2.6.17)"
2898 msgstr ""
2899
2900 #. type: Plain text
2901 #: build/C/man2/mount.2:268
2902 msgid ""
2903 "Suppress the display of certain (I<printk>())  warning messages in the "
2904 "kernel log.  This flag supersedes the misnamed and obsolete B<MS_VERBOSE> "
2905 "flag (available since Linux 2.4.12), which has the same meaning."
2906 msgstr ""
2907
2908 #. type: TP
2909 #: build/C/man2/mount.2:268
2910 #, no-wrap
2911 msgid "B<MS_STRICTATIME> (Since Linux 2.6.30)"
2912 msgstr ""
2913
2914 #. type: Plain text
2915 #: build/C/man2/mount.2:278
2916 msgid ""
2917 "Always update the last access time (atime) when files on this filesystem are "
2918 "accessed.  (This was the default behavior before Linux 2.6.30.)  Specifying "
2919 "this flag overrides the effect of setting the B<MS_NOATIME> and "
2920 "B<MS_RELATIME> flags."
2921 msgstr ""
2922
2923 #. type: TP
2924 #: build/C/man2/mount.2:278
2925 #, no-wrap
2926 msgid "B<MS_SYNCHRONOUS>"
2927 msgstr ""
2928
2929 #. type: Plain text
2930 #: build/C/man2/mount.2:286
2931 msgid ""
2932 "Make writes on this filesystem synchronous (as though the B<O_SYNC> flag to "
2933 "B<open>(2)  was specified for all file opens to this filesystem)."
2934 msgstr ""
2935
2936 #. type: Plain text
2937 #: build/C/man2/mount.2:298
2938 msgid ""
2939 "From Linux 2.4 onward, the B<MS_NODEV>, B<MS_NOEXEC>, and B<MS_NOSUID> flags "
2940 "are settable on a per-mount-point basis.  From kernel 2.6.16 onward, "
2941 "B<MS_NOATIME> and B<MS_NODIRATIME> are also settable on a per-mount-point "
2942 "basis.  The B<MS_RELATIME> flag is also settable on a per-mount-point basis."
2943 msgstr ""
2944
2945 #. type: Plain text
2946 #: build/C/man2/mount.2:307
2947 msgid ""
2948 "The I<data> argument is interpreted by the different filesystems.  Typically "
2949 "it is a string of comma-separated options understood by this filesystem.  "
2950 "See B<mount>(8)  for details of the options available for each filesystem "
2951 "type."
2952 msgstr ""
2953
2954 #. type: Plain text
2955 #: build/C/man2/mount.2:312 build/C/man2/stat.2:305 build/C/man2/statfs.2:134 build/C/man3/statvfs.3:101 build/C/man2/umount.2:104
2956 msgid ""
2957 "On success, zero is returned.  On error, -1 is returned, and I<errno> is set "
2958 "appropriately."
2959 msgstr ""
2960
2961 #. type: Plain text
2962 #: build/C/man2/mount.2:318 build/C/man2/umount.2:110
2963 msgid ""
2964 "The error values given below result from filesystem type independent "
2965 "errors.  Each filesystem type may have its own special errors and its own "
2966 "special behavior.  See the Linux kernel source code for details."
2967 msgstr ""
2968
2969 #. type: TP
2970 #: build/C/man2/mount.2:318 build/C/man2/spu_create.2:173 build/C/man2/stat.2:306 build/C/man2/statfs.2:135 build/C/man3/statvfs.3:102
2971 #, no-wrap
2972 msgid "B<EACCES>"
2973 msgstr ""
2974
2975 #.  mtk: Probably: write permission is required for MS_BIND, with
2976 #.  the error EPERM if not present; CAP_DAC_OVERRIDE is required.
2977 #. type: Plain text
2978 #: build/C/man2/mount.2:333
2979 msgid ""
2980 "A component of a path was not searchable.  (See also B<path_resolution>(7).)  "
2981 "Or, mounting a read-only filesystem was attempted without giving the "
2982 "B<MS_RDONLY> flag.  Or, the block device I<source> is located on a "
2983 "filesystem mounted with the B<MS_NODEV> option."
2984 msgstr ""
2985
2986 #. type: TP
2987 #: build/C/man2/mount.2:333 build/C/man2/umount.2:117
2988 #, no-wrap
2989 msgid "B<EBUSY>"
2990 msgstr ""
2991
2992 #. type: Plain text
2993 #: build/C/man2/mount.2:345
2994 msgid ""
2995 "I<source> is already mounted.  Or, it cannot be remounted read-only, because "
2996 "it still holds files open for writing.  Or, it cannot be mounted on "
2997 "I<target> because I<target> is still busy (it is the working directory of "
2998 "some thread, the mount point of another device, has open files, etc.)."
2999 msgstr ""
3000
3001 #. type: TP
3002 #: build/C/man2/mount.2:345 build/C/man2/spu_create.2:181 build/C/man2/spu_run.2:158 build/C/man2/stat.2:317 build/C/man2/statfs.2:147 build/C/man3/statvfs.3:114 build/C/man2/sysfs.2:80 build/C/man2/umount.2:121 build/C/man2/ustat.2:80
3003 #, no-wrap
3004 msgid "B<EFAULT>"
3005 msgstr ""
3006
3007 #. type: Plain text
3008 #: build/C/man2/mount.2:348
3009 msgid "One of the pointer arguments points outside the user address space."
3010 msgstr ""
3011
3012 #. type: Plain text
3013 #: build/C/man2/mount.2:363
3014 msgid ""
3015 "I<source> had an invalid superblock.  Or, a remount (B<MS_REMOUNT>)  was "
3016 "attempted, but I<source> was not already mounted on I<target>.  Or, a move "
3017 "(B<MS_MOVE>)  was attempted, but I<source> was not a mount point, or was "
3018 "\\(aq/\\(aq."
3019 msgstr ""
3020
3021 #. type: TP
3022 #: build/C/man2/mount.2:363 build/C/man2/spu_create.2:192 build/C/man2/stat.2:320 build/C/man2/statfs.2:159 build/C/man3/statvfs.3:126
3023 #, no-wrap
3024 msgid "B<ELOOP>"
3025 msgstr ""
3026
3027 #. type: Plain text
3028 #: build/C/man2/mount.2:370
3029 msgid ""
3030 "Too many links encountered during pathname resolution.  Or, a move was "
3031 "attempted, while I<target> is a descendant of I<source>."
3032 msgstr ""
3033
3034 #. type: TP
3035 #: build/C/man2/mount.2:370 build/C/man2/spu_create.2:196
3036 #, no-wrap
3037 msgid "B<EMFILE>"
3038 msgstr ""
3039
3040 #. type: Plain text
3041 #: build/C/man2/mount.2:374
3042 msgid "(In case no block device is required:)  Table of dummy devices is full."
3043 msgstr ""
3044
3045 #. type: TP
3046 #: build/C/man2/mount.2:374 build/C/man2/spu_create.2:199 build/C/man2/stat.2:323 build/C/man2/statfs.2:164 build/C/man3/statvfs.3:131 build/C/man2/umount.2:137
3047 #, no-wrap
3048 msgid "B<ENAMETOOLONG>"
3049 msgstr ""
3050
3051 #. type: Plain text
3052 #: build/C/man2/mount.2:378 build/C/man2/umount.2:141
3053 msgid "A pathname was longer than B<MAXPATHLEN>."
3054 msgstr ""
3055
3056 #. type: TP
3057 #: build/C/man2/mount.2:378 build/C/man2/spu_create.2:206
3058 #, no-wrap
3059 msgid "B<ENODEV>"
3060 msgstr ""
3061
3062 #. type: Plain text
3063 #: build/C/man2/mount.2:382
3064 msgid "I<filesystemtype> not configured in the kernel."
3065 msgstr ""
3066
3067 #. type: TP
3068 #: build/C/man2/mount.2:382 build/C/man2/spu_create.2:210 build/C/man2/stat.2:327 build/C/man2/statfs.2:169 build/C/man3/statvfs.3:136 build/C/man2/umount.2:141
3069 #, no-wrap
3070 msgid "B<ENOENT>"
3071 msgstr ""
3072
3073 #. type: Plain text
3074 #: build/C/man2/mount.2:385 build/C/man2/umount.2:144
3075 msgid "A pathname was empty or had a nonexistent component."
3076 msgstr ""
3077
3078 #. type: TP
3079 #: build/C/man2/mount.2:385 build/C/man2/spu_create.2:215 build/C/man2/spu_run.2:179 build/C/man2/stat.2:334 build/C/man2/statfs.2:175 build/C/man3/statvfs.3:142 build/C/man2/umount.2:144
3080 #, no-wrap
3081 msgid "B<ENOMEM>"
3082 msgstr ""
3083
3084 #. type: Plain text
3085 #: build/C/man2/mount.2:388 build/C/man2/umount.2:147
3086 msgid "The kernel could not allocate a free page to copy filenames or data into."
3087 msgstr ""
3088
3089 #. type: TP
3090 #: build/C/man2/mount.2:388
3091 #, no-wrap
3092 msgid "B<ENOTBLK>"
3093 msgstr ""
3094
3095 #. type: Plain text
3096 #: build/C/man2/mount.2:392
3097 msgid "I<source> is not a block device (and a device was required)."
3098 msgstr ""
3099
3100 #. type: TP
3101 #: build/C/man2/mount.2:392 build/C/man2/spu_create.2:228 build/C/man2/stat.2:337 build/C/man2/statfs.2:181 build/C/man3/statvfs.3:148
3102 #, no-wrap
3103 msgid "B<ENOTDIR>"
3104 msgstr ""
3105
3106 #. type: Plain text
3107 #: build/C/man2/mount.2:398
3108 msgid "I<target>, or a prefix of I<source>, is not a directory."
3109 msgstr ""
3110
3111 #. type: TP
3112 #: build/C/man2/mount.2:398
3113 #, no-wrap
3114 msgid "B<ENXIO>"
3115 msgstr ""
3116
3117 #. type: Plain text
3118 #: build/C/man2/mount.2:403
3119 msgid "The major number of the block device I<source> is out of range."
3120 msgstr ""
3121
3122 #. type: TP
3123 #: build/C/man2/mount.2:403 build/C/man2/spu_create.2:233 build/C/man2/umount.2:147
3124 #, no-wrap
3125 msgid "B<EPERM>"
3126 msgstr ""
3127
3128 #. type: Plain text
3129 #: build/C/man2/mount.2:406 build/C/man2/umount.2:150
3130 msgid "The caller does not have the required privileges."
3131 msgstr ""
3132
3133 #.  FIXME: Definitions of the so-far-undocumented MS_UNBINDABLE, MS_PRIVATE,
3134 #.   MS_SHARED, and MS_SLAVE were (also) only added to glibc headers in 2.12.
3135 #. type: Plain text
3136 #: build/C/man2/mount.2:417
3137 msgid ""
3138 "The definitions of B<MS_DIRSYNC>, B<MS_MOVE>, B<MS_REC>, B<MS_RELATIME>, and "
3139 "B<MS_STRICTATIME> were added to glibc headers in version 2.12."
3140 msgstr ""
3141
3142 #. type: Plain text
3143 #: build/C/man2/mount.2:420
3144 msgid ""
3145 "This function is Linux-specific and should not be used in programs intended "
3146 "to be portable."
3147 msgstr ""
3148
3149 #. type: Plain text
3150 #: build/C/man2/mount.2:429
3151 msgid ""
3152 "The original B<MS_SYNC> flag was renamed B<MS_SYNCHRONOUS> in 1.1.69 when a "
3153 "different B<MS_SYNC> was added to I<E<lt>mman.hE<gt>>."
3154 msgstr ""
3155
3156 #.  The change is in patch-2.4.0-prerelease.
3157 #. type: Plain text
3158 #: build/C/man2/mount.2:438
3159 msgid ""
3160 "Before Linux 2.4 an attempt to execute a set-user-ID or set-group-ID program "
3161 "on a filesystem mounted with B<MS_NOSUID> would fail with B<EPERM>.  Since "
3162 "Linux 2.4 the set-user-ID and set-group-ID bits are just silently ignored in "
3163 "this case."
3164 msgstr ""
3165
3166 #. type: SS
3167 #: build/C/man2/mount.2:438
3168 #, no-wrap
3169 msgid "Per-process namespaces"
3170 msgstr ""
3171
3172 #. type: Plain text
3173 #: build/C/man2/mount.2:449
3174 msgid ""
3175 "Starting with kernel 2.4.19, Linux provides per-process mount namespaces.  A "
3176 "mount namespace is the set of filesystem mounts that are visible to a "
3177 "process.  Mount-point namespaces can be (and usually are)  shared between "
3178 "multiple processes, and changes to the namespace (i.e., mounts and unmounts) "
3179 "by one process are visible to all other processes sharing the same "
3180 "namespace.  (The pre-2.4.19 Linux situation can be considered as one in "
3181 "which a single namespace was shared by every process on the system.)"
3182 msgstr ""
3183
3184 #. type: Plain text
3185 #: build/C/man2/mount.2:455
3186 msgid ""
3187 "A child process created by B<fork>(2)  shares its parent's mount namespace; "
3188 "the mount namespace is preserved across an B<execve>(2)."
3189 msgstr ""
3190
3191 #. type: Plain text
3192 #: build/C/man2/mount.2:475
3193 msgid ""
3194 "A process can obtain a private mount namespace if: it was created using the "
3195 "B<clone>(2)  B<CLONE_NEWNS> flag, in which case its new namespace is "
3196 "initialized to be a I<copy> of the namespace of the process that called "
3197 "B<clone>(2); or it calls B<unshare>(2)  with the B<CLONE_NEWNS> flag, which "
3198 "causes the caller's mount namespace to obtain a private copy of the "
3199 "namespace that it was previously sharing with other processes, so that "
3200 "future mounts and unmounts by the caller are invisible to other processes "
3201 "(except child processes that the caller subsequently creates) and vice "
3202 "versa."
3203 msgstr ""
3204
3205 #. type: Plain text
3206 #: build/C/man2/mount.2:482
3207 msgid ""
3208 "The Linux-specific I</proc/PID/mounts> file exposes the list of mount points "
3209 "in the mount namespace of the process with the specified ID; see B<proc>(5)  "
3210 "for details."
3211 msgstr ""
3212
3213 #. type: Plain text
3214 #: build/C/man2/mount.2:488
3215 msgid ""
3216 "B<umount>(2), B<namespaces>(7), B<path_resolution>(7), B<mount>(8), "
3217 "B<umount>(8)"
3218 msgstr ""
3219
3220 #. type: TH
3221 #: build/C/man7/path_resolution.7:25
3222 #, no-wrap
3223 msgid "PATH_RESOLUTION"
3224 msgstr ""
3225
3226 #. type: TH
3227 #: build/C/man7/path_resolution.7:25
3228 #, no-wrap
3229 msgid "2009-12-05"
3230 msgstr ""
3231
3232 #. type: Plain text
3233 #: build/C/man7/path_resolution.7:28
3234 msgid "path_resolution - how a pathname is resolved to a file"
3235 msgstr ""
3236
3237 #. type: Plain text
3238 #: build/C/man7/path_resolution.7:31
3239 msgid ""
3240 "Some UNIX/Linux system calls have as parameter one or more filenames.  A "
3241 "filename (or pathname) is resolved as follows."
3242 msgstr ""
3243
3244 #. type: SS
3245 #: build/C/man7/path_resolution.7:31
3246 #, no-wrap
3247 msgid "Step 1: start of the resolution process"
3248 msgstr ""
3249
3250 #. type: Plain text
3251 #: build/C/man7/path_resolution.7:50
3252 msgid ""
3253 "If the pathname starts with the \\(aq/\\(aq character, the starting lookup "
3254 "directory is the root directory of the calling process.  (A process inherits "
3255 "its root directory from its parent.  Usually this will be the root directory "
3256 "of the file hierarchy.  A process may get a different root directory by use "
3257 "of the B<chroot>(2)  system call.  A process may get an entirely private "
3258 "mount namespace in case it\\(emor one of its ancestors\\(emwas started by an "
3259 "invocation of the B<clone>(2)  system call that had the B<CLONE_NEWNS> flag "
3260 "set.)  This handles the \\(aq/\\(aq part of the pathname."
3261 msgstr ""
3262
3263 #. type: Plain text
3264 #: build/C/man7/path_resolution.7:58
3265 msgid ""
3266 "If the pathname does not start with the \\(aq/\\(aq character, the starting "
3267 "lookup directory of the resolution process is the current working directory "
3268 "of the process.  (This is also inherited from the parent.  It can be changed "
3269 "by use of the B<chdir>(2)  system call.)"
3270 msgstr ""
3271
3272 #. type: Plain text
3273 #: build/C/man7/path_resolution.7:61
3274 msgid ""
3275 "Pathnames starting with a \\(aq/\\(aq character are called absolute "
3276 "pathnames.  Pathnames not starting with a \\(aq/\\(aq are called relative "
3277 "pathnames."
3278 msgstr ""
3279
3280 #. type: SS
3281 #: build/C/man7/path_resolution.7:61
3282 #, no-wrap
3283 msgid "Step 2: walk along the path"
3284 msgstr ""
3285
3286 #. type: Plain text
3287 #: build/C/man7/path_resolution.7:66
3288 msgid ""
3289 "Set the current lookup directory to the starting lookup directory.  Now, for "
3290 "each nonfinal component of the pathname, where a component is a substring "
3291 "delimited by \\(aq/\\(aq characters, this component is looked up in the "
3292 "current lookup directory."
3293 msgstr ""
3294
3295 #. type: Plain text
3296 #: build/C/man7/path_resolution.7:72
3297 msgid ""
3298 "If the process does not have search permission on the current lookup "
3299 "directory, an B<EACCES> error is returned (\"Permission denied\")."
3300 msgstr ""
3301
3302 #. type: Plain text
3303 #: build/C/man7/path_resolution.7:77
3304 msgid ""
3305 "If the component is not found, an B<ENOENT> error is returned (\"No such "
3306 "file or directory\")."
3307 msgstr ""
3308
3309 #. type: Plain text
3310 #: build/C/man7/path_resolution.7:82
3311 msgid ""
3312 "If the component is found, but is neither a directory nor a symbolic link, "
3313 "an B<ENOTDIR> error is returned (\"Not a directory\")."
3314 msgstr ""
3315
3316 #. type: Plain text
3317 #: build/C/man7/path_resolution.7:86
3318 msgid ""
3319 "If the component is found and is a directory, we set the current lookup "
3320 "directory to that directory, and go to the next component."
3321 msgstr ""
3322
3323 #
3324 #.  presently: max recursion depth during symlink resolution: 5
3325 #.  max total number of symbolic links followed: 40
3326 #.  _POSIX_SYMLOOP_MAX is 8
3327 #. type: Plain text
3328 #: build/C/man7/path_resolution.7:110
3329 msgid ""
3330 "If the component is found and is a symbolic link (symlink), we first resolve "
3331 "this symbolic link (with the current lookup directory as starting lookup "
3332 "directory).  Upon error, that error is returned.  If the result is not a "
3333 "directory, an B<ENOTDIR> error is returned.  If the resolution of the "
3334 "symlink is successful and returns a directory, we set the current lookup "
3335 "directory to that directory, and go to the next component.  Note that the "
3336 "resolution process here involves recursion.  In order to protect the kernel "
3337 "against stack overflow, and also to protect against denial of service, there "
3338 "are limits on the maximum recursion depth, and on the maximum number of "
3339 "symbolic links followed.  An B<ELOOP> error is returned when the maximum is "
3340 "exceeded (\"Too many levels of symbolic links\")."
3341 msgstr ""
3342
3343 #. type: SS
3344 #: build/C/man7/path_resolution.7:110
3345 #, no-wrap
3346 msgid "Step 3: find the final entry"
3347 msgstr ""
3348
3349 #. type: Plain text
3350 #: build/C/man7/path_resolution.7:122
3351 msgid ""
3352 "The lookup of the final component of the pathname goes just like that of all "
3353 "other components, as described in the previous step, with two differences: "
3354 "(i) the final component need not be a directory (at least as far as the path "
3355 "resolution process is concerned\\(emit may have to be a directory, or a "
3356 "nondirectory, because of the requirements of the specific system call), and "
3357 "(ii) it is not necessarily an error if the component is not found\\(emmaybe "
3358 "we are just creating it.  The details on the treatment of the final entry "
3359 "are described in the manual pages of the specific system calls."
3360 msgstr ""
3361
3362 #. type: SS
3363 #: build/C/man7/path_resolution.7:122
3364 #, no-wrap
3365 msgid ". and .."
3366 msgstr ""
3367
3368 #. type: Plain text
3369 #: build/C/man7/path_resolution.7:126
3370 msgid ""
3371 "By convention, every directory has the entries \".\" and \"..\", which refer "
3372 "to the directory itself and to its parent directory, respectively."
3373 msgstr ""
3374
3375 #. type: Plain text
3376 #: build/C/man7/path_resolution.7:130
3377 msgid ""
3378 "The path resolution process will assume that these entries have their "
3379 "conventional meanings, regardless of whether they are actually present in "
3380 "the physical filesystem."
3381 msgstr ""
3382
3383 #. type: Plain text
3384 #: build/C/man7/path_resolution.7:132
3385 msgid "One cannot walk down past the root: \"/..\" is the same as \"/\"."
3386 msgstr ""
3387
3388 #. type: SS
3389 #: build/C/man7/path_resolution.7:132
3390 #, no-wrap
3391 msgid "Mount points"
3392 msgstr ""
3393
3394 #. type: Plain text
3395 #: build/C/man7/path_resolution.7:136
3396 msgid ""
3397 "After a \"mount dev path\" command, the pathname \"path\" refers to the root "
3398 "of the filesystem hierarchy on the device \"dev\", and no longer to whatever "
3399 "it referred to earlier."
3400 msgstr ""
3401
3402 #. type: Plain text
3403 #: build/C/man7/path_resolution.7:140
3404 msgid ""
3405 "One can walk out of a mounted filesystem: \"path/..\" refers to the parent "
3406 "directory of \"path\", outside of the filesystem hierarchy on \"dev\"."
3407 msgstr ""
3408
3409 #. type: SS
3410 #: build/C/man7/path_resolution.7:140
3411 #, no-wrap
3412 msgid "Trailing slashes"
3413 msgstr ""
3414
3415 #. type: Plain text
3416 #: build/C/man7/path_resolution.7:146
3417 msgid ""
3418 "If a pathname ends in a \\(aq/\\(aq, that forces resolution of the preceding "
3419 "component as in Step 2: it has to exist and resolve to a directory.  "
3420 "Otherwise a trailing \\(aq/\\(aq is ignored.  (Or, equivalently, a pathname "
3421 "with a trailing \\(aq/\\(aq is equivalent to the pathname obtained by "
3422 "appending \\(aq.\\(aq to it.)"
3423 msgstr ""
3424
3425 #. type: SS
3426 #: build/C/man7/path_resolution.7:146
3427 #, no-wrap
3428 msgid "Final symlink"
3429 msgstr ""
3430
3431 #. type: Plain text
3432 #: build/C/man7/path_resolution.7:155
3433 msgid ""
3434 "If the last component of a pathname is a symbolic link, then it depends on "
3435 "the system call whether the file referred to will be the symbolic link or "
3436 "the result of path resolution on its contents.  For example, the system call "
3437 "B<lstat>(2)  will operate on the symlink, while B<stat>(2)  operates on the "
3438 "file pointed to by the symlink."
3439 msgstr ""
3440
3441 #. type: SS
3442 #: build/C/man7/path_resolution.7:155
3443 #, no-wrap
3444 msgid "Length limit"
3445 msgstr ""
3446
3447 #. type: Plain text
3448 #: build/C/man7/path_resolution.7:162
3449 msgid ""
3450 "There is a maximum length for pathnames.  If the pathname (or some "
3451 "intermediate pathname obtained while resolving symbolic links)  is too long, "
3452 "an B<ENAMETOOLONG> error is returned (\"Filename too long\")."
3453 msgstr ""
3454
3455 #. type: SS
3456 #: build/C/man7/path_resolution.7:162
3457 #, no-wrap
3458 msgid "Empty pathname"
3459 msgstr ""
3460
3461 #. type: Plain text
3462 #: build/C/man7/path_resolution.7:169
3463 msgid ""
3464 "In the original UNIX, the empty pathname referred to the current directory.  "
3465 "Nowadays POSIX decrees that an empty pathname must not be resolved "
3466 "successfully.  Linux returns B<ENOENT> in this case."
3467 msgstr ""
3468
3469 #. type: SS
3470 #: build/C/man7/path_resolution.7:169
3471 #, no-wrap
3472 msgid "Permissions"
3473 msgstr ""
3474
3475 #. type: Plain text
3476 #: build/C/man7/path_resolution.7:182
3477 msgid ""
3478 "The permission bits of a file consist of three groups of three bits, cf.\\& "
3479 "B<chmod>(1)  and B<stat>(2).  The first group of three is used when the "
3480 "effective user ID of the calling process equals the owner ID of the file.  "
3481 "The second group of three is used when the group ID of the file either "
3482 "equals the effective group ID of the calling process, or is one of the "
3483 "supplementary group IDs of the calling process (as set by B<setgroups>(2)).  "
3484 "When neither holds, the third group is used."
3485 msgstr ""
3486
3487 #. type: Plain text
3488 #: build/C/man7/path_resolution.7:186
3489 msgid ""
3490 "Of the three bits used, the first bit determines read permission, the second "
3491 "write permission, and the last execute permission in case of ordinary files, "
3492 "or search permission in case of directories."
3493 msgstr ""
3494
3495 #. type: Plain text
3496 #: build/C/man7/path_resolution.7:191
3497 msgid ""
3498 "Linux uses the fsuid instead of the effective user ID in permission checks.  "
3499 "Ordinarily the fsuid will equal the effective user ID, but the fsuid can be "
3500 "changed by the system call B<setfsuid>(2)."
3501 msgstr ""
3502
3503 #. type: Plain text
3504 #: build/C/man7/path_resolution.7:199
3505 msgid ""
3506 "(Here \"fsuid\" stands for something like \"filesystem user ID\".  The "
3507 "concept was required for the implementation of a user space NFS server at a "
3508 "time when processes could send a signal to a process with the same effective "
3509 "user ID.  It is obsolete now.  Nobody should use B<setfsuid>(2).)"
3510 msgstr ""
3511
3512 #.  FIXME say something about filesystem mounted read-only ?
3513 #. type: Plain text
3514 #: build/C/man7/path_resolution.7:205
3515 msgid ""
3516 "Similarly, Linux uses the fsgid (\"filesystem group ID\")  instead of the "
3517 "effective group ID.  See B<setfsgid>(2)."
3518 msgstr ""
3519
3520 #. type: SS
3521 #: build/C/man7/path_resolution.7:205
3522 #, no-wrap
3523 msgid "Bypassing permission checks: superuser and capabilities"
3524 msgstr ""
3525
3526 #.  (but for exec at least one x bit must be set) -- AEB
3527 #.  but there is variation across systems on this point: for
3528 #.  example, HP-UX and Tru64 are as described by AEB.  However,
3529 #.  on some implementations (e.g., Solaris, FreeBSD),
3530 #.  access(X_OK) by superuser will report success, regardless
3531 #.  of the file's execute permission bits. -- MTK (Oct 05)
3532 #. type: Plain text
3533 #: build/C/man7/path_resolution.7:216
3534 msgid ""
3535 "On a traditional UNIX system, the superuser (I<root>, user ID 0) is "
3536 "all-powerful, and bypasses all permissions restrictions when accessing "
3537 "files."
3538 msgstr ""
3539
3540 #. type: Plain text
3541 #: build/C/man7/path_resolution.7:224
3542 msgid ""
3543 "On Linux, superuser privileges are divided into capabilities (see "
3544 "B<capabilities>(7)).  Two capabilities are relevant for file permissions "
3545 "checks: B<CAP_DAC_OVERRIDE> and B<CAP_DAC_READ_SEARCH>.  (A process has "
3546 "these capabilities if its fsuid is 0.)"
3547 msgstr ""
3548
3549 #. type: Plain text
3550 #: build/C/man7/path_resolution.7:230
3551 msgid ""
3552 "The B<CAP_DAC_OVERRIDE> capability overrides all permission checking, but "
3553 "grants execute permission only when at least one of the file's three execute "
3554 "permission bits is set."
3555 msgstr ""
3556
3557 #.  FIXME say something about immutable files
3558 #.  FIXME say something about ACLs
3559 #. type: Plain text
3560 #: build/C/man7/path_resolution.7:237
3561 msgid ""
3562 "The B<CAP_DAC_READ_SEARCH> capability grants read and search permission on "
3563 "directories, and read permission on ordinary files."
3564 msgstr ""
3565
3566 #. type: Plain text
3567 #: build/C/man7/path_resolution.7:242
3568 msgid "B<readlink>(2), B<capabilities>(7), B<credentials>(7), B<symlink>(7)"
3569 msgstr ""
3570
3571 #. type: TH
3572 #: build/C/man2/removexattr.2:25
3573 #, no-wrap
3574 msgid "REMOVEXATTR"
3575 msgstr ""
3576
3577 #. type: Plain text
3578 #: build/C/man2/removexattr.2:28
3579 msgid "removexattr, lremovexattr, fremovexattr - remove an extended attribute"
3580 msgstr ""
3581
3582 #. type: Plain text
3583 #: build/C/man2/removexattr.2:37
3584 #, no-wrap
3585 msgid ""
3586 "B<int removexattr(const char\\ *>I<path>B<, const char\\ *>I<name>B<);>\n"
3587 "B<int lremovexattr(const char\\ *>I<path>B<, const char\\ *>I<name>B<);>\n"
3588 "B<int fremovexattr(int >I<fd>B<, const char\\ *>I<name>B<);>\n"
3589 msgstr ""
3590
3591 #. type: Plain text
3592 #: build/C/man2/removexattr.2:49
3593 msgid ""
3594 "Extended attributes are I<name>:value pairs associated with inodes (files, "
3595 "directories, symbolic links, etc.).  They are extensions to the normal "
3596 "attributes which are associated with all inodes in the system (i.e., the "
3597 "B<stat>(2)  data).  A complete overview of extended attributes concepts can "
3598 "be found in B<attr>(5)."
3599 msgstr ""
3600
3601 #. type: Plain text
3602 #: build/C/man2/removexattr.2:56
3603 msgid ""
3604 "B<removexattr>()  removes the extended attribute identified by I<name> and "
3605 "associated with the given I<path> in the filesystem."
3606 msgstr ""
3607
3608 #. type: Plain text
3609 #: build/C/man2/removexattr.2:62
3610 msgid ""
3611 "B<lremovexattr>()  is identical to B<removexattr>(), except in the case of a "
3612 "symbolic link, where the extended attribute is removed from the link itself, "
3613 "not the file that it refers to."
3614 msgstr ""
3615
3616 #. type: Plain text
3617 #: build/C/man2/removexattr.2:72
3618 msgid ""
3619 "B<fremovexattr>()  is identical to B<removexattr>(), only the extended "
3620 "attribute is removed from the open file referred to by I<fd> (as returned by "
3621 "B<open>(2))  in place of I<path>."
3622 msgstr ""
3623
3624 #. type: Plain text
3625 #: build/C/man2/removexattr.2:78
3626 msgid ""
3627 "An extended attribute name is a simple null-terminated string.  The I<name> "
3628 "includes a namespace prefix; there may be several, disjoint namespaces "
3629 "associated with an individual inode."
3630 msgstr ""
3631
3632 #. type: Plain text
3633 #: build/C/man2/removexattr.2:83 build/C/man2/setxattr.2:110
3634 msgid ""
3635 "On success, zero is returned.  On failure, -1 is returned and I<errno> is "
3636 "set appropriately."
3637 msgstr ""
3638
3639 #. type: Plain text
3640 #: build/C/man2/removexattr.2:92
3641 msgid ""
3642 "The named attribute does not exist.  (B<ENOATTR> is defined to be a synonym "
3643 "for B<ENODATA> in I<E<lt>attr/xattr.hE<gt>>.)"
3644 msgstr ""
3645
3646 #. type: Plain text
3647 #: build/C/man2/removexattr.2:120
3648 msgid ""
3649 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<listxattr>(2), B<open>(2), "
3650 "B<setxattr>(2), B<stat>(2), B<attr>(5), B<symlink>(7)"
3651 msgstr ""
3652
3653 #. type: TH
3654 #: build/C/man2/setxattr.2:25
3655 #, no-wrap
3656 msgid "SETXATTR"
3657 msgstr ""
3658
3659 #. type: Plain text
3660 #: build/C/man2/setxattr.2:28
3661 msgid "setxattr, lsetxattr, fsetxattr - set an extended attribute value"
3662 msgstr ""
3663
3664 #. type: Plain text
3665 #: build/C/man2/setxattr.2:40
3666 #, no-wrap
3667 msgid ""
3668 "B<int setxattr(const char\\ *>I<path>B<, const char\\ *>I<name>B<,>\n"
3669 "B<              const void\\ *>I<value>B<, size_t >I<size>B<, int "
3670 ">I<flags>B<);>\n"
3671 "B<int lsetxattr(const char\\ *>I<path>B<, const char\\ *>I<name>B<,>\n"
3672 "B<              const void\\ *>I<value>B<, size_t >I<size>B<, int "
3673 ">I<flags>B<);>\n"
3674 "B<int fsetxattr(int >I<fd>B<, const char\\ *>I<name>B<,>\n"
3675 "B<              const void\\ *>I<value>B<, size_t >I<size>B<, int "
3676 ">I<flags>B<);>\n"
3677 msgstr ""
3678
3679 #. type: Plain text
3680 #: build/C/man2/setxattr.2:67
3681 msgid ""
3682 "B<setxattr>()  sets the I<value> of the extended attribute identified by "
3683 "I<name> and associated with the given I<path> in the filesystem.  The "
3684 "I<size> of the I<value> must be specified."
3685 msgstr ""
3686
3687 #. type: Plain text
3688 #: build/C/man2/setxattr.2:73
3689 msgid ""
3690 "B<lsetxattr>()  is identical to B<setxattr>(), except in the case of a "
3691 "symbolic link, where the extended attribute is set on the link itself, not "
3692 "the file that it refers to."
3693 msgstr ""
3694
3695 #. type: Plain text
3696 #: build/C/man2/setxattr.2:83
3697 msgid ""
3698 "B<fsetxattr>()  is identical to B<setxattr>(), only the extended attribute "
3699 "is set on the open file referred to by I<fd> (as returned by B<open>(2))  in "
3700 "place of I<path>."
3701 msgstr ""
3702
3703 #. type: Plain text
3704 #: build/C/man2/setxattr.2:93
3705 msgid ""
3706 "An extended attribute name is a simple null-terminated string.  The I<name> "
3707 "includes a namespace prefix; there may be several, disjoint namespaces "
3708 "associated with an individual inode.  The I<value> of an extended attribute "
3709 "is a chunk of arbitrary textual or binary data of specified length."
3710 msgstr ""
3711
3712 #. type: Plain text
3713 #: build/C/man2/setxattr.2:105
3714 msgid ""
3715 "The I<flags> argument can be used to refine the semantics of the operation.  "
3716 "B<XATTR_CREATE> specifies a pure create, which fails if the named attribute "
3717 "exists already.  B<XATTR_REPLACE> specifies a pure replace operation, which "
3718 "fails if the named attribute does not already exist.  By default (no flags), "
3719 "the extended attribute will be created if need be, or will simply replace "
3720 "the value if the attribute exists."
3721 msgstr ""
3722
3723 #. type: TP
3724 #: build/C/man2/setxattr.2:111
3725 #, no-wrap
3726 msgid "B<EDQUOT>"
3727 msgstr ""
3728
3729 #. type: Plain text
3730 #: build/C/man2/setxattr.2:115
3731 msgid ""
3732 "Disk quota limits meant that there is insufficient space remaining to store "
3733 "the extended attribute."
3734 msgstr ""
3735
3736 #. type: TP
3737 #: build/C/man2/setxattr.2:115 build/C/man2/spu_create.2:178
3738 #, no-wrap
3739 msgid "B<EEXIST>"
3740 msgstr ""
3741
3742 #. type: Plain text
3743 #: build/C/man2/setxattr.2:119
3744 msgid "B<XATTR_CREATE> was specified, and the attribute exists already."
3745 msgstr ""
3746
3747 #. type: Plain text
3748 #: build/C/man2/setxattr.2:128
3749 msgid ""
3750 "B<XATTR_REPLACE> was specified, and the attribute does not exist.  "
3751 "(B<ENOATTR> is defined to be a synonym for B<ENODATA> in "
3752 "I<E<lt>attr/xattr.hE<gt>>.)"
3753 msgstr ""
3754
3755 #. type: TP
3756 #: build/C/man2/setxattr.2:128 build/C/man2/spu_create.2:218
3757 #, no-wrap
3758 msgid "B<ENOSPC>"
3759 msgstr ""
3760
3761 #. type: Plain text
3762 #: build/C/man2/setxattr.2:131
3763 msgid "There is insufficient space remaining to store the extended attribute."
3764 msgstr ""
3765
3766 #. type: Plain text
3767 #: build/C/man2/setxattr.2:137
3768 msgid ""
3769 "Extended attributes are not supported by the filesystem, or are disabled, "
3770 "I<errno> is set to B<ENOTSUP>."
3771 msgstr ""
3772
3773 #. type: Plain text
3774 #: build/C/man2/setxattr.2:162
3775 msgid ""
3776 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<listxattr>(2), B<open>(2), "
3777 "B<removexattr>(2), B<stat>(2), B<attr>(5), B<symlink>(7)"
3778 msgstr ""
3779
3780 #. type: TH
3781 #: build/C/man2/spu_create.2:25
3782 #, no-wrap
3783 msgid "SPU_CREATE"
3784 msgstr ""
3785
3786 #. type: Plain text
3787 #: build/C/man2/spu_create.2:28
3788 msgid "spu_create - create a new spu context"
3789 msgstr ""
3790
3791 #. type: Plain text
3792 #: build/C/man2/spu_create.2:32
3793 #, no-wrap
3794 msgid ""
3795 "B<#include E<lt>sys/types.hE<gt>>\n"
3796 "B<#include E<lt>sys/spu.hE<gt>>\n"
3797 msgstr ""
3798
3799 #. type: Plain text
3800 #: build/C/man2/spu_create.2:36
3801 #, no-wrap
3802 msgid ""
3803 "B<int spu_create(const char *>I<pathname>B<, int >I<flags>B<, mode_t "
3804 ">I<mode>B<);>\n"
3805 "B<int spu_create(const char *>I<pathname>B<, int >I<flags>B<, mode_t "
3806 ">I<mode>B<,>\n"
3807 "B<               int >I<neighbor_fd>B<);>\n"
3808 msgstr ""
3809
3810 #. type: Plain text
3811 #: build/C/man2/spu_create.2:40 build/C/man2/spu_run.2:39
3812 msgid "I<Note>: There is no glibc wrapper for this system call; see NOTES."
3813 msgstr ""
3814
3815 #. type: Plain text
3816 #: build/C/man2/spu_create.2:59
3817 msgid ""
3818 "The B<spu_create>()  system call is used on PowerPC machines that implement "
3819 "the Cell Broadband Engine Architecture in order to access Synergistic "
3820 "Processor Units (SPUs).  It creates a new logical context for an SPU in "
3821 "I<pathname> and returns a file descriptor associated with it.  I<pathname> "
3822 "must refer to a nonexistent directory in the mount point of the SPU "
3823 "filesystem (B<spufs>).  If B<spu_create>()  is successful, a directory is "
3824 "created at I<pathname> and it is populated with the files described in "
3825 "B<spufs>(7)."
3826 msgstr ""
3827
3828 #. type: Plain text
3829 #: build/C/man2/spu_create.2:78
3830 msgid ""
3831 "When a context is created, the returned file descriptor can only be passed "
3832 "to B<spu_run>(2), used as the I<dirfd> argument to the B<*at> family of "
3833 "system calls (e.g., B<openat>(2)), or closed; other operations are not "
3834 "defined.  A logical SPU context is destroyed (along with all files created "
3835 "within the context's I<pathname> directory) once the last reference to the "
3836 "context has gone; this usually occurs when the file descriptor returned by "
3837 "B<spu_create>()  is closed."
3838 msgstr ""
3839
3840 #. type: Plain text
3841 #: build/C/man2/spu_create.2:83
3842 msgid ""
3843 "The I<flags> argument can be zero or any bitwise OR-ed combination of the "
3844 "following constants:"
3845 msgstr ""
3846
3847 #. type: TP
3848 #: build/C/man2/spu_create.2:83
3849 #, no-wrap
3850 msgid "B<SPU_CREATE_EVENTS_ENABLED>"
3851 msgstr ""
3852
3853 #. type: Plain text
3854 #: build/C/man2/spu_create.2:89
3855 msgid ""
3856 "Rather than using signals for reporting DMA errors, use the I<event> "
3857 "argument to B<spu_run>(2)."
3858 msgstr ""
3859
3860 #. type: TP
3861 #: build/C/man2/spu_create.2:89
3862 #, no-wrap
3863 msgid "B<SPU_CREATE_GANG>"
3864 msgstr ""
3865
3866 #. type: Plain text
3867 #: build/C/man2/spu_create.2:97
3868 msgid ""
3869 "Create an SPU gang instead of a context.  (A gang is a group of SPU contexts "
3870 "that are functionally related to each other and which share common "
3871 "scheduling parameters\\(empriority and policy.  In the future, gang "
3872 "scheduling may be implemented causing the group to be switched in and out as "
3873 "a single unit.)"
3874 msgstr ""
3875
3876 #. type: Plain text
3877 #: build/C/man2/spu_create.2:104
3878 msgid ""
3879 "A new directory will be created at the location specified by the I<pathname> "
3880 "argument.  This gang may be used to hold other SPU contexts, by providing a "
3881 "pathname that is within the gang directory to further calls to "
3882 "B<spu_create>()."
3883 msgstr ""
3884
3885 #. type: TP
3886 #: build/C/man2/spu_create.2:104
3887 #, no-wrap
3888 msgid "B<SPU_CREATE_NOSCHED>"
3889 msgstr ""
3890
3891 #. type: Plain text
3892 #: build/C/man2/spu_create.2:110
3893 msgid ""
3894 "Create a context that is not affected by the SPU scheduler.  Once the "
3895 "context is run, it will not be scheduled out until it is destroyed by the "
3896 "creating process."
3897 msgstr ""
3898
3899 #. type: Plain text
3900 #: build/C/man2/spu_create.2:121
3901 msgid ""
3902 "Because the context cannot be removed from the SPU, some functionality is "
3903 "disabled for B<SPU_CREATE_NOSCHED> contexts.  Only a subset of the files "
3904 "will be available in this context directory in B<spufs>.  Additionally, "
3905 "B<SPU_CREATE_NOSCHED> contexts cannot dump a core file when crashing."
3906 msgstr ""
3907
3908 #. type: Plain text
3909 #: build/C/man2/spu_create.2:127
3910 msgid ""
3911 "Creating B<SPU_CREATE_NOSCHED> contexts requires the B<CAP_SYS_NICE> "
3912 "capability."
3913 msgstr ""
3914
3915 #. type: TP
3916 #: build/C/man2/spu_create.2:127
3917 #, no-wrap
3918 msgid "B<SPU_CREATE_ISOLATE>"
3919 msgstr ""
3920
3921 #. type: Plain text
3922 #: build/C/man2/spu_create.2:134
3923 msgid ""
3924 "Create an isolated SPU context.  Isolated contexts are protected from some "
3925 "PPE (PowerPC Processing Element)  operations, such as access to the SPU "
3926 "local store and the NPC register."
3927 msgstr ""
3928
3929 #. type: Plain text
3930 #: build/C/man2/spu_create.2:140
3931 msgid ""
3932 "Creating B<SPU_CREATE_ISOLATE> contexts also requires the "
3933 "B<SPU_CREATE_NOSCHED> flag."
3934 msgstr ""
3935
3936 #. type: TP
3937 #: build/C/man2/spu_create.2:140
3938 #, no-wrap
3939 msgid "B<SPU_CREATE_AFFINITY_SPU>"
3940 msgstr ""
3941
3942 #. type: Plain text
3943 #: build/C/man2/spu_create.2:148
3944 msgid ""
3945 "Create a context with affinity to another SPU context.  This affinity "
3946 "information is used within the SPU scheduling algorithm.  Using this flag "
3947 "requires that a file descriptor referring to the other SPU context be passed "
3948 "in the I<neighbor_fd> argument."
3949 msgstr ""
3950
3951 #. type: TP
3952 #: build/C/man2/spu_create.2:148
3953 #, no-wrap
3954 msgid "B<SPU_CREATE_AFFINITY_MEM>"
3955 msgstr ""
3956
3957 #. type: Plain text
3958 #: build/C/man2/spu_create.2:153
3959 msgid ""
3960 "Create a context with affinity to system memory.  This affinity information "
3961 "is used within the SPU scheduling algorithm."
3962 msgstr ""
3963
3964 #. type: Plain text
3965 #: build/C/man2/spu_create.2:165
3966 msgid ""
3967 "The I<mode> argument (minus any bits set in the process's B<umask>(2))  "
3968 "specifies the permissions used for creating the new directory in B<spufs>.  "
3969 "See B<stat>(2)  for a full list of the possible I<mode> values."
3970 msgstr ""
3971
3972 #. type: Plain text
3973 #: build/C/man2/spu_create.2:172
3974 msgid ""
3975 "On success, B<spu_create>()  returns a new file descriptor.  On error, -1 is "
3976 "returned, and I<errno> is set to one of the error codes listed below."
3977 msgstr ""
3978
3979 #. type: Plain text
3980 #: build/C/man2/spu_create.2:178
3981 msgid "The current user does not have write access to the B<spufs>(7)  mount point."
3982 msgstr ""
3983
3984 #. type: Plain text
3985 #: build/C/man2/spu_create.2:181
3986 msgid "An SPU context already exists at the given path name."
3987 msgstr ""
3988
3989 #. type: Plain text
3990 #: build/C/man2/spu_create.2:186
3991 msgid ""
3992 "I<pathname> is not a valid string pointer in the calling process's address "
3993 "space."
3994 msgstr ""
3995
3996 #. type: Plain text
3997 #: build/C/man2/spu_create.2:192
3998 msgid ""
3999 "I<pathname> is not a directory in the B<spufs>(7)  mount point, or invalid "
4000 "flags have been provided."
4001 msgstr ""
4002
4003 #. type: Plain text
4004 #: build/C/man2/spu_create.2:196
4005 msgid "Too many symbolic links were found while resolving I<pathname>."
4006 msgstr ""
4007
4008 #. type: Plain text
4009 #: build/C/man2/spu_create.2:199
4010 msgid "The process has reached its maximum open files limit."
4011 msgstr ""
4012
4013 #. type: Plain text
4014 #: build/C/man2/spu_create.2:203
4015 msgid "I<pathname> is too long."
4016 msgstr ""
4017
4018 #. type: TP
4019 #: build/C/man2/spu_create.2:203
4020 #, no-wrap
4021 msgid "B<ENFILE>"
4022 msgstr ""
4023
4024 #. type: Plain text
4025 #: build/C/man2/spu_create.2:206
4026 msgid "The system has reached the global open files limit."
4027 msgstr ""
4028
4029 #. type: Plain text
4030 #: build/C/man2/spu_create.2:210
4031 msgid ""
4032 "An isolated context was requested, but the hardware does not support SPU "
4033 "isolation."
4034 msgstr ""
4035
4036 #. type: Plain text
4037 #: build/C/man2/spu_create.2:215
4038 msgid "Part of I<pathname> could not be resolved."
4039 msgstr ""
4040
4041 #. type: Plain text
4042 #: build/C/man2/spu_create.2:218
4043 msgid "The kernel could not allocate all resources required."
4044 msgstr ""
4045
4046 #. type: Plain text
4047 #: build/C/man2/spu_create.2:223
4048 msgid ""
4049 "There are not enough SPU resources available to create a new context or the "
4050 "user-specific limit for the number of SPU contexts has been reached."
4051 msgstr ""
4052
4053 #. type: TP
4054 #: build/C/man2/spu_create.2:223 build/C/man2/spu_run.2:183 build/C/man2/statfs.2:178 build/C/man3/statvfs.3:145 build/C/man2/ustat.2:88
4055 #, no-wrap
4056 msgid "B<ENOSYS>"
4057 msgstr ""
4058
4059 #. type: Plain text
4060 #: build/C/man2/spu_create.2:228 build/C/man2/spu_run.2:188
4061 msgid ""
4062 "The functionality is not provided by the current system, because either the "
4063 "hardware does not provide SPUs or the spufs module is not loaded."
4064 msgstr ""
4065
4066 #. type: Plain text
4067 #: build/C/man2/spu_create.2:233
4068 msgid "A part of I<pathname> is not a directory."
4069 msgstr ""
4070
4071 #. type: Plain text
4072 #: build/C/man2/spu_create.2:240
4073 msgid ""
4074 "The I<SPU_CREATE_NOSCHED> flag has been given, but the user does not have "
4075 "the B<CAP_SYS_NICE> capability."
4076 msgstr ""
4077
4078 #. type: Plain text
4079 #: build/C/man2/spu_create.2:246
4080 msgid ""
4081 "I<pathname> must point to a location beneath the mount point of B<spufs>.  "
4082 "By convention, it gets mounted in I</spu>."
4083 msgstr ""
4084
4085 #. type: Plain text
4086 #: build/C/man2/spu_create.2:250
4087 msgid "The B<spu_create>()  system call was added to Linux in kernel 2.6.16."
4088 msgstr ""
4089
4090 #. type: Plain text
4091 #: build/C/man2/spu_create.2:254
4092 msgid ""
4093 "This call is Linux-specific and implemented only on the PowerPC "
4094 "architecture.  Programs using this system call are not portable."
4095 msgstr ""
4096
4097 #. type: Plain text
4098 #: build/C/man2/spu_create.2:265
4099 msgid ""
4100 "Glibc does not provide a wrapper for this system call; call it using "
4101 "B<syscall>(2).  Note however, that B<spu_create>()  is meant to be used from "
4102 "libraries that implement a more abstract interface to SPUs, not to be used "
4103 "from regular applications.  See E<.UR "
4104 "http://www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> E<.UE> for "
4105 "the recommended libraries."
4106 msgstr ""
4107
4108 #. type: Plain text
4109 #: build/C/man2/spu_create.2:270
4110 msgid "See B<spu_run>(2)  for an example of the use of B<spu_create>()"
4111 msgstr ""
4112
4113 #. type: Plain text
4114 #: build/C/man2/spu_create.2:275
4115 msgid "B<close>(2), B<spu_run>(2), B<capabilities>(7), B<spufs>(7)"
4116 msgstr ""
4117
4118 #. type: TH
4119 #: build/C/man2/spu_run.2:26
4120 #, no-wrap
4121 msgid "SPU_RUN"
4122 msgstr ""
4123
4124 #. type: Plain text
4125 #: build/C/man2/spu_run.2:29
4126 msgid "spu_run - execute an SPU context"
4127 msgstr ""
4128
4129 #. type: Plain text
4130 #: build/C/man2/spu_run.2:32
4131 #, no-wrap
4132 msgid "B<#include E<lt>sys/spu.hE<gt>>\n"
4133 msgstr ""
4134
4135 #. type: Plain text
4136 #: build/C/man2/spu_run.2:35
4137 #, no-wrap
4138 msgid ""
4139 "B<int spu_run(int >I<fd>B<, unsigned int *>I<npc>B<, unsigned int "
4140 "*>I<event>B<);>\n"
4141 msgstr ""
4142
4143 #. type: Plain text
4144 #: build/C/man2/spu_run.2:53
4145 msgid ""
4146 "The B<spu_run>()  system call is used on PowerPC machines that implement the "
4147 "Cell Broadband Engine Architecture in order to access Synergistic Processor "
4148 "Units (SPUs).  The I<fd> argument is a file descriptor returned by "
4149 "B<spu_create>(2)  that refers to a specific SPU context.  When the context "
4150 "gets scheduled to a physical SPU, it starts execution at the instruction "
4151 "pointer passed in I<npc>."
4152 msgstr ""
4153
4154 #. type: Plain text
4155 #: build/C/man2/spu_run.2:62
4156 msgid ""
4157 "Execution of SPU code happens synchronously, meaning that B<spu_run>()  "
4158 "blocks while the SPU is still running.  If there is a need to execute SPU "
4159 "code in parallel with other code on either the main CPU or other SPUs, a new "
4160 "thread of execution must be created first (e.g., using "
4161 "B<pthread_create>(3))."
4162 msgstr ""
4163
4164 #. type: Plain text
4165 #: build/C/man2/spu_run.2:72
4166 msgid ""
4167 "When B<spu_run>()  returns, the current value of the SPU program counter is "
4168 "written to I<npc>, so successive calls to B<spu_run>()  can use the same "
4169 "I<npc> pointer."
4170 msgstr ""
4171
4172 #. type: Plain text
4173 #: build/C/man2/spu_run.2:82
4174 msgid ""
4175 "The I<event> argument provides a buffer for an extended status code.  If the "
4176 "SPU context was created with the B<SPU_CREATE_EVENTS_ENABLED> flag, then "
4177 "this buffer is populated by the Linux kernel before B<spu_run>()  returns."
4178 msgstr ""
4179
4180 #. type: Plain text
4181 #: build/C/man2/spu_run.2:84
4182 msgid "The status code may be one (or more) of the following constants:"
4183 msgstr ""
4184
4185 #. type: TP
4186 #: build/C/man2/spu_run.2:84
4187 #, no-wrap
4188 msgid "B<SPE_EVENT_DMA_ALIGNMENT>"
4189 msgstr ""
4190
4191 #. type: Plain text
4192 #: build/C/man2/spu_run.2:87
4193 msgid "A DMA alignment error occurred."
4194 msgstr ""
4195
4196 #. type: TP
4197 #: build/C/man2/spu_run.2:87
4198 #, no-wrap
4199 msgid "B<SPE_EVENT_INVALID_DMA>"
4200 msgstr ""
4201
4202 #. type: Plain text
4203 #: build/C/man2/spu_run.2:90
4204 msgid "An invalid MFC DMA command was attempted."
4205 msgstr ""
4206
4207 #. type: TP
4208 #: build/C/man2/spu_run.2:90
4209 #, no-wrap
4210 msgid "B<SPE_EVENT_SPE_DATA_STORAGE>"
4211 msgstr ""
4212
4213 #. type: Plain text
4214 #: build/C/man2/spu_run.2:93
4215 msgid "A DMA storage error occurred."
4216 msgstr ""
4217
4218 #. type: TP
4219 #: build/C/man2/spu_run.2:93
4220 #, no-wrap
4221 msgid "B<SPE_EVENT_SPE_ERROR>"
4222 msgstr ""
4223
4224 #. type: Plain text
4225 #: build/C/man2/spu_run.2:96
4226 msgid "An illegal instruction was executed."
4227 msgstr ""
4228
4229 #. type: Plain text
4230 #: build/C/man2/spu_run.2:102
4231 msgid ""
4232 "NULL is a valid value for the I<event> argument.  In this case, the events "
4233 "will not be reported to the calling process."
4234 msgstr ""
4235
4236 #. type: Plain text
4237 #: build/C/man2/spu_run.2:111
4238 msgid ""
4239 "On success, B<spu_run>()  returns the value of the I<spu_status> register.  "
4240 "On error it returns -1 and sets I<errno> to one of the error codes listed "
4241 "below."
4242 msgstr ""
4243
4244 #. type: Plain text
4245 #: build/C/man2/spu_run.2:120
4246 msgid ""
4247 "The I<spu_status> register value is a bit mask of status codes and "
4248 "optionally a 14-bit code returned from the B<stop-and-signal> instruction on "
4249 "the SPU.  The bit masks for the status codes are:"
4250 msgstr ""
4251
4252 #. type: TP
4253 #: build/C/man2/spu_run.2:120
4254 #, no-wrap
4255 msgid "B<0x02>"
4256 msgstr ""
4257
4258 #. type: Plain text
4259 #: build/C/man2/spu_run.2:125
4260 msgid "SPU was stopped by a B<stop-and-signal> instruction."
4261 msgstr ""
4262
4263 #. type: TP
4264 #: build/C/man2/spu_run.2:125
4265 #, no-wrap
4266 msgid "B<0x04>"
4267 msgstr ""
4268
4269 #. type: Plain text
4270 #: build/C/man2/spu_run.2:130
4271 msgid "SPU was stopped by a B<halt> instruction."
4272 msgstr ""
4273
4274 #. type: TP
4275 #: build/C/man2/spu_run.2:130
4276 #, no-wrap
4277 msgid "B<0x08>"
4278 msgstr ""
4279
4280 #. type: Plain text
4281 #: build/C/man2/spu_run.2:133
4282 msgid "SPU is waiting for a channel."
4283 msgstr ""
4284
4285 #. type: TP
4286 #: build/C/man2/spu_run.2:133
4287 #, no-wrap
4288 msgid "B<0x10>"
4289 msgstr ""
4290
4291 #. type: Plain text
4292 #: build/C/man2/spu_run.2:136
4293 msgid "SPU is in single-step mode."
4294 msgstr ""
4295
4296 #. type: TP
4297 #: build/C/man2/spu_run.2:136
4298 #, no-wrap
4299 msgid "B<0x20>"
4300 msgstr ""
4301
4302 #. type: Plain text
4303 #: build/C/man2/spu_run.2:139
4304 msgid "SPU has tried to execute an invalid instruction."
4305 msgstr ""
4306
4307 #. type: TP
4308 #: build/C/man2/spu_run.2:139
4309 #, no-wrap
4310 msgid "B<0x40>"
4311 msgstr ""
4312
4313 #. type: Plain text
4314 #: build/C/man2/spu_run.2:142
4315 msgid "SPU has tried to access an invalid channel."
4316 msgstr ""
4317
4318 #. type: TP
4319 #: build/C/man2/spu_run.2:142
4320 #, no-wrap
4321 msgid "B<0x3fff0000>"
4322 msgstr ""
4323
4324 #. type: Plain text
4325 #: build/C/man2/spu_run.2:148
4326 msgid ""
4327 "The bits masked with this value contain the code returned from a "
4328 "B<stop-and-signal> instruction.  These bits are valid only if the 0x02 bit "
4329 "is set."
4330 msgstr ""
4331
4332 #. type: Plain text
4333 #: build/C/man2/spu_run.2:153
4334 msgid ""
4335 "If B<spu_run>()  has not returned an error, one or more bits among the lower "
4336 "eight ones are always set."
4337 msgstr ""
4338
4339 #. type: TP
4340 #: build/C/man2/spu_run.2:154 build/C/man2/stat.2:313 build/C/man2/statfs.2:142 build/C/man3/statvfs.3:109
4341 #, no-wrap
4342 msgid "B<EBADF>"
4343 msgstr ""
4344
4345 #. type: Plain text
4346 #: build/C/man2/spu_run.2:158
4347 msgid "I<fd> is not a valid file descriptor."
4348 msgstr ""
4349
4350 #. type: Plain text
4351 #: build/C/man2/spu_run.2:164
4352 msgid ""
4353 "I<npc> is not a valid pointer, or I<event> is non-NULL and an invalid "
4354 "pointer."
4355 msgstr ""
4356
4357 #. type: TP
4358 #: build/C/man2/spu_run.2:164 build/C/man2/statfs.2:153 build/C/man3/statvfs.3:120
4359 #, no-wrap
4360 msgid "B<EINTR>"
4361 msgstr ""
4362
4363 #. type: Plain text
4364 #: build/C/man2/spu_run.2:174
4365 msgid ""
4366 "A signal occurred while B<spu_run>()  was in progress; see B<signal>(7).  "
4367 "The I<npc> value has been updated to the new program counter value if "
4368 "necessary."
4369 msgstr ""
4370
4371 #. type: Plain text
4372 #: build/C/man2/spu_run.2:179
4373 msgid "I<fd> is not a valid file descriptor returned from B<spu_create>(2)."
4374 msgstr ""
4375
4376 #. type: Plain text
4377 #: build/C/man2/spu_run.2:183
4378 msgid ""
4379 "There was not enough memory available to handle a page fault resulting from "
4380 "a Memory Flow Controller (MFC) direct memory access."
4381 msgstr ""
4382
4383 #. type: Plain text
4384 #: build/C/man2/spu_run.2:192
4385 msgid "The B<spu_run>()  system call was added to Linux in kernel 2.6.16."
4386 msgstr ""
4387
4388 #. type: Plain text
4389 #: build/C/man2/spu_run.2:196
4390 msgid ""
4391 "This call is Linux-specific and implemented only by the PowerPC "
4392 "architecture.  Programs using this system call are not portable."
4393 msgstr ""
4394
4395 #. type: Plain text
4396 #: build/C/man2/spu_run.2:207
4397 msgid ""
4398 "Glibc does not provide a wrapper for this system call; call it using "
4399 "B<syscall>(2).  Note however, that B<spu_run>()  is meant to be used from "
4400 "libraries that implement a more abstract interface to SPUs, not to be used "
4401 "from regular applications.  See E<.UR "
4402 "http://www.bsc.es\\:/projects\\:/deepcomputing\\:/linuxoncell/> E<.UE> for "
4403 "the recommended libraries."
4404 msgstr ""
4405
4406 #. type: Plain text
4407 #: build/C/man2/spu_run.2:212
4408 msgid ""
4409 "The following is an example of running a simple, one-instruction SPU program "
4410 "with the B<spu_run>()  system call."
4411 msgstr ""
4412
4413 #. type: Plain text
4414 #: build/C/man2/spu_run.2:220
4415 #, no-wrap
4416 msgid ""
4417 "#include E<lt>stdlib.hE<gt>\n"
4418 "#include E<lt>stdint.hE<gt>\n"
4419 "#include E<lt>unistd.hE<gt>\n"
4420 "#include E<lt>stdio.hE<gt>\n"
4421 "#include E<lt>sys/types.hE<gt>\n"
4422 "#include E<lt>fcntl.hE<gt>\n"
4423 msgstr ""
4424
4425 #. type: Plain text
4426 #: build/C/man2/spu_run.2:223
4427 #, no-wrap
4428 msgid ""
4429 "#define handle_error(msg) \\e\n"
4430 "    do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
4431 msgstr ""
4432
4433 #. type: Plain text
4434 #: build/C/man2/spu_run.2:228
4435 #, no-wrap
4436 msgid ""
4437 "int main(void)\n"
4438 "{\n"
4439 "    int context, fd, spu_status;\n"
4440 "    uint32_t instruction, npc;\n"
4441 msgstr ""
4442
4443 #. type: Plain text
4444 #: build/C/man2/spu_run.2:232
4445 #, no-wrap
4446 msgid ""
4447 "    context = spu_create(\"/spu/example-context\", 0, 0755);\n"
4448 "    if (context == -1)\n"
4449 "        handle_error(\"spu_create\");\n"
4450 msgstr ""
4451
4452 #. type: Plain text
4453 #: build/C/man2/spu_run.2:237
4454 #, no-wrap
4455 msgid ""
4456 "    /* write a \\(aqstop 0x1234\\(aq instruction to the SPU\\(aqs\n"
4457 "     * local store memory\n"
4458 "     */\n"
4459 "    instruction = 0x00001234;\n"
4460 msgstr ""
4461
4462 #. type: Plain text
4463 #: build/C/man2/spu_run.2:242
4464 #, no-wrap
4465 msgid ""
4466 "    fd = open(\"/spu/example-context/mem\", O_RDWR);\n"
4467 "    if (fd == -1)\n"
4468 "        handle_error(\"open\");\n"
4469 "    write(fd, &instruction, sizeof(instruction));\n"
4470 msgstr ""
4471
4472 #. type: Plain text
4473 #: build/C/man2/spu_run.2:248
4474 #, no-wrap
4475 msgid ""
4476 "    /* set npc to the starting instruction address of the\n"
4477 "     * SPU program. Since we wrote the instruction at the\n"
4478 "     * start of the mem file, the entry point will be 0x0\n"
4479 "     */\n"
4480 "    npc = 0;\n"
4481 msgstr ""
4482
4483 #. type: Plain text
4484 #: build/C/man2/spu_run.2:252
4485 #, no-wrap
4486 msgid ""
4487 "    spu_status = spu_run(context, &npc, NULL);\n"
4488 "    if (spu_status == -1)\n"
4489 "        handle_error(\"open\");\n"
4490 msgstr ""
4491
4492 #. type: Plain text
4493 #: build/C/man2/spu_run.2:258
4494 #, no-wrap
4495 msgid ""
4496 "    /* we should see a status code of 0x1234002:\n"
4497 "     *   0x00000002 (spu was stopped due to stop-and-signal)\n"
4498 "     * | 0x12340000 (the stop-and-signal code)\n"
4499 "     */\n"
4500 "    printf(\"SPU Status: 0x%08x\\en\", spu_status);\n"
4501 msgstr ""
4502
4503 #. type: Plain text
4504 #: build/C/man2/spu_run.2:261 build/C/man2/stat.2:654
4505 #, no-wrap
4506 msgid ""
4507 "    exit(EXIT_SUCCESS);\n"
4508 "}\n"
4509 msgstr ""
4510
4511 #. type: Plain text
4512 #: build/C/man2/spu_run.2:269
4513 msgid "B<close>(2), B<spu_create>(2), B<capabilities>(7), B<spufs>(7)"
4514 msgstr ""
4515
4516 #. type: TH
4517 #: build/C/man7/spufs.7:27
4518 #, no-wrap
4519 msgid "SPUFS"
4520 msgstr ""
4521
4522 #. type: TH
4523 #: build/C/man7/spufs.7:27
4524 #, no-wrap
4525 msgid "2007-12-20"
4526 msgstr ""
4527
4528 #. type: Plain text
4529 #: build/C/man7/spufs.7:30
4530 msgid "spufs - SPU filesystem"
4531 msgstr ""
4532
4533 #. type: Plain text
4534 #: build/C/man7/spufs.7:34
4535 msgid ""
4536 "The SPU filesystem is used on PowerPC machines that implement the Cell "
4537 "Broadband Engine Architecture in order to access Synergistic Processor Units "
4538 "(SPUs)."
4539 msgstr ""
4540
4541 #. type: Plain text
4542 #: build/C/man7/spufs.7:43
4543 msgid ""
4544 "The filesystem provides a name space similar to POSIX shared memory or "
4545 "message queues.  Users that have write permissions on the filesystem can use "
4546 "B<spu_create>(2)  to establish SPU contexts under the B<spufs> root "
4547 "directory."
4548 msgstr ""
4549
4550 #. type: Plain text
4551 #: build/C/man7/spufs.7:50
4552 msgid ""
4553 "Every SPU context is represented by a directory containing a predefined set "
4554 "of files.  These files can be used for manipulating the state of the logical "
4555 "SPU.  Users can change permissions on the files, but can't add or remove "
4556 "files."
4557 msgstr ""
4558
4559 #. type: SS
4560 #: build/C/man7/spufs.7:50
4561 #, no-wrap
4562 msgid "Mount options"
4563 msgstr ""
4564
4565 #. type: TP
4566 #: build/C/man7/spufs.7:51
4567 #, no-wrap
4568 msgid "B<uid=E<lt>uidE<gt>>"
4569 msgstr ""
4570
4571 #. type: Plain text
4572 #: build/C/man7/spufs.7:54
4573 msgid "Set the user owning the mount point; the default is 0 (root)."
4574 msgstr ""
4575
4576 #. type: TP
4577 #: build/C/man7/spufs.7:54
4578 #, no-wrap
4579 msgid "B<gid=E<lt>gidE<gt>>"
4580 msgstr ""
4581
4582 #. type: Plain text
4583 #: build/C/man7/spufs.7:57
4584 msgid "Set the group owning the mount point; the default is 0 (root)."
4585 msgstr ""
4586
4587 #. type: TP
4588 #: build/C/man7/spufs.7:57
4589 #, no-wrap
4590 msgid "B<mode=E<lt>modeE<gt>>"
4591 msgstr ""
4592
4593 #. type: Plain text
4594 #: build/C/man7/spufs.7:63
4595 msgid ""
4596 "Set the mode of the top-level directory in B<spufs>, as an octal mode "
4597 "string.  The default is 0775."
4598 msgstr ""
4599
4600 #. type: SS
4601 #: build/C/man7/spufs.7:63
4602 #, no-wrap
4603 msgid "Files"
4604 msgstr ""
4605
4606 #. type: Plain text
4607 #: build/C/man7/spufs.7:75
4608 msgid ""
4609 "The files in B<spufs> mostly follow the standard behavior for regular system "
4610 "calls like B<read>(2)  or B<write>(2), but often support only a subset of "
4611 "the operations supported on regular filesystems.  This list details the "
4612 "supported operations and the deviations from the standard behavior described "
4613 "in the respective man pages."
4614 msgstr ""
4615
4616 #. type: Plain text
4617 #: build/C/man7/spufs.7:97
4618 msgid ""
4619 "All files that support the B<read>(2)  operation also support B<readv>(2)  "
4620 "and all files that support the B<write>(2)  operation also support "
4621 "B<writev>(2).  All files support the B<access>(2)  and B<stat>(2)  family of "
4622 "operations, but for the latter call, the only fields of the returned I<stat> "
4623 "structure that contain reliable information are I<st_mode>, I<st_nlink>, "
4624 "I<st_uid>, and I<st_gid>."
4625 msgstr ""
4626
4627 #. type: Plain text
4628 #: build/C/man7/spufs.7:106
4629 msgid ""
4630 "All files support the B<chmod>(2)/B<fchmod>(2)  and B<chown>(2)/B<fchown>(2)  "
4631 "operations, but will not be able to grant permissions that contradict the "
4632 "possible operations (e.g., read access on the I<wbox> file)."
4633 msgstr ""
4634
4635 #. type: Plain text
4636 #: build/C/man7/spufs.7:108
4637 msgid "The current set of files is:"
4638 msgstr ""
4639
4640 #. type: TP
4641 #: build/C/man7/spufs.7:108
4642 #, no-wrap
4643 msgid "I</capabilities>"
4644 msgstr ""
4645
4646 #. type: Plain text
4647 #: build/C/man7/spufs.7:113
4648 msgid ""
4649 "Contains a comma-delimited string representing the capabilities of this SPU "
4650 "context.  Possible capabilities are:"
4651 msgstr ""
4652
4653 #. type: TP
4654 #: build/C/man7/spufs.7:114
4655 #, no-wrap
4656 msgid "B<sched>"
4657 msgstr ""
4658
4659 #. type: Plain text
4660 #: build/C/man7/spufs.7:117
4661 msgid "This context may be scheduled."
4662 msgstr ""
4663
4664 #. type: TP
4665 #: build/C/man7/spufs.7:117
4666 #, no-wrap
4667 msgid "B<step>"
4668 msgstr ""
4669
4670 #. type: Plain text
4671 #: build/C/man7/spufs.7:120
4672 msgid "This context can be run in single-step mode, for debugging."
4673 msgstr ""
4674
4675 #. type: Plain text
4676 #: build/C/man7/spufs.7:122
4677 msgid "New capabilities flags may be added in the future."
4678 msgstr ""
4679
4680 #. type: TP
4681 #: build/C/man7/spufs.7:123
4682 #, no-wrap
4683 msgid "I</mem>"
4684 msgstr ""
4685
4686 #. type: Plain text
4687 #: build/C/man7/spufs.7:132
4688 msgid ""
4689 "the contents of the local storage memory of the SPU.  This can be accessed "
4690 "like a regular shared memory file and contains both code and data in the "
4691 "address space of the SPU.  The possible operations on an open I<mem> file "
4692 "are:"
4693 msgstr ""
4694
4695 #. type: TP
4696 #: build/C/man7/spufs.7:133
4697 #, no-wrap
4698 msgid "B<read>(2), B<pread>(2), B<write>(2), B<pwrite>(2), B<lseek>(2)"
4699 msgstr ""
4700
4701 #. type: Plain text
4702 #: build/C/man7/spufs.7:144
4703 msgid ""
4704 "These operate as usual, with the exception that B<lseek>(2), B<write>(2), "
4705 "and B<pwrite>(2)  are not supported beyond the end of the file.  The file "
4706 "size is the size of the local storage of the SPU, which is normally 256 "
4707 "kilobytes."
4708 msgstr ""
4709
4710 #. type: TP
4711 #: build/C/man7/spufs.7:144 build/C/man7/spufs.7:706 build/C/man7/spufs.7:725
4712 #, no-wrap
4713 msgid "B<mmap>(2)"
4714 msgstr ""
4715
4716 #. type: Plain text
4717 #: build/C/man7/spufs.7:153
4718 msgid ""
4719 "Mapping I<mem> into the process address space provides access to the SPU "
4720 "local storage within the process address space.  Only B<MAP_SHARED> mappings "
4721 "are allowed."
4722 msgstr ""
4723
4724 #. type: TP
4725 #: build/C/man7/spufs.7:154
4726 #, no-wrap
4727 msgid "I</regs>"
4728 msgstr ""
4729
4730 #. type: Plain text
4731 #: build/C/man7/spufs.7:161
4732 msgid ""
4733 "Contains the saved general-purpose registers of the SPU context.  This file "
4734 "contains the 128-bit values of each register, from register 0 to register "
4735 "127, in order.  This allows the general-purpose registers to be inspected "
4736 "for debugging."
4737 msgstr ""
4738
4739 #. type: Plain text
4740 #: build/C/man7/spufs.7:165
4741 msgid ""
4742 "Reading to or writing from this file requires that the context is scheduled "
4743 "out, so use of this file is not recommended in normal program operation."
4744 msgstr ""
4745
4746 #. type: Plain text
4747 #: build/C/man7/spufs.7:171
4748 msgid ""
4749 "The I<regs> file is not present on contexts that have been created with the "
4750 "B<SPU_CREATE_NOSCHED> flag."
4751 msgstr ""
4752
4753 #. type: TP
4754 #: build/C/man7/spufs.7:171
4755 #, no-wrap
4756 msgid "I</mbox>"
4757 msgstr ""
4758
4759 #. type: Plain text
4760 #: build/C/man7/spufs.7:181
4761 msgid ""
4762 "The first SPU-to-CPU communication mailbox.  This file is read-only and can "
4763 "be read in units of 4 bytes.  The file can be used only in nonblocking mode "
4764 "- even B<poll>(2)  cannot be used to block on this file.  The only possible "
4765 "operation on an open I<mbox> file is:"
4766 msgstr ""
4767
4768 #. type: TP
4769 #: build/C/man7/spufs.7:182 build/C/man7/spufs.7:222 build/C/man7/spufs.7:317 build/C/man7/spufs.7:381 build/C/man7/spufs.7:418 build/C/man7/spufs.7:463 build/C/man7/spufs.7:517 build/C/man7/spufs.7:632 build/C/man7/spufs.7:676 build/C/man7/spufs.7:754
4770 #, no-wrap
4771 msgid "B<read>(2)"
4772 msgstr ""
4773
4774 #. type: Plain text
4775 #: build/C/man7/spufs.7:200
4776 msgid ""
4777 "If I<count> is smaller than four, B<read>(2)  returns -1 and sets I<errno> "
4778 "to B<EINVAL>.  If there is no data available in the mailbox (i.e., the SPU "
4779 "has not sent a mailbox message), the return value is set to -1 and I<errno> "
4780 "is set to B<EAGAIN>.  When data has been read successfully, four bytes are "
4781 "placed in the data buffer and the value four is returned."
4782 msgstr ""
4783
4784 #. type: TP
4785 #: build/C/man7/spufs.7:201
4786 #, no-wrap
4787 msgid "I</ibox>"
4788 msgstr ""
4789
4790 #. type: Plain text
4791 #: build/C/man7/spufs.7:217
4792 msgid ""
4793 "The second SPU-to-CPU communication mailbox.  This file is similar to the "
4794 "first mailbox file, but can be read in blocking I/O mode, thus calling "
4795 "B<read>(2)  on an open I<ibox> file will block until the SPU has written "
4796 "data to its interrupt mailbox channel (unless the file has been opened with "
4797 "B<O_NONBLOCK>, see below).  Also, B<poll>(2)  and similar system calls can "
4798 "be used to monitor for the presence of mailbox data."
4799 msgstr ""
4800
4801 #. type: Plain text
4802 #: build/C/man7/spufs.7:221
4803 msgid "The possible operations on an open I<ibox> file are:"
4804 msgstr ""
4805
4806 #. type: Plain text
4807 #: build/C/man7/spufs.7:239
4808 msgid ""
4809 "If I<count> is smaller than four, B<read>(2)  returns -1 and sets I<errno> "
4810 "to B<EINVAL>.  If there is no data available in the mailbox and the file "
4811 "descriptor has been opened with B<O_NONBLOCK>, the return value is set to -1 "
4812 "and I<errno> is set to B<EAGAIN>."
4813 msgstr ""
4814
4815 #. type: Plain text
4816 #: build/C/man7/spufs.7:247
4817 msgid ""
4818 "If there is no data available in the mailbox and the file descriptor has "
4819 "been opened without B<O_NONBLOCK>, the call will block until the SPU writes "
4820 "to its interrupt mailbox channel.  When data has been read successfully, "
4821 "four bytes are placed in the data buffer and the value four is returned."
4822 msgstr ""
4823
4824 #. type: TP
4825 #: build/C/man7/spufs.7:247 build/C/man7/spufs.7:295 build/C/man7/spufs.7:685
4826 #, no-wrap
4827 msgid "B<poll>(2)"
4828 msgstr ""
4829
4830 #. type: Plain text
4831 #: build/C/man7/spufs.7:254
4832 msgid ""
4833 "Poll on the I<ibox> file returns I<(POLLIN | POLLRDNORM)> whenever data is "
4834 "available for reading."
4835 msgstr ""
4836
4837 #. type: TP
4838 #: build/C/man7/spufs.7:255
4839 #, no-wrap
4840 msgid "I</wbox>"
4841 msgstr ""
4842
4843 #. type: Plain text
4844 #: build/C/man7/spufs.7:267
4845 msgid ""
4846 "The CPU-to-SPU communication mailbox.  It is write-only and can be written "
4847 "in units of four bytes.  If the mailbox is full, B<write>(2)  will block, "
4848 "and B<poll>(2)  can be used to block until the mailbox is available for "
4849 "writing again.  The possible operations on an open I<wbox> file are:"
4850 msgstr ""
4851
4852 #. type: TP
4853 #: build/C/man7/spufs.7:268 build/C/man7/spufs.7:392 build/C/man7/spufs.7:432 build/C/man7/spufs.7:476 build/C/man7/spufs.7:527 build/C/man7/spufs.7:638 build/C/man7/spufs.7:652 build/C/man7/spufs.7:749
4854 #, no-wrap
4855 msgid "B<write>(2)"
4856 msgstr ""
4857
4858 #. type: Plain text
4859 #: build/C/man7/spufs.7:286
4860 msgid ""
4861 "If I<count> is smaller than four, B<write>(2)  returns -1 and sets I<errno> "
4862 "to B<EINVAL>.  If there is no space available in the mailbox and the file "
4863 "descriptor has been opened with B<O_NONBLOCK>, the return value is set to -1 "
4864 "and I<errno> is set to B<EAGAIN>."
4865 msgstr ""
4866
4867 #. type: Plain text
4868 #: build/C/man7/spufs.7:295
4869 msgid ""
4870 "If there is no space available in the mailbox and the file descriptor has "
4871 "been opened without B<O_NONBLOCK>, the call will block until the SPU reads "
4872 "from its PPE (PowerPC Processing Element)  mailbox channel.  When data has "
4873 "been written successfully, the system call returns four as its function "
4874 "result."
4875 msgstr ""
4876
4877 #. type: Plain text
4878 #: build/C/man7/spufs.7:302
4879 msgid ""
4880 "A poll on the I<wbox> file returns I<(POLLOUT | POLLWRNORM)> whenever space "
4881 "is available for writing."
4882 msgstr ""
4883
4884 #. type: TP
4885 #: build/C/man7/spufs.7:303
4886 #, no-wrap
4887 msgid "I</mbox_stat>, I</ibox_stat>, I</wbox_stat>"
4888 msgstr ""
4889
4890 #. type: Plain text
4891 #: build/C/man7/spufs.7:316
4892 msgid ""
4893 "These are read-only files that contain the length of the current queue of "
4894 "each mailbox, i.e., how many words can be read from I<mbox> or I<ibox> or "
4895 "how many words can be written to I<wbox> without blocking.  The files can be "
4896 "read only in four-byte units and return a big-endian binary integer number.  "
4897 "The only possible operation on an open I<*box_stat> file is:"
4898 msgstr ""
4899
4900 #. type: Plain text
4901 #: build/C/man7/spufs.7:337
4902 msgid ""
4903 "If I<count> is smaller than four, B<read>(2)  returns -1 and sets I<errno> "
4904 "to B<EINVAL>.  Otherwise, a four-byte value is placed in the data buffer.  "
4905 "This value is the number of elements that can be read from (for I<mbox_stat> "
4906 "and I<ibox_stat>)  or written to (for I<wbox_stat>)  the respective mailbox "
4907 "without blocking or returning an B<EAGAIN> error."
4908 msgstr ""
4909
4910 #. type: TP
4911 #: build/C/man7/spufs.7:338
4912 #, no-wrap
4913 msgid ""
4914 "I</npc>, I</decr>, I</decr_status>, I</spu_tag_mask>, I</event_mask>, "
4915 "I</event_status>, I</srr0>, I</lslr>"
4916 msgstr ""
4917
4918 #. type: Plain text
4919 #: build/C/man7/spufs.7:350
4920 msgid ""
4921 "Internal registers of the SPU.  These files contain an ASCII string "
4922 "representing the hex value of the specified register.  Reads and writes on "
4923 "these files (except for I<npc>, see below) require that the SPU context be "
4924 "scheduled out, so frequent access to these files is not recommended for "
4925 "normal program operation."
4926 msgstr ""
4927
4928 #. type: Plain text
4929 #: build/C/man7/spufs.7:352
4930 msgid "The contents of these files are:"
4931 msgstr ""
4932
4933 #. type: TP
4934 #: build/C/man7/spufs.7:353
4935 #, no-wrap
4936 msgid "I<npc>"
4937 msgstr ""
4938
4939 #. type: Plain text
4940 #: build/C/man7/spufs.7:356
4941 msgid "Next Program Counter - valid only when the SPU is in a stopped state."
4942 msgstr ""
4943
4944 #. type: TP
4945 #: build/C/man7/spufs.7:356
4946 #, no-wrap
4947 msgid "I<decr>"
4948 msgstr ""
4949
4950 #. type: Plain text
4951 #: build/C/man7/spufs.7:359
4952 msgid "SPU Decrementer"
4953 msgstr ""
4954
4955 #. type: TP
4956 #: build/C/man7/spufs.7:359
4957 #, no-wrap
4958 msgid "I<decr_status>"
4959 msgstr ""
4960
4961 #. type: Plain text
4962 #: build/C/man7/spufs.7:362
4963 msgid "Decrementer Status"
4964 msgstr ""
4965
4966 #. type: TP
4967 #: build/C/man7/spufs.7:362
4968 #, no-wrap
4969 msgid "I<spu_tag_mask>"
4970 msgstr ""
4971
4972 #. type: Plain text
4973 #: build/C/man7/spufs.7:365
4974 msgid "MFC tag mask for SPU DMA"
4975 msgstr ""
4976
4977 #. type: TP
4978 #: build/C/man7/spufs.7:365
4979 #, no-wrap
4980 msgid "I<event_mask>"
4981 msgstr ""
4982
4983 #. type: Plain text
4984 #: build/C/man7/spufs.7:368
4985 msgid "Event mask for SPU interrupts"
4986 msgstr ""
4987
4988 #. type: TP
4989 #: build/C/man7/spufs.7:368
4990 #, no-wrap
4991 msgid "I<event_status>"
4992 msgstr ""
4993
4994 #. type: Plain text
4995 #: build/C/man7/spufs.7:371
4996 msgid "Number of SPU events pending (read-only)"
4997 msgstr ""
4998
4999 #. type: TP
5000 #: build/C/man7/spufs.7:371
5001 #, no-wrap
5002 msgid "I<srr0>"
5003 msgstr ""
5004
5005 #. type: Plain text
5006 #: build/C/man7/spufs.7:374
5007 msgid "Interrupt Return address register"
5008 msgstr ""
5009
5010 #. type: TP
5011 #: build/C/man7/spufs.7:374
5012 #, no-wrap
5013 msgid "I<lslr>"
5014 msgstr ""
5015
5016 #. type: Plain text
5017 #: build/C/man7/spufs.7:377
5018 msgid "Local Store Limit Register"
5019 msgstr ""
5020
5021 #. type: Plain text
5022 #: build/C/man7/spufs.7:380
5023 msgid "The possible operations on these files are:"
5024 msgstr ""
5025
5026 #. type: Plain text
5027 #: build/C/man7/spufs.7:388
5028 msgid ""
5029 "Reads the current register value.  If the register value is larger than the "
5030 "buffer passed to the B<read>(2)  system call, subsequent reads will continue "
5031 "reading from the same buffer, until the end of the buffer is reached."
5032 msgstr ""
5033
5034 #. type: Plain text
5035 #: build/C/man7/spufs.7:392
5036 msgid ""
5037 "When a complete string has been read, all subsequent read operations will "
5038 "return zero bytes and a new file descriptor needs to be opened to read a new "
5039 "value."
5040 msgstr ""
5041
5042 #. type: Plain text
5043 #: build/C/man7/spufs.7:402 build/C/man7/spufs.7:537
5044 msgid ""
5045 "A B<write>(2)  operation on the file sets the register to the value given in "
5046 "the string.  The string is parsed from the beginning until the first "
5047 "nonnumeric character or the end of the buffer.  Subsequent writes to the "
5048 "same file descriptor overwrite the previous setting."
5049 msgstr ""
5050
5051 #. type: Plain text
5052 #: build/C/man7/spufs.7:409
5053 msgid ""
5054 "Except for the I<npc> file, these files are not present on contexts that "
5055 "have been created with the B<SPU_CREATE_NOSCHED> flag."
5056 msgstr ""
5057
5058 #. type: TP
5059 #: build/C/man7/spufs.7:410
5060 #, no-wrap
5061 msgid "I</fpcr>"
5062 msgstr ""
5063
5064 #. type: Plain text
5065 #: build/C/man7/spufs.7:417
5066 msgid ""
5067 "This file provides access to the Floating Point Status and Control Register "
5068 "(fcpr) as a binary, four-byte file.  The operations on the I<fpcr> file are:"
5069 msgstr ""
5070
5071 #. type: Plain text
5072 #: build/C/man7/spufs.7:432
5073 msgid ""
5074 "If I<count> is smaller than four, B<read>(2)  returns -1 and sets I<errno> "
5075 "to B<EINVAL>.  Otherwise, a four-byte value is placed in the data buffer; "
5076 "this is the current value of the I<fpcr> register."
5077 msgstr ""
5078
5079 #. type: Plain text
5080 #: build/C/man7/spufs.7:446
5081 msgid ""
5082 "If I<count> is smaller than four, B<write>(2)  returns -1 and sets I<errno> "
5083 "to B<EINVAL>.  Otherwise, a four-byte value is copied from the data buffer, "
5084 "updating the value of the I<fpcr> register."
5085 msgstr ""
5086
5087 #. type: TP
5088 #: build/C/man7/spufs.7:447
5089 #, no-wrap
5090 msgid "I</signal1>, I</signal2>"
5091 msgstr ""
5092
5093 #. type: Plain text
5094 #: build/C/man7/spufs.7:462
5095 msgid ""
5096 "The files provide access to the two signal notification channels of an SPU.  "
5097 "These are read-write files that operate on four-byte words.  Writing to one "
5098 "of these files triggers an interrupt on the SPU.  The value written to the "
5099 "signal files can be read from the SPU through a channel read or from host "
5100 "user space through the file.  After the value has been read by the SPU, it "
5101 "is reset to zero.  The possible operations on an open I<signal1> or "
5102 "I<signal2> file are:"
5103 msgstr ""
5104
5105 #. type: Plain text
5106 #: build/C/man7/spufs.7:476
5107 msgid ""
5108 "If I<count> is smaller than four, B<read>(2)  returns -1 and sets I<errno> "
5109 "to B<EINVAL>.  Otherwise, a four-byte value is placed in the data buffer; "
5110 "this is the current value of the specified signal notification register."
5111 msgstr ""
5112
5113 #. type: Plain text
5114 #: build/C/man7/spufs.7:497
5115 msgid ""
5116 "If I<count> is smaller than four, B<write>(2)  returns -1 and sets I<errno> "
5117 "to B<EINVAL>.  Otherwise, a four-byte value is copied from the data buffer, "
5118 "updating the value of the specified signal notification register.  The "
5119 "signal notification register will either be replaced with the input data or "
5120 "will be updated to the bitwise OR operation of the old value and the input "
5121 "data, depending on the contents of the I<signal1_type> or I<signal2_type> "
5122 "files respectively."
5123 msgstr ""
5124
5125 #. type: TP
5126 #: build/C/man7/spufs.7:498
5127 #, no-wrap
5128 msgid "I</signal1_type>, I</signal2_type>"
5129 msgstr ""
5130
5131 #. type: Plain text
5132 #: build/C/man7/spufs.7:516
5133 msgid ""
5134 "These two files change the behavior of the I<signal1> and I<signal2> "
5135 "notification files.  They contain a numeric ASCII string which is read as "
5136 "either \"1\" or \"0\".  In mode 0 (overwrite), the hardware replaces the "
5137 "contents of the signal channel with the data that is written to it.  In mode "
5138 "1 (logical OR), the hardware accumulates the bits that are subsequently "
5139 "written to it.  The possible operations on an open I<signal1_type> or "
5140 "I<signal2_type> file are:"
5141 msgstr ""
5142
5143 #. type: Plain text
5144 #: build/C/man7/spufs.7:527
5145 msgid ""
5146 "When the count supplied to the B<read>(2)  call is shorter than the required "
5147 "length for the digit (plus a newline character), subsequent reads from the "
5148 "same file descriptor will complete the string.  When a complete string has "
5149 "been read, all subsequent read operations will return zero bytes and a new "
5150 "file descriptor needs to be opened to read the value again."
5151 msgstr ""
5152
5153 #. type: TP
5154 #: build/C/man7/spufs.7:538
5155 #, no-wrap
5156 msgid "I</mbox_info>, I</ibox_info>, I</wbox_info>, I</dma_into>, I</proxydma_info>"
5157 msgstr ""
5158
5159 #. type: Plain text
5160 #: build/C/man7/spufs.7:557
5161 msgid ""
5162 "Read-only files that contain the saved state of the SPU mailboxes and DMA "
5163 "queues.  This allows the SPU status to be inspected, mainly for debugging.  "
5164 "The I<mbox_info> and I<ibox_info> files each contain the four-byte mailbox "
5165 "message that has been written by the SPU.  If no message has been written to "
5166 "these mailboxes, then contents of these files is undefined.  The "
5167 "I<mbox_stat>, I<ibox_stat> and I<wbox_stat> files contain the available "
5168 "message count."
5169 msgstr ""
5170
5171 #. type: Plain text
5172 #: build/C/man7/spufs.7:566
5173 msgid ""
5174 "The I<wbox_info> file contains an array of four-byte mailbox messages, which "
5175 "have been sent to the SPU.  With current CBEA machines, the array is four "
5176 "items in length, so up to 4 * 4 = 16 bytes can be read from this file.  If "
5177 "any mailbox queue entry is empty, then the bytes read at the corresponding "
5178 "location are undefined."
5179 msgstr ""
5180
5181 #. type: Plain text
5182 #: build/C/man7/spufs.7:571
5183 msgid ""
5184 "The I<dma_info> file contains the contents of the SPU MFC DMA queue, "
5185 "represented as the following structure:"
5186 msgstr ""
5187
5188 #. type: Plain text
5189 #: build/C/man7/spufs.7:582
5190 #, no-wrap
5191 msgid ""
5192 "struct spu_dma_info {\n"
5193 "    uint64_t         dma_info_type;\n"
5194 "    uint64_t         dma_info_mask;\n"
5195 "    uint64_t         dma_info_status;\n"
5196 "    uint64_t         dma_info_stall_and_notify;\n"
5197 "    uint64_t         dma_info_atomic_command_status;\n"
5198 "    struct mfc_cq_sr dma_info_command_data[16];\n"
5199 "};\n"
5200 msgstr ""
5201
5202 #. type: Plain text
5203 #: build/C/man7/spufs.7:590
5204 msgid ""
5205 "The last member of this data structure is the actual DMA queue, containing "
5206 "16 entries.  The I<mfc_cq_sr> structure is defined as:"
5207 msgstr ""
5208
5209 #. type: Plain text
5210 #: build/C/man7/spufs.7:599
5211 #, no-wrap
5212 msgid ""
5213 "struct mfc_cq_sr {\n"
5214 "    uint64_t mfc_cq_data0_RW;\n"
5215 "    uint64_t mfc_cq_data1_RW;\n"
5216 "    uint64_t mfc_cq_data2_RW;\n"
5217 "    uint64_t mfc_cq_data3_RW;\n"
5218 "};\n"
5219 msgstr ""
5220
5221 #. type: Plain text
5222 #: build/C/man7/spufs.7:607
5223 msgid ""
5224 "The I<proxydma_info> file contains similar information, but describes the "
5225 "proxy DMA queue (i.e., DMAs initiated by entities outside the SPU) instead.  "
5226 "The file is in the following format:"
5227 msgstr ""
5228
5229 #. type: Plain text
5230 #: build/C/man7/spufs.7:616
5231 #, no-wrap
5232 msgid ""
5233 "struct spu_proxydma_info {\n"
5234 "    uint64_t         proxydma_info_type;\n"
5235 "    uint64_t         proxydma_info_mask;\n"
5236 "    uint64_t         proxydma_info_status;\n"
5237 "    struct mfc_cq_sr proxydma_info_command_data[8];\n"
5238 "};\n"
5239 msgstr ""
5240
5241 #. type: Plain text
5242 #: build/C/man7/spufs.7:622
5243 msgid ""
5244 "Accessing these files requires that the SPU context is scheduled out - "
5245 "frequent use can be inefficient.  These files should not be used for normal "
5246 "program operation."
5247 msgstr ""
5248
5249 #. type: Plain text
5250 #: build/C/man7/spufs.7:626
5251 msgid ""
5252 "These files are not present on contexts that have been created with the "
5253 "B<SPU_CREATE_NOSCHED> flag."
5254 msgstr ""
5255
5256 #. type: TP
5257 #: build/C/man7/spufs.7:626
5258 #, no-wrap
5259 msgid "I</cntl>"
5260 msgstr ""
5261
5262 #. type: Plain text
5263 #: build/C/man7/spufs.7:631
5264 msgid ""
5265 "This file provides access to the SPU Run Control and SPU status registers, "
5266 "as an ASCII string.  The following operations are supported:"
5267 msgstr ""
5268
5269 #. type: Plain text
5270 #: build/C/man7/spufs.7:638
5271 msgid ""
5272 "Reads from the I<cntl> file will return an ASCII string with the hex value "
5273 "of the SPU Status register."
5274 msgstr ""
5275
5276 #. type: Plain text
5277 #: build/C/man7/spufs.7:643
5278 msgid "Writes to the I<cntl> file will set the context's SPU Run Control register."
5279 msgstr ""
5280
5281 #. type: TP
5282 #: build/C/man7/spufs.7:644
5283 #, no-wrap
5284 msgid "I</mfc>"
5285 msgstr ""
5286
5287 #. type: Plain text
5288 #: build/C/man7/spufs.7:651
5289 msgid ""
5290 "Provides access to the Memory Flow Controller of the SPU.  Reading from the "
5291 "file returns the contents of the SPU's MFC Tag Status register, and writing "
5292 "to the file initiates a DMA from the MFC.  The following operations are "
5293 "supported:"
5294 msgstr ""
5295
5296 #. type: Plain text
5297 #: build/C/man7/spufs.7:656
5298 msgid ""
5299 "Writes to this file need to be in the format of a MFC DMA command, defined "
5300 "as follows:"
5301 msgstr ""
5302
5303 #. type: Plain text
5304 #: build/C/man7/spufs.7:668
5305 #, no-wrap
5306 msgid ""
5307 "struct mfc_dma_command {\n"
5308 "    int32_t  pad;    /* reserved */\n"
5309 "    uint32_t lsa;    /* local storage address */\n"
5310 "    uint64_t ea;     /* effective address */\n"
5311 "    uint16_t size;   /* transfer size */\n"
5312 "    uint16_t tag;    /* command tag */\n"
5313 "    uint16_t class;  /* class ID */\n"
5314 "    uint16_t cmd;    /* command opcode */\n"
5315 "};\n"
5316 msgstr ""
5317
5318 #. type: Plain text
5319 #: build/C/man7/spufs.7:676
5320 msgid ""
5321 "Writes are required to be exactly I<sizeof(struct mfc_dma_command)> bytes in "
5322 "size.  The command will be sent to the SPU's MFC proxy queue, and the tag "
5323 "stored in the kernel (see below)."
5324 msgstr ""
5325
5326 #. type: Plain text
5327 #: build/C/man7/spufs.7:685
5328 msgid ""
5329 "Reads the contents of the tag status register.  If the file is opened in "
5330 "blocking mode (i.e., without B<O_NONBLOCK>), then the read will block until "
5331 "a DMA tag (as performed by a previous write) is complete.  In nonblocking "
5332 "mode, the MFC tag status register will be returned without waiting."
5333 msgstr ""
5334
5335 #. type: Plain text
5336 #: build/C/man7/spufs.7:698
5337 msgid ""
5338 "Calling B<poll>(2)  on the I<mfc> file will block until a new DMA can be "
5339 "started (by checking for B<POLLOUT>)  or until a previously started DMA (by "
5340 "checking for B<POLLIN>)  has been completed."
5341 msgstr ""
5342
5343 #. type: Plain text
5344 #: build/C/man7/spufs.7:704
5345 msgid ""
5346 "I</mss> Provides access to the MFC MultiSource Synchronization (MSS) "
5347 "facility.  By B<mmap>(2)-ing this file, processes can access the MSS area of "
5348 "the SPU."
5349 msgstr ""
5350
5351 #. type: Plain text
5352 #: build/C/man7/spufs.7:706 build/C/man7/spufs.7:724
5353 msgid "The following operations are supported:"
5354 msgstr ""
5355
5356 #. type: Plain text
5357 #: build/C/man7/spufs.7:715
5358 msgid ""
5359 "Mapping B<mss> into the process address space gives access to the SPU MSS "
5360 "area within the process address space.  Only B<MAP_SHARED> mappings are "
5361 "allowed."
5362 msgstr ""
5363
5364 #. type: TP
5365 #: build/C/man7/spufs.7:716
5366 #, no-wrap
5367 msgid "I</psmap>"
5368 msgstr ""
5369
5370 #. type: Plain text
5371 #: build/C/man7/spufs.7:722
5372 msgid ""
5373 "Provides access to the whole problem-state mapping of the SPU.  Applications "
5374 "can use this area to interface to the SPU, rather than writing to individual "
5375 "register files in B<spufs>."
5376 msgstr ""
5377
5378 #. type: Plain text
5379 #: build/C/man7/spufs.7:733
5380 msgid ""
5381 "Mapping B<psmap> gives a process a direct map of the SPU problem state "
5382 "area.  Only B<MAP_SHARED> mappings are supported."
5383 msgstr ""
5384
5385 #. type: TP
5386 #: build/C/man7/spufs.7:734
5387 #, no-wrap
5388 msgid "I</phys-id>"
5389 msgstr ""
5390
5391 #. type: Plain text
5392 #: build/C/man7/spufs.7:740
5393 msgid ""
5394 "Read-only file containing the physical SPU number that the SPU context is "
5395 "running on.  When the context is not running, this file contains the string "
5396 "\"-1\"."
5397 msgstr ""
5398
5399 #. type: Plain text
5400 #: build/C/man7/spufs.7:742
5401 msgid "The physical SPU number is given by an ASCII hex string."
5402 msgstr ""
5403
5404 #. type: TP
5405 #: build/C/man7/spufs.7:742
5406 #, no-wrap
5407 msgid "I</object-id>"
5408 msgstr ""
5409
5410 #. type: Plain text
5411 #: build/C/man7/spufs.7:748
5412 msgid ""
5413 "Allows applications to store (or retrieve) a single 64-bit ID into the "
5414 "context.  This ID is later used by profiling tools to uniquely identify the "
5415 "context."
5416 msgstr ""
5417
5418 #. type: Plain text
5419 #: build/C/man7/spufs.7:754
5420 msgid ""
5421 "By writing an ASCII hex value into this file, applications can set the "
5422 "object ID of the SPU context.  Any previous value of the object ID is "
5423 "overwritten."
5424 msgstr ""
5425
5426 #. type: Plain text
5427 #: build/C/man7/spufs.7:758
5428 msgid ""
5429 "Reading this file gives an ASCII hex string representing the object ID for "
5430 "this SPU context."
5431 msgstr ""
5432
5433 #. type: TP
5434 #: build/C/man7/spufs.7:760
5435 #, no-wrap
5436 msgid "I</etc/fstab>  entry"
5437 msgstr ""
5438
5439 #.  .SH AUTHORS
5440 #.  Arnd Bergmann <arndb@de.ibm.com>, Mark Nutter <mnutter@us.ibm.com>,
5441 #.  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>, Jeremy Kerr <jk@ozlabs.org>
5442 #. type: Plain text
5443 #: build/C/man7/spufs.7:766
5444 msgid "none \t/spu \tspufs \tgid=spu \t0\t0"
5445 msgstr ""
5446
5447 #. type: Plain text
5448 #: build/C/man7/spufs.7:771
5449 msgid "B<close>(2), B<spu_create>(2), B<spu_run>(2), B<capabilities>(7)"
5450 msgstr ""
5451
5452 #. type: Plain text
5453 #: build/C/man7/spufs.7:773
5454 msgid "I<The Cell Broadband Engine Architecture (CBEA) specification>"
5455 msgstr ""
5456
5457 #. type: TH
5458 #: build/C/man2/stat.2:40
5459 #, no-wrap
5460 msgid "STAT"
5461 msgstr ""
5462
5463 #. type: TH
5464 #: build/C/man2/stat.2:40
5465 #, no-wrap
5466 msgid "2012-11-11"
5467 msgstr ""
5468
5469 #. type: Plain text
5470 #: build/C/man2/stat.2:43
5471 msgid "stat, fstat, lstat - get file status"
5472 msgstr ""
5473
5474 #. type: Plain text
5475 #: build/C/man2/stat.2:45
5476 msgid "B<#include E<lt>sys/types.hE<gt>>"
5477 msgstr ""
5478
5479 #. type: Plain text
5480 #: build/C/man2/stat.2:47
5481 msgid "B<#include E<lt>sys/stat.hE<gt>>"
5482 msgstr ""
5483
5484 #. type: Plain text
5485 #: build/C/man2/stat.2:49
5486 msgid "B<#include E<lt>unistd.hE<gt>>"
5487 msgstr ""
5488
5489 #. type: Plain text
5490 #: build/C/man2/stat.2:51
5491 msgid "B<int stat(const char *>I<path>B<, struct stat *>I<buf>B<);>"
5492 msgstr ""
5493
5494 #. type: Plain text
5495 #: build/C/man2/stat.2:53
5496 msgid "B<int fstat(int >I<fd>B<, struct stat *>I<buf>B<);>"
5497 msgstr ""
5498
5499 #. type: Plain text
5500 #: build/C/man2/stat.2:55
5501 msgid "B<int lstat(const char *>I<path>B<, struct stat *>I<buf>B<);>"
5502 msgstr ""
5503
5504 #. type: Plain text
5505 #: build/C/man2/stat.2:64
5506 msgid "B<lstat>():"
5507 msgstr ""
5508
5509 #. type: Plain text
5510 #: build/C/man2/stat.2:67
5511 msgid ""
5512 "_BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || _XOPEN_SOURCE\\ &&\\ "
5513 "_XOPEN_SOURCE_EXTENDED"
5514 msgstr ""
5515
5516 #. type: Plain text
5517 #: build/C/man2/stat.2:69
5518 msgid "|| /* Since glibc 2.10: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L"
5519 msgstr ""
5520
5521 #. type: Plain text
5522 #: build/C/man2/stat.2:83
5523 msgid ""
5524 "These functions return information about a file.  No permissions are "
5525 "required on the file itself, but\\(emin the case of B<stat>()  and "
5526 "B<lstat>()  \\(em execute (search) permission is required on all of the "
5527 "directories in I<path> that lead to the file."
5528 msgstr ""
5529
5530 #. type: Plain text
5531 #: build/C/man2/stat.2:89
5532 msgid "B<stat>()  stats the file pointed to by I<path> and fills in I<buf>."
5533 msgstr ""
5534
5535 #. type: Plain text
5536 #: build/C/man2/stat.2:97
5537 msgid ""
5538 "B<lstat>()  is identical to B<stat>(), except that if I<path> is a symbolic "
5539 "link, then the link itself is stat-ed, not the file that it refers to."
5540 msgstr ""
5541
5542 #. type: Plain text
5543 #: build/C/man2/stat.2:103
5544 msgid ""
5545 "B<fstat>()  is identical to B<stat>(), except that the file to be stat-ed is "
5546 "specified by the file descriptor I<fd>."
5547 msgstr ""
5548
5549 #. type: Plain text
5550 #: build/C/man2/stat.2:107
5551 msgid ""
5552 "All of these system calls return a I<stat> structure, which contains the "
5553 "following fields:"
5554 msgstr ""
5555
5556 #. type: Plain text
5557 #: build/C/man2/stat.2:125
5558 #, no-wrap
5559 msgid ""
5560 "struct stat {\n"
5561 "    dev_t     st_dev;     /* ID of device containing file */\n"
5562 "    ino_t     st_ino;     /* inode number */\n"
5563 "    mode_t    st_mode;    /* protection */\n"
5564 "    nlink_t   st_nlink;   /* number of hard links */\n"
5565 "    uid_t     st_uid;     /* user ID of owner */\n"
5566 "    gid_t     st_gid;     /* group ID of owner */\n"
5567 "    dev_t     st_rdev;    /* device ID (if special file) */\n"
5568 "    off_t     st_size;    /* total size, in bytes */\n"
5569 "    blksize_t st_blksize; /* blocksize for filesystem I/O */\n"
5570 "    blkcnt_t  st_blocks;  /* number of 512B blocks allocated */\n"
5571 "    time_t    st_atime;   /* time of last access */\n"
5572 "    time_t    st_mtime;   /* time of last modification */\n"
5573 "    time_t    st_ctime;   /* time of last status change */\n"
5574 "};\n"
5575 msgstr ""
5576
5577 #. type: Plain text
5578 #: build/C/man2/stat.2:136
5579 msgid ""
5580 "The I<st_dev> field describes the device on which this file resides.  (The "
5581 "B<major>(3)  and B<minor>(3)  macros may be useful to decompose the device "
5582 "ID in this field.)"
5583 msgstr ""
5584
5585 #. type: Plain text
5586 #: build/C/man2/stat.2:140
5587 msgid "The I<st_rdev> field describes the device that this file (inode) represents."
5588 msgstr ""
5589
5590 #. type: Plain text
5591 #: build/C/man2/stat.2:147
5592 msgid ""
5593 "The I<st_size> field gives the size of the file (if it is a regular file or "
5594 "a symbolic link) in bytes.  The size of a symbolic link is the length of the "
5595 "pathname it contains, without a terminating null byte."
5596 msgstr ""
5597
5598 #. type: Plain text
5599 #: build/C/man2/stat.2:154
5600 msgid ""
5601 "The I<st_blocks> field indicates the number of blocks allocated to the file, "
5602 "512-byte units.  (This may be smaller than I<st_size>/512 when the file has "
5603 "holes.)"
5604 msgstr ""
5605
5606 #. type: Plain text
5607 #: build/C/man2/stat.2:160
5608 msgid ""
5609 "The I<st_blksize> field gives the \"preferred\" blocksize for efficient "
5610 "filesystem I/O.  (Writing to a file in smaller chunks may cause an "
5611 "inefficient read-modify-rewrite.)"
5612 msgstr ""
5613
5614 #. type: Plain text
5615 #: build/C/man2/stat.2:181
5616 msgid ""
5617 "Not all of the Linux filesystems implement all of the time fields.  Some "
5618 "filesystem types allow mounting in such a way that file and/or directory "
5619 "accesses do not cause an update of the I<st_atime> field.  (See I<noatime>, "
5620 "I<nodiratime>, and I<relatime> in B<mount>(8), and related information in "
5621 "B<mount>(2).)  In addition, I<st_atime> is not updated if a file is opened "
5622 "with the B<O_NOATIME>; see B<open>(2)."
5623 msgstr ""
5624
5625 #. type: Plain text
5626 #: build/C/man2/stat.2:196
5627 msgid ""
5628 "The field I<st_atime> is changed by file accesses, for example, by "
5629 "B<execve>(2), B<mknod>(2), B<pipe>(2), B<utime>(2)  and B<read>(2)  (of more "
5630 "than zero bytes).  Other routines, like B<mmap>(2), may or may not update "
5631 "I<st_atime>."
5632 msgstr ""
5633
5634 #. type: Plain text
5635 #: build/C/man2/stat.2:215
5636 msgid ""
5637 "The field I<st_mtime> is changed by file modifications, for example, by "
5638 "B<mknod>(2), B<truncate>(2), B<utime>(2)  and B<write>(2)  (of more than "
5639 "zero bytes).  Moreover, I<st_mtime> of a directory is changed by the "
5640 "creation or deletion of files in that directory.  The I<st_mtime> field is "
5641 "I<not> changed for changes in owner, group, hard link count, or mode."
5642 msgstr ""
5643
5644 #. type: Plain text
5645 #: build/C/man2/stat.2:220
5646 msgid ""
5647 "The field I<st_ctime> is changed by writing or by setting inode information "
5648 "(i.e., owner, group, link count, mode, etc.)."
5649 msgstr ""
5650
5651 #. type: Plain text
5652 #: build/C/man2/stat.2:224
5653 msgid ""
5654 "The following POSIX macros are defined to check the file type using the "
5655 "I<st_mode> field:"
5656 msgstr ""
5657
5658 #. type: TP
5659 #: build/C/man2/stat.2:225
5660 #, no-wrap
5661 msgid "B<S_ISREG>(m)"
5662 msgstr ""
5663
5664 #. type: Plain text
5665 #: build/C/man2/stat.2:228
5666 msgid "is it a regular file?"
5667 msgstr ""
5668
5669 #. type: TP
5670 #: build/C/man2/stat.2:228
5671 #, no-wrap
5672 msgid "B<S_ISDIR>(m)"
5673 msgstr ""
5674
5675 #. type: Plain text
5676 #: build/C/man2/stat.2:231
5677 msgid "directory?"
5678 msgstr ""
5679
5680 #. type: TP
5681 #: build/C/man2/stat.2:231
5682 #, no-wrap
5683 msgid "B<S_ISCHR>(m)"
5684 msgstr ""
5685
5686 #. type: Plain text
5687 #: build/C/man2/stat.2:234
5688 msgid "character device?"
5689 msgstr ""
5690
5691 #. type: TP
5692 #: build/C/man2/stat.2:234
5693 #, no-wrap
5694 msgid "B<S_ISBLK>(m)"
5695 msgstr ""
5696
5697 #. type: Plain text
5698 #: build/C/man2/stat.2:237
5699 msgid "block device?"
5700 msgstr ""
5701
5702 #. type: TP
5703 #: build/C/man2/stat.2:237
5704 #, no-wrap
5705 msgid "B<S_ISFIFO>(m)"
5706 msgstr ""
5707
5708 #. type: Plain text
5709 #: build/C/man2/stat.2:240
5710 msgid "FIFO (named pipe)?"
5711 msgstr ""
5712
5713 #. type: TP
5714 #: build/C/man2/stat.2:240
5715 #, no-wrap
5716 msgid "B<S_ISLNK>(m)"
5717 msgstr ""
5718
5719 #. type: Plain text
5720 #: build/C/man2/stat.2:243
5721 msgid "symbolic link? (Not in POSIX.1-1996.)"
5722 msgstr ""
5723
5724 #. type: TP
5725 #: build/C/man2/stat.2:243
5726 #, no-wrap
5727 msgid "B<S_ISSOCK>(m)"
5728 msgstr ""
5729
5730 #. type: Plain text
5731 #: build/C/man2/stat.2:246
5732 msgid "socket? (Not in POSIX.1-1996.)"
5733 msgstr ""
5734
5735 #. type: Plain text
5736 #: build/C/man2/stat.2:251
5737 msgid "The following flags are defined for the I<st_mode> field:"
5738 msgstr ""
5739
5740 #. type: tbl table
5741 #: build/C/man2/stat.2:254
5742 #, no-wrap
5743 msgid "S_IFMT\t0170000\tbit mask for the file type bit fields\n"
5744 msgstr ""
5745
5746 #. type: tbl table
5747 #: build/C/man2/stat.2:255
5748 #, no-wrap
5749 msgid "S_IFSOCK\t0140000\tsocket\n"
5750 msgstr ""
5751
5752 #. type: tbl table
5753 #: build/C/man2/stat.2:256
5754 #, no-wrap
5755 msgid "S_IFLNK\t0120000\tsymbolic link\n"
5756 msgstr ""
5757
5758 #. type: tbl table
5759 #: build/C/man2/stat.2:257
5760 #, no-wrap
5761 msgid "S_IFREG\t0100000\tregular file\n"
5762 msgstr ""
5763
5764 #. type: tbl table
5765 #: build/C/man2/stat.2:258
5766 #, no-wrap
5767 msgid "S_IFBLK\t0060000\tblock device\n"
5768 msgstr ""
5769
5770 #. type: tbl table
5771 #: build/C/man2/stat.2:259
5772 #, no-wrap
5773 msgid "S_IFDIR\t0040000\tdirectory\n"
5774 msgstr ""
5775
5776 #. type: tbl table
5777 #: build/C/man2/stat.2:260
5778 #, no-wrap
5779 msgid "S_IFCHR\t0020000\tcharacter device\n"
5780 msgstr ""
5781
5782 #. type: tbl table
5783 #: build/C/man2/stat.2:261
5784 #, no-wrap
5785 msgid "S_IFIFO\t0010000\tFIFO\n"
5786 msgstr ""
5787
5788 #. type: tbl table
5789 #: build/C/man2/stat.2:262
5790 #, no-wrap
5791 msgid "S_ISUID\t0004000\tset-user-ID bit\n"
5792 msgstr ""
5793
5794 #. type: tbl table
5795 #: build/C/man2/stat.2:263
5796 #, no-wrap
5797 msgid "S_ISGID\t0002000\tset-group-ID bit (see below)\n"
5798 msgstr ""
5799
5800 #. type: tbl table
5801 #: build/C/man2/stat.2:264
5802 #, no-wrap
5803 msgid "S_ISVTX\t0001000\tsticky bit (see below)\n"
5804 msgstr ""
5805
5806 #. type: tbl table
5807 #: build/C/man2/stat.2:265
5808 #, no-wrap
5809 msgid "S_IRWXU\t00700\tmask for file owner permissions\n"
5810 msgstr ""
5811
5812 #. type: tbl table
5813 #: build/C/man2/stat.2:266
5814 #, no-wrap
5815 msgid "S_IRUSR\t00400\towner has read permission\n"
5816 msgstr ""
5817
5818 #. type: tbl table
5819 #: build/C/man2/stat.2:267
5820 #, no-wrap
5821 msgid "S_IWUSR\t00200\towner has write permission\n"
5822 msgstr ""
5823
5824 #. type: tbl table
5825 #: build/C/man2/stat.2:268
5826 #, no-wrap
5827 msgid "S_IXUSR\t00100\towner has execute permission\n"
5828 msgstr ""
5829
5830 #. type: tbl table
5831 #: build/C/man2/stat.2:269
5832 #, no-wrap
5833 msgid "S_IRWXG\t00070\tmask for group permissions\n"
5834 msgstr ""
5835
5836 #. type: tbl table
5837 #: build/C/man2/stat.2:270
5838 #, no-wrap
5839 msgid "S_IRGRP\t00040\tgroup has read permission\n"
5840 msgstr ""
5841
5842 #. type: tbl table
5843 #: build/C/man2/stat.2:271
5844 #, no-wrap
5845 msgid "S_IWGRP\t00020\tgroup has write permission\n"
5846 msgstr ""
5847
5848 #. type: tbl table
5849 #: build/C/man2/stat.2:272
5850 #, no-wrap
5851 msgid "S_IXGRP\t00010\tgroup has execute permission\n"
5852 msgstr ""
5853
5854 #. type: tbl table
5855 #: build/C/man2/stat.2:273
5856 #, no-wrap
5857 msgid "S_IRWXO\t00007\tmask for permissions for others (not in group)\n"
5858 msgstr ""
5859
5860 #. type: tbl table
5861 #: build/C/man2/stat.2:274
5862 #, no-wrap
5863 msgid "S_IROTH\t00004\tothers have read permission\n"
5864 msgstr ""
5865
5866 #. type: tbl table
5867 #: build/C/man2/stat.2:275
5868 #, no-wrap
5869 msgid "S_IWOTH\t00002\tothers have write permission\n"
5870 msgstr ""
5871
5872 #. type: tbl table
5873 #: build/C/man2/stat.2:276
5874 #, no-wrap
5875 msgid "S_IXOTH\t00001\tothers have execute permission\n"
5876 msgstr ""
5877
5878 #. type: Plain text
5879 #: build/C/man2/stat.2:293
5880 msgid ""
5881 "The set-group-ID bit (B<S_ISGID>)  has several special uses.  For a "
5882 "directory it indicates that BSD semantics is to be used for that directory: "
5883 "files created there inherit their group ID from the directory, not from the "
5884 "effective group ID of the creating process, and directories created there "
5885 "will also get the B<S_ISGID> bit set.  For a file that does not have the "
5886 "group execution bit (B<S_IXGRP>)  set, the set-group-ID bit indicates "
5887 "mandatory file/record locking."
5888 msgstr ""
5889
5890 #. type: Plain text
5891 #: build/C/man2/stat.2:300
5892 msgid ""
5893 "The sticky bit (B<S_ISVTX>)  on a directory means that a file in that "
5894 "directory can be renamed or deleted only by the owner of the file, by the "
5895 "owner of the directory, and by a privileged process."
5896 msgstr ""
5897
5898 #. type: Plain text
5899 #: build/C/man2/stat.2:313
5900 msgid ""
5901 "Search permission is denied for one of the directories in the path prefix of "
5902 "I<path>.  (See also B<path_resolution>(7).)"
5903 msgstr ""
5904
5905 #. type: Plain text
5906 #: build/C/man2/stat.2:317
5907 msgid "I<fd> is bad."
5908 msgstr ""
5909
5910 #. type: Plain text
5911 #: build/C/man2/stat.2:320
5912 msgid "Bad address."
5913 msgstr ""
5914
5915 #. type: Plain text
5916 #: build/C/man2/stat.2:323
5917 msgid "Too many symbolic links encountered while traversing the path."
5918 msgstr ""
5919
5920 #. type: Plain text
5921 #: build/C/man2/stat.2:327
5922 msgid "I<path> is too long."
5923 msgstr ""
5924
5925 #. type: Plain text
5926 #: build/C/man2/stat.2:334
5927 msgid "A component of I<path> does not exist, or I<path> is an empty string."
5928 msgstr ""
5929
5930 #. type: Plain text
5931 #: build/C/man2/stat.2:337
5932 msgid "Out of memory (i.e., kernel memory)."
5933 msgstr ""
5934
5935 #. type: Plain text
5936 #: build/C/man2/stat.2:342
5937 msgid "A component of the path prefix of I<path> is not a directory."
5938 msgstr ""
5939
5940 #. type: TP
5941 #: build/C/man2/stat.2:342 build/C/man2/statfs.2:187 build/C/man3/statvfs.3:154
5942 #, no-wrap
5943 msgid "B<EOVERFLOW>"
5944 msgstr ""
5945
5946 #. type: Plain text
5947 #: build/C/man2/stat.2:361
5948 msgid ""
5949 "I<path> or I<fd> refers to a file whose size, inode number, or number of "
5950 "blocks cannot be represented in, respectively, the types I<off_t>, I<ino_t>, "
5951 "or I<blkcnt_t>.  This error can occur when, for example, an application "
5952 "compiled on a 32-bit platform without I<-D_FILE_OFFSET_BITS=64> calls "
5953 "B<stat>()  on a file whose size exceeds I<(1E<lt>E<lt>31)-1> bytes."
5954 msgstr ""
5955
5956 #.  SVr4 documents additional
5957 #.  .BR fstat ()
5958 #.  error conditions EINTR, ENOLINK, and EOVERFLOW.  SVr4
5959 #.  documents additional
5960 #.  .BR stat ()
5961 #.  and
5962 #.  .BR lstat ()
5963 #.  error conditions EINTR, EMULTIHOP, ENOLINK, and EOVERFLOW.
5964 #. type: Plain text
5965 #: build/C/man2/stat.2:371
5966 msgid "These system calls conform to SVr4, 4.3BSD, POSIX.1-2001."
5967 msgstr ""
5968
5969 #. type: Plain text
5970 #: build/C/man2/stat.2:385
5971 msgid ""
5972 "According to POSIX.1-2001, B<lstat>()  on a symbolic link need return valid "
5973 "information only in the I<st_size> field and the file-type component of the "
5974 "I<st_mode> field of the I<stat> structure.  POSIX.-2008 tightens the "
5975 "specification, requiring B<lstat>()  to return valid information in all "
5976 "fields except the permission bits in I<st_mode>."
5977 msgstr ""
5978
5979 #. type: Plain text
5980 #: build/C/man2/stat.2:405
5981 msgid ""
5982 "Use of the I<st_blocks> and I<st_blksize> fields may be less portable.  "
5983 "(They were introduced in BSD.  The interpretation differs between systems, "
5984 "and possibly on a single system when NFS mounts are involved.)  If you need "
5985 "to obtain the definition of the I<blkcnt_t> or I<blksize_t> types from "
5986 "I<E<lt>sys/stat.hE<gt>>, then define B<_XOPEN_SOURCE> with the value 500 or "
5987 "greater (before including I<any> header files)."
5988 msgstr ""
5989
5990 #. type: Plain text
5991 #: build/C/man2/stat.2:423
5992 msgid ""
5993 "POSIX.1-1990 did not describe the B<S_IFMT>, B<S_IFSOCK>, B<S_IFLNK>, "
5994 "B<S_IFREG>, B<S_IFBLK>, B<S_IFDIR>, B<S_IFCHR>, B<S_IFIFO>, B<S_ISVTX> "
5995 "constants, but instead demanded the use of the macros B<S_ISDIR>(), etc.  "
5996 "The B<S_IF*> constants are present in POSIX.1-2001 and later."
5997 msgstr ""
5998
5999 #. type: Plain text
6000 #: build/C/man2/stat.2:431
6001 msgid ""
6002 "The B<S_ISLNK>()  and B<S_ISSOCK>()  macros are not in POSIX.1-1996, but "
6003 "both are present in POSIX.1-2001; the former is from SVID 4, the latter from "
6004 "SUSv2."
6005 msgstr ""
6006
6007 #. type: Plain text
6008 #: build/C/man2/stat.2:441
6009 msgid ""
6010 "UNIX V7 (and later systems) had B<S_IREAD>, B<S_IWRITE>, B<S_IEXEC>, where "
6011 "POSIX prescribes the synonyms B<S_IRUSR>, B<S_IWUSR>, B<S_IXUSR>."
6012 msgstr ""
6013
6014 #. type: SS
6015 #: build/C/man2/stat.2:441
6016 #, no-wrap
6017 msgid "Other systems"
6018 msgstr ""
6019
6020 #. type: Plain text
6021 #: build/C/man2/stat.2:443
6022 msgid "Values that have been (or are) in use on various systems:"
6023 msgstr ""
6024
6025 #. type: tbl table
6026 #: build/C/man2/stat.2:446
6027 #, no-wrap
6028 msgid "hex\tname\tls\toctal\tdescription\n"
6029 msgstr ""
6030
6031 #. type: tbl table
6032 #: build/C/man2/stat.2:447
6033 #, no-wrap
6034 msgid "f000\tS_IFMT\t\t170000\tmask for file type\n"
6035 msgstr ""
6036
6037 #. type: tbl table
6038 #: build/C/man2/stat.2:448
6039 #, no-wrap
6040 msgid "0000\t\t\t000000\tT{\n"
6041 msgstr ""
6042
6043 #. type: tbl table
6044 #: build/C/man2/stat.2:449
6045 #, no-wrap
6046 msgid "SCO out-of-service inode; BSD unknown type; SVID-v2 and XPG2\n"
6047 msgstr ""
6048
6049 #. type: tbl table
6050 #: build/C/man2/stat.2:450
6051 #, no-wrap
6052 msgid "have both 0 and 0100000 for ordinary file\n"
6053 msgstr ""
6054
6055 #. type: tbl table
6056 #: build/C/man2/stat.2:451 build/C/man2/stat.2:459 build/C/man2/stat.2:470 build/C/man2/stat.2:482 build/C/man2/stat.2:487 build/C/man2/stat.2:490 build/C/man2/stat.2:494
6057 #, no-wrap
6058 msgid "T}\n"
6059 msgstr ""
6060
6061 #. type: tbl table
6062 #: build/C/man2/stat.2:452
6063 #, no-wrap
6064 msgid "1000\tS_IFIFO\tp|\t010000\tFIFO (named pipe)\n"
6065 msgstr ""
6066
6067 #. type: tbl table
6068 #: build/C/man2/stat.2:453
6069 #, no-wrap
6070 msgid "2000\tS_IFCHR\tc\t020000\tcharacter special (V7)\n"
6071 msgstr ""
6072
6073 #. type: tbl table
6074 #: build/C/man2/stat.2:454
6075 #, no-wrap
6076 msgid "3000\tS_IFMPC\t\t030000\tmultiplexed character special (V7)\n"
6077 msgstr ""
6078
6079 #. type: tbl table
6080 #: build/C/man2/stat.2:455
6081 #, no-wrap
6082 msgid "4000\tS_IFDIR\td/\t040000\tdirectory (V7)\n"
6083 msgstr ""
6084
6085 #. type: tbl table
6086 #: build/C/man2/stat.2:456
6087 #, no-wrap
6088 msgid "5000\tS_IFNAM\t\t050000\tT{\n"
6089 msgstr ""
6090
6091 #. type: tbl table
6092 #: build/C/man2/stat.2:457
6093 #, no-wrap
6094 msgid "XENIX named special file with two subtypes, distinguished by\n"
6095 msgstr ""
6096
6097 #. type: tbl table
6098 #: build/C/man2/stat.2:458
6099 #, no-wrap
6100 msgid "I<st_rdev> values 1, 2\n"
6101 msgstr ""
6102
6103 #. type: tbl table
6104 #: build/C/man2/stat.2:460
6105 #, no-wrap
6106 msgid "0001\tS_INSEM\ts\t000001\tXENIX semaphore subtype of IFNAM\n"
6107 msgstr ""
6108
6109 #. type: tbl table
6110 #: build/C/man2/stat.2:461
6111 #, no-wrap
6112 msgid "0002\tS_INSHD\tm\t000002\tXENIX shared data subtype of IFNAM\n"
6113 msgstr ""
6114
6115 #. type: tbl table
6116 #: build/C/man2/stat.2:462
6117 #, no-wrap
6118 msgid "6000\tS_IFBLK\tb\t060000\tblock special (V7)\n"
6119 msgstr ""
6120
6121 #. type: tbl table
6122 #: build/C/man2/stat.2:463
6123 #, no-wrap
6124 msgid "7000\tS_IFMPB\t\t070000\tmultiplexed block special (V7)\n"
6125 msgstr ""
6126
6127 #. type: tbl table
6128 #: build/C/man2/stat.2:464
6129 #, no-wrap
6130 msgid "8000\tS_IFREG\t-\t100000\tregular (V7)\n"
6131 msgstr ""
6132
6133 #. type: tbl table
6134 #: build/C/man2/stat.2:465
6135 #, no-wrap
6136 msgid "9000\tS_IFCMP\t\t110000\tVxFS compressed\n"
6137 msgstr ""
6138
6139 #. type: tbl table
6140 #: build/C/man2/stat.2:466
6141 #, no-wrap
6142 msgid "9000\tS_IFNWK\tn\t110000\tnetwork special (HP-UX)\n"
6143 msgstr ""
6144
6145 #. type: tbl table
6146 #: build/C/man2/stat.2:467
6147 #, no-wrap
6148 msgid "a000\tS_IFLNK\tl@\t120000\tsymbolic link (BSD)\n"
6149 msgstr ""
6150
6151 #. type: tbl table
6152 #: build/C/man2/stat.2:468
6153 #, no-wrap
6154 msgid "b000\tS_IFSHAD\t\t130000\tT{\n"
6155 msgstr ""
6156
6157 #. type: tbl table
6158 #: build/C/man2/stat.2:469
6159 #, no-wrap
6160 msgid "Solaris shadow inode for ACL (not seen by user space)\n"
6161 msgstr ""
6162
6163 #. type: tbl table
6164 #: build/C/man2/stat.2:471
6165 #, no-wrap
6166 msgid "c000\tS_IFSOCK\ts=\t140000\tsocket (BSD; also \"S_IFSOC\" on VxFS)\n"
6167 msgstr ""
6168
6169 #. type: tbl table
6170 #: build/C/man2/stat.2:472
6171 #, no-wrap
6172 msgid "d000\tS_IFDOOR\tDE<gt>\t150000\tSolaris door\n"
6173 msgstr ""
6174
6175 #. type: tbl table
6176 #: build/C/man2/stat.2:473
6177 #, no-wrap
6178 msgid "e000\tS_IFWHT\tw%\t160000\tBSD whiteout (not used for inode)\n"
6179 msgstr ""
6180
6181 #. type: tbl table
6182 #: build/C/man2/stat.2:474
6183 #, no-wrap
6184 msgid "0200\tS_ISVTX\t\t001000\tT{\n"
6185 msgstr ""
6186
6187 #. type: tbl table
6188 #: build/C/man2/stat.2:475
6189 #, no-wrap
6190 msgid "sticky bit: save swapped text even after use (V7)\n"
6191 msgstr ""
6192
6193 #. type: tbl table
6194 #: build/C/man2/stat.2:476 build/C/man2/stat.2:478 build/C/man2/stat.2:480 build/C/man2/stat.2:485
6195 #, no-wrap
6196 msgid ".br\n"
6197 msgstr ""
6198
6199 #. type: tbl table
6200 #: build/C/man2/stat.2:477
6201 #, no-wrap
6202 msgid "reserved (SVID-v2)\n"
6203 msgstr ""
6204
6205 #. type: tbl table
6206 #: build/C/man2/stat.2:479
6207 #, no-wrap
6208 msgid "On nondirectories: don't cache this file (SunOS)\n"
6209 msgstr ""
6210
6211 #. type: tbl table
6212 #: build/C/man2/stat.2:481
6213 #, no-wrap
6214 msgid "On directories: restricted deletion flag (SVID-v4.2)\n"
6215 msgstr ""
6216
6217 #. type: tbl table
6218 #: build/C/man2/stat.2:483
6219 #, no-wrap
6220 msgid "0400\tS_ISGID\t\t002000\tT{\n"
6221 msgstr ""
6222
6223 #. type: tbl table
6224 #: build/C/man2/stat.2:484
6225 #, no-wrap
6226 msgid "set-group-ID on execution (V7)\n"
6227 msgstr ""
6228
6229 #. type: tbl table
6230 #: build/C/man2/stat.2:486
6231 #, no-wrap
6232 msgid "for directories: use BSD semantics for propagation of GID\n"
6233 msgstr ""
6234
6235 #. type: tbl table
6236 #: build/C/man2/stat.2:488
6237 #, no-wrap
6238 msgid "0400\tS_ENFMT\t\t002000\tT{\n"
6239 msgstr ""
6240
6241 #. type: tbl table
6242 #: build/C/man2/stat.2:489
6243 #, no-wrap
6244 msgid "System V file locking enforcement (shared with S_ISGID)\n"
6245 msgstr ""
6246
6247 #. type: tbl table
6248 #: build/C/man2/stat.2:491
6249 #, no-wrap
6250 msgid "0800\tS_ISUID\t\t004000\tset-user-ID on execution (V7)\n"
6251 msgstr ""
6252
6253 #. type: tbl table
6254 #: build/C/man2/stat.2:492
6255 #, no-wrap
6256 msgid "0800\tS_CDF\t\t004000\tT{\n"
6257 msgstr ""
6258
6259 #. type: tbl table
6260 #: build/C/man2/stat.2:493
6261 #, no-wrap
6262 msgid "directory is a context dependent file (HP-UX)\n"
6263 msgstr ""
6264
6265 #. type: Plain text
6266 #: build/C/man2/stat.2:499
6267 msgid "A sticky command appeared in Version 32V AT&T UNIX."
6268 msgstr ""
6269
6270 #.  As at kernel 2.6.25, XFS and JFS support nanosecond timestamps,
6271 #.  but ext2, ext3, and Reiserfs do not.
6272 #. type: Plain text
6273 #: build/C/man2/stat.2:523
6274 msgid ""
6275 "Since kernel 2.5.48, the I<stat> structure supports nanosecond resolution "
6276 "for the three file timestamp fields.  Glibc exposes the nanosecond component "
6277 "of each field using names of the form I<st_atim.tv_nsec> if the "
6278 "B<_BSD_SOURCE> or B<_SVID_SOURCE> feature test macro is defined.  These "
6279 "fields are specified in POSIX.1-2008, and, starting with version 2.12, glibc "
6280 "also exposes these field names if B<_POSIX_C_SOURCE> is defined with the "
6281 "value 200809L or greater, or B<_XOPEN_SOURCE> is defined with the value 700 "
6282 "or greater.  If none of the aforementioned macros are defined, then the "
6283 "nanosecond values are exposed with names of the form I<st_atimensec>.  On "
6284 "filesystems that do not support subsecond timestamps, the nanosecond fields "
6285 "are returned with the value 0."
6286 msgstr ""
6287
6288 #. type: Plain text
6289 #: build/C/man2/stat.2:530
6290 msgid ""
6291 "On Linux, B<lstat>()  will generally not trigger automounter action, whereas "
6292 "B<stat>()  will (but see B<fstatat>(2))."
6293 msgstr ""
6294
6295 #. type: Plain text
6296 #: build/C/man2/stat.2:538
6297 msgid ""
6298 "For most files under the I</proc> directory, B<stat>()  does not return the "
6299 "file size in the I<st_size> field; instead the field is returned with the "
6300 "value 0."
6301 msgstr ""
6302
6303 #. type: SS
6304 #: build/C/man2/stat.2:538
6305 #, no-wrap
6306 msgid "Underlying kernel interface"
6307 msgstr ""
6308
6309 #
6310 #.  A note from Andries Brouwer, July 2007
6311 #
6312 #.  > Is the story not rather more complicated for some calls like
6313 #.  > stat(2)?
6314 #
6315 #.  Yes and no, mostly no. See /usr/include/sys/stat.h .
6316 #
6317 #.  The idea is here not so much that syscalls change, but that
6318 #.  the definitions of struct stat and of the types dev_t and mode_t change.
6319 #.  This means that libc (even if it does not call the kernel
6320 #.  but only calls some internal function) must know what the
6321 #.  format of dev_t or of struct stat is.
6322 #.  The communication between the application and libc goes via
6323 #.  the include file <sys/stat.h> that defines a _STAT_VER and
6324 #.  _MKNOD_VER describing the layout of the data that user space
6325 #.  uses. Each (almost each) occurrence of stat() is replaced by
6326 #.  an occurrence of xstat() where the first parameter of xstat()
6327 #.  is this version number _STAT_VER.
6328 #
6329 #.  Now, also the definitions used by the kernel change.
6330 #.  But glibc copes with this in the standard way, and the
6331 #.  struct stat as returned by the kernel is repacked into
6332 #.  the struct stat as expected by the application.
6333 #.  Thus, _STAT_VER and this setup cater for the application-libc
6334 #.  interface, rather than the libc-kernel interface.
6335 #
6336 #.  (Note that the details depend on gcc being used as c compiler.)
6337 #. type: Plain text
6338 #: build/C/man2/stat.2:590
6339 msgid ""
6340 "Over time, increases in the size of the I<stat> structure have led to three "
6341 "successive versions of B<stat>(): I<sys_stat>()  (slot I<__NR_oldstat>), "
6342 "I<sys_newstat>()  (slot I<__NR_stat>), and I<sys_stat64()> (new in kernel "
6343 "2.4; slot I<__NR_stat64>).  The glibc B<stat>()  wrapper function hides "
6344 "these details from applications, invoking the most recent version of the "
6345 "system call provided by the kernel, and repacking the returned information "
6346 "if required for old binaries.  Similar remarks apply for B<fstat>()  and "
6347 "B<lstat>()."
6348 msgstr ""
6349
6350 #. type: Plain text
6351 #: build/C/man2/stat.2:596
6352 msgid ""
6353 "The following program calls B<stat>()  and displays selected fields in the "
6354 "returned I<stat> structure."
6355 msgstr ""
6356
6357 #. type: Plain text
6358 #: build/C/man2/stat.2:603
6359 #, no-wrap
6360 msgid ""
6361 "#include E<lt>sys/types.hE<gt>\n"
6362 "#include E<lt>sys/stat.hE<gt>\n"
6363 "#include E<lt>time.hE<gt>\n"
6364 "#include E<lt>stdio.hE<gt>\n"
6365 "#include E<lt>stdlib.hE<gt>\n"
6366 msgstr ""
6367
6368 #. type: Plain text
6369 #: build/C/man2/stat.2:608
6370 #, no-wrap
6371 msgid ""
6372 "int\n"
6373 "main(int argc, char *argv[])\n"
6374 "{\n"
6375 "    struct stat sb;\n"
6376 msgstr ""
6377
6378 #. type: Plain text
6379 #: build/C/man2/stat.2:613
6380 #, no-wrap
6381 msgid ""
6382 "    if (argc != 2) {\n"
6383 "        fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\en\", argv[0]);\n"
6384 "        exit(EXIT_FAILURE);\n"
6385 "    }\n"
6386 msgstr ""
6387
6388 #. type: Plain text
6389 #: build/C/man2/stat.2:618
6390 #, no-wrap
6391 msgid ""
6392 "    if (stat(argv[1], &sb) == -1) {\n"
6393 "        perror(\"stat\");\n"
6394 "        exit(EXIT_FAILURE);\n"
6395 "    }\n"
6396 msgstr ""
6397
6398 #. type: Plain text
6399 #: build/C/man2/stat.2:620
6400 #, no-wrap
6401 msgid "    printf(\"File type:                \");\n"
6402 msgstr ""
6403
6404 #. type: Plain text
6405 #: build/C/man2/stat.2:631
6406 #, no-wrap
6407 msgid ""
6408 "    switch (sb.st_mode & S_IFMT) {\n"
6409 "    case S_IFBLK:  printf(\"block device\\en\");            break;\n"
6410 "    case S_IFCHR:  printf(\"character device\\en\");        break;\n"
6411 "    case S_IFDIR:  printf(\"directory\\en\");               break;\n"
6412 "    case S_IFIFO:  printf(\"FIFO/pipe\\en\");               break;\n"
6413 "    case S_IFLNK:  printf(\"symlink\\en\");                 break;\n"
6414 "    case S_IFREG:  printf(\"regular file\\en\");            break;\n"
6415 "    case S_IFSOCK: printf(\"socket\\en\");                  break;\n"
6416 "    default:       printf(\"unknown?\\en\");                break;\n"
6417 "    }\n"
6418 msgstr ""
6419
6420 #. type: Plain text
6421 #: build/C/man2/stat.2:633
6422 #, no-wrap
6423 msgid "    printf(\"I-node number:            %ld\\en\", (long) sb.st_ino);\n"
6424 msgstr ""
6425
6426 #. type: Plain text
6427 #: build/C/man2/stat.2:636
6428 #, no-wrap
6429 msgid ""
6430 "    printf(\"Mode:                     %lo (octal)\\en\",\n"
6431 "            (unsigned long) sb.st_mode);\n"
6432 msgstr ""
6433
6434 #. type: Plain text
6435 #: build/C/man2/stat.2:640
6436 #, no-wrap
6437 msgid ""
6438 "    printf(\"Link count:               %ld\\en\", (long) sb.st_nlink);\n"
6439 "    printf(\"Ownership:                UID=%ld   GID=%ld\\en\",\n"
6440 "            (long) sb.st_uid, (long) sb.st_gid);\n"
6441 msgstr ""
6442
6443 #. type: Plain text
6444 #: build/C/man2/stat.2:647
6445 #, no-wrap
6446 msgid ""
6447 "    printf(\"Preferred I/O block size: %ld bytes\\en\",\n"
6448 "            (long) sb.st_blksize);\n"
6449 "    printf(\"File size:                %lld bytes\\en\",\n"
6450 "            (long long) sb.st_size);\n"
6451 "    printf(\"Blocks allocated:         %lld\\en\",\n"
6452 "            (long long) sb.st_blocks);\n"
6453 msgstr ""
6454
6455 #. type: Plain text
6456 #: build/C/man2/stat.2:651
6457 #, no-wrap
6458 msgid ""
6459 "    printf(\"Last status change:       %s\", ctime(&sb.st_ctime));\n"
6460 "    printf(\"Last file access:         %s\", ctime(&sb.st_atime));\n"
6461 "    printf(\"Last file modification:   %s\", ctime(&sb.st_mtime));\n"
6462 msgstr ""
6463
6464 #. type: Plain text
6465 #: build/C/man2/stat.2:664
6466 msgid ""
6467 "B<access>(2), B<chmod>(2), B<chown>(2), B<fstatat>(2), B<readlink>(2), "
6468 "B<utime>(2), B<capabilities>(7), B<symlink>(7)"
6469 msgstr ""
6470
6471 #. type: TH
6472 #: build/C/man2/statfs.2:28
6473 #, no-wrap
6474 msgid "STATFS"
6475 msgstr ""
6476
6477 #. type: TH
6478 #: build/C/man2/statfs.2:28
6479 #, no-wrap
6480 msgid "2010-11-21"
6481 msgstr ""
6482
6483 #. type: Plain text
6484 #: build/C/man2/statfs.2:31
6485 msgid "statfs, fstatfs - get filesystem statistics"
6486 msgstr ""
6487
6488 #. type: Plain text
6489 #: build/C/man2/statfs.2:33
6490 msgid "B<#include E<lt>sys/vfs.hE<gt> >/* or E<lt>sys/statfs.hE<gt> */"
6491 msgstr ""
6492
6493 #. type: Plain text
6494 #: build/C/man2/statfs.2:35
6495 msgid "B<int statfs(const char *>I<path>B<, struct statfs *>I<buf>B<);>"
6496 msgstr ""
6497
6498 #. type: Plain text
6499 #: build/C/man2/statfs.2:37
6500 msgid "B<int fstatfs(int >I<fd>B<, struct statfs *>I<buf>B<);>"
6501 msgstr ""
6502
6503 #. type: Plain text
6504 #: build/C/man2/statfs.2:47
6505 msgid ""
6506 "The function B<statfs>()  returns information about a mounted filesystem.  "
6507 "I<path> is the pathname of any file within the mounted filesystem.  I<buf> "
6508 "is a pointer to a I<statfs> structure defined approximately as follows:"
6509 msgstr ""
6510
6511 #. type: Plain text
6512 #: build/C/man2/statfs.2:55
6513 #, no-wrap
6514 msgid ""
6515 "#if __WORDSIZE == 32\t\t/* System word size */\n"
6516 "# define __SWORD_TYPE           int\n"
6517 "#else /* __WORDSIZE == 64 */\n"
6518 "# define __SWORD_TYPE\t\tlong int\n"
6519 "#endif\n"
6520 msgstr ""
6521
6522 #. type: Plain text
6523 #: build/C/man2/statfs.2:70
6524 #, no-wrap
6525 msgid ""
6526 "struct statfs {\n"
6527 "    __SWORD_TYPE f_type;    /* type of filesystem (see below) */\n"
6528 "    __SWORD_TYPE f_bsize;   /* optimal transfer block size */\n"
6529 "    fsblkcnt_t   f_blocks;  /* total data blocks in filesystem */\n"
6530 "    fsblkcnt_t   f_bfree;   /* free blocks in fs */\n"
6531 "    fsblkcnt_t   f_bavail;  /* free blocks available to\n"
6532 "                               unprivileged user */\n"
6533 "    fsfilcnt_t   f_files;   /* total file nodes in filesystem */\n"
6534 "    fsfilcnt_t   f_ffree;   /* free file nodes in fs */\n"
6535 "    fsid_t       f_fsid;    /* filesystem id */\n"
6536 "    __SWORD_TYPE f_namelen; /* maximum length of filenames */\n"
6537 "    __SWORD_TYPE f_frsize;  /* fragment size (since Linux 2.6) */\n"
6538 "    __SWORD_TYPE f_spare[5];\n"
6539 "};\n"
6540 msgstr ""
6541
6542 #. type: Plain text
6543 #: build/C/man2/statfs.2:72
6544 #, no-wrap
6545 msgid "Filesystem types:\n"
6546 msgstr ""
6547
6548 #. type: Plain text
6549 #: build/C/man2/statfs.2:118
6550 #, no-wrap
6551 msgid ""
6552 "   ADFS_SUPER_MAGIC      0xadf5\n"
6553 "   AFFS_SUPER_MAGIC      0xADFF\n"
6554 "   BEFS_SUPER_MAGIC      0x42465331\n"
6555 "   BFS_MAGIC             0x1BADFACE\n"
6556 "   CIFS_MAGIC_NUMBER     0xFF534D42\n"
6557 "   CODA_SUPER_MAGIC      0x73757245\n"
6558 "   COH_SUPER_MAGIC       0x012FF7B7\n"
6559 "   CRAMFS_MAGIC          0x28cd3d45\n"
6560 "   DEVFS_SUPER_MAGIC     0x1373\n"
6561 "   EFS_SUPER_MAGIC       0x00414A53\n"
6562 "   EXT_SUPER_MAGIC       0x137D\n"
6563 "   EXT2_OLD_SUPER_MAGIC  0xEF51\n"
6564 "   EXT2_SUPER_MAGIC      0xEF53\n"
6565 "   EXT3_SUPER_MAGIC      0xEF53\n"
6566 "   EXT4_SUPER_MAGIC      0xEF53\n"
6567 "   HFS_SUPER_MAGIC       0x4244\n"
6568 "   HPFS_SUPER_MAGIC      0xF995E849\n"
6569 "   HUGETLBFS_MAGIC       0x958458f6\n"
6570 "   ISOFS_SUPER_MAGIC     0x9660\n"
6571 "   JFFS2_SUPER_MAGIC     0x72b6\n"
6572 "   JFS_SUPER_MAGIC       0x3153464a\n"
6573 "   MINIX_SUPER_MAGIC     0x137F /* orig. minix */\n"
6574 "   MINIX_SUPER_MAGIC2    0x138F /* 30 char minix */\n"
6575 "   MINIX2_SUPER_MAGIC    0x2468 /* minix V2 */\n"
6576 "   MINIX2_SUPER_MAGIC2   0x2478 /* minix V2, 30 char names */\n"
6577 "   MSDOS_SUPER_MAGIC     0x4d44\n"
6578 "   NCP_SUPER_MAGIC       0x564c\n"
6579 "   NFS_SUPER_MAGIC       0x6969\n"
6580 "   NTFS_SB_MAGIC         0x5346544e\n"
6581 "   OPENPROM_SUPER_MAGIC  0x9fa1\n"
6582 "   PROC_SUPER_MAGIC      0x9fa0\n"
6583 "   QNX4_SUPER_MAGIC      0x002f\n"
6584 "   REISERFS_SUPER_MAGIC  0x52654973\n"
6585 "   ROMFS_MAGIC           0x7275\n"
6586 "   SMB_SUPER_MAGIC       0x517B\n"
6587 "   SYSV2_SUPER_MAGIC     0x012FF7B6\n"
6588 "   SYSV4_SUPER_MAGIC     0x012FF7B5\n"
6589 "   TMPFS_MAGIC           0x01021994\n"
6590 "   UDF_SUPER_MAGIC       0x15013346\n"
6591 "   UFS_MAGIC             0x00011954\n"
6592 "   USBDEVICE_SUPER_MAGIC 0x9fa2\n"
6593 "   VXFS_SUPER_MAGIC      0xa501FCF5\n"
6594 "   XENIX_SUPER_MAGIC     0x012FF7B4\n"
6595 "   XFS_SUPER_MAGIC       0x58465342\n"
6596 "   _XIAFS_SUPER_MAGIC    0x012FD16D\n"
6597 msgstr ""
6598
6599 #. type: Plain text
6600 #: build/C/man2/statfs.2:124
6601 msgid "Nobody knows what I<f_fsid> is supposed to contain (but see below)."
6602 msgstr ""
6603
6604 #. type: Plain text
6605 #: build/C/man2/statfs.2:129
6606 msgid ""
6607 "Fields that are undefined for a particular filesystem are set to 0.  "
6608 "B<fstatfs>()  returns the same information about an open file referenced by "
6609 "descriptor I<fd>."
6610 msgstr ""
6611
6612 #. type: Plain text
6613 #: build/C/man2/statfs.2:142
6614 msgid ""
6615 "(B<statfs>())  Search permission is denied for a component of the path "
6616 "prefix of I<path>.  (See also B<path_resolution>(7).)"
6617 msgstr ""
6618
6619 #. type: Plain text
6620 #: build/C/man2/statfs.2:147
6621 msgid "(B<fstatfs>())  I<fd> is not a valid open file descriptor."
6622 msgstr ""
6623
6624 #. type: Plain text
6625 #: build/C/man2/statfs.2:153
6626 msgid "I<buf> or I<path> points to an invalid address."
6627 msgstr ""
6628
6629 #. type: Plain text
6630 #: build/C/man2/statfs.2:156 build/C/man3/statvfs.3:123
6631 msgid "This call was interrupted by a signal."
6632 msgstr ""
6633
6634 #. type: TP
6635 #: build/C/man2/statfs.2:156 build/C/man3/statvfs.3:123
6636 #, no-wrap
6637 msgid "B<EIO>"
6638 msgstr ""
6639
6640 #. type: Plain text
6641 #: build/C/man2/statfs.2:159 build/C/man3/statvfs.3:126
6642 msgid "An I/O error occurred while reading from the filesystem."
6643 msgstr ""
6644
6645 #. type: Plain text
6646 #: build/C/man2/statfs.2:164
6647 msgid ""
6648 "(B<statfs>())  Too many symbolic links were encountered in translating "
6649 "I<path>."
6650 msgstr ""
6651
6652 #. type: Plain text
6653 #: build/C/man2/statfs.2:169
6654 msgid "(B<statfs>())  I<path> is too long."
6655 msgstr ""
6656
6657 #. type: Plain text
6658 #: build/C/man2/statfs.2:175
6659 msgid "(B<statfs>())  The file referred to by I<path> does not exist."
6660 msgstr ""
6661
6662 #. type: Plain text
6663 #: build/C/man2/statfs.2:178 build/C/man3/statvfs.3:145
6664 msgid "Insufficient kernel memory was available."
6665 msgstr ""
6666
6667 #. type: Plain text
6668 #: build/C/man2/statfs.2:181 build/C/man3/statvfs.3:148
6669 msgid "The filesystem does not support this call."
6670 msgstr ""
6671
6672 #. type: Plain text
6673 #: build/C/man2/statfs.2:187
6674 msgid "(B<statfs>())  A component of the path prefix of I<path> is not a directory."
6675 msgstr ""
6676
6677 #. type: Plain text
6678 #: build/C/man2/statfs.2:190 build/C/man3/statvfs.3:157
6679 msgid "Some values were too large to be represented in the returned struct."
6680 msgstr ""
6681
6682 #. type: Plain text
6683 #: build/C/man2/statfs.2:196
6684 msgid ""
6685 "Linux-specific.  The Linux B<statfs>()  was inspired by the 4.4BSD one (but "
6686 "they do not use the same structure)."
6687 msgstr ""
6688
6689 #. type: Plain text
6690 #: build/C/man2/statfs.2:218
6691 msgid ""
6692 "The original Linux B<statfs>()  and B<fstatfs>()  system calls were not "
6693 "designed with extremely large file sizes in mind.  Subsequently, Linux 2.6 "
6694 "added new B<statfs64>()  and B<fstatfs64>()  system calls that employ a new "
6695 "structure, I<statfs64>.  The new structure contains the same fields as the "
6696 "original I<statfs> structure, but the sizes of various fields are increased, "
6697 "to accommodate large file sizes.  The glibc B<statfs>()  and B<fstatfs>()  "
6698 "wrapper functions transparently deal with the kernel differences."
6699 msgstr ""
6700
6701 #. type: Plain text
6702 #: build/C/man2/statfs.2:223
6703 msgid ""
6704 "Some systems only have I<E<lt>sys/vfs.hE<gt>>, other systems also have "
6705 "I<E<lt>sys/statfs.hE<gt>>, where the former includes the latter.  So it "
6706 "seems including the former is the best choice."
6707 msgstr ""
6708
6709 #. type: Plain text
6710 #: build/C/man2/statfs.2:233
6711 msgid ""
6712 "LSB has deprecated the library calls B<statfs>()  and B<fstatfs>()  and "
6713 "tells us to use B<statvfs>(2)  and B<fstatvfs>(2)  instead."
6714 msgstr ""
6715
6716 #. type: SS
6717 #: build/C/man2/statfs.2:233
6718 #, no-wrap
6719 msgid "The f_fsid field"
6720 msgstr ""
6721
6722 #. type: Plain text
6723 #: build/C/man2/statfs.2:258
6724 msgid ""
6725 "Solaris, Irix and POSIX have a system call B<statvfs>(2)  that returns a "
6726 "I<struct statvfs> (defined in I<E<lt>sys/statvfs.hE<gt>>)  containing an "
6727 "I<unsigned long> I<f_fsid>.  Linux, SunOS, HP-UX, 4.4BSD have a system call "
6728 "B<statfs>()  that returns a I<struct statfs> (defined in "
6729 "I<E<lt>sys/vfs.hE<gt>>)  containing a I<fsid_t> I<f_fsid>, where I<fsid_t> "
6730 "is defined as I<struct { int val[2]; }>.  The same holds for FreeBSD, except "
6731 "that it uses the include file I<E<lt>sys/mount.hE<gt>>."
6732 msgstr ""
6733
6734 #. type: Plain text
6735 #: build/C/man2/statfs.2:271
6736 msgid ""
6737 "The general idea is that I<f_fsid> contains some random stuff such that the "
6738 "pair (I<f_fsid>,I<ino>)  uniquely determines a file.  Some operating systems "
6739 "use (a variation on) the device number, or the device number combined with "
6740 "the filesystem type.  Several OSes restrict giving out the I<f_fsid> field "
6741 "to the superuser only (and zero it for unprivileged users), because this "
6742 "field is used in the filehandle of the filesystem when NFS-exported, and "
6743 "giving it out is a security concern."
6744 msgstr ""
6745
6746 #. type: Plain text
6747 #: build/C/man2/statfs.2:277
6748 msgid ""
6749 "Under some operating systems the I<fsid> can be used as second argument to "
6750 "the B<sysfs>(2)  system call."
6751 msgstr ""
6752
6753 #. type: Plain text
6754 #: build/C/man2/statfs.2:281
6755 msgid "B<stat>(2), B<statvfs>(2), B<path_resolution>(7)"
6756 msgstr ""
6757
6758 #. type: TH
6759 #: build/C/man3/statvfs.3:30
6760 #, no-wrap
6761 msgid "STATVFS"
6762 msgstr ""
6763
6764 #. type: TH
6765 #: build/C/man3/statvfs.3:30
6766 #, no-wrap
6767 msgid "2003-08-22"
6768 msgstr ""
6769
6770 #. type: Plain text
6771 #: build/C/man3/statvfs.3:33
6772 msgid "statvfs, fstatvfs - get filesystem statistics"
6773 msgstr ""
6774
6775 #. type: Plain text
6776 #: build/C/man3/statvfs.3:35
6777 msgid "B<#include E<lt>sys/statvfs.hE<gt>>"
6778 msgstr ""
6779
6780 #. type: Plain text
6781 #: build/C/man3/statvfs.3:37
6782 msgid "B<int statvfs(const char *>I<path>B<, struct statvfs *>I<buf>B<);>"
6783 msgstr ""
6784
6785 #. type: Plain text
6786 #: build/C/man3/statvfs.3:39
6787 msgid "B<int fstatvfs(int >I<fd>B<, struct statvfs *>I<buf>B<);>"
6788 msgstr ""
6789
6790 #. type: Plain text
6791 #: build/C/man3/statvfs.3:49
6792 msgid ""
6793 "The function B<statvfs>()  returns information about a mounted filesystem.  "
6794 "I<path> is the pathname of any file within the mounted filesystem.  I<buf> "
6795 "is a pointer to a I<statvfs> structure defined approximately as follows:"
6796 msgstr ""
6797
6798 #. type: Plain text
6799 #: build/C/man3/statvfs.3:65
6800 #, no-wrap
6801 msgid ""
6802 "struct statvfs {\n"
6803 "    unsigned long  f_bsize;    /* filesystem block size */\n"
6804 "    unsigned long  f_frsize;   /* fragment size */\n"
6805 "    fsblkcnt_t     f_blocks;   /* size of fs in f_frsize units */\n"
6806 "    fsblkcnt_t     f_bfree;    /* # free blocks */\n"
6807 "    fsblkcnt_t     f_bavail;   /* # free blocks for unprivileged users */\n"
6808 "    fsfilcnt_t     f_files;    /* # inodes */\n"
6809 "    fsfilcnt_t     f_ffree;    /* # free inodes */\n"
6810 "    fsfilcnt_t     f_favail;   /* # free inodes for unprivileged users */\n"
6811 "    unsigned long  f_fsid;     /* filesystem ID */\n"
6812 "    unsigned long  f_flag;     /* mount flags */\n"
6813 "    unsigned long  f_namemax;  /* maximum filename length */\n"
6814 "};\n"
6815 msgstr ""
6816
6817 #. type: Plain text
6818 #: build/C/man3/statvfs.3:76
6819 msgid ""
6820 "Here the types I<fsblkcnt_t> and I<fsfilcnt_t> are defined in "
6821 "I<E<lt>sys/types.hE<gt>>.  Both used to be I<unsigned long>."
6822 msgstr ""
6823
6824 #. type: Plain text
6825 #: build/C/man3/statvfs.3:82
6826 msgid ""
6827 "The field I<f_flag> is a bit mask (of mount flags, see B<mount>(8)).  Bits "
6828 "defined by POSIX are"
6829 msgstr ""
6830
6831 #. type: TP
6832 #: build/C/man3/statvfs.3:82
6833 #, no-wrap
6834 msgid "B<ST_RDONLY>"
6835 msgstr ""
6836
6837 #. type: Plain text
6838 #: build/C/man3/statvfs.3:85
6839 msgid "Read-only filesystem."
6840 msgstr ""
6841
6842 #. type: TP
6843 #: build/C/man3/statvfs.3:85
6844 #, no-wrap
6845 msgid "B<ST_NOSUID>"
6846 msgstr ""
6847
6848 #. type: Plain text
6849 #: build/C/man3/statvfs.3:89
6850 msgid "Set-user-ID/set-group-ID bits are ignored by B<exec>(3)."
6851 msgstr ""
6852
6853 #. type: Plain text
6854 #: build/C/man3/statvfs.3:92
6855 msgid ""
6856 "It is unspecified whether all members of the returned struct have meaningful "
6857 "values on all filesystems."
6858 msgstr ""
6859
6860 #. type: Plain text
6861 #: build/C/man3/statvfs.3:96
6862 msgid ""
6863 "B<fstatvfs>()  returns the same information about an open file referenced by "
6864 "descriptor I<fd>."
6865 msgstr ""
6866
6867 #. type: Plain text
6868 #: build/C/man3/statvfs.3:109
6869 msgid ""
6870 "(B<statvfs>())  Search permission is denied for a component of the path "
6871 "prefix of I<path>.  (See also B<path_resolution>(7).)"
6872 msgstr ""
6873
6874 #. type: Plain text
6875 #: build/C/man3/statvfs.3:114
6876 msgid "(B<fstatvfs>())  I<fd> is not a valid open file descriptor."
6877 msgstr ""
6878
6879 #. type: Plain text
6880 #: build/C/man3/statvfs.3:120
6881 msgid "I<Buf> or I<path> points to an invalid address."
6882 msgstr ""
6883
6884 #. type: Plain text
6885 #: build/C/man3/statvfs.3:131
6886 msgid ""
6887 "(B<statvfs>())  Too many symbolic links were encountered in translating "
6888 "I<path>."
6889 msgstr ""
6890
6891 #. type: Plain text
6892 #: build/C/man3/statvfs.3:136
6893 msgid "(B<statvfs>())  I<path> is too long."
6894 msgstr ""
6895
6896 #. type: Plain text
6897 #: build/C/man3/statvfs.3:142
6898 msgid "(B<statvfs>())  The file referred to by I<path> does not exist."
6899 msgstr ""
6900
6901 #. type: Plain text
6902 #: build/C/man3/statvfs.3:154
6903 msgid ""
6904 "(B<statvfs>())  A component of the path prefix of I<path> is not a "
6905 "directory."
6906 msgstr ""
6907
6908 #. type: Plain text
6909 #: build/C/man3/statvfs.3:159
6910 msgid "POSIX.1-2001."
6911 msgstr ""
6912
6913 #. type: Plain text
6914 #: build/C/man3/statvfs.3:165
6915 msgid ""
6916 "The Linux kernel has system calls B<statfs>(2)  and B<fstatfs>(2)  to "
6917 "support this library call."
6918 msgstr ""
6919
6920 #. type: Plain text
6921 #: build/C/man3/statvfs.3:167
6922 msgid "The current glibc implementations of"
6923 msgstr ""
6924
6925 #. type: Plain text
6926 #: build/C/man3/statvfs.3:172
6927 #, no-wrap
6928 msgid ""
6929 "   pathconf(path, _PC_REC_XFER_ALIGN);\n"
6930 "   pathconf(path, _PC_ALLOC_SIZE_MIN);\n"
6931 "   pathconf(path, _PC_REC_MIN_XFER_SIZE);\n"
6932 msgstr ""
6933
6934 #. type: Plain text
6935 #: build/C/man3/statvfs.3:181
6936 msgid ""
6937 "respectively use the I<f_frsize>, I<f_frsize>, and I<f_bsize> fields of the "
6938 "return value of I<statvfs(path,buf)>."
6939 msgstr ""
6940
6941 #. type: Plain text
6942 #: build/C/man3/statvfs.3:183
6943 msgid "B<statfs>(2)"
6944 msgstr ""
6945
6946 #. type: TH
6947 #: build/C/man2/sysfs.2:27
6948 #, no-wrap
6949 msgid "SYSFS"
6950 msgstr ""
6951
6952 #. type: TH
6953 #: build/C/man2/sysfs.2:27
6954 #, no-wrap
6955 msgid "2010-06-27"
6956 msgstr ""
6957
6958 #. type: Plain text
6959 #: build/C/man2/sysfs.2:30
6960 msgid "sysfs - get filesystem type information"
6961 msgstr ""
6962
6963 #. type: Plain text
6964 #: build/C/man2/sysfs.2:32
6965 msgid "B<int sysfs(int >I<option>B<, const char *>I<fsname>B<);>"
6966 msgstr ""
6967
6968 #. type: Plain text
6969 #: build/C/man2/sysfs.2:34
6970 msgid ""
6971 "B<int sysfs(int >I<option>B<, unsigned int >I<fs_index>B<, char "
6972 "*>I<buf>B<);>"
6973 msgstr ""
6974
6975 #. type: Plain text
6976 #: build/C/man2/sysfs.2:36
6977 msgid "B<int sysfs(int >I<option>B<);>"
6978 msgstr ""
6979
6980 #. type: Plain text
6981 #: build/C/man2/sysfs.2:45
6982 msgid ""
6983 "B<sysfs>()  returns information about the filesystem types currently present "
6984 "in the kernel.  The specific form of the B<sysfs>()  call and the "
6985 "information returned depends on the I<option> in effect:"
6986 msgstr ""
6987
6988 #. type: TP
6989 #: build/C/man2/sysfs.2:45
6990 #, no-wrap
6991 msgid "B<1>"
6992 msgstr ""
6993
6994 #. type: Plain text
6995 #: build/C/man2/sysfs.2:50
6996 msgid ""
6997 "Translate the filesystem identifier string I<fsname> into a filesystem type "
6998 "index."
6999 msgstr ""
7000
7001 #. type: TP
7002 #: build/C/man2/sysfs.2:50
7003 #, no-wrap
7004 msgid "B<2>"
7005 msgstr ""
7006
7007 #. type: Plain text
7008 #: build/C/man2/sysfs.2:61
7009 msgid ""
7010 "Translate the filesystem type index I<fs_index> into a null-terminated "
7011 "filesystem identifier string.  This string will be written to the buffer "
7012 "pointed to by I<buf>.  Make sure that I<buf> has enough space to accept the "
7013 "string."
7014 msgstr ""
7015
7016 #. type: TP
7017 #: build/C/man2/sysfs.2:61
7018 #, no-wrap
7019 msgid "B<3>"
7020 msgstr ""
7021
7022 #. type: Plain text
7023 #: build/C/man2/sysfs.2:65
7024 msgid "Return the total number of filesystem types currently present in the kernel."
7025 msgstr ""
7026
7027 #. type: Plain text
7028 #: build/C/man2/sysfs.2:67
7029 msgid "The numbering of the filesystem type indexes begins with zero."
7030 msgstr ""
7031
7032 #. type: Plain text
7033 #: build/C/man2/sysfs.2:79
7034 msgid ""
7035 "On success, B<sysfs>()  returns the filesystem index for option B<1>, zero "
7036 "for option B<2>, and the number of currently configured filesystems for "
7037 "option B<3>.  On error, -1 is returned, and I<errno> is set appropriately."
7038 msgstr ""
7039
7040 #. type: Plain text
7041 #: build/C/man2/sysfs.2:84
7042 msgid "Either I<fsname> or I<buf> is outside your accessible address space."
7043 msgstr ""
7044
7045 #. type: Plain text
7046 #: build/C/man2/sysfs.2:92
7047 msgid ""
7048 "I<fsname> is not a valid filesystem type identifier; I<fs_index> is "
7049 "out-of-bounds; I<option> is invalid."
7050 msgstr ""
7051
7052 #.  SVr4 documents additional error conditions ENOLINK, ECOMM, and EINTR
7053 #.  but has no ENOSYS condition.
7054 #. type: Plain text
7055 #: build/C/man2/sysfs.2:94 build/C/man2/ustat.2:98
7056 msgid "SVr4."
7057 msgstr ""
7058
7059 #. type: Plain text
7060 #: build/C/man2/sysfs.2:101
7061 msgid ""
7062 "This System-V derived system call is obsolete; don't use it.  On systems "
7063 "with I</proc>, the same information can be obtained via "
7064 "I</proc/filesystems>; use that interface instead."
7065 msgstr ""
7066
7067 #. type: SH
7068 #: build/C/man2/sysfs.2:101
7069 #, no-wrap
7070 msgid "BUGS"
7071 msgstr ""
7072
7073 #. type: Plain text
7074 #: build/C/man2/sysfs.2:104
7075 msgid ""
7076 "There is no libc or glibc support.  There is no way to guess how large "
7077 "I<buf> should be."
7078 msgstr ""
7079
7080 #. type: TH
7081 #: build/C/man2/umount.2:30
7082 #, no-wrap
7083 msgid "UMOUNT"
7084 msgstr ""
7085
7086 #. type: TH
7087 #: build/C/man2/umount.2:30
7088 #, no-wrap
7089 msgid "2010-06-19"
7090 msgstr ""
7091
7092 #. type: Plain text
7093 #: build/C/man2/umount.2:33
7094 msgid "umount, umount2 - unmount filesystem"
7095 msgstr ""
7096
7097 #. type: Plain text
7098 #: build/C/man2/umount.2:38
7099 #, no-wrap
7100 msgid "B<int umount(const char *>I<target>B<);>\n"
7101 msgstr ""
7102
7103 #. type: Plain text
7104 #: build/C/man2/umount.2:40
7105 #, no-wrap
7106 msgid "B<int umount2(const char *>I<target>B<, int >I<flags>B<);>\n"
7107 msgstr ""
7108
7109 #.  Note: the kernel naming differs from the glibc naming
7110 #.  umount2 is the glibc name for what the kernel now calls umount
7111 #.  and umount is the glibc name for oldumount
7112 #. type: Plain text
7113 #: build/C/man2/umount.2:50
7114 msgid ""
7115 "B<umount>()  and B<umount2>()  remove the attachment of the (topmost) "
7116 "filesystem mounted on I<target>."
7117 msgstr ""
7118
7119 #. type: Plain text
7120 #: build/C/man2/umount.2:54
7121 msgid ""
7122 "Appropriate privilege (Linux: the B<CAP_SYS_ADMIN> capability) is required "
7123 "to unmount filesystems."
7124 msgstr ""
7125
7126 #. type: Plain text
7127 #: build/C/man2/umount.2:62
7128 msgid ""
7129 "Linux 2.1.116 added the B<umount2>()  system call, which, like B<umount>(), "
7130 "unmounts a target, but allows additional I<flags> controlling the behavior "
7131 "of the operation:"
7132 msgstr ""
7133
7134 #. type: TP
7135 #: build/C/man2/umount.2:62
7136 #, no-wrap
7137 msgid "B<MNT_FORCE> (since Linux 2.1.116)"
7138 msgstr ""
7139
7140 #. type: Plain text
7141 #: build/C/man2/umount.2:67
7142 msgid ""
7143 "Force unmount even if busy.  This can cause data loss.  (Only for NFS "
7144 "mounts.)"
7145 msgstr ""
7146
7147 #. type: TP
7148 #: build/C/man2/umount.2:67
7149 #, no-wrap
7150 msgid "B<MNT_DETACH> (since Linux 2.4.11)"
7151 msgstr ""
7152
7153 #. type: Plain text
7154 #: build/C/man2/umount.2:72
7155 msgid ""
7156 "Perform a lazy unmount: make the mount point unavailable for new accesses, "
7157 "and actually perform the unmount when the mount point ceases to be busy."
7158 msgstr ""
7159
7160 #. type: TP
7161 #: build/C/man2/umount.2:72
7162 #, no-wrap
7163 msgid "B<MNT_EXPIRE> (since Linux 2.6.8)"
7164 msgstr ""
7165
7166 #. type: Plain text
7167 #: build/C/man2/umount.2:91
7168 msgid ""
7169 "Mark the mount point as expired.  If a mount point is not currently in use, "
7170 "then an initial call to B<umount2>()  with this flag fails with the error "
7171 "B<EAGAIN>, but marks the mount point as expired.  The mount point remains "
7172 "expired as long as it isn't accessed by any process.  A second B<umount2>()  "
7173 "call specifying B<MNT_EXPIRE> unmounts an expired mount point.  This flag "
7174 "cannot be specified with either B<MNT_FORCE> or B<MNT_DETACH>."
7175 msgstr ""
7176
7177 #. type: TP
7178 #: build/C/man2/umount.2:91
7179 #, no-wrap
7180 msgid "B<UMOUNT_NOFOLLOW> (since Linux 2.6.34)"
7181 msgstr ""
7182
7183 #.  Later added to 2.6.33-stable
7184 #. type: Plain text
7185 #: build/C/man2/umount.2:99
7186 msgid ""
7187 "Don't dereference I<target> if it is a symbolic link.  This flag allows "
7188 "security problems to be avoided in set-user-ID-I<root> programs that allow "
7189 "unprivileged users to unmount filesystems."
7190 msgstr ""
7191
7192 #. type: TP
7193 #: build/C/man2/umount.2:110
7194 #, no-wrap
7195 msgid "B<EAGAIN>"
7196 msgstr ""
7197
7198 #. type: Plain text
7199 #: build/C/man2/umount.2:117
7200 msgid ""
7201 "A call to B<umount2>()  specifying B<MNT_EXPIRE> successfully marked an "
7202 "unbusy filesystem as expired."
7203 msgstr ""
7204
7205 #. type: Plain text
7206 #: build/C/man2/umount.2:121
7207 msgid "I<target> could not be unmounted because it is busy."
7208 msgstr ""
7209
7210 #. type: Plain text
7211 #: build/C/man2/umount.2:125
7212 msgid "I<target> points outside the user address space."
7213 msgstr ""
7214
7215 #. type: Plain text
7216 #: build/C/man2/umount.2:137
7217 msgid ""
7218 "I<target> is not a mount point.  Or, B<umount2>()  was called with "
7219 "B<MNT_EXPIRE> and either B<MNT_DETACH> or B<MNT_FORCE>."
7220 msgstr ""
7221
7222 #.  http://sourceware.org/bugzilla/show_bug.cgi?id=10092
7223 #. type: Plain text
7224 #: build/C/man2/umount.2:156
7225 msgid "B<MNT_DETACH> and B<MNT_EXPIRE> are available in glibc since version 2.11."
7226 msgstr ""
7227
7228 #. type: Plain text
7229 #: build/C/man2/umount.2:159
7230 msgid ""
7231 "These functions are Linux-specific and should not be used in programs "
7232 "intended to be portable."
7233 msgstr ""
7234
7235 #. type: Plain text
7236 #: build/C/man2/umount.2:170
7237 msgid ""
7238 "The original B<umount>()  function was called as I<umount(device)> and would "
7239 "return B<ENOTBLK> when called with something other than a block device.  In "
7240 "Linux 0.98p4 a call I<umount(dir)> was added, in order to support anonymous "
7241 "devices.  In Linux 2.3.99-pre7 the call I<umount(device)> was removed, "
7242 "leaving only I<umount(dir)> (since now devices can be mounted in more than "
7243 "one place, so specifying the device does not suffice)."
7244 msgstr ""
7245
7246 #. type: Plain text
7247 #: build/C/man2/umount.2:175
7248 msgid "B<mount>(2), B<path_resolution>(7), B<mount>(8), B<umount>(8)"
7249 msgstr ""
7250
7251 #. type: TH
7252 #: build/C/man2/ustat.2:30
7253 #, no-wrap
7254 msgid "USTAT"
7255 msgstr ""
7256
7257 #. type: TH
7258 #: build/C/man2/ustat.2:30
7259 #, no-wrap
7260 msgid "2003-08-04"
7261 msgstr ""
7262
7263 #. type: Plain text
7264 #: build/C/man2/ustat.2:33
7265 msgid "ustat - get filesystem statistics"
7266 msgstr ""
7267
7268 #. type: Plain text
7269 #: build/C/man2/ustat.2:36
7270 #, no-wrap
7271 msgid "B<#include E<lt>sys/types.hE<gt>>\n"
7272 msgstr ""
7273
7274 #. type: Plain text
7275 #: build/C/man2/ustat.2:38
7276 #, no-wrap
7277 msgid "B<#include E<lt>unistd.hE<gt>>    /* libc[45] */\n"
7278 msgstr ""
7279
7280 #. type: Plain text
7281 #: build/C/man2/ustat.2:40
7282 #, no-wrap
7283 msgid "B<#include E<lt>ustat.hE<gt>>     /* glibc2 */\n"
7284 msgstr ""
7285
7286 #. type: Plain text
7287 #: build/C/man2/ustat.2:42
7288 #, no-wrap
7289 msgid "B<int ustat(dev_t >I<dev>B<, struct ustat *>I<ubuf>B<);>\n"
7290 msgstr ""
7291
7292 #. type: Plain text
7293 #: build/C/man2/ustat.2:54
7294 msgid ""
7295 "B<ustat>()  returns information about a mounted filesystem.  I<dev> is a "
7296 "device number identifying a device containing a mounted filesystem.  I<ubuf> "
7297 "is a pointer to a I<ustat> structure that contains the following members:"
7298 msgstr ""
7299
7300 #. type: Plain text
7301 #: build/C/man2/ustat.2:61
7302 #, no-wrap
7303 msgid ""
7304 "daddr_t f_tfree;      /* Total free blocks */\n"
7305 "ino_t   f_tinode;     /* Number of free inodes */\n"
7306 "char    f_fname[6];   /* Filsys name */\n"
7307 "char    f_fpack[6];   /* Filsys pack name */\n"
7308 msgstr ""
7309
7310 #. type: Plain text
7311 #: build/C/man2/ustat.2:70
7312 msgid ""
7313 "The last two fields, I<f_fname> and I<f_fpack>, are not implemented and will "
7314 "always be filled with null bytes (\\(aq\\e0\\(aq)."
7315 msgstr ""
7316
7317 #. type: Plain text
7318 #: build/C/man2/ustat.2:79
7319 msgid ""
7320 "On success, zero is returned and the I<ustat> structure pointed to by "
7321 "I<ubuf> will be filled in.  On error, -1 is returned, and I<errno> is set "
7322 "appropriately."
7323 msgstr ""
7324
7325 #. type: Plain text
7326 #: build/C/man2/ustat.2:84
7327 msgid "I<ubuf> points outside of your accessible address space."
7328 msgstr ""
7329
7330 #. type: Plain text
7331 #: build/C/man2/ustat.2:88
7332 msgid "I<dev> does not refer to a device containing a mounted filesystem."
7333 msgstr ""
7334
7335 #. type: Plain text
7336 #: build/C/man2/ustat.2:94
7337 msgid ""
7338 "The mounted filesystem referenced by I<dev> does not support this operation, "
7339 "or any version of Linux before 1.3.16."
7340 msgstr ""
7341
7342 #. type: Plain text
7343 #: build/C/man2/ustat.2:104
7344 msgid ""
7345 "B<ustat>()  is deprecated and has been provided only for compatibility.  All "
7346 "new programs should use B<statfs>(2)  instead."
7347 msgstr ""
7348
7349 #. type: SS
7350 #: build/C/man2/ustat.2:104
7351 #, no-wrap
7352 msgid "HP-UX notes"
7353 msgstr ""
7354
7355 #.  Some software tries to use this in order to test whether the
7356 #.  underlying filesystem is NFS.
7357 #. type: Plain text
7358 #: build/C/man2/ustat.2:118
7359 msgid ""
7360 "The HP-UX version of the I<ustat> structure has an additional field, "
7361 "I<f_blksize>, that is unknown elsewhere.  HP-UX warns: For some filesystems, "
7362 "the number of free inodes does not change.  Such filesystems will return -1 "
7363 "in the field I<f_tinode>.  For some filesystems, inodes are dynamically "
7364 "allocated.  Such filesystems will return the current number of free inodes."
7365 msgstr ""
7366
7367 #. type: Plain text
7368 #: build/C/man2/ustat.2:121
7369 msgid "B<stat>(2), B<statfs>(2)"
7370 msgstr ""