Print this page
12745 man page typos
   1 .\" Copyright 1989 AT&T
   2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
   3 .\" Copyright 2019, Joyent, Inc.
   4 .\" Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
   5 .\"
   6 .\" The contents of this file are subject to the terms of the
   7 .\" Common Development and Distribution License (the "License").
   8 .\" You may not use this file except in compliance with the License.
   9 .\"
  10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  11 .\" or http://www.opensolaris.org/os/licensing.
  12 .\" See the License for the specific language governing permissions
  13 .\" and limitations under the License.
  14 .\"
  15 .\" When distributing Covered Code, include this CDDL HEADER in each
  16 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 .\" If applicable, add the following below this CDDL HEADER, with the
  18 .\" fields enclosed by brackets "[]" replaced with your own identifying
  19 .\" information: Portions Copyright [yyyy] [name of copyright owner]
  20 .\"
  21 .Dd January 6, 2020
  22 .Dt PROC 4
  23 .Os
  24 .Sh NAME
  25 .Nm proc
  26 .Nd /proc, the process file system
  27 .Sh DESCRIPTION
  28 .Pa /proc
  29 is a file system that provides access to the state of each process
  30 and light-weight process (lwp) in the system.
  31 The name of each entry in the
  32 .Pa /proc
  33 directory is a decimal number corresponding to a process-ID.
  34 These entries are themselves subdirectories.
  35 Access to process state is provided by additional files contained within each
  36 subdirectory; the hierarchy is described more completely below.
  37 In this document,
  38 .Dq Pa /proc file
  39 refers to a non-directory file within the hierarchy rooted at
  40 .Pa /proc .
  41 The owner of each


 466 Set by default in all processes to indicate that microstate accounting will be
 467 enabled for processes that this parent
 468 .Xr fork 2 Ns s .
 469 However, this flag has been deprecated and no longer has any effect.
 470 It is possible to toggle this flag; however, it is not possible to disable
 471 microstate accounting.
 472 .It Sy PR_BPTADJ
 473 process has its breakpoint adjustment mode set (see
 474 .Sx PCSET ) .
 475 .It Sy PR_PTRACE
 476 process has its ptrace-compatibility mode set (see
 477 .Sx PCSET ) .
 478 .El
 479 .Pp
 480 .Sy pr_nlwp
 481 is the total number of active lwps in the process.
 482 .Sy pr_nzomb
 483 is the total number of zombie lwps in the process.
 484 A zombie lwp is a non-detached lwp that has terminated but has not been reaped
 485 with
 486 .Xr thr_join 3
 487 or
 488 .Xr pthread_join 3C .
 489 .Pp
 490 .Sy pr_pid ,
 491 .Sy pr_ppi ,
 492 .Sy pr_pgid ,
 493 and
 494 .Sy pr_sid
 495 are, respectively, the process ID, the ID of the process's parent, the
 496 process's process group ID, and the process's session ID.
 497 .Pp
 498 .Sy pr_aslwpid
 499 is obsolete and is always zero.
 500 .Pp
 501 .Sy pr_agentid
 502 is the lwp-ID for the
 503 .Pa /proc
 504 agent lwp (see the
 505 .Sx PCAGENT
 506 control operation).


   1 .\" Copyright 1989 AT&T
   2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
   3 .\" Copyright 2019, Joyent, Inc.
   4 .\" Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
   5 .\"
   6 .\" The contents of this file are subject to the terms of the
   7 .\" Common Development and Distribution License (the "License").
   8 .\" You may not use this file except in compliance with the License.
   9 .\"
  10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  11 .\" or http://www.opensolaris.org/os/licensing.
  12 .\" See the License for the specific language governing permissions
  13 .\" and limitations under the License.
  14 .\"
  15 .\" When distributing Covered Code, include this CDDL HEADER in each
  16 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 .\" If applicable, add the following below this CDDL HEADER, with the
  18 .\" fields enclosed by brackets "[]" replaced with your own identifying
  19 .\" information: Portions Copyright [yyyy] [name of copyright owner]
  20 .\"
  21 .Dd May 17, 2020
  22 .Dt PROC 4
  23 .Os
  24 .Sh NAME
  25 .Nm proc
  26 .Nd /proc, the process file system
  27 .Sh DESCRIPTION
  28 .Pa /proc
  29 is a file system that provides access to the state of each process
  30 and light-weight process (lwp) in the system.
  31 The name of each entry in the
  32 .Pa /proc
  33 directory is a decimal number corresponding to a process-ID.
  34 These entries are themselves subdirectories.
  35 Access to process state is provided by additional files contained within each
  36 subdirectory; the hierarchy is described more completely below.
  37 In this document,
  38 .Dq Pa /proc file
  39 refers to a non-directory file within the hierarchy rooted at
  40 .Pa /proc .
  41 The owner of each


 466 Set by default in all processes to indicate that microstate accounting will be
 467 enabled for processes that this parent
 468 .Xr fork 2 Ns s .
 469 However, this flag has been deprecated and no longer has any effect.
 470 It is possible to toggle this flag; however, it is not possible to disable
 471 microstate accounting.
 472 .It Sy PR_BPTADJ
 473 process has its breakpoint adjustment mode set (see
 474 .Sx PCSET ) .
 475 .It Sy PR_PTRACE
 476 process has its ptrace-compatibility mode set (see
 477 .Sx PCSET ) .
 478 .El
 479 .Pp
 480 .Sy pr_nlwp
 481 is the total number of active lwps in the process.
 482 .Sy pr_nzomb
 483 is the total number of zombie lwps in the process.
 484 A zombie lwp is a non-detached lwp that has terminated but has not been reaped
 485 with
 486 .Xr thr_join 3C
 487 or
 488 .Xr pthread_join 3C .
 489 .Pp
 490 .Sy pr_pid ,
 491 .Sy pr_ppi ,
 492 .Sy pr_pgid ,
 493 and
 494 .Sy pr_sid
 495 are, respectively, the process ID, the ID of the process's parent, the
 496 process's process group ID, and the process's session ID.
 497 .Pp
 498 .Sy pr_aslwpid
 499 is obsolete and is always zero.
 500 .Pp
 501 .Sy pr_agentid
 502 is the lwp-ID for the
 503 .Pa /proc
 504 agent lwp (see the
 505 .Sx PCAGENT
 506 control operation).