Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/pdfork.2
Show All 40 Lines | |||||
.Nm pdkill | .Nm pdkill | ||||
.Nd System calls to manage process descriptors | .Nd System calls to manage process descriptors | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/procdesc.h | .In sys/procdesc.h | ||||
.Ft pid_t | .Ft pid_t | ||||
.Fn pdfork "int *fdp" "int flags" | .Fn pdfork "int *fdp" "int flags" | ||||
.Ft pid_t | |||||
.Fn pdvfork "int *fdp" "int flags" | |||||
.Ft int | .Ft int | ||||
.Fn pdgetpid "int fd" "pid_t *pidp" | .Fn pdgetpid "int fd" "pid_t *pidp" | ||||
.Ft int | .Ft int | ||||
.Fn pdkill "int fd" "int signum" | .Fn pdkill "int fd" "int signum" | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
Process descriptors are special file descriptors that represent processes, | Process descriptors are special file descriptors that represent processes, | ||||
and are created using | and are created using | ||||
.Fn pdfork , | .Fn pdfork , | ||||
Show All 19 Lines | |||||
.Xr capsicum 4 | .Xr capsicum 4 | ||||
capability mode (see | capability mode (see | ||||
.Xr cap_enter 2 ) . | .Xr cap_enter 2 ) . | ||||
.El | .El | ||||
.Bl -tag -width ".Dv PD_DAEMON" | .Bl -tag -width ".Dv PD_DAEMON" | ||||
.It Dv PD_CLOEXEC | .It Dv PD_CLOEXEC | ||||
Set close-on-exec on process descriptor. | Set close-on-exec on process descriptor. | ||||
.El | .El | ||||
.Pp | |||||
.Fn pdvfork | |||||
accepts the same parameters and produces the same return value as | |||||
.Fn pdfork | |||||
but behaves as | |||||
.Xr vfork 2 , | |||||
rather than | |||||
.Xr fork 2 . | |||||
.Pp | .Pp | ||||
.Fn pdgetpid | .Fn pdgetpid | ||||
queries the process ID (PID) in the process descriptor | queries the process ID (PID) in the process descriptor | ||||
.Fa fd . | .Fa fd . | ||||
.Pp | .Pp | ||||
.Fn pdkill | .Fn pdkill | ||||
is functionally identical to | is functionally identical to | ||||
.Xr kill 2 , | .Xr kill 2 , | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |