Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/proc.5.man.txt
          +++ new/usr/src/man/man5/proc.5.man.txt
↓ open down ↓ 410 lines elided ↑ open up ↑
 411  411  
 412  412           PR_JOBCONTROL  indicates that the lwp stopped due to the default
 413  413                          action of a job control stop signal (see
 414  414                          sigaction(2)); pr_what holds the stopping signal
 415  415                          number.
 416  416  
 417  417           PR_SUSPENDED   indicates that the lwp stopped due to internal
 418  418                          synchronization of lwps within the process.  pr_what
 419  419                          is unused in this case.
 420  420  
      421 +         PR_BRAND       indicates that the lwp stopped for a brand-specific
      422 +                        reason.  Interpretation of the value of pr_what
      423 +                        depends on which zone brand is in use.  It is not
      424 +                        generally expected that an lwp stopped in this state
      425 +                        will be restarted by native proc(4) consumers.
      426 +
 421  427       pr_cursig names the current signal, that is, the next signal to be
 422  428       delivered to the lwp, if any.  pr_info, when the lwp is in a PR_SIGNALLED
 423  429       or PR_FAULTED stop, contains additional information pertinent to the
 424  430       particular signal or fault (see <sys/siginfo.h>).
 425  431  
 426  432       pr_lwppend identifies any synchronous or directed signals pending for the
 427  433       lwp.  pr_lwphold identifies those signals whose delivery is being blocked
 428  434       by the lwp (the signal mask).
 429  435  
 430  436       pr_action contains the signal action information pertaining to the
↓ open down ↓ 180 lines elided ↑ open up ↑
 611  617       across different versions of the operating system.
 612  618  
 613  619       psinfo_t.pr_flag is a deprecated interface that should no longer be used.
 614  620       Applications currently relying on the SSYS bit in pr_flag should migrate
 615  621       to checking PR_ISSYS in the pstatus structure's pr_flags field.
 616  622  
 617  623       pr_pctcpu and pr_pctmem are 16-bit binary fractions in the range 0.0 to
 618  624       1.0 with the binary point to the right of the high-order bit (1.0 ==
 619  625       0x8000).  pr_pctcpu is the summation over all lwps in the process.
 620  626  
      627 +     The pr_fname and pr_psargs are writable by the owner of the process.  To
      628 +     write to them, the psinfo file should be open for writing and the desired
      629 +     value for the field should be written at the file offset that corresponds
      630 +     to the member of structure.  No other entry may be written to; if a write
      631 +     is attempted to an offset that does not represent one of these two
      632 +     memers, or if the size of the write is not exactly the size of the member
      633 +     being written, no bytes will be written and zero will be returned.
      634 +
 621  635       pr_lwp contains the ps(1) information for the representative lwp.  If the
 622  636       process is a zombie, pr_nlwp, pr_nzomb, and pr_lwp.pr_lwpid are zero and
 623  637       the other fields of pr_lwp are undefined:
 624  638  
 625  639        typedef struct lwpsinfo {
 626  640            int pr_flag;             /* lwp flags (DEPRECATED: see below) */
 627  641            id_t pr_lwpid;           /* lwp id */
 628  642            uintptr_t pr_addr;       /* internal address of lwp */
 629  643            uintptr_t pr_wchan;      /* wait addr for sleeping lwp */
 630  644            char pr_stype;           /* synchronization event type */
↓ open down ↓ 88 lines elided ↑ open up ↑
 719  733       dispositions of all signals associated with the traced process (see
 720  734       sigaction(2)).  Signal numbers are displaced by 1 from array indices, so
 721  735       that the action for signal number n appears in position n-1 of the array.
 722  736  
 723  737     auxv
 724  738       Contains the initial values of the process's aux vector in an array of
 725  739       auxv_t structures (see <sys/auxv.h>).  The values are those that were
 726  740       passed by the operating system as startup information to the dynamic
 727  741       linker.
 728  742  
      743 +   argv
      744 +     Contains the concatenation of each of the argument strings, including
      745 +     their NUL terminators, in the argument vector (argv) for the process.  If
      746 +     the process has modified either its argument vector, or the contents of
      747 +     any of the strings referenced by that vector, those changes will be
      748 +     visible here.
      749 +
 729  750     ldt
 730  751       This file exists only on x86-based machines.  It is non-empty only if the
 731  752       process has established a local descriptor table (LDT).  If non-empty,
 732  753       the file contains the array of currently active LDT entries in an array
 733  754       of elements of type struct ssd, defined in <sys/sysi86.h>, one element
 734  755       for each active LDT entry.
 735  756  
 736  757     map, xmap
 737  758       Contain information about the virtual address map of the process.  The
 738  759       map file contains an array of prmap structures while the xmap file
↓ open down ↓ 1342 lines elided ↑ open up ↑
2081 2102       /proc/pid/rmap
2082 2103               reserved address map
2083 2104       /proc/pid/cred
2084 2105               process credentials
2085 2106       /proc/pid/priv
2086 2107               process privileges
2087 2108       /proc/pid/sigact
2088 2109               process signal actions
2089 2110       /proc/pid/auxv
2090 2111               process aux vector
     2112 +     /proc/pid/argv
     2113 +             process argument vector
2091 2114       /proc/pid/ldt
2092 2115               process LDT (x86 only)
2093 2116       /proc/pid/usage
2094 2117               process usage
2095 2118       /proc/pid/lusage
2096 2119               array of lwp usage structs
2097 2120       /proc/pid/path
2098 2121               symbolic links to process open files
2099 2122       /proc/pid/pagedata
2100 2123               process page data
↓ open down ↓ 156 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX