Rewrite page(2) references to page(3).
Add description of new libmach.
This commit is contained in:
parent
cfa37a7b11
commit
bf8a59fa01
91 changed files with 1624 additions and 1607 deletions
|
|
@ -19,11 +19,11 @@ long dirreadall(int fd, Dir **buf)
|
|||
#define DIRMAX (sizeof(Dir)+STATMAX)
|
||||
.SH DESCRIPTION
|
||||
The data returned by a
|
||||
.IR read (2)
|
||||
.IR read (3)
|
||||
on a directory is a set of complete directory entries
|
||||
in a machine-independent format, exactly equivalent to
|
||||
the result of a
|
||||
.IR stat (2)
|
||||
.IR stat (3)
|
||||
on each file or subdirectory in the directory.
|
||||
.I Dirread
|
||||
decodes the directory entries into a machine-dependent form.
|
||||
|
|
@ -35,11 +35,11 @@ structures
|
|||
whose address is returned in
|
||||
.B *buf
|
||||
(see
|
||||
.IR stat (2)
|
||||
.IR stat (3)
|
||||
for the layout of a
|
||||
.BR Dir ).
|
||||
The array is allocated with
|
||||
.IR malloc (2)
|
||||
.IR malloc (3)
|
||||
each time
|
||||
.I dirread
|
||||
is called.
|
||||
|
|
@ -50,7 +50,7 @@ is like
|
|||
but reads in the entire directory; by contrast,
|
||||
.I dirread
|
||||
steps through a directory one
|
||||
.IR read (2)
|
||||
.IR read (3)
|
||||
at a time.
|
||||
.PP
|
||||
Directory entries have variable length.
|
||||
|
|
@ -85,9 +85,9 @@ The file offset is advanced by the number of bytes actually read.
|
|||
.SH SOURCE
|
||||
.B /sys/src/libc/9sys/dirread.c
|
||||
.SH SEE ALSO
|
||||
.IR intro (2),
|
||||
.IR open (2),
|
||||
.IR read (2)
|
||||
.IR intro (3),
|
||||
.IR open (3),
|
||||
.IR read (3)
|
||||
.SH DIAGNOSTICS
|
||||
.I Dirread
|
||||
and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue