Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/proc.5
          +++ new/usr/src/man/man5/proc.5
↓ open down ↓ 705 lines elided ↑ open up ↑
 706  706  indicates that the lwp stopped due to the default action of a job control stop
 707  707  signal (see
 708  708  .Xr sigaction 2 ) ;
 709  709  .Sy pr_what
 710  710  holds the stopping signal number.
 711  711  .It Sy PR_SUSPENDED
 712  712  indicates that the lwp stopped due to internal synchronization of lwps within
 713  713  the process.
 714  714  .Sy pr_what
 715  715  is unused in this case.
      716 +.It Sy PR_BRAND
      717 +indicates that the lwp stopped for a brand-specific reason.
      718 +Interpretation of the value of
      719 +.Sy pr_what
      720 +depends on which zone brand is in use.
      721 +It is not generally expected that an lwp stopped in this state will be
      722 +restarted by native
      723 +.\" mandoc(1) doesn't like .Xr macros referring to itself, so this is
      724 +.\" a bit of a hack.
      725 +.Nm Ns Pq 4
      726 +consumers.
 716  727  .El
 717  728  .Pp
 718  729  .Sy pr_cursig
 719  730  names the current signal, that is, the next signal to be delivered to the lwp,
 720  731  if any.
 721  732  .Sy pr_info ,
 722  733  when the lwp is in a
 723  734  .Sy PR_SIGNALLED
 724  735  or
 725  736  .Sy PR_FAULTED
↓ open down ↓ 291 lines elided ↑ open up ↑
1017 1028  field.
1018 1029  .Pp
1019 1030  .Sy pr_pctcpu
1020 1031  and
1021 1032  .Sy pr_pctmem
1022 1033  are 16-bit binary fractions in the range 0.0 to 1.0 with the binary point to
1023 1034  the right of the high-order bit (1.0 == 0x8000).
1024 1035  .Sy pr_pctcpu
1025 1036  is the summation over all lwps in the process.
1026 1037  .Pp
     1038 +The
     1039 +.Sy pr_fname
     1040 +and
     1041 +.Sy pr_psargs
     1042 +are writable by the owner of the process.
     1043 +To write to them, the
     1044 +.Sy psinfo
     1045 +file should be open for writing and the desired value for the field should be
     1046 +written at the file offset that corresponds to the member of structure.
     1047 +No other entry may be written to; if a write is attempted to an offset that
     1048 +does not represent one of these two memers, or if the size of the write is not
     1049 +exactly the size of the member being written, no bytes will be written and
     1050 +zero will be returned.
     1051 +.Pp
1027 1052  .Sy pr_lwp
1028 1053  contains the
1029 1054  .Xr ps 1
1030 1055  information for the representative lwp.
1031 1056  If the process is a
1032 1057  .Em zombie ,
1033 1058  .Sy pr_nlwp ,
1034 1059  .Sy pr_nzomb ,
1035 1060  and
1036 1061  .Sy pr_lwp.pr_lwpid
↓ open down ↓ 134 lines elided ↑ open up ↑
1171 1196  appears in position
1172 1197  .Va n Ns -1
1173 1198  of the array.
1174 1199  .Ss auxv
1175 1200  Contains the initial values of the process's aux vector in an array of
1176 1201  .Sy auxv_t
1177 1202  structures (see
1178 1203  .In sys/auxv.h ) .
1179 1204  The values are those that were passed by the operating system as startup
1180 1205  information to the dynamic linker.
     1206 +.Ss argv
     1207 +Contains the concatenation of each of the argument strings, including their
     1208 +.Sy NUL
     1209 +terminators, in the argument vector
     1210 +.Pq Va argv
     1211 +for the process.
     1212 +If the process has modified either its argument vector, or the contents of
     1213 +any of the strings referenced by that vector, those changes will be visible
     1214 +here.
1181 1215  .Ss ldt
1182 1216  This file exists only on x86-based machines.
1183 1217  It is non-empty only if the process has established a local descriptor table
1184 1218  .Pq Sy LDT .
1185 1219  If non-empty, the file contains the array of currently active
1186 1220  .Sy LDT
1187 1221  entries in an array of elements of type
1188 1222  .Vt struct ssd ,
1189 1223  defined in
1190 1224  .In sys/sysi86.h ,
↓ open down ↓ 2015 lines elided ↑ open up ↑
3206 3240  .It Pa /proc/ Ns Em pid Ns Pa /rmap
3207 3241  reserved address map
3208 3242  .It Pa /proc/ Ns Em pid Ns Pa /cred
3209 3243  process credentials
3210 3244  .It Pa /proc/ Ns Em pid Ns Pa /priv
3211 3245  process privileges
3212 3246  .It Pa /proc/ Ns Em pid Ns Pa /sigact
3213 3247  process signal actions
3214 3248  .It Pa /proc/ Ns Em pid Ns Pa /auxv
3215 3249  process aux vector
     3250 +.It Pa /proc/ Ns Em pid Ns Pa /argv
     3251 +process argument vector
3216 3252  .It Pa /proc/ Ns Em pid Ns Pa /ldt
3217 3253  process
3218 3254  .Sy LDT
3219 3255  (x86 only)
3220 3256  .It Pa /proc/ Ns Em pid Ns Pa /usage
3221 3257  process usage
3222 3258  .It Pa /proc/ Ns Em pid Ns Pa /lusage
3223 3259  array of lwp usage structs
3224 3260  .It Pa /proc/ Ns Em pid Ns Pa /path
3225 3261  symbolic links to process open files
↓ open down ↓ 284 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX