Print this page
1438 ftw(3C) should mention `quit' member of struct FTW and possible values

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/ftw.3c
          +++ new/usr/src/man/man3c/ftw.3c
↓ open down ↓ 241 lines elided ↑ open up ↑
 242  242  .RE
 243  243  .RS +4
 244  244  .TP
 245  245  .ie t \(bu
 246  246  .el o
 247  247  The fourth argument is a pointer to an \fBFTW\fR structure that contains the
 248  248  following members:
 249  249  .sp
 250  250  .in +2
 251  251  .nf
      252 +int   quit;
 252  253  int   base;
 253  254  int   level;
 254  255  .fi
 255  256  .in -2
 256  257  
      258 +The \fBquit\fR member has a default value of \fI0\fR, but can be set to the
      259 +following values:
      260 +.RS
      261 +
      262 +.sp
      263 +.ne 2
      264 +.na
      265 +\fB\fBFTW_SKIP\fR\fR or \fB\fBFTW_PRUNE\fR\fR
      266 +.ad
      267 +.RS 11n
      268 +This object and its descendants are pruned from the search.
      269 +.RE
      270 +
      271 +.sp
      272 +.ne 2
      273 +.na
      274 +\fB\fBFTW_FOLLOW\fR\fR
      275 +.ad
      276 +.RS 11n
      277 +If this object is a symbolic link, follow the link to its physical counterpart.
      278 +.RE
      279 +
      280 +.sp
 257  281  The \fBbase\fR member is the offset of the object's filename in the pathname
 258  282  passed as the first argument to \fIfn\fR(). The value of \fBlevel\fR indicates
 259  283  the depth relative to the root of the walk, where the root level is 0.
 260  284  .sp
 261  285  The results are unspecified if the application-supplied \fIfn\fR() function
 262  286  does not preserve the current working directory.
 263  287  .RE
 264  288  .sp
 265  289  .LP
 266  290  Both \fBftw()\fR and \fBnftw()\fR use one file descriptor for each level in the
↓ open down ↓ 276 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX