diff options
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/getdomainname.3 | 5 | ||||
-rw-r--r-- | lib/libc/gen/gethostname.3 | 5 | ||||
-rw-r--r-- | lib/libc/gen/sem_wait.3 | 9 | ||||
-rw-r--r-- | lib/libc/gen/sysctl.3 | 8 |
4 files changed, 4 insertions, 23 deletions
diff --git a/lib/libc/gen/getdomainname.3 b/lib/libc/gen/getdomainname.3 index 4d6f723..69d1b673 100644 --- a/lib/libc/gen/getdomainname.3 +++ b/lib/libc/gen/getdomainname.3 @@ -67,10 +67,7 @@ which has length This call is restricted to the super-user and is normally used only when the system is bootstrapped. .Sh RETURN VALUES -If the call succeeds a value of 0 is returned. If the call -fails, a value of -1 is returned and an error code is -placed in the global location -.Va errno . +.Rv -std .Sh ERRORS The following errors may be returned by these calls: .Bl -tag -width Er diff --git a/lib/libc/gen/gethostname.3 b/lib/libc/gen/gethostname.3 index 605ccc7..76819b1 100644 --- a/lib/libc/gen/gethostname.3 +++ b/lib/libc/gen/gethostname.3 @@ -67,10 +67,7 @@ which has length This call is restricted to the super-user and is normally used only when the system is bootstrapped. .Sh RETURN VALUES -If the call succeeds a value of 0 is returned. If the call -fails, a value of -1 is returned and an error code is -placed in the global location -.Va errno . +.Rv -std .Sh ERRORS The following errors may be returned by these calls: .Bl -tag -width Er diff --git a/lib/libc/gen/sem_wait.3 b/lib/libc/gen/sem_wait.3 index 61a21be..d015b90 100644 --- a/lib/libc/gen/sem_wait.3 +++ b/lib/libc/gen/sem_wait.3 @@ -57,14 +57,7 @@ function decrements (locks) the semaphore pointed to by only if the value is non-zero. Otherwise, the semaphore is not decremented and an error is returned. .Sh RETURN VALUES -If successful, -.Fn sem_wait -and -.Fn sem_trywait -return 0. Otherwise, -1 is returned and -.Va errno -is set to indicate the type of -error. +.Rv -std .Sh ERRORS .Fn sem_wait and diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index 062f60d..9551466 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -753,13 +753,7 @@ If the amount of free and cache memory falls below this value, the pageout daemon will enter "memory conserving mode" to avoid deadlock. .El .Sh RETURN VALUES -.Fn sysctl -and -.Fn sysctlbyname -return 0 when successful. -Otherwise \-1 is returned and -.Va errno -is set appropriately. +.Rv -std .Sh ERRORS The following errors may be reported: .Bl -tag -width Er |