diff --git a/man2/chmod.2 b/man2/chmod.2 index 46fd986af..7f5e276ea 100644 --- a/man2/chmod.2 +++ b/man2/chmod.2 @@ -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 diff --git a/man2/lseek.2 b/man2/lseek.2 index b22a4f5c7..36894fb2e 100644 --- a/man2/lseek.2 +++ b/man2/lseek.2 @@ -48,13 +48,13 @@ lseek \- reposition read/write file offset .br .B #include .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. diff --git a/man3/fopen.3 b/man3/fopen.3 index 742fb1353..3351463f0 100644 --- a/man3/fopen.3 +++ b/man3/fopen.3 @@ -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 diff --git a/man7/feature_test_macros.7 b/man7/feature_test_macros.7 index 45b95767a..f5c2fbf62 100644 --- a/man7/feature_test_macros.7 +++ b/man7/feature_test_macros.7 @@ -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