No content change.
-.\" $OpenBSD: getdtablecount.2,v 1.4 2014/01/26 22:27:31 tedu Exp $
+.\" $OpenBSD: getdtablecount.2,v 1.5 2015/05/31 23:54:25 schwarze Exp $
.\"
.\" Copyright (c) 2012 Theo de Raadt
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 26 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt GETDTABLECOUNT 2
.Os
.Sh NAME
.Nm getdtablecount
.Nd get descriptor table count
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn getdtablecount void
.Sh DESCRIPTION
-.Nm
+.Fn getdtablecount
returns the number of file descriptors the process currently has
open.
.Sh SEE ALSO
.Xr getdtablesize 3
.Sh HISTORY
The
-.Nm
+.Fn getdtablecount
function appeared in
.Ox 5.2 .
-.\" $OpenBSD: getthrid.2,v 1.2 2014/08/31 06:41:23 jmc Exp $
+.\" $OpenBSD: getthrid.2,v 1.3 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: getpid.2,v 1.5 1995/02/27 12:33:12 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\"
.\" @(#)getpid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: August 31 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt GETTHRID 2
.Os
.Sh NAME
.Nm getthrid
.Nd get thread identifier
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft pid_t
.Fn getthrid void
.Sh DESCRIPTION
-.Nm
+.Fn getthrid
returns the thread ID of the calling thread.
This is used in the implementation of the thread library
.Pq Fl lpthread
.Xr pthread_self 3
.Sh STANDARDS
The
-.Nm
+.Fn getthrid
syscall is specific to
.Ox
and should not be used in portable applications.
.Sh HISTORY
The
-.Nm
+.Fn getthrid
syscall appeared in
.Ox 3.9 .
-.\" $OpenBSD: mkfifo.2,v 1.14 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: mkfifo.2,v 1.15 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: mkfifo.2,v 1.8 1995/02/27 12:34:27 cgd Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\"
.\" @(#)mkfifo.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt MKFIFO 2
.Os
.Sh NAME
.Xr umask 2
.Sh STANDARDS
The
-.Nm mkfifo
+.Fn mkfifo
and
-.Nm mkfifoat
+.Fn mkfifoat
functions conform to
.St -p1003.1-2008 .
.Sh HISTORY
The
-.Nm mkfifoat
+.Fn mkfifoat
function appeared in
.Ox 5.0 .
-.\" $OpenBSD: nanosleep.2,v 1.14 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: nanosleep.2,v 1.15 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: nanosleep.2,v 1.1 1997/04/17 18:12:02 jtc Exp $
.\"
.\" Copyright (c) 1986, 1991, 1993
.\"
.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: May 31 2015 $
.Dt NANOSLEEP 2
.Os
.Sh NAME
.Nm nanosleep
.Nd high resolution sleep
.Sh SYNOPSIS
-.Fd #include <time.h>
+.In time.h
.Ft int
.Fn nanosleep "const struct timespec *timeout" "struct timespec *remainder"
.Sh DESCRIPTION
to the corresponding value.
.Bl -tag -width Er
.It Bq Er EINTR
-.Nm
+.Fn nanosleep
was interrupted by the delivery of a signal.
.It Bq Er EINVAL
.Fa timeout
-.\" $OpenBSD: nfssvc.2,v 1.22 2014/12/16 00:06:49 schwarze Exp $
+.\" $OpenBSD: nfssvc.2,v 1.23 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: nfssvc.2,v 1.6 1995/02/27 12:35:08 cgd Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\"
.\" @(#)nfssvc.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: December 16 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt NFSSVC 2
.Os
.Sh NAME
.Ed
.Sh RETURN VALUES
Normally
-.Nm nfssvc
+.Fn nfssvc
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
.Xr sysctl 8
.Sh HISTORY
The
-.Nm nfssvc
+.Fn nfssvc
function first appeared in
.Bx 4.4 .
.Sh BUGS
The
-.Nm nfssvc
+.Fn nfssvc
system call is designed specifically for the NFS
support daemons and as such is specific to their requirements.
Several fields of the argument structures are assumed to be valid and
-.\" $OpenBSD: pathconf.2,v 1.22 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: pathconf.2,v 1.23 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: pathconf.2,v 1.2 1995/02/27 12:35:22 cgd Exp $
.\"
.\" Copyright (c) 1993
.\"
.\" @(#)pathconf.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt PATHCONF 2
.Os
.Sh NAME
.Nm fpathconf
.Nd get configurable pathname variables
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft long
.Fn pathconf "const char *path" "int name"
.Ft long
with a pathname or file descriptor.
.Pp
For
-.Nm pathconf ,
+.Fn pathconf ,
the
.Fa path
argument is the name of a file or directory.
For
-.Nm fpathconf ,
+.Fn fpathconf ,
the
.Fa fd
argument is an open file descriptor.
.El
.Sh RETURN VALUES
If the call to
-.Nm pathconf
+.Fn pathconf
or
-.Nm fpathconf
+.Fn fpathconf
is not successful, \-1 is returned and
.Va errno
is set appropriately.
Otherwise, the current variable value is returned.
.Sh ERRORS
If any of the following conditions occur, the
-.Nm pathconf
+.Fn pathconf
and
-.Nm fpathconf
+.Fn fpathconf
functions shall return \-1 and set
.Va errno
to the corresponding value.
.Xr sysctl 3
.Sh STANDARDS
The
-.Nm pathconf
+.Fn pathconf
and
-.Nm fpathconf
+.Fn fpathconf
functions conform to
.St -p1003.1-2008 .
.Sh HISTORY
The
-.Nm pathconf
+.Fn pathconf
and
-.Nm fpathconf
+.Fn fpathconf
functions first appeared in
.Bx 4.4 .
-.\" $OpenBSD: readlink.2,v 1.18 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: readlink.2,v 1.19 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: readlink.2,v 1.7 1995/02/27 12:35:54 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)readlink.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt READLINK 2
.Os
.Sh NAME
.Nm readlinkat
.Nd read value of a symbolic link
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft ssize_t
.Fn readlink "const char *restrict path" "char *restrict buf" "size_t bufsiz"
-.Fd #include <fcntl.h>
-.Fd #include <unistd.h>
+.In fcntl.h
+.In unistd.h
.Ft ssize_t
.Fn readlinkat "int fd" "const char *path" "char *buf" "size_t bufsiz"
.Sh DESCRIPTION
.Fa buf ,
which has size
.Fa bufsiz .
-.Nm readlink
+.Fn readlink
does not append a
.Dv NUL
character to
-.\" $OpenBSD: revoke.2,v 1.11 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: revoke.2,v 1.12 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: revoke.2,v 1.3 1995/10/12 15:41:11 jtc Exp $
.\"
.\" Copyright (c) 1993
.\"
.\" @(#)revoke.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt REVOKE 2
.Os
.Sh NAME
.Nm revoke
.Nd revoke file access
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn revoke "const char *path"
.Sh DESCRIPTION
The
-.Nm revoke
+.Fn revoke
function invalidates all current open file descriptors in the system
for the file named by
.Fa path .
.Pp
Access to a file may be revoked only by its owner or the superuser.
The
-.Nm revoke
+.Fn revoke
function is normally used to prepare a terminal device for a new login session,
preventing any access by a previous user of the terminal.
.Sh RETURN VALUES
.Xr close 2
.Sh HISTORY
The
-.Nm revoke
+.Fn revoke
function was introduced in
.Bx 4.3 Reno .
-.\" $OpenBSD: setsid.2,v 1.13 2013/05/10 05:59:37 guenther Exp $
+.\" $OpenBSD: setsid.2,v 1.14 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: setsid.2,v 1.3 1995/10/12 15:41:13 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
.\"
.\" @(#)setsid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 10 2013 $
+.Dd $Mdocdate: May 31 2015 $
.Dt SETSID 2
.Os
.Sh NAME
.Nm setsid
.Nd create session and set process group ID
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft pid_t
.Fn setsid "void"
.Sh DESCRIPTION
The
-.Nm setsid
+.Fn setsid
function creates a new session.
The calling process is the session leader of the new session, is the
process group leader of a new process group and has no controlling
process group.
.Pp
Upon successful completion, the
-.Nm setsid
+.Fn setsid
function returns the value of the process group ID of the new process
group, which is the same as the process ID of the calling process.
.Sh ERRORS
If an error occurs,
-.Nm setsid
+.Fn setsid
returns \-1 and the global variable
.Va errno
is set to indicate the error, as follows:
.Xr tcsetpgrp 3
.Sh STANDARDS
The
-.Nm setsid
+.Fn setsid
function is expected to be compliant with the
.St -p1003.1-2008
specification.
-.\" $OpenBSD: sigaltstack.2,v 1.18 2014/11/15 14:41:02 bentley Exp $
+.\" $OpenBSD: sigaltstack.2,v 1.19 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: sigaltstack.2,v 1.3 1995/02/27 10:41:52 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1992, 1993
.\"
.\" @(#)sigaltstack.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: November 15 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt SIGALTSTACK 2
.Os
.Sh NAME
A disabled stack will cause all signals to be
taken on the regular user stack.
Trying to disable an active stack will cause
-.Nm
+.Fn sigaltstack
to return \-1 with
.Va errno
set to
.Xr setjmp 3
.Sh STANDARDS
The
-.Nm
+.Fn sigaltstack
function conforms to
.St -p1003.1-2008 .
.Sh HISTORY
The predecessor to
-.Nm sigaltstack ,
+.Fn sigaltstack ,
the
.Fn sigstack
system call, appeared in
-.\" $OpenBSD: sigpending.2,v 1.6 2014/09/09 08:17:59 guenther Exp $
+.\" $OpenBSD: sigpending.2,v 1.7 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: sigpending.2,v 1.2 1995/02/27 12:37:26 cgd Exp $
.\"
.\" Copyright (c) 1993
.\"
.\" @(#)sigpending.2 8.3 (Berkeley) 1/12/94
.\"
-.Dd $Mdocdate: September 9 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt SIGPENDING 2
.Os
.Sh NAME
.Fn sigpending "sigset_t *set"
.Sh DESCRIPTION
The
-.Nm sigpending
+.Fn sigpending
function returns a mask of the signals pending for delivery
to the calling process in the location indicated by
.Fa set .
.Rv -std
.Sh ERRORS
The
-.Nm sigpending
+.Fn sigpending
function does not currently detect any errors.
.Sh SEE ALSO
.Xr sigaction 2 ,
.Xr sigsetops 3
.Sh STANDARDS
The
-.Nm sigpending
+.Fn sigpending
function is defined by
.St -p1003.1-2008 .
-.\" $OpenBSD: sigsuspend.2,v 1.12 2014/09/09 08:17:59 guenther Exp $
+.\" $OpenBSD: sigsuspend.2,v 1.13 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: sigsuspend.2,v 1.4 1995/02/27 12:37:46 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\"
.\" @(#)sigsuspend.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: September 9 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt SIGSUSPEND 2
.Os
.Sh NAME
.Xr sigsetops 3
.Sh STANDARDS
The
-.Nm sigsuspend
+.Fn sigsuspend
function call
conforms to
.St -p1003.1-2008 .