s/fildes/fd/

This commit is contained in:
Michael Kerrisk 2007-12-24 22:04:47 +00:00
parent a17e03f5cb
commit 47752f332c
4 changed files with 11 additions and 11 deletions

View File

@ -36,7 +36,7 @@ chmod, fchmod \- change permissions of a file
.sp
.BI "int chmod(const char *" path ", mode_t " mode );
.br
.BI "int fchmod(int " fildes ", mode_t " mode );
.BI "int fchmod(int " fd ", mode_t " mode );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
@ -49,7 +49,7 @@ _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
The mode of the file given by
.I path
or referenced by
.I fildes
.I fd
is changed.
Modes are specified by
@ -180,7 +180,7 @@ are listed below:
.TP
.B EBADF
The file descriptor
.I fildes
.I fd
is not valid.
.TP
.B EIO

View File

@ -48,13 +48,13 @@ lseek \- reposition read/write file offset
.br
.B #include <unistd.h>
.sp
.BI "off_t lseek(int " fildes ", off_t " offset ", int " whence );
.BI "off_t lseek(int " fd ", off_t " offset ", int " whence );
.SH DESCRIPTION
The
.BR lseek ()
function repositions the offset of the open file associated with the
file descriptor
.I fildes
.I fd
to the argument
.I offset
according to the directive
@ -94,7 +94,7 @@ is set to indicate the error.
.SH ERRORS
.TP
.B EBADF
.I fildes
.I fd
is not an open file descriptor.
.TP
.B EINVAL
@ -114,7 +114,7 @@ The resulting file offset cannot be represented in an
.IR off_t .
.TP
.B ESPIPE
.I fildes
.I fd
is associated with a pipe, socket, or FIFO.
.SH "CONFORMING TO"
SVr4, 4.3BSD, POSIX.1-2001.

View File

@ -48,7 +48,7 @@ fopen, fdopen, freopen \- stream open functions
.sp
.BI "FILE *fopen(const char *" path ", const char *" mode );
.BI "FILE *fdopen(int " fildes ", const char *" mode );
.BI "FILE *fdopen(int " fd ", const char *" mode );
.BI "FILE *freopen(const char *" path ", const char *" mode ", FILE *" stream );
.fi
@ -148,14 +148,14 @@ call.
The
.BR fdopen ()
function associates a stream with the existing file descriptor,
.IR fildes .
.IR fd .
The
.I mode
of the stream (one of the values "r", "r+", "w", "w+", "a", "a+")
must be compatible with the mode of the file descriptor.
The file position indicator of the new stream is set to that
belonging to
.IR fildes ,
.IR fd ,
and the error and end-of-file indicators are cleared.
Modes "w" or "w+" do not cause truncation of the file.
The file descriptor is not dup'ed, and will be closed when

View File

@ -60,7 +60,7 @@ manual page):
.sp
.BI "int chmod(const char *" path ", mode_t " mode );
.br
.BI "int fchmod(int " fildes ", mode_t " mode );
.BI "int fchmod(int " fd ", mode_t " mode );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see