Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Remove the now obsolete pfind(9).



details:   https://anonhg.NetBSD.org/src/rev/10e1debe6feb
branches:  trunk
changeset: 755980:10e1debe6feb
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Jul 01 14:22:12 2010 +0000

description:
Remove the now obsolete pfind(9).

diffstat:

 distrib/sets/lists/comp/mi |   26 ++++----
 share/man/man9/pfind.9     |  131 ---------------------------------------------
 2 files changed, 13 insertions(+), 144 deletions(-)

diffs (210 lines):

diff -r 4348f397530e -r 10e1debe6feb distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Thu Jul 01 14:18:26 2010 +0000
+++ b/distrib/sets/lists/comp/mi        Thu Jul 01 14:22:12 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.1475 2010/06/30 16:17:12 pooka Exp $
+#      $NetBSD: mi,v 1.1476 2010/07/01 14:22:12 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -9351,7 +9351,7 @@
 ./usr/share/man/cat9/opencrypto.0              comp-sys-catman         .cat
 ./usr/share/man/cat9/optstr.0                  comp-sys-catman         .cat
 ./usr/share/man/cat9/optstr_get.0              comp-sys-catman         .cat
-./usr/share/man/cat9/p_find.0                  comp-sys-catman         .cat
+./usr/share/man/cat9/p_find.0                  comp-obsolete           obsolete
 ./usr/share/man/cat9/panic.0                   comp-sys-catman         .cat
 ./usr/share/man/cat9/pci.0                     comp-sys-catman         .cat
 ./usr/share/man/cat9/pci_conf_hook.0           comp-sys-catman         .cat
@@ -9436,9 +9436,9 @@
 ./usr/share/man/cat9/pfil_hook_get.0           comp-sys-catman         .cat
 ./usr/share/man/cat9/pfil_remove_hook.0                comp-sys-catman         .cat
 ./usr/share/man/cat9/pfil_run_hooks.0          comp-sys-catman         .cat
-./usr/share/man/cat9/pfind.0                   comp-sys-catman         .cat
-./usr/share/man/cat9/pg_find.0                 comp-sys-catman         .cat
-./usr/share/man/cat9/pgfind.0                  comp-sys-catman         .cat
+./usr/share/man/cat9/pfind.0                   comp-obsolete           obsolete
+./usr/share/man/cat9/pg_find.0                 comp-obsolete           obsolete
+./usr/share/man/cat9/pgfind.0                  comp-obsolete           obsolete
 ./usr/share/man/cat9/pgsignal.0                        comp-sys-catman         .cat
 ./usr/share/man/cat9/physio.0                  comp-sys-catman         .cat
 ./usr/share/man/cat9/pmap.0                    comp-sys-catman         .cat
@@ -15097,7 +15097,7 @@
 ./usr/share/man/html9/opencrypto.html          comp-sys-htmlman        html
 ./usr/share/man/html9/optstr.html              comp-sys-htmlman        html
 ./usr/share/man/html9/optstr_get.html          comp-sys-htmlman        html
-./usr/share/man/html9/p_find.html              comp-sys-htmlman        html
+./usr/share/man/html9/p_find.html              comp-obsolete           obsolete
 ./usr/share/man/html9/panic.html               comp-sys-htmlman        html
 ./usr/share/man/html9/pci.html                 comp-sys-htmlman        html
 ./usr/share/man/html9/pci_conf_hook.html       comp-sys-htmlman        html
@@ -15181,9 +15181,9 @@
 ./usr/share/man/html9/pfil_hook_get.html       comp-sys-htmlman        html
 ./usr/share/man/html9/pfil_remove_hook.html    comp-sys-htmlman        html
 ./usr/share/man/html9/pfil_run_hooks.html      comp-sys-htmlman        html
-./usr/share/man/html9/pfind.html               comp-sys-htmlman        html
-./usr/share/man/html9/pg_find.html             comp-sys-htmlman        html
-./usr/share/man/html9/pgfind.html              comp-sys-htmlman        html
+./usr/share/man/html9/pfind.html               comp-obsolete           obsolete
+./usr/share/man/html9/pg_find.html             comp-obsolete           obsolete
+./usr/share/man/html9/pgfind.html              comp-obsolete           obsolete
 ./usr/share/man/html9/pgsignal.html            comp-sys-htmlman        html
 ./usr/share/man/html9/physio.html              comp-sys-htmlman        html
 ./usr/share/man/html9/pmap.html                        comp-sys-htmlman        html
@@ -21010,7 +21010,7 @@
 ./usr/share/man/man9/opencrypto.9              comp-sys-man            .man
 ./usr/share/man/man9/optstr.9                  comp-sys-man            .man
 ./usr/share/man/man9/optstr_get.9              comp-sys-man            .man
