Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man4/proc.4.man.txt
          +++ new/usr/src/man/man4/proc.4.man.txt
↓ open down ↓ 712 lines elided ↑ open up ↑
 713  713               timestruc_t pr_start;    /* process start time, from the epoch */
 714  714               timestruc_t pr_time;     /* cpu time for this process */
 715  715               timestruc_t pr_ctime;    /* cpu time for reaped children */
 716  716               char pr_fname[PRFNSZ];   /* name of exec'ed file */
 717  717               char pr_psargs[PRARGSZ]; /* initial characters of arg list */
 718  718               int pr_wstat;            /* if zombie, the wait() status */
 719  719               int pr_argc;             /* initial argument count */
 720  720               uintptr_t pr_argv;       /* address of initial argument vector */
 721  721               uintptr_t pr_envp;       /* address of initial environment vector */
 722  722               char pr_dmodel;          /* data model of the process */
 723      -             lwpsinfo_t pr_lwp;       /* information for representative lwp */
 724  723               taskid_t pr_taskid;      /* task id */
 725  724               projid_t pr_projid;      /* project id */
 726  725               poolid_t pr_poolid;      /* pool id */
 727  726               zoneid_t pr_zoneid;      /* zone id */
 728  727               ctid_t pr_contract;      /* process contract id */
      728 +             lwpsinfo_t pr_lwp;       /* information for representative lwp */
 729  729           } psinfo_t;
 730  730  
 731  731  
 732  732  
 733  733         Some of the entries in psinfo, such as pr_addr, refer to internal
 734  734         kernel data structures and should not be expected to retain their
 735  735         meanings across different versions of the operating system.
 736  736  
 737  737  
 738  738         psinfo_t.pr_flag is a deprecated interface that should no longer be
↓ open down ↓ 481 lines elided ↑ open up ↑
1220 1220         exists in the directory of a zombie lwp.
1221 1221  
1222 1222  STRUCTURE OF /proc/pid/lwp/lwpid
1223 1223         A given directory /proc/pid/lwp/lwpid contains the following entries:
1224 1224  
1225 1225     lwpctl
1226 1226         Write-only control file. The messages written to this file affect the
1227 1227         specific lwp rather than the representative lwp, as is the case for the
1228 1228         process's ctl file.
1229 1229  
     1230 +   lwpname
     1231 +       A buffer of THREAD_NAME_MAX bytes representing the LWP name; the buffer
     1232 +       is zero-filled if the thread name is shorter than the buffer. If no
     1233 +       thread name is set, the buffer contains the empty string. A read with a
     1234 +       buffer shorter than THREAD_NAME_MAX bytes is not guaranteed to be NUL-
     1235 +       terminated.  Writing to this file will set the LWP name for the
     1236 +       specific lwp.  This file may not be present in older operating system
     1237 +       versions. THREAD_NAME_MAX may increase in the future; clients should be
     1238 +       prepared for this.
     1239 +
1230 1240     lwpstatus
1231 1241         lwp-specific state information. This file contains the lwpstatus
1232 1242         structure for the specific lwp as described above for the
1233 1243         representative lwp in the process's status file.
1234 1244  
1235 1245     lwpsinfo
1236 1246         lwp-specific ps(1) information. This file contains the lwpsinfo
1237 1247         structure for the specific lwp as described above for the
1238 1248         representative lwp in the process's psinfo file. The lwpsinfo file
1239 1249         remains accessible after an lwp becomes a zombie.
↓ open down ↓ 1090 lines elided ↑ open up ↑
2330 2340         version of /proc will be dropped in a future release, at which time the
2331 2341         top-level directory for a process will be made world-readable.
2332 2342  
2333 2343  
2334 2344         On SPARC based machines, the types gregset_t and fpregset_t defined in
2335 2345         <sys/regset.h> are similar to but not the same as the types prgregset_t
2336 2346         and prfpregset_t defined in <procfs.h>.
2337 2347  
2338 2348  
2339 2349  
2340      -                                 June 6, 2016                          PROC(4)
     2350 +                                August 22, 2018                        PROC(4)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX