\- is a minus, not -.
This commit is contained in:
parent
339084de19
commit
64ebeb5cbc
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: access.2,v 1.20 2003/08/07 16:43:54 agc Exp $
|
||||
.\" $NetBSD: access.2,v 1.21 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -85,7 +85,7 @@ See
|
|||
If
|
||||
.Fa path
|
||||
cannot be found or if any of the desired access modes would
|
||||
not be granted, then a -1 value is returned; otherwise
|
||||
not be granted, then a \-1 value is returned; otherwise
|
||||
a 0 value is returned.
|
||||
.Sh ERRORS
|
||||
Access to the file is denied if:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: acct.2,v 1.15 2003/08/07 16:43:55 agc Exp $
|
||||
.\" $NetBSD: acct.2,v 1.16 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -80,7 +80,7 @@ For this purpose,
|
|||
creates a kernel thread called
|
||||
.Dq acctwatch .
|
||||
.Sh RETURN VALUES
|
||||
On error -1 is returned.
|
||||
On error \-1 is returned.
|
||||
The file must exist and the call may be exercised only by the super-user.
|
||||
.Sh ERRORS
|
||||
.Fn acct
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: adjtime.2,v 1.19 2003/08/07 16:43:55 agc Exp $
|
||||
.\" $NetBSD: adjtime.2,v 1.20 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -92,7 +92,7 @@ reverts to the
|
|||
system call, which is restricted to the super user.
|
||||
.Sh RETURN VALUES
|
||||
A return value of 0 indicates that the call succeeded.
|
||||
A return value of -1 indicates that an error occurred, and in this
|
||||
A return value of \-1 indicates that an error occurred, and in this
|
||||
case an error code is stored in the global variable
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: bind.2,v 1.23 2003/08/07 16:43:55 agc Exp $
|
||||
.\" $NetBSD: bind.2,v 1.24 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -69,7 +69,7 @@ The rules used in name binding vary between communication domains.
|
|||
Consult the manual entries in section 4 for detailed information.
|
||||
.Sh RETURN VALUES
|
||||
If the bind is successful, a 0 value is returned.
|
||||
A return value of -1 indicates an error, which is
|
||||
A return value of \-1 indicates an error, which is
|
||||
further specified in the global
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: brk.2,v 1.31 2003/08/07 16:43:55 agc Exp $
|
||||
.\" $NetBSD: brk.2,v 1.32 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -114,14 +114,14 @@ for the definition of
|
|||
.Sh RETURN VALUES
|
||||
.Fn brk
|
||||
returns 0 if successful;
|
||||
otherwise -1 with
|
||||
otherwise \-1 with
|
||||
.Va errno
|
||||
set to indicate why the allocation failed.
|
||||
.Pp
|
||||
The
|
||||
.Fn sbrk
|
||||
function returns the prior break value if successful;
|
||||
otherwise ((void *)-1) is returned and
|
||||
otherwise ((void *)\-1) is returned and
|
||||
.Va errno
|
||||
is set to indicate why the allocation failed.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: chdir.2,v 1.19 2003/08/07 16:43:55 agc Exp $
|
||||
.\" $NetBSD: chdir.2,v 1.20 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -71,7 +71,7 @@ In order for a directory to become the current directory,
|
|||
a process must have execute (search) access to the directory.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate
|
||||
the error.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: chflags.2,v 1.23 2003/08/07 16:43:55 agc Exp $
|
||||
.\" $NetBSD: chflags.2,v 1.24 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1989, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -107,7 +107,7 @@ the system is in single-user mode.
|
|||
for details.)
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: chmod.2,v 1.28 2004/01/30 15:38:47 wiz Exp $
|
||||
.\" $NetBSD: chmod.2,v 1.29 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -135,7 +135,7 @@ from remaining set-user-id (set-group-id) if they are modified,
|
|||
at the expense of a degree of compatibility.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: chown.2,v 1.29 2003/08/07 16:43:56 agc Exp $
|
||||
.\" $NetBSD: chown.2,v 1.30 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -101,10 +101,10 @@ with the file locking primitives (see
|
|||
.Xr flock 2 ) .
|
||||
.Pp
|
||||
One of the owner or group id's
|
||||
may be left unchanged by specifying it as (uid_t)-1 or (gid_t)-1 respectively.
|
||||
may be left unchanged by specifying it as (uid_t)\-1 or (gid_t)\-1 respectively.
|
||||
.Sh RETURN VALUES
|
||||
Zero is returned if the operation was successful;
|
||||
-1 is returned if an error occurs, with a more specific
|
||||
\-1 is returned if an error occurs, with a more specific
|
||||
error code being placed in the global variable
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: chroot.2,v 1.21 2003/08/07 16:43:56 agc Exp $
|
||||
.\" $NetBSD: chroot.2,v 1.22 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -72,7 +72,7 @@ known by the file descriptor
|
|||
.Fa fd .
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate an error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: clock_settime.2,v 1.16 2003/04/16 13:34:51 wiz Exp $
|
||||
.\" $NetBSD: clock_settime.2,v 1.17 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -127,7 +127,7 @@ reverts to the
|
|||
system call, which is restricted to the super user.
|
||||
.Sh RETURN VALUES
|
||||
A value of 0 is returned on success.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: close.2,v 1.15 2003/08/07 16:43:56 agc Exp $
|
||||
.\" $NetBSD: close.2,v 1.16 2004/05/13 10:20:57 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -103,7 +103,7 @@ restores the default, which is to not close descriptor
|
|||
.Dq Fa d .
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and the global integer variable
|
||||
Otherwise, a value of \-1 is returned and the global integer variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: connect.2,v 1.24 2003/08/07 16:43:56 agc Exp $
|
||||
.\" $NetBSD: connect.2,v 1.25 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -73,7 +73,7 @@ Datagram sockets may dissolve the association
|
|||
by connecting to an invalid address, such as a null address.
|
||||
.Sh RETURN VALUES
|
||||
If the connection or binding succeeds, 0 is returned.
|
||||
Otherwise a -1 is returned, and a more specific error
|
||||
Otherwise a \-1 is returned, and a more specific error
|
||||
code is stored in
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: dup.2,v 1.17 2003/08/07 16:43:56 agc Exp $
|
||||
.\" $NetBSD: dup.2,v 1.18 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -96,7 +96,7 @@ in use, the descriptor is first deallocated as if a
|
|||
.Xr close 2
|
||||
call had been done first.
|
||||
.Sh RETURN VALUES
|
||||
The value -1 is returned if an error occurs in either call.
|
||||
The value \-1 is returned if an error occurs in either call.
|
||||
The external variable
|
||||
.Va errno
|
||||
indicates the cause of the error.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: execve.2,v 1.32 2003/08/07 16:43:56 agc Exp $
|
||||
.\" $NetBSD: execve.2,v 1.33 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -200,7 +200,7 @@ has no process to return to.
|
|||
If
|
||||
.Fn execve
|
||||
does return to the calling process an error has occurred; the
|
||||
return value will be -1 and the global variable
|
||||
return value will be \-1 and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: fcntl.2,v 1.30 2004/01/05 00:34:34 christos Exp $
|
||||
.\" $NetBSD: fcntl.2,v 1.31 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -156,7 +156,7 @@ Non-blocking I/O; if no data is available to a
|
|||
call, or if a
|
||||
.Xr write 2
|
||||
operation would block,
|
||||
the read or write call returns -1 with the error
|
||||
the read or write call returns \-1 with the error
|
||||
.Er EAGAIN .
|
||||
.It Dv O_APPEND
|
||||
Force each write to append at the end of file;
|
||||
|
@ -378,10 +378,10 @@ Value of file descriptor owner.
|
|||
.It Dv F_MAXFD
|
||||
Value of the highest file descriptor open by the process.
|
||||
.It other
|
||||
Value other than -1.
|
||||
Value other than \-1.
|
||||
.El
|
||||
.Pp
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: fdatasync.2,v 1.14 2003/10/25 01:18:01 kleink Exp $
|
||||
.\" $NetBSD: fdatasync.2,v 1.15 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -64,7 +64,7 @@ synchronized I/O data integrity completion.
|
|||
.Ef
|
||||
.Sh RETURN VALUES
|
||||
A value of 0 is returned on success.
|
||||
Otherwise, a value -1 is returned and
|
||||
Otherwise, a value \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: fhopen.2,v 1.11 2004/04/21 12:10:36 wiz Exp $
|
||||
.\" $NetBSD: fhopen.2,v 1.12 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1999 National Aeronautics & Space Administration
|
||||
.\" All rights reserved.
|
||||
|
@ -96,7 +96,7 @@ returns the file descriptor for the opened file, while
|
|||
and
|
||||
.Fn fhstatvfs1
|
||||
return 0.
|
||||
Otherwise, -1 is returned and
|
||||
Otherwise, \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: flock.2,v 1.18 2003/08/07 16:43:57 agc Exp $
|
||||
.\" $NetBSD: flock.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -113,7 +113,7 @@ lose its lock.
|
|||
Processes blocked awaiting a lock may be awakened by signals.
|
||||
.Sh RETURN VALUES
|
||||
Zero is returned if the operation was successful;
|
||||
on an error a -1 is returned and an error code is left in
|
||||
on an error a \-1 is returned and an error code is left in
|
||||
the global location
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: fork.2,v 1.19 2003/08/07 16:43:57 agc Exp $
|
||||
.\" $NetBSD: fork.2,v 1.20 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -89,7 +89,7 @@ Upon successful completion,
|
|||
returns a value
|
||||
of 0 to the child process and returns the process ID of the child
|
||||
process to the parent process.
|
||||
Otherwise, a value of -1 is returned to the parent process, no
|
||||
Otherwise, a value of \-1 is returned to the parent process, no
|
||||
child process is created, and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getdents.2,v 1.14 2003/08/07 16:43:57 agc Exp $
|
||||
.\" $NetBSD: getdents.2,v 1.15 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1989, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -138,7 +138,7 @@ The current position pointer should only be set to a value returned by
|
|||
or zero.
|
||||
.Sh RETURN VALUES
|
||||
If successful, the number of bytes actually transferred is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getdirentries.3,v 1.14 2003/08/07 16:43:57 agc Exp $
|
||||
.\" $NetBSD: getdirentries.3,v 1.15 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1989, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -133,7 +133,7 @@ a value returned in the location pointed to by
|
|||
or zero.
|
||||
.Sh RETURN VALUES
|
||||
If successful, the number of bytes actually transferred is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getfh.2,v 1.16 2003/08/07 16:43:57 agc Exp $
|
||||
.\" $NetBSD: getfh.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1989, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -50,7 +50,7 @@ in the file handle pointed to by
|
|||
This system call is restricted to the superuser.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getgroups.2,v 1.19 2003/08/07 16:43:58 agc Exp $
|
||||
.\" $NetBSD: getgroups.2,v 1.20 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -66,7 +66,7 @@ returns the number of groups without modifying the
|
|||
array.
|
||||
.Sh RETURN VALUES
|
||||
A successful call returns the number of groups in the group set.
|
||||
A value of -1 indicates that an error occurred, and the error
|
||||
A value of \-1 indicates that an error occurred, and the error
|
||||
code is stored in the global variable
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getitimer.2,v 1.19 2004/04/27 01:12:44 kleink Exp $
|
||||
.\" $NetBSD: getitimer.2,v 1.20 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -139,7 +139,7 @@ tests if a time value is non-zero, and
|
|||
compares two time values.
|
||||
.Sh RETURN VALUES
|
||||
If the calls succeed, a value of 0 is returned.
|
||||
If an error occurs, the value -1 is returned, and a more precise error
|
||||
If an error occurs, the value \-1 is returned, and a more precise error
|
||||
code is placed in the global variable
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getlogin.2,v 1.18 2003/08/07 16:43:58 agc Exp $
|
||||
.\" $NetBSD: getlogin.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1989, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -124,7 +124,7 @@ If a call to
|
|||
succeeds, a value of 0 is returned.
|
||||
If
|
||||
.Fn setlogin
|
||||
fails, a value of -1 is returned and an error code is
|
||||
fails, a value of \-1 is returned and an error code is
|
||||
placed in the global location
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getpriority.2,v 1.16 2004/04/25 22:18:08 kleink Exp $
|
||||
.\" $NetBSD: getpriority.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -94,16 +94,16 @@ Only the super-user may lower priorities.
|
|||
.Sh RETURN VALUES
|
||||
Since
|
||||
.Fn getpriority
|
||||
can legitimately return the value -1, it is necessary
|
||||
can legitimately return the value \-1, it is necessary
|
||||
to clear the external variable
|
||||
.Va errno
|
||||
prior to the
|
||||
call, then check it afterward to determine
|
||||
if a -1 is an error or a legitimate value.
|
||||
if a \-1 is an error or a legitimate value.
|
||||
The
|
||||
.Fn setpriority
|
||||
call returns 0 if there is no error, or
|
||||
-1 if there is.
|
||||
\-1 if there is.
|
||||
.Sh ERRORS
|
||||
.Fn getpriority
|
||||
and
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getrlimit.2,v 1.28 2004/04/19 11:27:03 wiz Exp $
|
||||
.\" $NetBSD: getrlimit.2,v 1.29 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -165,7 +165,7 @@ offending process.
|
|||
.Sh RETURN VALUES
|
||||
A 0 return value indicates that the call succeeded, changing
|
||||
or returning the resource limit.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getrusage.2,v 1.17 2003/08/07 16:43:59 agc Exp $
|
||||
.\" $NetBSD: getrusage.2,v 1.18 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1985, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -40,7 +40,7 @@
|
|||
.Sh SYNOPSIS
|
||||
.In sys/resource.h
|
||||
.Fd #define RUSAGE_SELF 0
|
||||
.Fd #define RUSAGE_CHILDREN -1
|
||||
.Fd #define RUSAGE_CHILDREN \-1
|
||||
.Ft int
|
||||
.Fn getrusage "int who" "struct rusage *rusage"
|
||||
.Sh DESCRIPTION
|
||||
|
@ -139,7 +139,7 @@ I/O; data supplied by the caching mechanism is charged only
|
|||
to the first process to read or write the data.
|
||||
.Sh ERRORS
|
||||
.Fn getrusage
|
||||
returns -1 on error.
|
||||
returns \-1 on error.
|
||||
The possible errors are:
|
||||
.Bl -tag -width Er
|
||||
.It Bq Er EINVAL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getsid.2,v 1.8 2003/08/07 16:43:59 agc Exp $
|
||||
.\" $NetBSD: getsid.2,v 1.9 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -54,7 +54,7 @@ process that is the session leader.
|
|||
.Sh ERRORS
|
||||
If an error occurs,
|
||||
.Nm
|
||||
returns -1 and the global variable
|
||||
returns \-1 and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error, as follows:
|
||||
.Bl -tag -width Er
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: getsockopt.2,v 1.28 2003/08/07 16:43:59 agc Exp $
|
||||
.\" $NetBSD: getsockopt.2,v 1.29 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -330,7 +330,7 @@ the error status.
|
|||
It may be used to check for asynchronous errors on connected
|
||||
datagram sockets or for other asynchronous errors.
|
||||
.Sh RETURN VALUES
|
||||
A 0 is returned if the call succeeds, -1 if it fails.
|
||||
A 0 is returned if the call succeeds, \-1 if it fails.
|
||||
.Sh ERRORS
|
||||
The call succeeds unless:
|
||||
.Bl -tag -width Er
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: gettimeofday.2,v 1.23 2004/04/27 01:12:44 kleink Exp $
|
||||
.\" $NetBSD: gettimeofday.2,v 1.24 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -124,7 +124,7 @@ system call, which is restricted to the super user.
|
|||
.\" system call even when the system is secure.
|
||||
.Sh RETURN VALUES
|
||||
A 0 return value indicates that the call succeeded.
|
||||
A -1 return value indicates an error occurred, and in this
|
||||
A \-1 return value indicates an error occurred, and in this
|
||||
case an error code is stored into the global variable
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: intro.2,v 1.38 2004/01/08 09:12:57 wiz Exp $
|
||||
.\" $NetBSD: intro.2,v 1.39 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1983, 1986, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -55,12 +55,12 @@ is implemented as a macro which expands to a modifiable lvalue of type
|
|||
.Pp
|
||||
When a system call detects an error,
|
||||
it returns an integer value
|
||||
indicating failure (usually -1)
|
||||
indicating failure (usually \-1)
|
||||
and sets the variable
|
||||
.Va errno
|
||||
accordingly.
|
||||
\*[Lt]This allows interpretation of the failure on receiving
|
||||
a -1 and to take action accordingly.\*[Gt]
|
||||
(This allows interpretation of the failure on receiving
|
||||
a \-1 and to take action accordingly.)
|
||||
Successful calls never set
|
||||
.Va errno ;
|
||||
once set, it remains until another error occurs.
|
||||
|
@ -374,7 +374,7 @@ A component of a path name exceeded 255
|
|||
.Pq Dv MAXNAMELEN
|
||||
characters, or an entire
|
||||
path name exceeded 1023
|
||||
.Pq Dv MAXPATHLEN Ns -1
|
||||
.Pq Dv MAXPATHLEN Ns \-1
|
||||
characters.
|
||||
.It Er 64 EHOSTDOWN Em "Host is down" .
|
||||
A socket operation failed because the destination host was down.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: ioctl.2,v 1.17 2003/08/07 16:44:00 agc Exp $
|
||||
.\" $NetBSD: ioctl.2,v 1.18 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -117,7 +117,7 @@ Set/get the process or the process group (if negative) that should receive
|
|||
signals when data is available.
|
||||
.El
|
||||
.Sh RETURN VALUES
|
||||
If an error has occurred, a value of -1 is returned and
|
||||
If an error has occurred, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: kill.2,v 1.19 2003/08/07 16:44:00 agc Exp $
|
||||
.\" $NetBSD: kill.2,v 1.20 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -79,7 +79,7 @@ to the process group ID of the sender, and for which the
|
|||
process has permission;
|
||||
this is a variant of
|
||||
.Xr killpg 3 .
|
||||
.It \&If Fa pid No \&is -1 :
|
||||
.It \&If Fa pid No \&is \-1 :
|
||||
If the user has super-user privileges,
|
||||
the signal is sent to all processes excluding
|
||||
system processes and the process sending the signal.
|
||||
|
@ -89,14 +89,14 @@ No error is returned if any process could be signaled.
|
|||
.El
|
||||
.Pp
|
||||
For compatibility with System V,
|
||||
if the process number is negative but not -1,
|
||||
if the process number is negative but not \-1,
|
||||
the signal is sent to all processes whose process group ID
|
||||
is equal to the absolute value of the process number.
|
||||
This is a variant of
|
||||
.Xr killpg 3 .
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: ktrace.2,v 1.16 2003/08/07 16:44:00 agc Exp $
|
||||
.\" $NetBSD: ktrace.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -140,7 +140,7 @@ The type specific records are defined in the
|
|||
include file.
|
||||
.Sh RETURN VALUES
|
||||
On successful completion a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to show the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: lfs_bmapv.2,v 1.8 2003/04/16 13:34:53 wiz Exp $
|
||||
.\" $NetBSD: lfs_bmapv.2,v 1.9 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -87,7 +87,7 @@ typedef struct block_info {
|
|||
.Ed
|
||||
.Sh RETURN VALUES
|
||||
.Fn lfs_bmapv
|
||||
returns 0 on success, or -1 on error.
|
||||
returns 0 on success, or \-1 on error.
|
||||
.Sh ERRORS
|
||||
An error return from
|
||||
.Fn lfs_bmapv
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: lfs_markv.2,v 1.9 2003/04/16 13:34:53 wiz Exp $
|
||||
.\" $NetBSD: lfs_markv.2,v 1.10 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -99,7 +99,7 @@ typedef struct block_info {
|
|||
.Ed
|
||||
.Sh RETURN VALUES
|
||||
.Fn lfs_markv
|
||||
returns 0 on success, or -1 on error.
|
||||
returns 0 on success, or \-1 on error.
|
||||
.Sh ERRORS
|
||||
An error return from
|
||||
.Fn lfs_markv
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: lfs_segclean.2,v 1.6 2003/04/16 13:34:53 wiz Exp $
|
||||
.\" $NetBSD: lfs_segclean.2,v 1.7 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -55,7 +55,7 @@ in LFS filesystem
|
|||
"clean" or available for writing.
|
||||
.Sh RETURN VALUES
|
||||
.Fn lfs_segclean
|
||||
returns 0 on success, or -1 on error.
|
||||
returns 0 on success, or \-1 on error.
|
||||
.Sh ERRORS
|
||||
An error return from
|
||||
.Fn lfs_segclean
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: lfs_segwait.2,v 1.6 2003/04/16 13:34:53 wiz Exp $
|
||||
.\" $NetBSD: lfs_segwait.2,v 1.7 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -53,7 +53,7 @@ specified by
|
|||
.Fa *fsidp
|
||||
or if
|
||||
.Fa *fsidp
|
||||
is -1, until a segment is acquired for writing by any LFS filesystem.
|
||||
is \-1, until a segment is acquired for writing by any LFS filesystem.
|
||||
.Pp
|
||||
If
|
||||
.Fa timeout
|
||||
|
@ -65,7 +65,7 @@ milliseconds regardless of whether a new segment has been designated for
|
|||
writing or not.
|
||||
.Sh RETURN VALUES
|
||||
.Fn lfs_segwait
|
||||
returns 0 if a new segment was acquired; 1 if it timed out; or -1 on error.
|
||||
returns 0 if a new segment was acquired; 1 if it timed out; or \-1 on error.
|
||||
.Sh ERRORS
|
||||
An error return from
|
||||
.Fn lfs_segwait
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: link.2,v 1.21 2003/08/07 16:44:00 agc Exp $
|
||||
.\" $NetBSD: link.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -79,7 +79,7 @@ may not be a directory unless the caller is the super-user
|
|||
and the file system containing it supports linking to directories.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: listen.2,v 1.15 2003/08/07 16:44:01 agc Exp $
|
||||
.\" $NetBSD: listen.2,v 1.16 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -69,7 +69,7 @@ receive an error with an indication of
|
|||
or, if the underlying protocol supports retransmission,
|
||||
the request may be ignored so that retries may succeed.
|
||||
.Sh RETURN VALUES
|
||||
A 0 return value indicates success; -1 indicates an error.
|
||||
A 0 return value indicates success; \-1 indicates an error.
|
||||
.Sh ERRORS
|
||||
.Fn listen
|
||||
will fail if:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: lseek.2,v 1.21 2003/08/07 16:44:01 agc Exp $
|
||||
.\" $NetBSD: lseek.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -104,7 +104,7 @@ Upon successful completion,
|
|||
returns the resulting offset location as measured in bytes from the
|
||||
beginning of the file.
|
||||
Otherwise,
|
||||
a value of -1 is returned and
|
||||
a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate
|
||||
the error.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: madvise.2,v 1.20 2003/08/07 16:44:01 agc Exp $
|
||||
.\" $NetBSD: madvise.2,v 1.21 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -61,7 +61,7 @@ The known behaviors are given in
|
|||
.Sh RETURN VALUES
|
||||
Upon successful completion,
|
||||
a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh SEE ALSO
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mincore.2,v 1.18 2003/08/07 16:44:01 agc Exp $
|
||||
.\" $NetBSD: mincore.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -64,7 +64,7 @@ that pages will remain in core, the address range must be locked with
|
|||
.Xr mlock 2 .
|
||||
.Sh RETURN VALUES
|
||||
.Fn mincore
|
||||
returns 0 on success, or -1 on failure and sets the variable
|
||||
returns 0 on success, or \-1 on failure and sets the variable
|
||||
.Va errno
|
||||
to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mkdir.2,v 1.20 2003/08/07 16:44:01 agc Exp $
|
||||
.\" $NetBSD: mkdir.2,v 1.21 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -55,7 +55,7 @@ The directory's group ID is set to that of the parent directory in
|
|||
which it is created.
|
||||
.Sh RETURN VALUES
|
||||
A 0 return value indicates success.
|
||||
A -1 return value indicates an error, and an error code is stored in
|
||||
A \-1 return value indicates an error, and an error code is stored in
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
.Fn mkdir
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mkfifo.2,v 1.18 2003/08/07 16:44:01 agc Exp $
|
||||
.\" $NetBSD: mkfifo.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1990, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -57,7 +57,7 @@ The fifo's group ID is set to that of the parent directory in
|
|||
which it is created.
|
||||
.Sh RETURN VALUES
|
||||
A 0 return value indicates success.
|
||||
A -1 return value indicates an error, and an error code is stored in
|
||||
A \-1 return value indicates an error, and an error code is stored in
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
.Fn mkfifo
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mknod.2,v 1.17 2003/08/07 16:44:01 agc Exp $
|
||||
.\" $NetBSD: mknod.2,v 1.18 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -69,7 +69,7 @@ is ignored.
|
|||
requires super-user privileges.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mlock.2,v 1.17 2004/01/02 17:06:21 jmmv Exp $
|
||||
.\" $NetBSD: mlock.2,v 1.18 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -102,7 +102,7 @@ resource limit.
|
|||
.Sh RETURN VALUES
|
||||
A return value of 0 indicates that the call
|
||||
succeeded and all pages in the range have either been locked or unlocked.
|
||||
A return value of -1 indicates an error occurred and the locked
|
||||
A return value of \-1 indicates an error occurred and the locked
|
||||
status of all pages in the range remains unchanged.
|
||||
In this case, the global location
|
||||
.Va errno
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mlockall.2,v 1.11 2003/04/16 13:34:54 wiz Exp $
|
||||
.\" $NetBSD: mlockall.2,v 1.12 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -86,7 +86,7 @@ call will not be locked.
|
|||
.Sh RETURN VALUES
|
||||
A return value of 0 indicates that the call
|
||||
succeeded and all pages in the range have either been locked or unlocked.
|
||||
A return value of -1 indicates an error occurred and the locked
|
||||
A return value of \-1 indicates an error occurred and the locked
|
||||
status of all pages in the range remains unchanged.
|
||||
In this case, the global location
|
||||
.Va errno
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mount.2,v 1.31 2003/08/07 16:44:02 agc Exp $
|
||||
.\" $NetBSD: mount.2,v 1.32 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1989, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -211,13 +211,13 @@ but any further accesses to any other active files result in errors
|
|||
even if the file system is later remounted.
|
||||
.Sh RETURN VALUES
|
||||
.Fn mount
|
||||
returns the value 0 if the mount was successful, otherwise -1 is returned
|
||||
returns the value 0 if the mount was successful, otherwise \-1 is returned
|
||||
and the variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Pp
|
||||
.Fn unmount
|
||||
returns the value 0 if the unmount succeeded; otherwise -1 is returned
|
||||
returns the value 0 if the unmount succeeded; otherwise \-1 is returned
|
||||
and the variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: msgctl.2,v 1.13 2003/04/16 13:34:54 wiz Exp $
|
||||
.\" $NetBSD: msgctl.2,v 1.14 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -145,7 +145,7 @@ or
|
|||
.Va msg_perm.gid .
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: msgget.2,v 1.13 2004/05/13 01:49:55 kleink Exp $
|
||||
.\" $NetBSD: msgget.2,v 1.14 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -107,7 +107,7 @@ is set to the current time.
|
|||
.El
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion a positive message queue identifier is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: msgrcv.2,v 1.16 2003/04/16 13:34:54 wiz Exp $
|
||||
.\" $NetBSD: msgrcv.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -113,7 +113,7 @@ If
|
|||
.Dv IPC_NOWAIT
|
||||
is set, then
|
||||
.Fn msgrcv
|
||||
will immediately return a value of -1 and set
|
||||
will immediately return a value of \-1 and set
|
||||
.Va errno
|
||||
to
|
||||
.Er EAGAIN .
|
||||
|
@ -124,13 +124,13 @@ is not set, the calling process will block until:
|
|||
.It
|
||||
A message of the requested type becomes available on the message queue.
|
||||
.It
|
||||
The message queue is removed, in which case -1 will be returned and
|
||||
The message queue is removed, in which case \-1 will be returned and
|
||||
.Va errno
|
||||
set to
|
||||
.Er EIDRM .
|
||||
.It
|
||||
A signal is received and caught.
|
||||
-1 is returned and
|
||||
\-1 is returned and
|
||||
.Va errno
|
||||
is set to
|
||||
.Er EINTR .
|
||||
|
@ -157,7 +157,7 @@ returns the number of bytes received into the
|
|||
.Va mtext
|
||||
field of the structure pointed to by
|
||||
.Fa msgp .
|
||||
Otherwise, -1 is returned, and
|
||||
Otherwise, \-1 is returned, and
|
||||
.Va errno
|
||||
set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: msgsnd.2,v 1.14 2003/04/16 13:34:55 wiz Exp $
|
||||
.\" $NetBSD: msgsnd.2,v 1.15 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -94,7 +94,7 @@ set in it, the call will block until:
|
|||
The condition which caused the call to block no longer exists.
|
||||
The message was sent.
|
||||
.It
|
||||
The message queue is removed, in which case -1 will be returned and
|
||||
The message queue is removed, in which case \-1 will be returned and
|
||||
.Va errno
|
||||
set to
|
||||
.Er EINVAL .
|
||||
|
@ -121,7 +121,7 @@ is set to the current time.
|
|||
.El
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, 0 is returned.
|
||||
Otherwise, -1 is returned and
|
||||
Otherwise, \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: msync.2,v 1.21 2003/08/07 16:44:02 agc Exp $
|
||||
.\" $NetBSD: msync.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -81,7 +81,7 @@ the following values
|
|||
.Sh RETURN VALUES
|
||||
Upon successful completion,
|
||||
a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: munmap.2,v 1.18 2003/08/07 16:44:02 agc Exp $
|
||||
.\" $NetBSD: munmap.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -52,7 +52,7 @@ to generate invalid memory references.
|
|||
Upon successful completion,
|
||||
.Nm munmap
|
||||
returns zero.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: nanosleep.2,v 1.9 2003/08/07 16:44:03 agc Exp $
|
||||
.\" $NetBSD: nanosleep.2,v 1.10 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1986, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -61,7 +61,7 @@ returned will be zero.
|
|||
If the
|
||||
.Fn nanosleep
|
||||
function returns due to the delivery of a signal, the value returned
|
||||
will be the -1, and the global variable
|
||||
will be the \-1, and the global variable
|
||||
.Va errno
|
||||
will be set to indicate the interruption.
|
||||
If
|
||||
|
@ -73,7 +73,7 @@ unslept amount (the request time minus the time actually slept).
|
|||
.Sh ERRORS
|
||||
If any of the following conditions occur, the
|
||||
.Nm
|
||||
function shall return -1 and set
|
||||
function shall return \-1 and set
|
||||
.Va errno
|
||||
to the corresponding value.
|
||||
.Bl -tag -width Er
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: nfssvc.2,v 1.19 2003/08/07 16:44:03 agc Exp $
|
||||
.\" $NetBSD: nfssvc.2,v 1.20 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1989, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -195,7 +195,7 @@ Normally
|
|||
.Nm
|
||||
does not return unless the server
|
||||
is terminated by a signal when a value of 0 is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to specify the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: pathconf.2,v 1.15 2003/08/07 16:44:03 agc Exp $
|
||||
.\" $NetBSD: pathconf.2,v 1.16 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -120,7 +120,7 @@ If any of the following conditions occur, the
|
|||
.Nm pathconf
|
||||
and
|
||||
.Nm fpathconf
|
||||
functions shall return -1 and set
|
||||
functions shall return \-1 and set
|
||||
.Va errno
|
||||
to the corresponding value.
|
||||
.Bl -tag -width Er
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: pipe.2,v 1.21 2003/08/07 16:44:03 agc Exp $
|
||||
.\" $NetBSD: pipe.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -80,7 +80,7 @@ after the reader consumes any buffered data, reading a widowed pipe
|
|||
returns a zero count.
|
||||
.Sh RETURN VALUES
|
||||
On successful creation of the pipe, zero is returned.
|
||||
Otherwise, a value of -1 is returned and the variable
|
||||
Otherwise, a value of \-1 is returned and the variable
|
||||
.Va errno
|
||||
set to indicate the
|
||||
error.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: pmc_control.2,v 1.4 2003/04/16 13:34:55 wiz Exp $
|
||||
.\" $NetBSD: pmc_control.2,v 1.5 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 Wasabi Systems, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -177,7 +177,7 @@ is ignored in this case and may be
|
|||
.El
|
||||
.Sh RETURN VALUES
|
||||
A return value of 0 indicates that the call succeeded.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: poll.2,v 1.17 2003/04/16 13:34:55 wiz Exp $
|
||||
.\" $NetBSD: poll.2,v 1.18 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -141,11 +141,11 @@ bitmask.
|
|||
.Pp
|
||||
If
|
||||
.Fa timeout
|
||||
is neither zero nor INFTIM (-1), it specifies a maximum interval to
|
||||
is neither zero nor INFTIM (\-1), it specifies a maximum interval to
|
||||
wait for any file descriptor to become ready, in milliseconds.
|
||||
If
|
||||
.Fa timeout
|
||||
is INFTIM (-1), the poll blocks indefinitely.
|
||||
is INFTIM (\-1), the poll blocks indefinitely.
|
||||
If
|
||||
.Fa timeout
|
||||
is zero, then
|
||||
|
@ -153,7 +153,7 @@ is zero, then
|
|||
will return without blocking.
|
||||
.Sh RETURN VALUES
|
||||
.Fn poll
|
||||
returns the number of descriptors that are ready for I/O, or -1 if an
|
||||
returns the number of descriptors that are ready for I/O, or \-1 if an
|
||||
error occurred.
|
||||
If the time limit expires,
|
||||
.Fn poll
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: ptrace.2,v 1.24 2003/06/26 09:50:49 wiz Exp $
|
||||
.\" $NetBSD: ptrace.2,v 1.25 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" This file is in the public domain.
|
||||
.Dd November 7, 1994
|
||||
|
@ -238,7 +238,7 @@ bytes transferred.
|
|||
If the requested I/O could not be successfully performed,
|
||||
.Fn ptrace
|
||||
will return
|
||||
.Li -1
|
||||
.Li \-1
|
||||
and set
|
||||
.Va errno .
|
||||
.El
|
||||
|
@ -338,7 +338,7 @@ pointed to by
|
|||
.\" .Li syscall_num
|
||||
.\" is
|
||||
.\" .Eo \&
|
||||
.\" .Li -1
|
||||
.\" .Li \-1
|
||||
.\" .Ec ,
|
||||
.\" .Li syscall_err
|
||||
.\" holds the error number
|
||||
|
@ -390,7 +390,7 @@ pointed to by
|
|||
Some requests can cause
|
||||
.Fn ptrace
|
||||
to return
|
||||
.Li -1
|
||||
.Li \-1
|
||||
as a non-error value; to disambiguate,
|
||||
.Va errno
|
||||
can be set to 0 before the call and checked afterwards.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: quotactl.2,v 1.22 2003/08/07 16:44:04 agc Exp $
|
||||
.\" $NetBSD: quotactl.2,v 1.23 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1990, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -140,7 +140,7 @@ parameters are ignored.
|
|||
.El
|
||||
.Sh RETURN VALUES
|
||||
A successful call returns 0,
|
||||
otherwise the value -1 is returned and the global variable
|
||||
otherwise the value \-1 is returned and the global variable
|
||||
.Va errno
|
||||
indicates the reason for the failure.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: read.2,v 1.26 2003/08/07 16:44:04 agc Exp $
|
||||
.\" $NetBSD: read.2,v 1.27 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -124,7 +124,7 @@ before the end-of-file, but in no other case.
|
|||
If successful, the
|
||||
number of bytes actually read is returned.
|
||||
Upon reading end-of-file, zero is returned.
|
||||
Otherwise, a -1 is returned and the global variable
|
||||
Otherwise, a \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: readlink.2,v 1.24 2004/05/11 20:02:54 wiz Exp $
|
||||
.\" $NetBSD: readlink.2,v 1.25 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -56,7 +56,7 @@ character to
|
|||
.Fa buf .
|
||||
.Sh RETURN VALUES
|
||||
The call returns the count of characters placed in the buffer
|
||||
if it succeeds, or a -1 if an error occurs, placing the error
|
||||
if it succeeds, or a \-1 if an error occurs, placing the error
|
||||
code in the global variable
|
||||
.Va errno .
|
||||
.Sh EXAMPLES
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: reboot.2,v 1.19 2003/08/07 16:44:04 agc Exp $
|
||||
.\" $NetBSD: reboot.2,v 1.20 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -141,7 +141,7 @@ Currently this only implemented on the sparc and the sun3.
|
|||
.El
|
||||
.Sh RETURN VALUES
|
||||
If successful, this call never returns.
|
||||
Otherwise, a -1 is returned and an error is returned in the global
|
||||
Otherwise, a \-1 is returned and an error is returned in the global
|
||||
variable
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: recv.2,v 1.25 2003/08/07 16:44:05 agc Exp $
|
||||
.\" $NetBSD: recv.2,v 1.26 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1990, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -91,7 +91,7 @@ receive call waits for a message to arrive, unless
|
|||
the socket is nonblocking (see
|
||||
.Xr fcntl 2 )
|
||||
in which case the value
|
||||
-1 is returned and the external variable
|
||||
\-1 is returned and the external variable
|
||||
.Va errno
|
||||
set to
|
||||
.Er EAGAIN .
|
||||
|
@ -219,7 +219,7 @@ for ancillary data.
|
|||
.Dv MSG_OOB
|
||||
is returned to indicate that expedited or out-of-band data were received.
|
||||
.Sh RETURN VALUES
|
||||
These calls return the number of bytes received, or -1
|
||||
These calls return the number of bytes received, or \-1
|
||||
if an error occurred.
|
||||
.Sh ERRORS
|
||||
The calls fail if:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: rename.2,v 1.20 2003/08/07 16:44:05 agc Exp $
|
||||
.\" $NetBSD: rename.2,v 1.21 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -79,7 +79,7 @@ returns successfully and performs no other action.
|
|||
.Sh RETURN VALUES
|
||||
A 0 value is returned if the operation succeeds, otherwise
|
||||
.Fn rename
|
||||
returns -1 and the global variable
|
||||
returns \-1 and the global variable
|
||||
.Va errno
|
||||
indicates the reason for the failure.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: rmdir.2,v 1.18 2003/08/07 16:44:05 agc Exp $
|
||||
.\" $NetBSD: rmdir.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -52,7 +52,7 @@ than
|
|||
and
|
||||
.Ql \&.. .
|
||||
.Sh RETURN VALUES
|
||||
A 0 is returned if the remove succeeds; otherwise a -1 is
|
||||
A 0 is returned if the remove succeeds; otherwise a \-1 is
|
||||
returned and an error code is stored in the global location
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: select.2,v 1.22 2003/10/14 07:44:43 wiz Exp $
|
||||
.\" $NetBSD: select.2,v 1.23 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -61,7 +61,7 @@ The first
|
|||
.Fa nfds
|
||||
descriptors are checked in each set;
|
||||
i.e., the descriptors from 0 through
|
||||
.Fa nfds Ns No -1
|
||||
.Fa nfds Ns No \-1
|
||||
in the descriptor sets are examined.
|
||||
On return,
|
||||
.Fn select
|
||||
|
@ -126,7 +126,7 @@ may be given as nil pointers if no descriptors are of interest.
|
|||
.Fn select
|
||||
returns the number of ready descriptors that are contained in
|
||||
the descriptor sets,
|
||||
or -1 if an error occurred.
|
||||
or \-1 if an error occurred.
|
||||
If the time limit expires,
|
||||
.Fn select
|
||||
returns 0.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: semctl.2,v 1.15 2003/04/16 13:34:56 wiz Exp $
|
||||
.\" $NetBSD: semctl.2,v 1.16 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -191,7 +191,7 @@ returns one of the values described above if successful.
|
|||
All other operations will make
|
||||
.Fn semctl
|
||||
return 0 if no errors occur.
|
||||
Otherwise -1 is returned and
|
||||
Otherwise \-1 is returned and
|
||||
.Va errno
|
||||
set to reflect the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: semget.2,v 1.16 2004/05/13 01:49:55 kleink Exp $
|
||||
.\" $NetBSD: semget.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -105,7 +105,7 @@ is set to 0.
|
|||
.Sh RETURN VALUES
|
||||
.Fn semget
|
||||
returns a non-negative semaphore identifier if successful.
|
||||
Otherwise, -1 is returned and
|
||||
Otherwise, \-1 is returned and
|
||||
.Va errno
|
||||
is set to reflect the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: semop.2,v 1.14 2003/04/16 13:34:56 wiz Exp $
|
||||
.\" $NetBSD: semop.2,v 1.15 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -103,7 +103,7 @@ In the case where the calling process would normally block, waiting
|
|||
for a semaphore to reach a certain value,
|
||||
.Dv IPC_NOWAIT
|
||||
makes the
|
||||
call return immediately, returning a value of -1 and setting
|
||||
call return immediately, returning a value of \-1 and setting
|
||||
.Va errno
|
||||
to
|
||||
.Er EAGAIN .
|
||||
|
@ -116,7 +116,7 @@ critical section.
|
|||
.El
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: send.2,v 1.24 2003/08/07 16:44:05 agc Exp $
|
||||
.\" $NetBSD: send.2,v 1.25 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -77,7 +77,7 @@ the message is not transmitted.
|
|||
.Pp
|
||||
No indication of failure to deliver is implicit in a
|
||||
.Fn send .
|
||||
Locally detected errors are indicated by a return value of -1.
|
||||
Locally detected errors are indicated by a return value of \-1.
|
||||
.Pp
|
||||
If no messages space is available at the socket to hold
|
||||
the message to be transmitted, then
|
||||
|
@ -117,7 +117,7 @@ for a description of the
|
|||
.Fa msghdr
|
||||
structure.
|
||||
.Sh RETURN VALUES
|
||||
The call returns the number of characters sent, or -1
|
||||
The call returns the number of characters sent, or \-1
|
||||
if an error occurred.
|
||||
.Sh ERRORS
|
||||
.Fn send ,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: setgroups.2,v 1.15 2003/08/07 16:44:06 agc Exp $
|
||||
.\" $NetBSD: setgroups.2,v 1.16 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -55,7 +55,7 @@ more than
|
|||
.Pp
|
||||
Only the super-user may set new groups.
|
||||
.Sh RETURN VALUES
|
||||
A 0 value is returned on success, -1 on error, with
|
||||
A 0 value is returned on success, \-1 on error, with
|
||||
an error code stored in
|
||||
.Va errno .
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: setpgid.2,v 1.21 2003/12/17 23:04:33 wiz Exp $
|
||||
.\" $NetBSD: setpgid.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -65,7 +65,7 @@ of the invoking process.
|
|||
.Sh RETURN VALUES
|
||||
.Fn setpgid
|
||||
returns 0 when the operation was successful.
|
||||
If the request failed, -1 is returned and the global variable
|
||||
If the request failed, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
indicates the reason.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: setregid.2,v 1.21 2003/08/07 16:44:06 agc Exp $
|
||||
.\" $NetBSD: setregid.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -93,7 +93,7 @@ If
|
|||
.Fa rgid
|
||||
or
|
||||
.Fa egid
|
||||
is -1, the current gid is filled in by the system.
|
||||
is \-1, the current gid is filled in by the system.
|
||||
Unprivileged users may change the real group
|
||||
ID to the effective group ID, and may change the effective group ID to the
|
||||
real group ID or the saved group ID; only the super-user may
|
||||
|
@ -119,7 +119,7 @@ the
|
|||
function.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: setreuid.2,v 1.21 2003/08/07 16:44:06 agc Exp $
|
||||
.\" $NetBSD: setreuid.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -93,7 +93,7 @@ If
|
|||
.Fa ruid
|
||||
or
|
||||
.Fa euid
|
||||
is -1, the current uid is filled in by the system.
|
||||
is \-1, the current uid is filled in by the system.
|
||||
Unprivileged users may change the real user
|
||||
ID to the effective user ID, and may change the effective user ID to the
|
||||
real user ID or the saved user ID; only the super-user may
|
||||
|
@ -119,7 +119,7 @@ the
|
|||
function.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: setsid.2,v 1.12 2003/08/07 16:44:06 agc Exp $
|
||||
.\" $NetBSD: setsid.2,v 1.13 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -58,7 +58,7 @@ group, which is the same as the process ID of the calling process.
|
|||
.Sh ERRORS
|
||||
If an error occurs,
|
||||
.Nm setsid
|
||||
returns -1 and the global variable
|
||||
returns \-1 and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error, as follows:
|
||||
.Bl -tag -width Er
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: shmat.2,v 1.16 2003/04/16 13:34:56 wiz Exp $
|
||||
.\" $NetBSD: shmat.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -93,7 +93,7 @@ returns the address at which the shared memory segment has been mapped into
|
|||
the calling process' address space when successful,
|
||||
.Fn shmdt
|
||||
returns 0 on successful completion.
|
||||
Otherwise, a value of -1 is returned, and the global variable
|
||||
Otherwise, a value of \-1 is returned, and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: shmctl.2,v 1.15 2003/04/16 13:34:56 wiz Exp $
|
||||
.\" $NetBSD: shmctl.2,v 1.16 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Frank van der Linden
|
||||
.\" All rights reserved.
|
||||
|
@ -132,7 +132,7 @@ or
|
|||
.Va shm_perm.gid .
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, -1 is returned and the global variable
|
||||
Otherwise, \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: shutdown.2,v 1.16 2003/08/07 16:44:08 agc Exp $
|
||||
.\" $NetBSD: shutdown.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -61,7 +61,7 @@ further sends will be disallowed.
|
|||
further sends and receives will be disallowed.
|
||||
.El
|
||||
.Sh RETURN VALUES
|
||||
A 0 is returned if the call succeeds, -1 if it fails.
|
||||
A 0 is returned if the call succeeds, \-1 if it fails.
|
||||
.Sh ERRORS
|
||||
The call succeeds unless:
|
||||
.Bl -tag -width Er
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: sigaltstack.2,v 1.19 2003/08/11 13:25:30 drochner Exp $
|
||||
.\" $NetBSD: sigaltstack.2,v 1.20 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1992, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -80,7 +80,7 @@ and
|
|||
are ignored and the signal stack will be disabled.
|
||||
Trying to disable an active stack will cause
|
||||
.Nm
|
||||
to return -1 with
|
||||
to return \-1 with
|
||||
.Va errno
|
||||
set to
|
||||
.Er EINVAL .
|
||||
|
@ -133,7 +133,7 @@ If the stack overflows and this space is not protected
|
|||
unpredictable results may occur.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: sigprocmask.2,v 1.16 2003/08/07 16:44:08 agc Exp $
|
||||
.\" $NetBSD: sigprocmask.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -94,7 +94,7 @@ or
|
|||
to be blocked.
|
||||
.Sh RETURN VALUES
|
||||
A 0 value indicates that the call succeeded.
|
||||
A -1 return value indicates an error occurred and
|
||||
A \-1 return value indicates an error occurred and
|
||||
.Va errno
|
||||
is set to indicate the reason.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: sigsuspend.2,v 1.16 2003/08/07 16:44:09 agc Exp $
|
||||
.\" $NetBSD: sigsuspend.2,v 1.17 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -64,7 +64,7 @@ with the previous mask returned by
|
|||
The
|
||||
.Fn sigsuspend
|
||||
function
|
||||
always terminates by being interrupted, returning -1 with
|
||||
always terminates by being interrupted, returning \-1 with
|
||||
.Va errno
|
||||
set to
|
||||
.Er EINTR .
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: socket.2,v 1.29 2004/03/31 16:42:19 pooka Exp $
|
||||
.\" $NetBSD: socket.2,v 1.30 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -153,7 +153,7 @@ peer protocol has buffer space cannot be successfully transmitted
|
|||
within a reasonable length of time, then
|
||||
the connection is considered broken and calls
|
||||
will indicate an error with
|
||||
-1 returns and with
|
||||
\-1 returns and with
|
||||
.Er ETIMEDOUT
|
||||
as the specific code
|
||||
in the global variable
|
||||
|
@ -213,7 +213,7 @@ and
|
|||
.Xr getsockopt 2
|
||||
system calls are used to set and get options, respectively.
|
||||
.Sh RETURN VALUES
|
||||
A -1 is returned if an error occurs, otherwise the return
|
||||
A \-1 is returned if an error occurs, otherwise the return
|
||||
value is a descriptor referencing the socket.
|
||||
.Sh ERRORS
|
||||
The
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: socketpair.2,v 1.18 2003/08/07 16:44:09 agc Exp $
|
||||
.\" $NetBSD: socketpair.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -58,7 +58,7 @@ and
|
|||
.Fa sv Ns [1] .
|
||||
The two sockets are indistinguishable.
|
||||
.Sh RETURN VALUES
|
||||
A 0 is returned if the call succeeds, -1 if it fails.
|
||||
A 0 is returned if the call succeeds, \-1 if it fails.
|
||||
.Sh ERRORS
|
||||
The call succeeds unless:
|
||||
.Bl -tag -width Er
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: stat.2,v 1.32 2003/08/07 16:44:09 agc Exp $
|
||||
.\" $NetBSD: stat.2,v 1.33 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -205,7 +205,7 @@ For a description of the flags, see
|
|||
.Xr chflags 2 .
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh COMPATIBILITY
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: swapon.3,v 1.14 2003/08/07 16:44:10 agc Exp $
|
||||
.\" $NetBSD: swapon.3,v 1.15 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -59,7 +59,7 @@ The size of the swap area on
|
|||
is calculated at the time the device is first made available
|
||||
for swapping.
|
||||
.Sh RETURN VALUES
|
||||
If an error has occurred, a value of -1 is returned and
|
||||
If an error has occurred, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: symlink.2,v 1.18 2003/08/07 16:44:10 agc Exp $
|
||||
.\" $NetBSD: symlink.2,v 1.19 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -58,7 +58,7 @@ to be on the same file system nor to exist.
|
|||
Upon successful completion, a zero value is returned.
|
||||
If an error occurs, the error code is stored in
|
||||
.Va errno
|
||||
and a -1 value is returned.
|
||||
and a \-1 value is returned.
|
||||
.Sh ERRORS
|
||||
The symbolic link succeeds unless:
|
||||
.Bl -tag -width Er
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: syscall.2,v 1.15 2003/08/07 16:44:10 agc Exp $
|
||||
.\" $NetBSD: syscall.2,v 1.16 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -62,7 +62,7 @@ do not have entries in the C library.
|
|||
.Sh RETURN VALUES
|
||||
The return values are defined by the system call being invoked.
|
||||
In general, a 0 return value indicates success.
|
||||
A -1 return value indicates an error,
|
||||
A \-1 return value indicates an error,
|
||||
and an error code is stored in
|
||||
.Va errno .
|
||||
.Sh HISTORY
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: truncate.2,v 1.20 2003/08/07 16:44:10 agc Exp $
|
||||
.\" $NetBSD: truncate.2,v 1.21 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -66,7 +66,7 @@ the file must be open for writing; for
|
|||
the process must have write permissions for the file.
|
||||
.Sh RETURN VALUES
|
||||
A value of 0 is returned if the call succeeds.
|
||||
If the call fails a -1 is returned, and the global variable
|
||||
If the call fails a \-1 is returned, and the global variable
|
||||
.Va errno
|
||||
specifies the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: undelete.2,v 1.11 2003/08/07 16:44:11 agc Exp $
|
||||
.\" $NetBSD: undelete.2,v 1.12 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -89,7 +89,7 @@ functionality may be expanded to other filesystems able to recover
|
|||
deleted files such as the log-structured filesystem.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: unlink.2,v 1.19 2003/08/07 16:44:11 agc Exp $
|
||||
.\" $NetBSD: unlink.2,v 1.20 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -58,7 +58,7 @@ the link is removed, but the removal of the file is delayed until
|
|||
all references to it have been closed.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: utimes.2,v 1.21 2004/04/27 01:12:44 kleink Exp $
|
||||
.\" $NetBSD: utimes.2,v 1.22 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1990, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -87,7 +87,7 @@ while
|
|||
changes the times of the file the link references.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: utrace.2,v 1.11 2003/04/24 12:17:49 wiz Exp $
|
||||
.\" $NetBSD: utrace.2,v 1.12 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -60,7 +60,7 @@ bytes from memory pointed to by
|
|||
This call only has an effect if the calling process is being traced.
|
||||
.Sh RETURN VALUES
|
||||
Upon successful completion, a value of 0 is returned.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: wait.2,v 1.24 2003/08/07 16:44:11 agc Exp $
|
||||
.\" $NetBSD: wait.2,v 1.25 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -80,7 +80,7 @@ The
|
|||
parameter specifies the set of child processes for which to wait.
|
||||
If
|
||||
.Fa wpid
|
||||
is -1, the call waits for any child process.
|
||||
is \-1, the call waits for any child process.
|
||||
If
|
||||
.Fa wpid
|
||||
is 0,
|
||||
|
@ -91,7 +91,7 @@ is greater than zero, the call waits for the process with process id
|
|||
.Fa wpid .
|
||||
If
|
||||
.Fa wpid
|
||||
is less than -1, the call waits for any process whose process group id
|
||||
is less than \-1, the call waits for any process whose process group id
|
||||
equals the absolute value of
|
||||
.Fa wpid .
|
||||
.Pp
|
||||
|
@ -168,7 +168,7 @@ call is the same as
|
|||
.Fn wait4
|
||||
with a
|
||||
.Fa wpid
|
||||
value of -1.
|
||||
value of \-1.
|
||||
.Pp
|
||||
The following macros may be used to test the manner of exit of the process.
|
||||
Note that these macros expect the
|
||||
|
@ -249,7 +249,7 @@ If
|
|||
returns due to a stopped
|
||||
or terminated child process, the process ID of the child
|
||||
is returned to the calling process.
|
||||
Otherwise, a value of -1 is returned and
|
||||
Otherwise, a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Pp
|
||||
|
@ -262,7 +262,7 @@ returns due to a stopped
|
|||
or terminated child process, the process ID of the child
|
||||
is returned to the calling process.
|
||||
If there are no children not previously awaited,
|
||||
-1 is returned with
|
||||
\-1 is returned with
|
||||
.Va errno
|
||||
set to
|
||||
.Bq Er ECHILD .
|
||||
|
@ -271,7 +271,7 @@ Otherwise, if
|
|||
is specified and there are
|
||||
no stopped or exited children, 0 is returned.
|
||||
If an error is detected or a caught signal aborts the call,
|
||||
a value of -1 is returned and
|
||||
a value of \-1 is returned and
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: write.2,v 1.27 2003/08/07 16:44:11 agc Exp $
|
||||
.\" $NetBSD: write.2,v 1.28 2004/05/13 10:20:58 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -139,7 +139,7 @@ and the remainder of the operation should be retried when possible.
|
|||
.Sh RETURN VALUES
|
||||
Upon successful completion the number of bytes which were written
|
||||
is returned.
|
||||
Otherwise a -1 is returned and the global variable
|
||||
Otherwise a \-1 is returned and the global variable
|
||||
.Va errno
|
||||
is set to indicate the error.
|
||||
.Sh ERRORS
|
||||
|
|
Loading…
Reference in New Issue