xref: /freebsd/share/man/man4/procdesc.4 (revision 71e8eac4fd89dedbcb4130379add151d3ed942fa)
1.\"
2.\" Copyright (c) 2013 Robert N. M. Watson
3.\" All rights reserved.
4.\"
5.\" This software was developed by SRI International and the University of
6.\" Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
7.\" ("CTSRD"), as part of the DARPA CRASH research programme.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright
13.\"    notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\"    notice, this list of conditions and the following disclaimer in the
16.\"    documentation and/or other materials provided with the distribution.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE.
29.\"
30.\" $FreeBSD$
31.\"
32.Dd July 25, 2015
33.Dt PROCDESC 4
34.Os
35.Sh NAME
36.Nm procdesc
37.Nd process descriptor facility
38.Sh DESCRIPTION
39.Nm
40is a file-descriptor-oriented interface to process signalling and control,
41which supplements historic
42.Ux
43.Xr fork 2 ,
44.Xr kill 2 ,
45and
46.Xr wait4 2
47primitives with
48new system calls such as
49.Xr pdfork 2 ,
50.Xr pdkill 2 ,
51and
52.Xr pdwait4 2 .
53.Nm
54is designed for use with
55.Xr capsicum 4 ,
56replacing process identifiers with capability-oriented references.
57However, it can also be used independently of
58.Xr capsicum 4 ,
59displacing PIDs, which may otherwise suffer from race conditions.
60Given a process descriptor, it is possible to query its conventional PID using
61.Xr pdgetpid 2 .
62.Sh SEE ALSO
63.Xr fork 2 ,
64.Xr kill 2 ,
65.Xr pdfork 2 ,
66.Xr pdgetpid 2 ,
67.Xr pdkill 2 ,
68.Xr pdwait4 2 ,
69.Xr wait4 2 ,
70.Xr capsicum 4
71.Sh HISTORY
72.Nm
73first appeared in
74.Fx 9.0 ,
75and was developed at the University of Cambridge.
76.Sh AUTHORS
77.Nm
78was developed by
79.An -nosplit
80.An Robert Watson Aq Mt rwatson@FreeBSD.org
81and
82.An Jonathan Anderson Aq Mt jonathan@FreeBSD.org
83at the University of Cambridge, and
84.An Ben Laurie Aq Mt benl@FreeBSD.org
85and
86.An Kris Kennaway Aq Mt kris@FreeBSD.org
87at Google, Inc.
88