aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
Diffstat (limited to 'man2')
-rw-r--r--man2/getdomainname.22
-rw-r--r--man2/gethostname.28
-rw-r--r--man2/listxattr.22
-rw-r--r--man2/lseek.24
-rw-r--r--man2/readlink.24
-rw-r--r--man2/stat.22
-rw-r--r--man2/sysfs.22
-rw-r--r--man2/truncate.22
-rw-r--r--man2/uname.22
-rw-r--r--man2/ustat.22
10 files changed, 14 insertions, 16 deletions
diff --git a/man2/getdomainname.2 b/man2/getdomainname.2
index 7f819dc450..bd51f49dbd 100644
--- a/man2/getdomainname.2
+++ b/man2/getdomainname.2
@@ -37,7 +37,7 @@ getdomainname, setdomainname \- get/set domain name
.SH DESCRIPTION
These functions are used to access or to change the domain name of the
current processor.
-If the NUL-terminated domain name requires more than \fIlen\fP bytes,
+If the null-terminated domain name requires more than \fIlen\fP bytes,
.BR getdomainname ()
returns the first \fIlen\fP bytes (glibc) or returns an error (libc).
.SH "RETURN VALUE"
diff --git a/man2/gethostname.2 b/man2/gethostname.2
index ab082b1650..5b7684c47c 100644
--- a/man2/gethostname.2
+++ b/man2/gethostname.2
@@ -42,12 +42,12 @@ These system calls are used to access or to change the host name of the
current processor.
The
.BR gethostname ()
-system call returns a NUL-terminated hostname (set earlier by
+system call returns a null-terminated hostname (set earlier by
.BR sethostname ())
in the array \fIname\fP that has a length of \fIlen\fP bytes.
-In case the NUL-terminated hostname does not fit, no error is
+In case the null-terminated hostname does not fit, no error is
returned, but the hostname is truncated. It is unspecified
-whether the truncated hostname will be NUL-terminated.
+whether the truncated hostname will be null-terminated.
.SH "RETURN VALUE"
On success, zero is returned. On error, \-1 is returned, and
.I errno
@@ -86,7 +86,7 @@ but not
.SH NOTES
SUSv2 guarantees that `Host names are limited to 255 bytes'.
POSIX 1003.1-2001 guarantees that `Host names (not including
-the terminating NUL) are limited to HOST_NAME_MAX bytes'.
+the terminating null byte) are limited to HOST_NAME_MAX bytes'.
.SH "GLIBC NOTES"
The GNU C library implements
.BR gethostname ()
diff --git a/man2/listxattr.2 b/man2/listxattr.2
index 80b11e10e3..700c3c4b81 100644
--- a/man2/listxattr.2
+++ b/man2/listxattr.2
@@ -96,7 +96,7 @@ size of a buffer which is sufficiently large to hold the list of names.
The
.I list
of names is returned as an unordered array of null-terminated character
-strings (attribute names are separated by NUL characters), like this:
+strings (attribute names are separated by null bytes ('\\0')), like this:
.fam C
.RS
.nf
diff --git a/man2/lseek.2 b/man2/lseek.2
index 76e63dc3b5..1f9bf62dd2 100644
--- a/man2/lseek.2
+++ b/man2/lseek.2
@@ -81,8 +81,8 @@ The
function allows the file offset to be set beyond the end of the existing
end-of-file of the file (but this does not change the size of the file).
If data is later written at this point, subsequent reads of the data
-in the gap return bytes of zeros (until data is actually written into
-the gap).
+in the gap return null bytes ('\\0') until data is actually written into
+the gap.
.SH "RETURN VALUE"
Upon successful completion,
.BR lseek ()
diff --git a/man2/readlink.2 b/man2/readlink.2
index 76066cc898..a575de986a 100644
--- a/man2/readlink.2
+++ b/man2/readlink.2
@@ -51,9 +51,7 @@ in the buffer
which has size
.IR bufsiz .
.BR readlink ()
-does not append a
-.B NUL
-character to
+does not append a null byte to
.IR buf .
It will truncate the contents (to a length of
.I bufsiz
diff --git a/man2/stat.2 b/man2/stat.2
index 2f44803bc8..447e983e58 100644
--- a/man2/stat.2
+++ b/man2/stat.2
@@ -118,7 +118,7 @@ The
field gives the size of the file (if it is a regular
file or a symbolic link) in bytes.
The size of a symlink is the length of the pathname
-it contains, without trailing NUL.
+it contains, without a trailing null byte.
The
.I st_blocks
diff --git a/man2/sysfs.2 b/man2/sysfs.2
index 1bc722c0bb..3dd22bd9a7 100644
--- a/man2/sysfs.2
+++ b/man2/sysfs.2
@@ -50,7 +50,7 @@ into a file-system type index.
.B 2
Translate the file-system type index
.I fs_index
-into a NUL-terminated file-system identifier string. This string will
+into a null-terminated file-system identifier string. This string will
be written to the buffer pointed to by
.IR buf .
Make sure that
diff --git a/man2/truncate.2 b/man2/truncate.2
index 15736141ec..170524f8ce 100644
--- a/man2/truncate.2
+++ b/man2/truncate.2
@@ -64,7 +64,7 @@ bytes.
.LP
If the file previously was larger than this size, the extra data is lost.
If the file previously was shorter, it is extended, and
-the extended part reads as zero bytes.
+the extended part reads as null bytes ('\\0').
.LP
The file offset is not changed.
.LP
diff --git a/man2/uname.2 b/man2/uname.2
index 5289449b56..2440015a25 100644
--- a/man2/uname.2
+++ b/man2/uname.2
@@ -55,7 +55,7 @@ char domainname[];
.RE
The length of the arrays in a
.I struct utsname
-is unspecified; the fields are NUL-terminated.
+is unspecified; the fields are terminated by a null byte (''\0').
.SH "RETURN VALUE"
On success, zero is returned. On error, \-1 is returned, and
.I errno
diff --git a/man2/ustat.2 b/man2/ustat.2
index f240988486..1a8a307769 100644
--- a/man2/ustat.2
+++ b/man2/ustat.2
@@ -62,7 +62,7 @@ char f_fpack[6]; /* Filsys pack name */
.PP
The last two fields, f_fname and f_fpack, are not implemented and will
-always be filled with NUL characters.
+always be filled with null bytes ('\\0').
.SH "RETURN VALUE"
On success, zero is returned and the ustat structure pointed to by
.I ubuf