From owner-freebsd-doc Fri Jul 13 7:30:12 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 86A7037B401 for ; Fri, 13 Jul 2001 07:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6DEU3N06217; Fri, 13 Jul 2001 07:30:03 -0700 (PDT) (envelope-from gnats) Date: Fri, 13 Jul 2001 07:30:03 -0700 (PDT) Message-Id: <200107131430.f6DEU3N06217@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Evan Sarmiento Subject: Re: misc/28929: [patch] No man page for pfind() Reply-To: Evan Sarmiento Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/28929; it has been noted by GNATS. From: Evan Sarmiento To: freebsd-gnats-submit@FreeBSD.org, dwmalone@maths.tcd.ie Cc: Subject: Re: misc/28929: [patch] No man page for pfind() Date: Fri, 13 Jul 2001 10:23:52 -0400 (EDT) Hello, I have updated the pfind and zpfind manpage, hopefully, they are all correct now. .\" -*- nroff -*- .\" .\" Copyright (c) 2001 Evan Sarmiento .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. .\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .Dd July 11, 2001 .Os .Dt pfind 9 .Sh NAME .Nm pfind, zpfind .Nd returns pointer to a proc structure in argument .Sh SYNOPSIS .Fd #include .Ft struct proc * .Fn pfind "pid_t" .Ft static struct proc * .Fn zpfind "pid_t" .Sh DESCRIPTION .Pp .Fn pfind takes a pid as its argument and returns a pointer to the proc structure whose PID is specified in the argument. .Pp .Nm takes a pid as its argument. If zpfind finds a process whose pid is equal to that of argument and is a zombie process, zpfind returns a pointer to that proc structure. .Pp Both zpfind and pfind lock the proc structure that is returned using .Fn PROC_LOCK "p" .Sh RETURN VALUES .Nm and .Nm zpfind both return a pointer to a locked proc structure on success and a NULL on failure. .Sh AUTHORS This man page was written by .An Evan Sarmiento . To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message