Mon May 17 03:09:06 2010 UTC ()
Actually the previous is wrong; all of these can set the errno either via
each other or via something like malloc(3) or lseek(2).


(jruoho)
diff -r1.33 -r1.34 src/lib/libc/gen/directory.3

cvs diff -r1.33 -r1.34 src/lib/libc/gen/directory.3 (expand / switch to unified diff)

--- src/lib/libc/gen/directory.3 2010/05/17 03:04:09 1.33
+++ src/lib/libc/gen/directory.3 2010/05/17 03:09:06 1.34
@@ -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
351either the parent or child (but not both) can continue processing the 351either the parent or child (but not both) can continue processing the
352directory stream using 352directory stream using
353.Fn readdir , 353.Fn readdir ,
354.Fn rewinddir , 354.Fn rewinddir ,
355or 355or
356.Fn seekdir . 356.Fn seekdir .
357However, if both the parent and child processes use these functions, 357However, if both the parent and child processes use these functions,
358the result is undefined. 358the 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.\"
364Upon failure, the functions 364All described functions may set
365.Fn opendir , 
366.Fn fdopendir , 
367.Fn readdir , 
368.Fn readdir_r , 
369.Fn closedir , 
370and 
371.Fn dirfd 
372may set 
373.Vt errno 365.Vt errno
374to indicate the error. 366to 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
382The 374The
383.Fn opendir , 375.Fn opendir ,
384.Fn readdir , 376.Fn readdir ,
385.Fn rewinddir 377.Fn rewinddir