From 914792726f9e452ad9b805ed49cd023c05d83a9d Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:01:18 -0500 Subject: [PATCH 01/10] Update _exit.html Remove extraneous comma. --- man/syscall/_exit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);

From cb8922017df6c4030bd81790eff3679de65039f4 Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:05:04 -0500 Subject: [PATCH 02/10] Update write.html Change "nbytes" to "buflen" to be consistent with read and since "buflen" is used in the documentation here. --- man/syscall/write.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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

From ec68d1f1d34e814842503af0ee9f445bcbb464ad Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:15:45 -0500 Subject: [PATCH 03/10] Update lseek.html Fix references to "fd" as file descriptor, instead of file handle. --- man/syscall/lseek.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.   EBADF fd is not a valid file - handle. + descriptor. ESPIPE fd refers to an object which does not support seeking. EINVAL whence is invalid. From a92f77bc8044d75788aa7a14c93273520a705ded Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:20:20 -0500 Subject: [PATCH 04/10] Update open.html Fix references to file descriptor being called file handle. --- man/syscall/open.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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

From ac3833b17d667c5a943543f20639c2050f3a44cf Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:22:11 -0500 Subject: [PATCH 05/10] Update close.html Fix references to file descriptor as file handle. --- man/syscall/close.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.

From e2c2aa2506dd6b1c3ef1ca070b1406e1fbc3b7d9 Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:24:48 -0500 Subject: [PATCH 06/10] Update dup2.html Fix references to file descriptor as file handle. --- man/syscall/dup2.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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. From 7b6a0b2ac9c31f7325ff7ff396d8c010b57576c9 Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:26:18 -0500 Subject: [PATCH 07/10] Update fstat.html Fix file descriptor reference. --- man/syscall/fstat.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.

From 414122655bba1d8d68ec44fee583714ed1592ea3 Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:27:27 -0500 Subject: [PATCH 08/10] Update ftruncate.html Fix file descriptor reference. --- man/syscall/ftruncate.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. - + From 2e80500b2637bf7ef3cd8c859f7eaebc2445ec5a Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:29:08 -0500 Subject: [PATCH 09/10] Update getdirentry.html Fix file descriptor reference. --- man/syscall/getdirentry.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.

From 0fca14d86cbfe9089c8d66dd04141f3b7615030d Mon Sep 17 00:00:00 2001 From: Zachary Lebold Date: Mon, 7 Mar 2016 02:30:10 -0500 Subject: [PATCH 10/10] Update ioctl.html Fix file descriptor reference. --- man/syscall/ioctl.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.

  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.