From 22923ade3cd232f38ba10bc5685eb3f1508ef127 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 15 Aug 1996 23:50:44 +0000 Subject: problems reported by freebsd pr#1493; schweikhardt@rus.uni-stuttgart.de --- lib/libc/sys/intro.2 | 12 +++++------- lib/libc/sys/madvise.2 | 6 ++++++ lib/libc/sys/mincore.2 | 6 ++++++ lib/libc/sys/mprotect.2 | 6 ++++++ lib/libc/sys/msync.2 | 6 ++++++ 5 files changed, 29 insertions(+), 7 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3