-./usr/share/man/man9/p_find.9                  comp-sys-man            .man
+./usr/share/man/man9/p_find.9                  comp-obsolete           obsolete
 ./usr/share/man/man9/panic.9                   comp-sys-man            .man
 ./usr/share/man/man9/pci.9                     comp-sys-man            .man
 ./usr/share/man/man9/pci_conf_hook.9           comp-sys-man            .man
@@ -21095,9 +21095,9 @@
 ./usr/share/man/man9/pfil_hook_get.9           comp-sys-man            .man
 ./usr/share/man/man9/pfil_remove_hook.9                comp-sys-man            .man
 ./usr/share/man/man9/pfil_run_hooks.9          comp-sys-man            .man
-./usr/share/man/man9/pfind.9                   comp-sys-man            .man
-./usr/share/man/man9/pg_find.9                 comp-sys-man            .man
-./usr/share/man/man9/pgfind.9                  comp-sys-man            .man
+./usr/share/man/man9/pfind.9                   comp-obsolete           obsolete
+./usr/share/man/man9/pg_find.9                 comp-obsolete           obsolete
+./usr/share/man/man9/pgfind.9                  comp-obsolete           obsolete
 ./usr/share/man/man9/pgsignal.9                        comp-sys-man            .man
 ./usr/share/man/man9/physio.9                  comp-sys-man            .man
 ./usr/share/man/man9/pmap.9                    comp-sys-man            .man
diff -r 4348f397530e -r 10e1debe6feb share/man/man9/pfind.9
--- a/share/man/man9/pfind.9    Thu Jul 01 14:18:26 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,131 +0,0 @@
-.\" $NetBSD: pfind.9,v 1.2 2010/03/26 19:43:04 wiz Exp $
-.\"
-.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" This code is derived from software contributed to The NetBSD Foundation
-.\" by Jukka Ruohonen.
-.\"
-.\" 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 NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-.\" ``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 FOUNDATION OR CONTRIBUTORS
-.\" 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 March 25, 2010
-.Dt PFIND 9
-.Os
-.Sh NAME
-.Nm pfind
-.Nd find process or process group by a number
-.Sh SYNOPSIS
-.In sys/proc.h
-.Ft struct proc *
-.Fn p_find "pid_t pid" "uint flags"
-.Ft struct proc *
-.Fn pfind "pid_t pid"
-.Ft struct pgrp *
-.Fn pg_find "pid_t pgid" "uint flags"
-.Ft struct pgrp *
-.Fn pgfind "pid_t pgid"
-.Pp
-.Va extern kmutex_t *proc_lock;
-.Sh DESCRIPTION
-The
-.Fn p_find
-and
-.Fn pg_find
-functions retrieve process and process group structures from process
-.Tn ID
-.Fa pid
-and process group
-.Tn ID
-.Fa pgid .
-The following
-.Fa flags
-are defined:
-.Bl -tag -width "PFIND_UNLOCK_FAIL" -offset indent
-.It Dv PFIND_ZOMBIE
-The lookup includes also the list of
-.Dq zombie
-processes.
-.It Dv PFIND_LOCKED
-The list of processes is locked prior to the call by holding a
-.Xr mutex 9
-on
-.Va proc_lock .
-If
-.Dv PFIND_LOCKED
-is not specified, the implementation tries to acquire the mutex.
-.It Dv PFIND_UNLOCK_FAIL
-The list of processes is unlocked upon failure.
-.It Dv PFIND_UNLOCK_OK
-The list of processes is unlocked upon success.
-.It Dv PFIND_UNLOCK
-The implementation releases the
-.Xr mutex 9
-on
-.Va proc_lock
-both upon failure and success.
-.El
-.Pp
-The
-.Fn pfind
-and
-.Fn pgfind
-functions are equivalent to
-.Fn p_find
-and
-.Fn pg_find
-with the
-.Fa flags
-argument specified as
-.Dv PFIND_UNLOCK .
-.Sh RETURN VALUES
-Upon successful completion, the described functions return a pointer to either
-.Em struct proc
-or
-.Em struct pgrp .
-Otherwise, if the requested
-.Tn ID
-was not found,
-.Dv NULL
-is returned.
-.Sh EXAMPLES
-The following example demonstrates the use of
-.Fn p_find :
-.Bd -literal -offset indent
-struct proc *p;
-pid_t pid;
-
-\&...
-
-mutex_enter(proc_lock);
-
-p = p_find(pid, PFIND_LOCKED | PFIND_UNLOCK_OK);
-
-if (p == NULL) {
-       mutex_exit(proc_lock);
-       return ESRCH;
-}
-
-\&...
-.Ed
-.Sh SEE ALSO
-.Xr curproc 9 ,
-.Xr mutex 9



Home | Main Index | Thread Index | Old Index