X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/5b2abdfbf4211b6592cdd02b9507555a0ecbb04b..51282358e8fdbfc483c0c34e7eae9b89b51f2570:/compat-43/killpg.2 diff --git a/compat-43/killpg.2 b/compat-43/killpg.2 index 3e4d963..5671153 100644 --- a/compat-43/killpg.2 +++ b/compat-43/killpg.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)killpg.2 8.1 (Berkeley) 6/2/93 -.\" $FreeBSD: src/lib/libc/compat-43/killpg.2,v 1.6.2.3 2001/12/14 18:33:49 ru Exp $ +.\" $FreeBSD: src/lib/libc/compat-43/killpg.2,v 1.12 2002/12/19 09:40:21 ru Exp $ .\" .Dd June 2, 1993 .Dt KILLPG 2 @@ -41,12 +41,13 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/types.h .In signal.h .Ft int .Fn killpg "pid_t pgrp" "int sig" .Sh DESCRIPTION -.Fn Killpg +The +.Fn killpg +function sends the signal .Fa sig to the process group @@ -68,29 +69,41 @@ to any process that is a descendant of the current process. .Sh RETURN VALUES .Rv -std killpg .Sh ERRORS -.Fn Killpg +The +.Fn killpg +function will fail and no signal will be sent if: .Bl -tag -width Er .It Bq Er EINVAL -.Fa Sig +The +.Fa sig +argument is not a valid signal number. +.It Bq Er EPERM +The sending process is not the super-user and one or more +of the target processes has an effective user ID different from that +of the sending process. .It Bq Er ESRCH No process can be found in the process group specified by .Fa pgrp . .It Bq Er ESRCH The process group was given as 0 but the sending process does not have a process group. -.It Bq Er EPERM -The sending process is not the super-user and one or more -of the target processes has an effective user ID different from that -of the sending process. .El +.Sh LEGACY SYNOPSIS +.Fd #include +.Fd #include +.Pp +The include file +.In sys/types.h +is necessary. .Sh SEE ALSO .Xr getpgrp 2 , .Xr kill 2 , -.Xr sigaction 2 +.Xr sigaction 2 , +.Xr compat 5 .Sh HISTORY The .Fn killpg -function call appeared in +function appeared in .Bx 4.0 .