diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/Makefile | 6 | ||||
-rw-r--r-- | share/man/man9/tfind.9 (renamed from share/man/man9/pfind.9) | 27 |
2 files changed, 19 insertions, 14 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 03bb5ed57bd..bf0a01351e4 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.284 2016/11/20 12:05:25 mpi Exp $ +# $OpenBSD: Makefile,v 1.285 2017/01/24 00:58:55 mpi Exp $ # $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -25,7 +25,7 @@ MAN= aml_evalnode.9 atomic_add_int.9 atomic_cas_uint.9 \ malloc.9 membar_sync.9 mbuf.9 mbuf_tags.9 md5.9 mi_switch.9 \ microtime.9 ml_init.9 mq_init.9 mutex.9 \ namei.9 \ - panic.9 pci_conf_read.9 pci_intr_map.9 pfind.9 physio.9 pmap.9 \ + panic.9 pci_conf_read.9 pci_intr_map.9 physio.9 pmap.9 \ pool.9 ppsratecheck.9 printf.9 psignal.9 \ RBT_INIT.9 \ radio.9 arc4random.9 rasops.9 ratecheck.9 refcnt_init.9 resettodr.9 \ @@ -34,7 +34,7 @@ MAN= aml_evalnode.9 atomic_add_int.9 atomic_cas_uint.9 \ sensor_attach.9 \ spl.9 srp_enter.9 srpl_rc_init.9 startuphook_establish.9 \ socreate.9 sosplice.9 style.9 syscall.9 sysctl_int.9 \ - task_add.9 tc_init.9 time_second.9 timeout.9 tsleep.9 tvtohz.9 \ + task_add.9 tc_init.9 tfind.9 time_second.9 timeout.9 tsleep.9 tvtohz.9 \ uiomove.9 uvm.9 usb_add_task.9 usbd_close_pipe.9 usbd_open_pipe.9 \ usbd_ref_wait.9 usbd_transfer.9 vfs.9 vfs_busy.9 \ vfs_cache.9 vaccess.9 vclean.9 vcount.9 vdevgone.9 vfinddev.9 vflush.9 \ diff --git a/share/man/man9/pfind.9 b/share/man/man9/tfind.9 index d0e71f92868..b4e69ff54b2 100644 --- a/share/man/man9/pfind.9 +++ b/share/man/man9/tfind.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pfind.9,v 1.7 2013/06/04 19:27:11 schwarze Exp $ +.\" $OpenBSD: tfind.9,v 1.1 2017/01/24 00:58:55 mpi Exp $ .\" .\" Copyright (c) 1999 Marc Espie .\" All rights reserved. @@ -23,29 +23,34 @@ .\" (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 $Mdocdate: June 4 2013 $ -.Dt PFIND 9 +.Dd $Mdocdate: January 24 2017 $ +.Dt TFIND 9 .Os .Sh NAME -.Nm pfind , +.Nm tfind , +.Nm prfind , .Nm pgfind -.Nd find process / process group by number +.Nd find thread, process and process group by number .Sh SYNOPSIS -.In sys/cdefs.h +.In sys/types.h +.In sys/signal.h .In sys/proc.h .Ft "struct proc *" -.Fn pfind "pid_t pid" +.Fn tfind "pid_t tid" +.Ft "struct process *" +.Fn prfind "pid_t pid" .Ft "struct pgrp *" .Fn pgfind "pid_t pgid" .Sh DESCRIPTION The -.Fn pfind +.Fn tfind , +.Fn prfind , and .Fn pgfind -functions retrieve process and progress group structures from process and -process group IDs. +functions retrieve thread, process and progress group structures from thread, +process and process group IDs, respectively. .Pp -Both functions return +These functions return .Dv NULL if the requested ID can't be found. .Sh CODE REFERENCES |