OSDN Git Service

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