diff --git a/man/syscall/_exit.html b/man/syscall/_exit.html index 870341b..85f098f 100644 --- a/man/syscall/_exit.html +++ b/man/syscall/_exit.html @@ -49,7 +49,7 @@ Standard C Library (libc, -lc)

#include <unistd.h>

-void,
+void
_exit(int exitcode);

diff --git a/man/syscall/close.html b/man/syscall/close.html index 9f16429..b852d54 100644 --- a/man/syscall/close.html +++ b/man/syscall/close.html @@ -55,8 +55,8 @@ Standard C Library (libc, -lc)

Description

-The file handle fd is closed. The same file handle may then -be returned again from open, +The file handle identified by file descriptor fd is closed. +The same file handle may then be returned again from open, dup2, pipe, or similar calls.

@@ -87,7 +87,7 @@ mentioned here. - +
  EBADFfd is not a valid file handle.
fd is not a valid file descriptor.
EIO A hard I/O error occurred.

diff --git a/man/syscall/dup2.html b/man/syscall/dup2.html index 8392a86..2257de3 100644 --- a/man/syscall/dup2.html +++ b/man/syscall/dup2.html @@ -55,9 +55,9 @@ Standard C Library (libc, -lc)

Description

-dup2 clones the file handle oldfd onto the file -handle newfd. If newfd names an already-open file, -that file is closed. +dup2 clones the file handle identifed by file descriptor oldfd +onto the file handle identified by newfd. If newfd +names an already-open file, that file is closed.

@@ -74,8 +74,8 @@ dup2 is most commonly used to relocate opened files onto

-Both filehandles must be non-negative, and, if applicable, smaller -than the maximum allowed file handle number. +Both file descriptors must be non-negative, and, if applicable, +smaller than the maximum allowed file handle number.

@@ -116,9 +116,9 @@ here.   EBADF oldfd is not a valid file - handle, or newfd is a value + descriptor, or newfd is a value that cannot be a valid file - handle. + descriptor. EMFILE The process's file table was full, or a process-specific limit on open files was reached. diff --git a/man/syscall/fstat.html b/man/syscall/fstat.html index f20e3a1..406b34e 100644 --- a/man/syscall/fstat.html +++ b/man/syscall/fstat.html @@ -57,7 +57,7 @@ struct stat *statbuf);

Description

fstat retrieves status information about the file referred to -by the file handle fd and stores it in the stat structure +by the file descriptor fd and stores it in the stat structure pointed to by statbuf.

diff --git a/man/syscall/ftruncate.html b/man/syscall/ftruncate.html index f2af14a..0c66177 100644 --- a/man/syscall/ftruncate.html +++ b/man/syscall/ftruncate.html @@ -87,8 +87,8 @@ mentioned here. - + diff --git a/man/syscall/getdirentry.html b/man/syscall/getdirentry.html index f123dce..aaad470 100644 --- a/man/syscall/getdirentry.html +++ b/man/syscall/getdirentry.html @@ -57,7 +57,7 @@ size_t buflen);

Description

getdirentry retrieves the next filename from a directory -referred to by the file handle filehandle. The name is stored +referred to by the file descriptor fd. The name is stored in buf, an area of size buflen. The length of of the name actually found is returned.

diff --git a/man/syscall/ioctl.html b/man/syscall/ioctl.html index a23b8b4..f29ad45 100644 --- a/man/syscall/ioctl.html +++ b/man/syscall/ioctl.html @@ -57,7 +57,7 @@ void *data);

Description

ioctl performs an object-specific operation code on -the object referred to by the file handle fd. The +the object referred to by the file descriptor fd. The data argument may point to supplemental data required or returned by the operation. The size of buffer required, if any, and other such matters are operation-specific. diff --git a/man/syscall/lseek.html b/man/syscall/lseek.html index 0c3c407..61805aa 100644 --- a/man/syscall/lseek.html +++ b/man/syscall/lseek.html @@ -57,8 +57,8 @@ int whence);

Description

lseek alters the current seek position of the file handle -filehandle, seeking to a new position based on pos -and whence. +identified by file descriptor fd, seeking to a new position +based on pos and whence.

@@ -122,7 +122,7 @@ mentioned here.

+ descriptor. diff --git a/man/syscall/open.html b/man/syscall/open.html index 7abc154..427a6ae 100644 --- a/man/syscall/open.html +++ b/man/syscall/open.html @@ -99,12 +99,12 @@ course's assignments.)

-open returns a file handle suitable for passing to +open returns a file descriptor suitable for passing to read, write, close, -etc. This file handle must be greater than or equal to zero. Note -that file handles 0 (STDIN_FILENO), 1 (STDOUT_FILENO), and 2 +etc. This file descriptor must be greater than or equal to zero. Note +that file descriptors 0 (STDIN_FILENO), 1 (STDOUT_FILENO), and 2 (STDERR_FILENO) are used in special ways and are typically assumed by user-level code to always be open.

@@ -128,9 +128,9 @@ contain .. is usually not quite atomic.

Return Values

-On success, open returns a nonnegative file handle. On error, --1 is returned, and errno is set according to -the error encountered. +On success, open returns a nonnegative file descriptor. On +error, -1 is returned, and errno is set +according to the error encountered.

Errors

diff --git a/man/syscall/write.html b/man/syscall/write.html index aaf3736..66b469c 100644 --- a/man/syscall/write.html +++ b/man/syscall/write.html @@ -51,7 +51,7 @@ Standard C Library (libc, -lc)
ssize_t
write(int fd, const void *buf, -size_t nbytes); +size_t buflen);

Description

  EBADFfd is not a valid file handle, or - it is not open for writing.
fd is not a valid file descriptor, + or it is not open for writing.
EIO A hard I/O error occurred.
EFAULT buf points to an invalid address.
  EBADF fd is not a valid file - handle.
ESPIPE fd refers to an object which does not support seeking.
EINVAL whence is invalid.