summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorsmart <smart@cvs.openbsd.org>2001-02-16 01:56:59 +0000
committersmart <smart@cvs.openbsd.org>2001-02-16 01:56:59 +0000
commit5d7d2a3b2ff0776a8771209080ea895d1e1ffa53 (patch)
treebdb9bf4db9d5654f0bd9c74b528d457dc67f2c89 /lib/libc
parente2de8d6a1ba5bc1f948d3a373a7578caa7c4e6f6 (diff)
style(9) nit in examples, aaron@ ok
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/read.26
-rw-r--r--lib/libc/sys/write.26
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2
index b1471a2e60c..51416c3f1c8 100644
--- a/lib/libc/sys/read.2
+++ b/lib/libc/sys/read.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: read.2,v 1.17 2000/10/18 05:12:11 aaron Exp $
+.\" $OpenBSD: read.2,v 1.18 2001/02/16 01:56:58 smart Exp $
.\" $NetBSD: read.2,v 1.6 1995/02/27 12:35:47 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -226,7 +226,7 @@ functions conform to
Error checks should explicitly test for \-1.
Code such as
.Bd -literal
- while ((nr = read(fd, buf, sizeof buf)) > 0)
+ while ((nr = read(fd, buf, sizeof(buf))) > 0)
.Ed
.Pp
is not maximally portable, as some platforms allow for
@@ -240,7 +240,7 @@ and
may appear as a negative number distinct from \-1.
Proper loops should use
.Bd -literal
- while ((nr = read(fd, buf, sizeof buf)) != -1 && nr != 0)
+ while ((nr = read(fd, buf, sizeof(buf))) != -1 && nr != 0)
.Ed
.Sh HISTORY
The
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index 860932e0d59..d5b5e6baae4 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: write.2,v 1.21 2000/10/18 05:12:12 aaron Exp $
+.\" $OpenBSD: write.2,v 1.22 2001/02/16 01:56:58 smart Exp $
.\" $NetBSD: write.2,v 1.6 1995/02/27 12:39:43 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -248,7 +248,7 @@ functions conform to
Error checks should explicitly test for \-1.
Code such as
.Bd -literal
- while ((nr = write(fd, buf, sizeof buf)) > 0)
+ while ((nr = write(fd, buf, sizeof(buf))) > 0)
.Ed
.Pp
is not maximally portable, as some platforms allow for
@@ -262,7 +262,7 @@ and
may appear as a negative number distinct from \-1.
Proper loops should use
.Bd -literal
- while ((nr = write(fd, buf, sizeof buf)) != -1 && nr != 0)
+ while ((nr = write(fd, buf, sizeof(buf))) != -1 && nr != 0)
.Ed
.Sh HISTORY
The