logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

ftw.h.0p (3345B)


  1. '\" et
  2. .TH ftw.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. ftw.h
  12. \(em file tree traversal
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <ftw.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <ftw.h>
  21. header shall define the
  22. .BR FTW
  23. structure, which shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. int base
  28. int level
  29. .fi
  30. .P
  31. .RE
  32. .P
  33. The
  34. .IR <ftw.h>
  35. header shall define the following symbolic constants for use as values
  36. of the third argument to the application-supplied function that is
  37. passed as the second argument to
  38. \fIftw\fR()
  39. and
  40. \fInftw\fR():
  41. .IP FTW_F 14
  42. Non-directory file.
  43. .IP FTW_D 14
  44. Directory.
  45. .IP FTW_DNR 14
  46. Directory without read permission.
  47. .IP FTW_DP 14
  48. Directory with subdirectories visited.
  49. .IP FTW_NS 14
  50. Unknown type;
  51. \fIstat\fR()
  52. failed.
  53. .IP FTW_SL 14
  54. Symbolic link.
  55. .IP FTW_SLN 14
  56. Symbolic link that names a nonexistent file.
  57. .P
  58. The
  59. .IR <ftw.h>
  60. header shall define the following symbolic constants for use as
  61. values of the fourth argument to
  62. \fInftw\fR():
  63. .IP FTW_PHYS 14
  64. Physical walk, does not follow symbolic links. Otherwise,
  65. \fInftw\fR()
  66. follows links but does not walk down any path that crosses itself.
  67. .IP FTW_MOUNT 14
  68. The walk does not cross a mount point.
  69. .IP FTW_DEPTH 14
  70. All subdirectories are visited before the directory itself.
  71. .IP FTW_CHDIR 14
  72. The walk changes to each directory before reading it.
  73. .P
  74. The following shall be declared as functions and may also be defined as
  75. macros. Function prototypes shall be provided.
  76. .sp
  77. .RS 4
  78. .nf
  79. int ftw(const char *, int (*)(const char *, const struct stat *,
  80. int), int);
  81. int nftw(const char *, int (*)(const char *, const struct stat *,
  82. int, struct FTW *), int, int);
  83. .fi
  84. .P
  85. .RE
  86. .P
  87. The
  88. .IR <ftw.h>
  89. header shall define the
  90. .BR stat
  91. structure and the symbolic names for
  92. .IR st_mode
  93. and the file type test macros as described in
  94. .IR <sys/stat.h> .
  95. .P
  96. Inclusion of the
  97. .IR <ftw.h>
  98. header may also make visible all symbols from
  99. .IR <sys/stat.h> .
  100. .LP
  101. .IR "The following sections are informative."
  102. .SH "APPLICATION USAGE"
  103. None.
  104. .SH RATIONALE
  105. None.
  106. .SH "FUTURE DIRECTIONS"
  107. None.
  108. .SH "SEE ALSO"
  109. .IR "\fB<sys_stat.h>\fP"
  110. .P
  111. The System Interfaces volume of POSIX.1\(hy2017,
  112. .IR "\fIftw\fR\^(\|)",
  113. .IR "\fInftw\fR\^(\|)"
  114. .\"
  115. .SH COPYRIGHT
  116. Portions of this text are reprinted and reproduced in electronic form
  117. from IEEE Std 1003.1-2017, Standard for Information Technology
  118. -- Portable Operating System Interface (POSIX), The Open Group Base
  119. Specifications Issue 7, 2018 Edition,
  120. Copyright (C) 2018 by the Institute of
  121. Electrical and Electronics Engineers, Inc and The Open Group.
  122. In the event of any discrepancy between this version and the original IEEE and
  123. The Open Group Standard, the original IEEE and The Open Group Standard
  124. is the referee document. The original Standard can be obtained online at
  125. http://www.opengroup.org/unix/online.html .
  126. .PP
  127. Any typographical or formatting errors that appear
  128. in this page are most likely
  129. to have been introduced during the conversion of the source files to
  130. man page format. To report such errors, see
  131. https://www.kernel.org/doc/man-pages/reporting_bugs.html .