summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-15 23:50:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-15 23:50:44 +0000
commit22923ade3cd232f38ba10bc5685eb3f1508ef127 (patch)
treec4ee1477cfdda5b643c09f9cbb1888774bb8d022 /lib
parent8e34a2cc44282bf7679909624c97b9aaf7683d3c (diff)
problems reported by freebsd pr#1493; schweikhardt@rus.uni-stuttgart.de
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/intro.212
-rw-r--r--lib/libc/sys/madvise.26
-rw-r--r--lib/libc/sys/mincore.26
-rw-r--r--lib/libc/sys/mprotect.26
-rw-r--r--lib/libc/sys/msync.26
5 files changed, 29 insertions, 7 deletions
diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2
index 45c53469d09..d1575aeb9ea 100644
--- a/lib/libc/sys/intro.2
+++ b/lib/libc/sys/intro.2
@@ -109,11 +109,10 @@ a tape drive is not online or no disk pack is
loaded on a drive.
.It Er 7 E2BIG Em "Arg list too long" .
The number of bytes used for the argument and environment
-list of the new process exceeded the current limit
-of 20480 bytes
-.Pf ( Dv NCARGS
-in
-.Aq Pa sys/param.h ) .
+list of the new process exceeded the limit
+.Pf Dv NCARGS
+(specified in
+.Aq Pa sys/param.h ).
.It Er 8 ENOEXEC Em "Exec format error" .
A request was made to execute a file
that, although it has the appropriate permissions,
@@ -552,8 +551,7 @@ excluding 0 (NUL) and the
.Tn ASCII
code for
.Ql \&/
-(slash). (The parity bit,
-bit 7, must be 0.)
+(slash).
.Pp
Note that it is generally unwise to use
.Ql \&* ,
diff --git a/lib/libc/sys/madvise.2 b/lib/libc/sys/madvise.2
index d852ef58556..5d18e7ce977 100644
--- a/lib/libc/sys/madvise.2
+++ b/lib/libc/sys/madvise.2
@@ -60,6 +60,12 @@ The known behaviors are given in
#define MADV_DONTNEED 4 /* don't need these pages */
#define MADV_SPACEAVAIL 5 /* insure that resources are reserved */
.Ed
+.Sh RETURN VALUES
+Upon successful completion,
+a value of 0 is returned.
+Otherwise, a value of -1 is returned and
+.Va errno
+is set to indicate the error.
.Sh SEE ALSO
.Xr mincore 2 ,
.Xr minherit 2 ,
diff --git a/lib/libc/sys/mincore.2 b/lib/libc/sys/mincore.2
index 6d4afa6f887..05fb3d6ebd6 100644
--- a/lib/libc/sys/mincore.2
+++ b/lib/libc/sys/mincore.2
@@ -54,6 +54,12 @@ Here the current core residency of the pages is returned
in the character array
.Fa vec ,
with a value of 1 meaning that the page is in-core.
+.Sh RETURN VALUES
+Upon successful completion,
+a value of 0 is returned.
+Otherwise, a value of -1 is returned and
+.Va errno
+is set to indicate the error.
.Sh SEE ALSO
.Xr madvise 2 ,
.Xr minherit 2 ,
diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2
index 69a3d28defd..4870751bbc1 100644
--- a/lib/libc/sys/mprotect.2
+++ b/lib/libc/sys/mprotect.2
@@ -52,6 +52,12 @@ changes the specified pages to have protection
.Fa prot .
Not all implementations will guarantee protection on a page basis;
the granularity of protection changes may be as large as an entire region.
+.Sh RETURN VALUES
+Upon successful completion,
+a value of 0 is returned.
+Otherwise, a value of -1 is returned and
+.Va errno
+is set to indicate the error.
.Sh SEE ALSO
.Xr madvise 2 ,
.Xr mincore 2 ,
diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2
index f616ad88a97..8b5f326760a 100644
--- a/lib/libc/sys/msync.2
+++ b/lib/libc/sys/msync.2
@@ -67,6 +67,12 @@ will also take place at this time.
Filesystem operations on a file that is mapped for shared modifications
are unpredictable except after an
.Fn msync .
+.Sh RETURN VALUES
+Upon successful completion,
+a value of 0 is returned.
+Otherwise, a value of -1 is returned and
+.Va errno
+is set to indicate the error.
.Sh ERRORS
The following errors may be reported:
.Bl -tag -width Er