pgfind.9 (571dba6ec9f25ecf7582dc2192daf1ceea70065f) pgfind.9 (033e89ed31ec647540e11e5d3c4f7f72dbc4dd97)
1.\" Copyright (c) 2001 Evan Sarmiento.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

26.\"
27.Dd August 8, 2001
28.Os
29.Dt PGFIND 9
30.Sh NAME
31.Nm pgfind
32.Nd "locate a process group by number"
33.Sh SYNOPSIS
1.\" Copyright (c) 2001 Evan Sarmiento.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

26.\"
27.Dd August 8, 2001
28.Os
29.Dt PGFIND 9
30.Sh NAME
31.Nm pgfind
32.Nd "locate a process group by number"
33.Sh SYNOPSIS
34.In sys/param.h
35.In sys/proc.h
36.Ft "struct pgrp *"
37.Fn pgfind "pid_t pgid"
38.Sh DESCRIPTION
39The
40.Fn pgfind
41function takes a
42.Fa pgid
43as its argument and returns a pointer to the
44.Vt pgrp
45structure whose
46.Va pg_id
47is specified in the argument.
34.In sys/proc.h
35.Ft "struct pgrp *"
36.Fn pgfind "pid_t pgid"
37.Sh DESCRIPTION
38The
39.Fn pgfind
40function takes a
41.Fa pgid
42as its argument and returns a pointer to the
43.Vt pgrp
44structure whose
45.Va pg_id
46is specified in the argument.
48.Pp
49.Fn pgfind
50locks the
51.Vt pgrp
52structure that is returned.
53.Sh RETURN VALUES
54The
55.Fn pgfind
56function returns
57.Dv NULL
58on failure or a pointer to a
59.Vt pgrp
60structure on successful completion.
47.Sh RETURN VALUES
48The
49.Fn pgfind
50function returns
51.Dv NULL
52on failure or a pointer to a
53.Vt pgrp
54structure on successful completion.
61.Sh SEE ALSO
62.Xr pfind 9
63.Sh AUTHORS
55.Sh AUTHORS
64This manual page was written by
56This man page was written by
65.An Evan Sarmiento Aq kaworu@sektor7.ath.cx .
57.An Evan Sarmiento Aq kaworu@sektor7.ath.cx .