home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
-
- echo "Dumping 10 entries of the file table. Note that _file is the ADDRESS of
- the file table and not the file table itself"
-
- # description (lines following the 'nlist' line)
- # line 1: header
- # line 2: read '_file' once
- # line 3: set address of next field to content of previous field
- # line 4: read that and increment by 26 next time
- # line 5: read rest of structure with auto increment
-
- nlist -a -s 0 -f7x -h 1 -l 10 \
- '^. 1 + :" #" %3d' \
- '_file!' \
- '&+1!#-1' \
- '>26 : flag %4o' \
- '|2 : type %6x' \
- '|2 : count %6d' \
- '|2 : msgcount %6d' \
- ' : fops' \
- ' : fdata' \
- ' : offset %6x' \
- ' : cred' \
- '&. = #-1 |2 : Crref %5d' \
- '|2 : Uid %4u' \
- '|2 : Gid %4u'
-
-