| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: directory.3,v 1.33 2010/05/17 03:04:09 jruoho Exp $ | | 1 | .\" $NetBSD: directory.3,v 1.34 2010/05/17 03:09:06 jruoho Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1983, 1991, 1993 | | 3 | .\" Copyright (c) 1983, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" 3. Neither the name of the University nor the names of its contributors | | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
| @@ -351,35 +351,27 @@ After a call to | | | @@ -351,35 +351,27 @@ After a call to |
351 | either the parent or child (but not both) can continue processing the | | 351 | either the parent or child (but not both) can continue processing the |
352 | directory stream using | | 352 | directory stream using |
353 | .Fn readdir , | | 353 | .Fn readdir , |
354 | .Fn rewinddir , | | 354 | .Fn rewinddir , |
355 | or | | 355 | or |
356 | .Fn seekdir . | | 356 | .Fn seekdir . |
357 | However, if both the parent and child processes use these functions, | | 357 | However, if both the parent and child processes use these functions, |
358 | the result is undefined. | | 358 | the result is undefined. |
359 | .El | | 359 | .El |
360 | .Sh ERRORS | | 360 | .Sh ERRORS |
361 | .\" | | 361 | .\" |
362 | .\" XXX: The errors should be enumerated. | | 362 | .\" XXX: The errors should be enumerated. |
363 | .\" | | 363 | .\" |
364 | Upon failure, the functions | | 364 | All described functions may set |
365 | .Fn opendir , | | | |
366 | .Fn fdopendir , | | | |
367 | .Fn readdir , | | | |
368 | .Fn readdir_r , | | | |
369 | .Fn closedir , | | | |
370 | and | | | |
371 | .Fn dirfd | | | |
372 | may set | | | |
373 | .Vt errno | | 365 | .Vt errno |
374 | to indicate the error. | | 366 | to indicate the error. |
375 | .Sh SEE ALSO | | 367 | .Sh SEE ALSO |
376 | .Xr close 2 , | | 368 | .Xr close 2 , |
377 | .Xr lseek 2 , | | 369 | .Xr lseek 2 , |
378 | .Xr open 2 , | | 370 | .Xr open 2 , |
379 | .Xr read 2 , | | 371 | .Xr read 2 , |
380 | .Xr dir 5 | | 372 | .Xr dir 5 |
381 | .Sh STANDARDS | | 373 | .Sh STANDARDS |
382 | The | | 374 | The |
383 | .Fn opendir , | | 375 | .Fn opendir , |
384 | .Fn readdir , | | 376 | .Fn readdir , |
385 | .Fn rewinddir | | 377 | .Fn rewinddir |