Ultrix-3.1/src/cmd/usat/doc/nro.file.sout
PSTAT(1M)
NNNNAAAAMMMMEEEE
pstat - print system facts
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ppppssssttttaaaatttt [ ----aaaaiiiixxxxppppttttuuuuffff ] [ suboptions ] [ corefile ] [ namelist ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_P_s_t_a_t interprets the contents of certain system tables. If
_c_o_r_e_f_i_l_e is given, the tables are sought there, otherwise in
/_d_e_v/_m_e_m. The required namelist is taken from /_u_n_i_x , unless
the optional _n_a_m_e_l_i_s_t argument is given. If the namelist is
specified then the corefile must also be specified. Options
are
----aaaa Under ----pppp, describe all process slots rather than just
active ones.
----iiii Print the inode table with the these headings:
LLLLOOOOCCCC The core location of this table entry.
FFFFLLLLAAAAGGGGSSSS Miscellaneous state variables encoded thus:
LLLL locked
UUUU update time _f_i_l_s_y_s(5)) must be corrected
AAAA access time must be corrected
MMMM file system is mounted here
WWWW wanted by another process (L flag is on)
TTTT contains a text file
CCCC changed time must be corrected
CCCCNNNNTTTT Number of open file table entries for this inode.
DDDDEEEEVVVV Major and minor device number of file system in which
this inode resides.
IIIINNNNOOOO I-number within the device.
MMMMOOOODDDDEEEE Mode bits, see _c_h_m_o_d(2).
NNNNLLLLKKKK Number of links to this inode.
UUUUIIIIDDDD User ID of owner.
SSSSIIIIZZZZ////DDDDEEEEVVVV
Number of bytes in an ordinary file, or major and
minor device of special file.
----xxxx Print the text table with these headings:
LLLLOOOOCCCC The core location of this table entry.
FFFFLLLLAAAAGGGGSSSS Miscellaneous state variables encoded thus:
TTTT _p_t_r_a_c_e(2) in effect
WWWW text not yet written on swap device
LLLL loading in progress
KKKK locked
wwww wanted (L flag is on)
DDDDAAAADDDDDDDDRRRR Disk address in swap, measured in multiples of 512
bytes.
0-1
PSTAT(1M)
CCCCAAAADDDDDDDDRRRR Core address, measured in multiples of 64 bytes.
SSSSIIIIZZZZEEEE Size of text segment, measured in multiples of 64
bytes.
IIIIPPPPTTTTRRRR Core location of corresponding inode.
CCCCNNNNTTTT Number of processes using this text segment.
CCCCCCCCNNNNTTTT Number of processes in core using this text segment.
----pppp Print process table for active processes with these
headings:
LLLLOOOOCCCC The core location of this table entry.
SSSS Run state encoded thus:
0000 no process
1111 waiting for some event
3333 runnable
4444 being created
5555 being terminated
6666 stopped under trace
FFFF Miscellaneous state variables, or-ed together:
00001111loaded
00002222the scheduler process
00004444locked
000011110000
swapped out
000022220000
traced
000044440000
used in tracing
0000111100000000
locked in by _l_o_c_k(2).
PPPPRRRRIIII Scheduling priority, see _n_i_c_e(2).
SSSSIIIIGGGGNNNNAAAALLLL
Signals received (signals 1-16 coded in bits 0-15),
UUUUIIIIDDDD Real user ID.
TTTTIIIIMMMM Time resident in seconds; times over 127 coded as 127.
CCCCPPPPUUUU Weighted integral of CPU time, for scheduler.
NNNNIIII Nice level, see _n_i_c_e(2).
PPPPGGGGRRRRPPPP Process number of root of process group (the opener of
the controlling terminal).
PPPPIIIIDDDD The process ID number.
PPPPPPPPIIIIDDDD The process ID of parent process.
AAAADDDDDDDDRRRR If in core, the physical address of the 'u-area' of
the process measured in multiples of 64 bytes. If
swapped out, the position in the swap area measured in
multiples of 512 bytes.
SSSSIIIIZZZZEEEE Size of process image in multiples of 64 bytes.
WWWWCCCCHHHHAAAANNNN Wait channel number of a waiting process.
LLLLIIIINNNNKKKK Link pointer in list of runnable processes.
0-2
PSTAT(1M)
TTTTEEEEXXXXTTTTPPPP If text is pure, pointer to location of text table
entry.
CCCCLLLLKKKKTTTT Countdown for _a_l_a_r_m(2) measured in seconds.
----tttt Print table for terminals (DH, KL, DL, DZ, and DZV
handled) with these headings:
RRRRAAAAWWWW Number of characters in raw input queue.
CCCCAAAANNNN Number of characters in canonicalized input queue.
OOOOUUUUTTTT Number of characters in output queue.
MMMMOOOODDDDEEEE See _t_t_y(4).
AAAADDDDDDDDRRRR Physical device address.
DDDDEEEELLLL Number of delimiters (newlines) in canonicalized input
queue.
CCCCOOOOLLLL Calculated column position of terminal.
SSSSTTTTAAAATTTTEEEE Miscellaneous state variables encoded thus:
WWWW waiting for open to complete
OOOO open
SSSS has special (output) start routine
CCCC carrier is on
BBBB busy doing output
AAAA process is awaiting output
XXXX open for exclusive use
HHHH hangup on close
PPPPGGGGRRRRPPPP Process group for which this is controlling terminal.
EEEERRRRRRRRCCCCNNNNTTTT
Number of errors on the line, since the system was
last booted.
LLLLAAAASSSSTTTTEEEECCCC
Last error character, as received on the line. Char-
acter in lo byte, error bits in hi byte.
Bit 15 - Combined error bit
Bit 14 - Overrun error
Bit 13 - Framing error
Bit 12 - Parity error
For DL and KL all three types of errors are counted.
For DH, DZ, and DZV, overruns are counted, framing
errors are not counted, and parity errors are counted
only if parity is enabled.
----uuuu print information about a user process; the next argu-
ment is its address as given by _p_s(1). The process
must be in main memory, or the file used can be a core
image and the address 0.
----ffff Print the open file table with these headings:
LLLLOOOOCCCC The core location of this table entry.
FFFFLLLLGGGG Miscellaneous state variables encoded thus:
RRRR open for reading
WWWW open for writing
PPPP pipe
0-3
PSTAT(1M)
CCCCNNNNTTTT Number of processes that know this open file.
IIIINNNNOOOO The location of the inode table entry for this file.
OOOOFFFFFFFFSSSS The file offset, see _l_s_e_e_k(2).
FFFFIIIILLLLEEEESSSS
/unix default namelist
/dev/mem default source of tables
SSSSEEEEEEEE AAAALLLLSSSSOOOO
ps(1), stat(2), filsys(5)
V7M-11 System Management Guide section 9.5
K. Thompson, _U_N_I_X _I_m_p_l_e_m_e_n_t_a_t_i_o_n
0-4