home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / unix_c / sysadmin / scocrash.tar < prev    next >
Tape Archive  |  1989-03-04  |  48.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: scocrash.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file sco-crash/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404057010 default
98% file data default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 73 63 6f 2d 63 72 61 73 | 68 2f 00 00 00 00 00 00 |sco-cras|h/......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 34 30 35 37 | 0 | 4404057|
|00000090| 30 31 30 20 20 20 35 36 | 37 30 00 20 00 00 00 00 |010 56|70. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 73 63 6f 2d 63 72 61 73 | 68 2f 53 68 61 72 46 69 |sco-cras|h/SharFi|
|00000210| 6c 65 2e 48 65 61 64 65 | 72 73 00 00 00 00 00 00 |le.Heade|rs......|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 31 33 36 35 20 | 20 34 34 30 34 30 35 37 | 1365 | 4404057|
|00000290| 30 31 30 20 20 31 30 37 | 35 34 00 20 00 00 00 00 |010 107|54. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 73 63 6f 2d | 63 72 61 73 68 2e 73 68 |=== sco-|crash.sh|
|00000410| 61 72 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ar =====|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 46 72 6f |========|====.Fro|
|00000430| 6d 20 70 75 72 2d 65 65 | 21 69 75 76 61 78 21 6d |m pur-ee|!iuvax!m|
|00000440| 61 69 6c 72 75 73 21 74 | 75 74 2e 63 69 73 2e 6f |ailrus!t|ut.cis.o|
|00000450| 68 69 6f 2d 73 74 61 74 | 65 2e 65 64 75 21 63 77 |hio-stat|e.edu!cw|
|00000460| 6a 63 63 21 68 61 6c 21 | 6e 63 6f 61 73 74 21 61 |jcc!hal!|ncoast!a|
|00000470| 6c 6c 62 65 72 79 20 53 | 61 74 20 41 75 67 20 31 |llbery S|at Aug 1|
|00000480| 33 20 31 31 3a 32 34 3a | 35 39 20 45 53 54 20 31 |3 11:24:|59 EST 1|
|00000490| 39 38 38 0a 0a 50 6f 73 | 74 69 6e 67 2d 6e 75 6d |988..Pos|ting-num|
|000004a0| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 34 2c 20 49 |ber: Vol|ume 4, I|
|000004b0| 73 73 75 65 20 32 30 0a | 53 75 62 6d 69 74 74 65 |ssue 20.|Submitte|
|000004c0| 64 2d 62 79 3a 20 22 54 | 68 65 20 42 65 61 63 68 |d-by: "T|he Beach|
|000004d0| 20 42 75 6d 22 20 3c 6a | 66 68 40 72 70 70 33 38 | Bum" <j|fh@rpp38|
|000004e0| 36 2e 55 55 43 50 3e 0a | 41 72 63 68 69 76 65 2d |6.UUCP>.|Archive-|
|000004f0| 6e 61 6d 65 3a 20 73 63 | 6f 2d 63 72 61 73 68 0a |name: sc|o-crash.|
|00000500| 0a 54 68 69 73 20 69 73 | 20 74 68 65 20 69 6e 69 |.This is| the ini|
|00000510| 74 69 61 6c 20 72 65 6c | 65 61 73 65 20 6f 66 20 |tial rel|ease of |
|00000520| 6d 79 20 53 43 4f 20 58 | 65 6e 69 78 20 63 72 61 |my SCO X|enix cra|
|00000530| 73 68 20 75 74 69 6c 69 | 74 79 2e 20 20 49 74 20 |sh utili|ty. It |
|00000540| 69 73 20 69 6e 74 65 6e | 64 65 64 0a 74 6f 20 72 |is inten|ded.to r|
|00000550| 65 70 6c 61 63 65 20 74 | 68 65 20 63 72 61 73 68 |eplace t|he crash|
|00000560| 28 31 29 20 63 6f 6d 6d | 61 6e 64 20 77 68 69 63 |(1) comm|and whic|
|00000570| 68 20 53 43 4f 20 64 69 | 64 20 6e 6f 74 20 69 6e |h SCO di|d not in|
|00000580| 63 6c 75 64 65 2e 0a 0a | 54 68 69 73 20 63 6f 6d |clude...|This com|
|00000590| 6d 61 6e 64 20 69 73 20 | 6b 6e 6f 77 6e 20 74 6f |mand is |known to|
|000005a0| 20 72 75 6e 20 6f 6e 20 | 6f 6e 6c 79 20 53 43 4f | run on |only SCO|
|000005b0| 20 58 65 6e 69 78 20 32 | 2e 32 2e 31 2e 20 20 54 | Xenix 2|.2.1. T|
|000005c0| 68 65 20 6f 6e 6c 79 20 | 70 61 72 74 73 20 77 68 |he only |parts wh|
|000005d0| 69 63 68 0a 73 68 6f 75 | 6c 64 20 6e 65 65 64 20 |ich.shou|ld need |
|000005e0| 61 64 6a 75 73 74 6d 65 | 6e 74 20 66 6f 72 20 6d |adjustme|nt for m|
|000005f0| 6f 73 74 20 72 65 61 73 | 6f 6e 61 62 6c 65 20 55 |ost reas|onable U|
|00000600| 4e 49 58 28 52 29 20 73 | 79 73 74 65 6d 73 20 61 |NIX(R) s|ystems a|
|00000610| 72 65 20 74 68 65 20 75 | 73 65 72 0a 70 61 67 65 |re the u|ser.page|
|00000620| 20 61 6e 64 20 70 72 6f | 63 65 73 73 20 74 61 62 | and pro|cess tab|
|00000630| 6c 65 20 65 6e 74 72 79 | 20 72 6f 75 74 69 6e 65 |le entry| routine|
|00000640| 73 2e 20 20 41 20 50 6c | 65 78 75 73 20 53 79 73 |s. A Pl|exus Sys|
|00000650| 74 65 6d 20 56 20 70 6f | 72 74 20 69 73 20 69 6e |tem V po|rt is in|
|00000660| 20 74 68 65 0a 77 6f 72 | 6b 73 20 66 6f 72 20 79 | the.wor|ks for y|
|00000670| 6f 75 20 61 6e 64 20 73 | 68 6f 75 6c 64 20 62 65 |ou and s|hould be|
|00000680| 20 61 76 61 69 6c 61 62 | 6c 65 20 52 65 61 6c 20 | availab|le Real |
|00000690| 53 6f 6f 6e 20 4e 6f 77 | 20 3b 2d 29 0a 0a 5b 50 |Soon Now| ;-)..[P|
|000006a0| 6c 65 78 75 73 20 53 79 | 73 74 65 6d 20 49 49 49 |lexus Sy|stem III|
|000006b0| 20 61 6e 64 20 53 79 73 | 74 65 6d 20 56 20 62 6f | and Sys|tem V bo|
|000006c0| 74 68 20 68 61 76 65 20 | 77 6f 72 6b 69 6e 67 20 |th have |working |
|000006d0| 63 72 61 73 68 20 75 74 | 69 6c 69 74 69 65 73 2e |crash ut|ilities.|
|000006e0| 20 20 2b 2b 62 73 61 5d | 0a 0a 2d 20 4a 6f 68 6e | ++bsa]|..- John|
|000006f0| 2e 0a 2d 2d 0a 00 00 00 | 00 00 00 00 00 00 00 00 |..--....|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 73 63 6f 2d 63 72 61 73 | 68 2f 52 45 41 44 4d 45 |sco-cras|h/README|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000880| 20 20 31 37 33 34 30 20 | 20 34 34 30 34 30 35 36 | 17340 | 4404056|
|00000890| 37 37 33 20 20 20 36 37 | 30 31 00 20 00 00 00 00 |773 67|01. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 63 72 61 73 68 28 31 4c | 29 20 20 20 20 20 20 20 |crash(1L|) |
|00000a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a20| 56 65 72 73 69 6f 6e 20 | 31 2e 30 20 20 20 20 20 |Version |1.0 |
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a40| 30 38 2f 31 31 2f 38 38 | 0a 0a 49 6e 74 72 6f 64 |08/11/88|..Introd|
|00000a50| 75 63 74 69 6f 6e 0a 0a | 43 72 61 73 68 20 69 73 |uction..|Crash is|
|00000a60| 20 61 20 75 74 69 6c 69 | 74 79 20 66 6f 72 20 65 | a utili|ty for e|
|00000a70| 78 61 6d 69 6e 69 6e 67 | 20 6b 65 72 6e 65 6c 20 |xamining| kernel |
|00000a80| 74 61 62 6c 65 73 20 77 | 68 69 6c 65 20 74 68 65 |tables w|hile the|
|00000a90| 20 73 79 73 74 65 6d 20 | 69 73 0a 72 75 6e 6e 69 | system |is.runni|
|00000aa0| 6e 67 2c 20 6f 72 20 69 | 66 20 74 68 65 72 65 20 |ng, or i|f there |
|00000ab0| 69 73 20 61 20 66 61 63 | 69 6c 69 74 79 20 66 6f |is a fac|ility fo|
|00000ac0| 72 20 74 61 6b 69 6e 67 | 20 63 72 61 73 68 20 64 |r taking| crash d|
|00000ad0| 75 6d 70 73 2c 20 65 78 | 61 6d 69 6e 69 6e 67 20 |umps, ex|amining |
|00000ae0| 74 68 65 0a 73 79 73 74 | 65 6d 20 61 66 74 65 72 |the.syst|em after|
|00000af0| 20 69 74 20 68 61 73 20 | 63 72 61 73 68 65 64 2e | it has |crashed.|
|00000b00| 20 20 53 43 4f 20 64 6f | 65 73 20 6e 6f 74 20 70 | SCO do|es not p|
|00000b10| 72 6f 76 69 64 65 20 61 | 20 63 72 61 73 68 20 64 |rovide a| crash d|
|00000b20| 75 6d 70 20 66 61 63 69 | 6c 69 74 79 0a 61 74 20 |ump faci|lity.at |
|00000b30| 74 68 69 73 20 74 69 6d | 65 2c 20 73 6f 20 74 68 |this tim|e, so th|
|00000b40| 61 74 20 66 75 6e 63 74 | 69 6f 6e 61 6c 69 74 79 |at funct|ionality|
|00000b50| 20 69 73 20 6e 6f 74 20 | 70 72 65 73 65 6e 74 2e | is not |present.|
|00000b60| 0a 0a 54 68 65 20 6b 65 | 72 6e 65 6c 20 73 74 72 |..The ke|rnel str|
|00000b70| 75 63 74 75 72 65 73 20 | 77 68 69 63 68 20 63 61 |uctures |which ca|
|00000b80| 6e 20 62 65 20 65 78 61 | 6d 69 6e 65 64 20 61 74 |n be exa|mined at|
|00000b90| 20 70 72 65 73 65 6e 74 | 20 61 72 65 3a 0a 0a 09 | present| are:...|
|00000ba0| 62 6c 6f 63 6b 20 62 75 | 66 66 65 72 20 68 65 61 |block bu|ffer hea|
|00000bb0| 64 65 72 73 0a 09 6f 70 | 65 6e 20 66 69 6c 65 20 |ders..op|en file |
|00000bc0| 74 61 62 6c 65 20 65 6e | 74 72 69 65 73 0a 09 61 |table en|tries..a|
|00000bd0| 63 74 69 76 65 20 69 6e | 6f 64 65 20 74 61 62 6c |ctive in|ode tabl|
|00000be0| 65 20 65 6e 74 72 69 65 | 73 0a 09 6d 6f 75 6e 74 |e entrie|s..mount|
|00000bf0| 65 64 20 66 69 6c 65 20 | 73 79 73 74 65 6d 20 74 |ed file |system t|
|00000c00| 61 62 6c 65 20 65 6e 74 | 72 69 65 73 0a 09 70 72 |able ent|ries..pr|
|00000c10| 6f 63 65 73 73 20 74 61 | 62 6c 65 20 65 6e 74 72 |ocess ta|ble entr|
|00000c20| 69 65 73 0a 09 73 79 73 | 74 65 6d 20 73 74 61 74 |ies..sys|tem stat|
|00000c30| 69 73 74 69 63 73 20 73 | 75 63 68 20 61 73 20 6e |istics s|uch as n|
|00000c40| 61 6d 65 2c 20 76 65 72 | 73 69 6f 6e 2c 20 61 67 |ame, ver|sion, ag|
|00000c50| 65 0a 09 61 63 74 69 76 | 65 20 61 6e 64 20 73 74 |e..activ|e and st|
|00000c60| 69 63 6b 79 20 62 69 74 | 20 74 65 78 74 20 74 61 |icky bit| text ta|
|00000c70| 62 6c 65 20 65 6e 74 72 | 69 65 73 0a 09 70 65 72 |ble entr|ies..per|
|00000c80| 20 70 72 6f 63 65 73 73 | 20 75 73 65 72 20 70 61 | process| user pa|
|00000c90| 67 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 0a 09 |ge infor|mation..|
|00000ca0| 74 75 6e 61 62 6c 65 20 | 70 61 72 61 6d 65 74 65 |tunable |paramete|
|00000cb0| 72 73 0a 0a 55 73 69 6e | 67 20 74 68 69 73 20 69 |rs..Usin|g this i|
|00000cc0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2c 20 69 74 20 69 |nformati|on, it i|
|00000cd0| 73 20 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 64 65 |s possib|le to de|
|00000ce0| 74 65 72 6d 69 6e 65 20 | 77 68 61 74 20 66 69 6c |termine |what fil|
|00000cf0| 65 73 20 61 20 67 69 76 | 65 6e 0a 70 72 6f 63 65 |es a giv|en.proce|
|00000d00| 73 73 20 69 73 20 75 73 | 69 6e 67 2c 20 77 68 61 |ss is us|ing, wha|
|00000d10| 74 20 64 65 76 69 63 65 | 20 74 68 65 79 20 72 65 |t device| they re|
|00000d20| 73 69 64 65 20 6f 6e 2c | 20 77 68 6f 20 6f 77 6e |side on,| who own|
|00000d30| 73 20 74 68 65 6d 20 61 | 6e 64 20 77 68 65 72 65 |s them a|nd where|
|00000d40| 0a 74 68 65 20 66 69 6c | 65 20 70 6f 69 6e 74 65 |.the fil|e pointe|
|00000d50| 72 20 69 73 20 63 75 72 | 72 65 6e 74 6c 79 20 70 |r is cur|rently p|
|00000d60| 6f 73 69 74 69 6f 6e 65 | 64 2e 20 20 4f 74 68 65 |ositione|d. Othe|
|00000d70| 72 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 6f 6e |r inform|ation on|
|00000d80| 20 72 75 6e 6e 69 6e 67 | 0a 70 72 6f 63 65 73 73 | running|.process|
|00000d90| 65 73 20 6d 61 79 20 61 | 6c 73 6f 20 62 65 20 64 |es may a|lso be d|
|00000da0| 65 74 65 72 6d 69 6e 65 | 64 2e 0a 0a 54 68 69 73 |etermine|d...This|
|00000db0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 63 72 61 73 | version| of cras|
|00000dc0| 68 20 64 69 66 66 65 72 | 73 20 66 72 6f 6d 20 6d |h differ|s from m|
|00000dd0| 6f 73 74 20 6f 74 68 65 | 72 20 76 65 72 73 69 6f |ost othe|r versio|
|00000de0| 6e 73 2c 20 73 75 63 68 | 20 61 73 20 74 68 61 74 |ns, such| as that|
|00000df0| 0a 70 72 6f 64 75 63 65 | 64 20 62 79 20 41 54 26 |.produce|d by AT&|
|00000e00| 54 20 66 6f 72 20 74 68 | 65 69 72 20 55 4e 49 58 |T for th|eir UNIX|
|00000e10| 28 74 6d 29 20 73 79 73 | 74 65 6d 73 2c 20 69 6e |(tm) sys|tems, in|
|00000e20| 20 74 68 61 74 20 73 77 | 61 70 70 65 64 20 75 73 | that sw|apped us|
|00000e30| 65 72 20 70 61 67 65 73 | 0a 6d 61 79 20 62 65 20 |er pages|.may be |
|00000e40| 70 72 69 6e 74 65 64 20 | 61 6e 64 20 74 68 65 20 |printed |and the |
|00000e50| 6e 61 6d 65 20 66 6f 72 | 20 73 77 61 70 70 65 64 |name for| swapped|
|00000e60| 20 70 72 6f 63 65 73 73 | 65 73 20 69 73 20 67 69 | process|es is gi|
|00000e70| 76 65 6e 2e 20 20 41 6c | 73 6f 2c 20 6e 6f 74 0a |ven. Al|so, not.|
|00000e80| 61 6c 6c 20 6f 66 20 74 | 68 65 20 61 6c 69 61 73 |all of t|he alias|
|00000e90| 65 73 20 77 68 69 63 68 | 20 61 72 65 20 6c 69 73 |es which| are lis|
|00000ea0| 74 65 64 20 69 6e 20 74 | 68 65 20 6d 61 6e 75 61 |ted in t|he manua|
|00000eb0| 6c 20 70 61 67 65 20 66 | 72 6f 6d 20 41 54 26 54 |l page f|rom AT&T|
|00000ec0| 20 61 72 65 0a 70 72 6f | 76 69 64 65 64 2e 20 20 | are.pro|vided. |
|00000ed0| 41 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 6f 6d 6d |A number| of comm|
|00000ee0| 61 6e 64 73 20 68 61 76 | 65 20 62 65 65 6e 20 6c |ands hav|e been l|
|00000ef0| 65 66 74 20 6f 75 74 2c | 20 61 6e 64 20 73 6f 6d |eft out,| and som|
|00000f00| 65 20 6f 66 20 74 68 65 | 0a 6f 70 74 69 6f 6e 73 |e of the|.options|
|00000f10| 20 66 6f 72 20 74 68 65 | 20 69 6e 63 6c 75 64 65 | for the| include|
|00000f20| 64 20 63 6f 6d 6d 61 6e | 64 73 20 68 61 76 65 20 |d comman|ds have |
|00000f30| 62 65 65 6e 20 6f 6d 69 | 74 74 65 64 20 61 73 20 |been omi|tted as |
|00000f40| 77 65 6c 6c 2e 0a 0a 43 | 6f 6d 6d 61 6e 64 73 0a |well...C|ommands.|
|00000f50| 0a 4d 6f 73 74 20 63 6f | 6d 6d 61 6e 64 73 20 74 |.Most co|mmands t|
|00000f60| 61 6b 65 20 61 20 6c 69 | 73 74 20 6f 66 20 74 61 |ake a li|st of ta|
|00000f70| 62 6c 65 20 65 6e 74 72 | 69 65 73 2c 20 77 68 69 |ble entr|ies, whi|
|00000f80| 63 68 20 69 66 20 6e 6f | 74 20 70 72 65 73 65 6e |ch if no|t presen|
|00000f90| 74 0a 64 65 66 61 75 6c | 74 73 20 74 6f 20 61 6c |t.defaul|ts to al|
|00000fa0| 6c 20 65 6c 65 6d 65 6e | 74 73 20 69 6e 20 74 68 |l elemen|ts in th|
|00000fb0| 65 20 74 61 62 6c 65 2e | 0a 0a 50 72 69 6e 74 20 |e table.|..Print |
|00000fc0| 42 75 66 66 65 72 20 48 | 65 61 64 65 72 73 0a 53 |Buffer H|eaders.S|
|00000fd0| 79 6e 74 61 78 3a 09 62 | 75 66 2c 20 62 0a 0a 50 |yntax:.b|uf, b..P|
|00000fe0| 72 69 6e 74 73 20 74 68 | 65 20 73 65 6c 65 63 74 |rints th|e select|
|00000ff0| 65 64 20 62 6c 6f 63 6b | 20 62 75 66 66 65 72 20 |ed block| buffer |
|00001000| 68 65 61 64 65 72 73 2e | 0a 0a 45 78 61 6d 70 6c |headers.|..Exampl|
|00001010| 65 3a 0a 3e 20 62 75 66 | 20 30 20 31 20 32 20 33 |e:.> buf| 0 1 2 3|
|00001020| 20 34 0a 20 42 55 46 20 | 4d 41 4a 20 20 4d 49 4e | 4. BUF |MAJ MIN|
|00001030| 20 20 20 20 42 4c 4f 43 | 4b 20 46 4c 41 47 53 0a | BLOC|K FLAGS.|
|00001040| 20 20 20 30 20 30 30 31 | 20 30 30 34 37 20 20 20 | 0 001| 0047 |
|00001050| 20 32 30 39 32 35 20 72 | 65 61 64 20 64 6f 6e 65 | 20925 r|ead done|
|00001060| 0a 20 20 20 31 20 30 30 | 31 20 30 30 33 37 20 20 |. 1 00|1 0037 |
|00001070| 20 20 20 32 38 31 37 20 | 72 65 61 64 20 64 6f 6e | 2817 |read don|
|00001080| 65 0a 20 20 20 32 20 30 | 30 31 20 30 30 35 30 20 |e. 2 0|01 0050 |
|00001090| 20 20 20 20 32 38 30 31 | 20 72 65 61 64 20 64 6f | 2801| read do|
|000010a0| 6e 65 0a 20 20 20 33 20 | 30 30 31 20 30 30 33 37 |ne. 3 |001 0037|
|000010b0| 20 20 20 20 31 35 31 37 | 35 20 72 65 61 64 20 64 | 1517|5 read d|
|000010c0| 6f 6e 65 0a 20 20 20 34 | 20 30 30 31 20 30 30 35 |one. 4| 001 005|
|000010d0| 30 20 20 20 20 20 20 20 | 20 36 20 64 6f 6e 65 0a |0 | 6 done.|
|000010e0| 0a 50 72 69 6e 74 20 4f | 70 65 6e 20 46 69 6c 65 |.Print O|pen File|
|000010f0| 20 54 61 62 6c 65 20 45 | 6e 74 72 69 65 73 0a 53 | Table E|ntries.S|
|00001100| 79 6e 74 61 78 3a 20 66 | 69 6c 65 2c 20 66 0a 0a |yntax: f|ile, f..|
|00001110| 50 72 69 6e 74 73 20 74 | 68 65 20 73 65 6c 65 63 |Prints t|he selec|
|00001120| 74 65 64 20 6f 70 65 6e | 20 66 69 6c 65 20 74 61 |ted open| file ta|
|00001130| 62 6c 65 20 65 6e 74 72 | 69 65 73 2c 20 77 69 74 |ble entr|ies, wit|
|00001140| 68 20 63 72 6f 73 73 20 | 72 65 66 65 72 65 6e 63 |h cross |referenc|
|00001150| 65 73 0a 74 6f 20 74 68 | 65 20 61 73 73 6f 63 69 |es.to th|e associ|
|00001160| 61 74 65 64 20 69 6e 6f | 64 65 73 2c 20 61 6e 64 |ated ino|des, and|
|00001170| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 66 69 6c | the cur|rent fil|
|00001180| 65 20 70 6f 69 6e 74 65 | 72 2e 0a 0a 45 78 61 6d |e pointe|r...Exam|
|00001190| 70 6c 65 3a 0a 3e 20 66 | 69 6c 65 20 30 20 31 20 |ple:.> f|ile 0 1 |
|000011a0| 32 20 33 20 34 0a 53 4c | 4f 54 20 20 20 20 46 4c |2 3 4.SL|OT FL|
|000011b0| 41 47 20 20 20 20 20 20 | 20 20 20 20 43 4f 55 4e |AG | COUN|
|000011c0| 54 20 20 49 4e 4f 44 45 | 20 20 20 20 20 20 4f 46 |T INODE| OF|
|000011d0| 46 53 45 54 0a 20 20 20 | 30 20 20 20 20 30 30 31 |FSET. |0 001|
|000011e0| 20 52 20 20 20 20 20 20 | 20 20 20 20 20 20 20 31 | R | 1|
|000011f0| 20 20 20 20 20 20 39 20 | 20 20 20 20 20 20 20 20 | 9 | |
|00001200| 20 20 30 0a 20 20 20 31 | 20 20 20 20 30 30 33 20 | 0. 1| 003 |
|00001210| 52 57 20 20 20 20 20 20 | 20 20 20 20 20 20 33 20 |RW | 3 |
|00001220| 20 20 20 20 20 33 20 20 | 20 20 20 20 20 20 20 20 | 3 | |
|00001230| 31 38 0a 20 20 20 32 20 | 20 20 20 30 30 33 20 52 |18. 2 | 003 R|
|00001240| 57 20 20 20 20 20 20 20 | 20 20 20 20 20 37 20 20 |W | 7 |
|00001250| 20 20 20 31 31 20 20 20 | 20 20 20 20 32 36 38 30 | 11 | 2680|
|00001260| 30 0a 20 20 20 33 20 20 | 20 20 30 30 32 20 20 57 |0. 3 | 002 W|
|00001270| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 20 20 20 | | 2 |
|00001280| 20 20 20 34 20 20 20 20 | 20 20 20 20 20 31 36 39 | 4 | 169|
|00001290| 0a 20 20 20 34 20 20 20 | 20 30 30 31 20 52 20 20 |. 4 | 001 R |
|000012a0| 20 20 20 20 20 20 20 20 | 20 20 20 31 20 20 20 20 | | 1 |
|000012b0| 20 20 38 20 20 20 20 20 | 20 20 20 20 20 20 30 0a | 8 | 0.|
|000012c0| 0a 44 69 73 70 6c 61 79 | 20 43 6f 6d 6d 61 6e 64 |.Display| Command|
|000012d0| 20 53 75 6d 6d 61 72 79 | 0a 53 79 6e 74 61 78 3a | Summary|.Syntax:|
|000012e0| 20 68 65 6c 70 2c 20 68 | 2c 20 3f 0a 0a 50 72 69 | help, h|, ?..Pri|
|000012f0| 6e 74 73 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 |nts the |list of |
|00001300| 63 75 72 72 65 6e 74 6c | 79 20 61 76 61 69 6c 61 |currentl|y availa|
|00001310| 62 6c 65 20 63 6f 6d 6d | 61 6e 64 73 20 61 6e 64 |ble comm|ands and|
|00001320| 20 74 68 65 20 61 6c 69 | 61 73 65 73 0a 66 6f 72 | the ali|ases.for|
|00001330| 20 74 68 65 6d 2e 0a 0a | 45 78 61 6d 70 6c 65 3a | them...|Example:|
|00001340| 0a 3e 20 68 65 6c 70 0a | 63 6f 6d 6d 61 6e 64 20 |.> help.|command |
|00001350| 73 75 6d 6d 61 72 79 0a | 0a 62 75 66 20 28 62 29 |summary.|.buf (b)|
|00001360| 20 20 20 20 20 20 20 20 | 2d 20 62 75 66 66 65 72 | |- buffer|
|00001370| 20 68 65 61 64 65 72 73 | 0a 66 69 6c 65 20 28 66 | headers|.file (f|
|00001380| 29 20 20 20 20 20 20 20 | 2d 20 6f 70 65 6e 20 66 |) |- open f|
|00001390| 69 6c 65 73 0a 68 65 6c | 70 20 28 68 2c 3f 29 20 |iles.hel|p (h,?) |
|000013a0| 20 20 20 20 2d 20 6c 69 | 73 74 20 63 6f 6d 6d 61 | - li|st comma|
|000013b0| 6e 64 73 0a 69 6e 6f 64 | 65 20 28 69 6e 6f 2c 69 |nds.inod|e (ino,i|
|000013c0| 29 20 20 2d 20 61 63 74 | 69 76 65 20 69 6e 6f 64 |) - act|ive inod|
|000013d0| 65 73 0a 6d 6f 75 6e 74 | 20 28 6d 29 20 20 20 20 |es.mount| (m) |
|000013e0| 20 20 2d 20 6d 6f 75 6e | 74 65 64 20 66 69 6c 65 | - moun|ted file|
|000013f0| 20 73 79 73 74 65 6d 73 | 0a 70 72 6f 63 20 28 70 | systems|.proc (p|
|00001400| 29 20 20 20 20 20 20 20 | 2d 20 61 63 74 69 76 65 |) |- active|
|00001410| 20 61 6e 64 20 64 65 66 | 75 6e 63 74 20 70 72 6f | and def|unct pro|
|00001420| 63 65 73 73 65 73 0a 71 | 75 69 74 20 28 71 2c 5e |cesses.q|uit (q,^|
|00001430| 44 29 20 20 20 20 2d 20 | 65 78 69 74 20 63 72 61 |D) - |exit cra|
|00001440| 73 68 0a 73 74 61 74 20 | 28 73 29 20 20 20 20 20 |sh.stat |(s) |
|00001450| 20 20 2d 20 63 72 61 73 | 68 20 73 74 61 74 69 73 | - cras|h statis|
|00001460| 74 69 63 73 2c 20 61 67 | 65 2c 20 74 69 6d 65 0a |tics, ag|e, time.|
|00001470| 74 65 78 74 20 28 74 29 | 20 20 20 20 20 20 20 2d |text (t)| -|
|00001480| 20 61 63 74 69 76 65 20 | 61 6e 64 20 73 74 69 63 | active |and stic|
|00001490| 6b 79 20 62 69 74 20 74 | 65 78 74 20 73 65 67 6d |ky bit t|ext segm|
|000014a0| 65 6e 74 73 0a 75 73 65 | 72 20 28 75 29 20 20 20 |ents.use|r (u) |
|000014b0| 20 20 20 20 2d 20 75 73 | 65 72 20 70 61 67 65 20 | - us|er page |
|000014c0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 76 61 72 20 |informat|ion.var |
|000014d0| 28 76 29 20 20 20 20 20 | 20 20 20 2d 20 74 75 6e |(v) | - tun|
|000014e0| 61 62 6c 65 20 70 61 72 | 61 6d 65 74 65 72 73 0a |able par|ameters.|
|000014f0| 0a 44 69 73 70 6c 61 79 | 20 41 63 74 69 76 65 20 |.Display| Active |
|00001500| 49 6e 6f 64 65 20 54 61 | 62 6c 65 20 45 6e 74 72 |Inode Ta|ble Entr|
|00001510| 69 65 73 0a 53 79 6e 74 | 61 78 3a 20 69 6e 6f 64 |ies.Synt|ax: inod|
|00001520| 65 2c 20 69 6e 6f 2c 20 | 69 0a 0a 50 72 69 6e 74 |e, ino, |i..Print|
|00001530| 73 20 73 65 6c 65 63 74 | 65 64 20 61 63 74 69 76 |s select|ed activ|
|00001540| 65 20 69 6e 6f 64 65 20 | 74 61 62 6c 65 20 65 6e |e inode |table en|
|00001550| 74 72 69 65 73 20 67 69 | 76 69 6e 67 20 64 65 76 |tries gi|ving dev|
|00001560| 69 63 65 2c 20 66 69 6c | 65 0a 73 69 7a 65 2c 20 |ice, fil|e.size, |
|00001570| 70 65 72 6d 69 73 73 69 | 6f 6e 73 2c 20 61 6e 64 |permissi|ons, and|
|00001580| 20 6f 77 6e 65 72 73 2e | 20 20 43 72 6f 73 73 20 | owners.| Cross |
|00001590| 72 65 66 65 72 65 6e 63 | 65 64 20 66 72 6f 6d 20 |referenc|ed from |
|000015a0| 6d 6f 75 6e 74 20 61 6e | 64 0a 66 69 6c 65 20 74 |mount an|d.file t|
|000015b0| 61 62 6c 65 73 2e 0a 0a | 45 78 61 6d 70 6c 65 3a |ables...|Example:|
|000015c0| 0a 3e 20 69 6e 6f 64 65 | 20 30 20 32 20 36 20 38 |.> inode| 0 2 6 8|
|000015d0| 20 32 30 0a 53 4c 4f 54 | 20 4d 41 4a 20 20 4d 49 | 20.SLOT| MAJ MI|
|000015e0| 4e 20 49 4e 55 4d 42 20 | 52 45 46 20 4c 49 4e 4b |N INUMB |REF LINK|
|000015f0| 20 20 55 49 44 20 20 47 | 49 44 20 20 20 20 20 53 | UID G|ID S|
|00001600| 49 5a 45 20 20 20 20 4d | 4f 44 45 20 53 4d 41 4a |IZE M|ODE SMAJ|
|00001610| 20 53 4d 49 4e 20 46 4c | 41 47 53 0a 20 20 20 30 | SMIN FL|AGS. 0|
|00001620| 20 30 30 31 20 30 30 35 | 30 20 20 20 20 20 32 20 | 001 005|0 2 |
|00001630| 20 20 35 20 20 20 31 33 | 20 20 20 20 30 20 20 20 | 5 13| 0 |
|00001640| 20 30 20 20 20 20 20 20 | 34 36 34 20 64 2d 2d 2d | 0 |464 d---|
|00001650| 37 35 35 20 20 20 20 2d | 20 20 20 20 2d 0a 20 20 |755 -| -. |
|00001660| 20 32 20 30 30 31 20 30 | 30 35 30 20 20 20 20 34 | 2 001 0|050 4|
|00001670| 34 20 20 20 31 20 20 20 | 20 31 20 20 20 20 33 20 |4 1 | 1 3 |
|00001680| 20 20 20 33 20 20 20 20 | 31 33 34 37 32 20 66 2d | 3 |13472 f-|
|00001690| 2d 2d 37 30 30 20 20 20 | 20 2d 20 20 20 20 2d 20 |--700 | - - |
|000016a0| 74 78 74 0a 20 20 20 36 | 20 30 30 31 20 30 30 35 |txt. 6| 001 005|
|000016b0| 30 20 20 20 32 30 34 20 | 20 20 31 20 20 20 20 32 |0 204 | 1 2|
|000016c0| 20 20 20 20 30 20 20 20 | 20 30 20 20 20 20 20 20 | 0 | 0 |
|000016d0| 20 33 32 20 64 2d 2d 2d | 37 37 37 20 20 20 20 2d | 32 d---|777 -|
|000016e0| 20 20 20 20 2d 20 6d 6e | 74 0a 20 20 20 38 20 30 | - mn|t. 8 0|
|000016f0| 30 31 20 30 30 35 30 20 | 20 20 20 38 37 20 20 20 |01 0050 | 87 |
|00001700| 32 20 20 20 20 31 20 20 | 20 31 30 20 20 20 31 30 |2 1 | 10 10|
|00001710| 20 20 20 20 20 20 20 20 | 30 20 63 2d 2d 2d 36 36 | |0 c---66|
|00001720| 36 20 30 30 30 34 20 30 | 30 30 32 0a 20 20 32 30 |6 0004 0|002. 20|
|00001730| 20 30 30 31 20 30 30 35 | 30 20 20 20 34 37 31 20 | 001 005|0 471 |
|00001740| 20 20 31 20 20 20 20 31 | 20 20 20 20 33 20 20 20 | 1 1| 3 |
|00001750| 20 33 20 20 20 20 35 30 | 31 30 32 20 66 2d 2d 2d | 3 50|102 f---|
|00001760| 37 31 31 20 20 20 20 2d | 20 20 20 20 2d 20 61 63 |711 -| - ac|
|00001770| 63 20 74 78 74 0a 0a 44 | 69 73 70 6c 61 79 20 4d |c txt..D|isplay M|
|00001780| 6f 75 6e 74 65 64 20 46 | 69 6c 65 20 53 79 73 74 |ounted F|ile Syst|
|00001790| 65 6d 20 54 61 62 6c 65 | 20 45 6e 74 72 69 65 73 |em Table| Entries|
|000017a0| 0a 53 79 6e 74 61 78 3a | 20 6d 6f 75 6e 74 2c 20 |.Syntax:| mount, |
|000017b0| 6d 0a 0a 50 72 69 6e 74 | 73 20 74 68 65 20 73 79 |m..Print|s the sy|
|000017c0| 73 74 65 6d 20 65 6e 74 | 72 69 65 73 20 66 6f 72 |stem ent|ries for|
|000017d0| 20 6d 6f 75 6e 74 65 64 | 20 6f 6e 20 66 69 6c 65 | mounted| on file|
|000017e0| 20 73 79 73 74 65 6d 73 | 2e 20 20 54 68 65 0a 64 | systems|. The.d|
|000017f0| 65 76 69 63 65 2c 20 6d | 6f 75 6e 74 20 70 6f 69 |evice, m|ount poi|
|00001800| 6e 74 2c 20 66 69 6c 65 | 20 73 79 73 74 65 6d 20 |nt, file| system |
|00001810| 73 69 7a 65 73 20 61 6e | 64 20 66 72 65 65 20 62 |sizes an|d free b|
|00001820| 6c 6f 63 6b 73 20 61 6e | 64 20 69 6e 6f 64 65 73 |locks an|d inodes|
|00001830| 0a 61 72 65 20 64 69 73 | 70 6c 61 79 65 64 2e 0a |.are dis|played..|
|00001840| 0a 45 78 61 6d 70 6c 65 | 3a 0a 3e 20 6d 6f 75 6e |.Example|:.> moun|
|00001850| 74 0a 53 4c 4f 54 20 20 | 4d 41 4a 20 20 4d 49 4e |t.SLOT |MAJ MIN|
|00001860| 20 20 49 4e 4f 44 45 20 | 20 42 55 46 20 20 56 4f | INODE | BUF VO|
|00001870| 4c 55 4d 45 20 20 50 41 | 43 4b 20 20 20 42 4c 4f |LUME PA|CK BLO|
|00001880| 43 4b 53 20 49 4e 4f 44 | 45 53 20 20 42 46 52 45 |CKS INOD|ES BFRE|
|00001890| 45 20 20 49 46 52 45 45 | 0a 20 20 20 30 20 20 20 |E IFREE|. 0 |
|000018a0| 20 31 20 20 30 35 30 20 | 20 20 20 20 20 30 20 20 | 1 050 | 0 |
|000018b0| 20 31 30 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 10 | |
|000018c0| 20 20 20 20 20 20 37 31 | 36 33 20 20 20 31 38 30 | 71|63 180|
|000018d0| 38 20 20 20 31 32 33 37 | 20 20 20 31 32 35 31 0a |8 1237| 1251.|
|000018e0| 20 20 20 31 20 20 20 20 | 31 20 20 30 33 37 20 20 | 1 |1 037 |
|000018f0| 20 20 20 20 36 20 20 32 | 33 30 20 20 75 73 72 20 | 6 2|30 usr |
|00001900| 20 20 20 20 72 70 70 33 | 38 36 20 20 33 34 30 30 | rpp3|86 3400|
|00001910| 30 20 20 31 37 30 32 34 | 20 20 20 31 33 32 30 20 |0 17024| 1320 |
|00001920| 20 31 34 32 33 38 0a 20 | 20 20 32 20 20 20 20 31 | 14238. | 2 1|
|00001930| 20 20 30 34 37 20 20 20 | 20 20 20 37 20 20 32 34 | 047 | 7 24|
|00001940| 35 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |5 | |
|00001950| 20 20 20 32 32 39 35 30 | 20 20 31 35 30 32 34 20 | 22950| 15024 |
|00001960| 20 20 35 34 39 39 20 20 | 20 39 38 30 30 0a 20 20 | 5499 | 9800. |
|00001970| 20 33 20 20 20 20 32 20 | 20 30 36 34 20 20 20 20 | 3 2 | 064 |
|00001980| 20 32 33 20 20 33 38 37 | 20 20 20 20 20 20 20 20 | 23 387| |
|00001990| 20 20 20 20 20 20 20 20 | 20 20 20 31 32 30 30 20 | | 1200 |
|000019a0| 20 20 20 33 32 30 20 20 | 20 20 32 31 30 20 20 20 | 320 | 210 |
|000019b0| 20 20 35 30 0a 0a 44 69 | 73 70 6c 61 79 20 50 72 | 50..Di|splay Pr|
|000019c0| 6f 63 65 73 73 20 54 61 | 62 6c 65 20 45 6e 74 72 |ocess Ta|ble Entr|
|000019d0| 69 65 73 0a 53 79 6e 74 | 61 78 3a 20 70 72 6f 63 |ies.Synt|ax: proc|
|000019e0| 2c 20 70 0a 0a 50 72 69 | 6e 74 73 20 73 65 6c 65 |, p..Pri|nts sele|
|000019f0| 63 74 65 64 20 72 75 6e | 6e 69 6e 67 20 61 6e 64 |cted run|ning and|
|00001a00| 20 64 65 66 75 6e 63 74 | 20 70 72 6f 63 65 73 73 | defunct| process|
|00001a10| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 20 20 54 | informa|tion. T|
|00001a20| 68 65 20 70 72 6f 63 65 | 73 73 0a 69 64 73 2c 20 |he proce|ss.ids, |
|00001a30| 75 73 65 72 20 69 64 73 | 2c 20 43 50 55 20 75 73 |user ids|, CPU us|
|00001a40| 61 67 65 2c 20 73 63 68 | 65 64 75 6c 69 6e 67 20 |age, sch|eduling |
|00001a50| 70 72 69 6f 72 69 74 79 | 20 61 6e 64 20 77 61 69 |priority| and wai|
|00001a60| 74 20 65 76 65 6e 74 20 | 61 72 65 0a 64 69 73 70 |t event |are.disp|
|00001a70| 6c 61 79 65 64 2e 20 20 | 54 68 65 20 70 72 6f 63 |layed. |The proc|
|00001a80| 65 73 73 20 6e 61 6d 65 | 20 69 73 20 64 65 74 65 |ess name| is dete|
|00001a90| 72 6d 69 6e 65 64 20 62 | 79 20 6c 6f 63 61 74 69 |rmined b|y locati|
|00001aa0| 6e 67 20 74 68 65 20 75 | 73 65 72 20 70 61 67 65 |ng the u|ser page|
|00001ab0| 2e 0a 0a 45 78 61 6d 70 | 6c 65 3a 0a 3e 20 70 72 |...Examp|le:.> pr|
|00001ac0| 6f 63 20 30 20 31 20 32 | 20 33 20 34 0a 53 4c 54 |oc 0 1 2| 3 4.SLT|
|00001ad0| 20 53 54 20 20 50 49 44 | 20 20 50 50 49 44 20 20 | ST PID| PPID |
|00001ae0| 50 47 52 50 20 20 20 55 | 49 44 20 20 45 55 49 44 |PGRP U|ID EUID|
|00001af0| 20 50 52 49 20 43 50 55 | 20 20 20 20 45 56 45 4e | PRI CPU| EVEN|
|00001b00| 54 20 4e 41 4d 45 20 20 | 20 20 20 20 20 46 4c 41 |T NAME | FLA|
|00001b10| 47 53 0a 20 20 30 20 73 | 20 20 20 20 20 30 20 20 |GS. 0 s| 0 |
|00001b20| 20 20 20 30 20 20 20 20 | 20 30 20 20 20 20 20 30 | 0 | 0 0|
|00001b30| 20 20 20 20 20 30 20 20 | 20 30 20 20 31 35 20 20 | 0 | 0 15 |
|00001b40| 20 20 31 36 63 35 63 20 | 73 77 61 70 70 65 72 20 | 16c5c |swapper |
|00001b50| 20 20 20 69 6e 63 6f 72 | 65 20 73 63 68 65 64 0a | incor|e sched.|
|00001b60| 20 20 31 20 73 20 20 20 | 20 20 31 20 20 20 20 20 | 1 s | 1 |
|00001b70| 30 20 20 20 20 20 30 20 | 20 20 20 20 30 20 20 20 |0 0 | 0 |
|00001b80| 20 20 30 20 20 33 30 20 | 20 20 30 20 20 20 20 20 | 0 30 | 0 |
|00001b90| 65 65 61 63 20 69 6e 69 | 74 20 20 20 20 20 20 20 |eeac ini|t |
|00001ba0| 69 6e 63 6f 72 65 20 74 | 65 78 74 0a 20 20 32 20 |incore t|ext. 2 |
|00001bb0| 73 20 20 39 33 38 39 20 | 20 20 20 20 31 20 20 39 |s 9389 | 1 9|
|00001bc0| 33 38 39 20 20 20 31 30 | 30 20 20 20 31 30 30 20 |389 10|0 100 |
|00001bd0| 20 33 30 20 20 20 30 20 | 20 20 20 20 65 66 35 34 | 30 0 | ef54|
|00001be0| 20 63 73 68 20 20 20 20 | 20 20 20 20 69 6e 63 6f | csh | inco|
|00001bf0| 72 65 20 74 65 78 74 0a | 20 20 33 20 73 20 20 20 |re text.| 3 s |
|00001c00| 20 33 31 20 20 20 20 20 | 31 20 20 20 20 20 30 20 | 31 |1 0 |
|00001c10| 20 20 20 20 30 20 20 20 | 20 20 30 20 20 32 36 20 | 0 | 0 26 |
|00001c20| 20 20 30 20 20 20 20 20 | 35 65 61 63 20 6c 6f 67 | 0 |5eac log|
|00001c30| 67 65 72 20 20 20 20 20 | 73 77 61 70 70 65 64 0a |ger |swapped.|
|00001c40| 20 20 34 20 73 20 20 20 | 20 33 30 20 20 20 20 20 | 4 s | 30 |
|00001c50| 31 20 20 20 20 20 30 20 | 20 20 20 20 30 20 20 20 |1 0 | 0 |
|00001c60| 20 20 30 20 20 34 30 20 | 20 20 30 20 20 36 30 30 | 0 40 | 0 600|
|00001c70| 30 30 30 30 20 75 70 64 | 61 74 65 20 20 20 20 20 |0000 upd|ate |
|00001c80| 69 6e 63 6f 72 65 20 74 | 65 78 74 0a 0a 45 78 69 |incore t|ext..Exi|
|00001c90| 74 20 43 72 61 73 68 20 | 43 6f 6d 6d 61 6e 64 0a |t Crash |Command.|
|00001ca0| 53 79 6e 74 61 78 3a 20 | 71 75 69 74 2c 20 71 2c |Syntax: |quit, q,|
|00001cb0| 20 5e 44 0a 0a 45 78 69 | 74 73 20 43 72 61 73 68 | ^D..Exi|ts Crash|
|00001cc0| 2e 0a 0a 45 78 61 6d 70 | 6c 65 3a 0a 3e 20 71 75 |...Examp|le:.> qu|
|00001cd0| 69 74 0a 24 0a 0a 50 72 | 69 6e 74 20 53 79 73 74 |it.$..Pr|int Syst|
|00001ce0| 65 6d 20 53 74 61 74 69 | 63 73 0a 53 79 6e 74 61 |em Stati|cs.Synta|
|00001cf0| 78 3a 20 73 74 61 74 2c | 20 73 0a 0a 50 72 69 6e |x: stat,| s..Prin|
|00001d00| 74 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 72 |ts infor|mation r|
|00001d10| 65 67 61 72 64 69 6e 67 | 20 73 79 73 74 65 6d 20 |egarding| system |
|00001d20| 6e 61 6d 65 2c 20 6f 70 | 65 72 61 74 69 6e 67 20 |name, op|erating |
|00001d30| 73 79 73 74 65 6d 20 72 | 65 6c 65 61 73 65 2c 20 |system r|elease, |
|00001d40| 76 65 72 73 69 6f 6e 2c | 0a 64 61 74 65 20 6f 66 |version,|.date of|
|00001d50| 20 63 72 61 73 68 2c 20 | 61 6e 64 20 75 70 74 69 | crash, |and upti|
|00001d60| 6d 65 20 61 74 20 74 69 | 6d 65 20 6f 66 20 63 72 |me at ti|me of cr|
|00001d70| 61 73 68 2e 0a 0a 45 78 | 61 6d 70 6c 65 3a 0a 3e |ash...Ex|ample:.>|
|00001d80| 20 73 74 61 74 0a 09 73 | 79 73 6e 61 6d 65 3a 20 | stat..s|ysname: |
|00001d90| 58 45 4e 49 58 0a 09 6e | 6f 64 65 6e 61 6d 65 3a |XENIX..n|odename:|
|00001da0| 20 72 70 70 33 38 36 0a | 09 72 65 6c 65 61 73 65 | rpp386.|.release|
|00001db0| 3a 20 32 2e 32 2e 31 0a | 09 76 65 72 73 69 6f 6e |: 2.2.1.|.version|
|00001dc0| 3a 20 53 79 73 56 0a 09 | 6d 61 63 68 69 6e 65 3a |: SysV..|machine:|
|00001dd0| 20 69 38 30 33 38 36 0a | 09 74 69 6d 65 20 6f 66 | i80386.|.time of|
|00001de0| 20 63 72 61 73 68 3a 20 | 54 68 75 20 41 75 67 20 | crash: |Thu Aug |
|00001df0| 31 31 20 31 31 3a 31 38 | 3a 30 30 20 31 39 38 38 |11 11:18|:00 1988|
|00001e00| 0a 09 61 67 65 20 6f 66 | 20 73 79 73 74 65 6d 3a |..age of| system:|
|00001e10| 20 33 35 20 64 61 79 73 | 2c 20 32 33 20 68 72 73 | 35 days|, 23 hrs|
|00001e20| 2e 2c 20 37 20 6d 69 6e | 73 2e 0a 0a 50 72 69 6e |., 7 min|s...Prin|
|00001e30| 74 20 54 65 78 74 20 54 | 61 62 6c 65 20 45 6e 74 |t Text T|able Ent|
|00001e40| 72 69 65 73 0a 53 79 6e | 74 61 78 3a 20 74 65 78 |ries.Syn|tax: tex|
|00001e50| 74 2c 20 74 0a 0a 50 72 | 69 6e 74 73 20 63 75 72 |t, t..Pr|ints cur|
|00001e60| 72 65 6e 74 20 74 65 78 | 74 20 74 61 62 6c 65 20 |rent tex|t table |
|00001e70| 65 6e 74 72 69 65 73 2e | 20 20 43 72 6f 73 73 20 |entries.| Cross |
|00001e80| 72 65 66 65 72 65 6e 63 | 65 73 20 74 6f 20 69 6e |referenc|es to in|
|00001e90| 6f 64 65 20 6e 75 6d 62 | 65 72 0a 61 6e 64 20 70 |ode numb|er.and p|
|00001ea0| 72 6f 63 65 73 73 20 74 | 61 62 6c 65 20 65 6e 74 |rocess t|able ent|
|00001eb0| 72 79 20 61 6e 64 20 67 | 69 76 65 73 20 74 68 65 |ry and g|ives the|
|00001ec0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 72 6f 63 65 | number |of proce|
|00001ed0| 73 73 65 73 20 77 68 69 | 63 68 20 61 72 65 0a 63 |sses whi|ch are.c|
|00001ee0| 75 72 72 65 6e 74 6c 79 | 20 72 65 66 65 72 65 6e |urrently| referen|
|00001ef0| 63 69 6e 67 20 74 68 69 | 73 20 74 61 62 6c 65 20 |cing thi|s table |
|00001f00| 65 6e 74 72 79 2e 0a 45 | 78 61 6d 70 6c 65 3a 0a |entry..E|xample:.|
|00001f10| 3e 20 74 65 78 74 20 30 | 20 31 20 32 20 33 20 34 |> text 0| 1 2 3 4|
|00001f20| 0a 53 4c 4f 54 20 20 49 | 4e 4f 44 45 20 20 52 45 |.SLOT I|NODE RE|
|00001f30| 46 20 20 4c 44 52 45 46 | 20 20 50 52 4f 43 20 20 |F LDREF| PROC |
|00001f40| 53 57 41 50 4c 4f 2b 20 | 20 20 53 49 5a 45 20 20 |SWAPLO+ | SIZE |
|00001f50| 46 4c 41 47 53 0a 20 20 | 20 30 20 20 20 20 20 20 |FLAGS. | 0 |
|00001f60| 32 20 20 20 20 31 20 20 | 20 20 20 20 31 20 20 20 |2 1 | 1 |
|00001f70| 20 20 31 20 20 20 20 20 | 20 20 20 30 20 20 20 20 | 1 | 0 |
|00001f80| 20 20 30 20 20 77 72 69 | 74 65 0a 20 20 20 31 20 | 0 wri|te. 1 |
|00001f90| 20 20 20 20 32 30 20 20 | 20 20 32 20 20 20 20 20 | 20 | 2 |
|00001fa0| 20 31 20 20 20 20 20 39 | 20 20 20 20 20 20 20 20 | 1 9| |
|00001fb0| 30 20 20 20 20 20 20 30 | 20 20 77 72 69 74 65 0a |0 0| write.|
|00001fc0| 20 20 20 32 20 20 20 20 | 20 20 35 20 20 20 20 31 | 2 | 5 1|
|00001fd0| 20 20 20 20 20 20 31 20 | 20 20 20 20 34 20 20 20 | 1 | 4 |
|00001fe0| 20 20 20 20 20 30 20 20 | 20 20 20 20 30 20 20 77 | 0 | 0 w|
|00001ff0| 72 69 74 65 0a 20 20 20 | 33 20 20 20 20 20 31 30 |rite. |3 10|
|00002000| 20 20 20 20 31 20 20 20 | 20 20 20 30 20 20 20 20 | 1 | 0 |
|00002010| 20 30 20 20 20 20 20 20 | 20 20 30 20 20 20 20 20 | 0 | 0 |
|00002020| 20 30 20 20 77 72 69 74 | 65 0a 20 20 20 34 20 20 | 0 writ|e. 4 |
|00002030| 20 20 20 32 31 20 20 20 | 20 31 20 20 20 20 20 20 | 21 | 1 |
|00002040| 31 20 20 20 20 31 30 20 | 20 20 20 20 20 20 20 30 |1 10 | 0|
|00002050| 20 20 20 20 20 20 30 20 | 20 77 72 69 74 65 0a 0a | 0 | write..|
|00002060| 50 72 69 6e 74 20 50 65 | 72 20 50 72 6f 63 65 73 |Print Pe|r Proces|
|00002070| 73 20 55 73 65 72 20 50 | 61 67 65 20 49 6e 66 6f |s User P|age Info|
|00002080| 72 6d 61 74 69 6f 6e 0a | 53 79 6e 74 61 78 3a 20 |rmation.|Syntax: |
|00002090| 75 73 65 72 2c 20 75 0a | 0a 50 72 69 6e 74 73 20 |user, u.|.Prints |
|000020a0| 74 68 65 20 75 73 65 72 | 20 70 61 67 65 20 66 6f |the user| page fo|
|000020b0| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 72 |r the cu|rrent pr|
|000020c0| 6f 63 65 73 73 20 6f 72 | 20 61 20 67 72 6f 75 70 |ocess or| a group|
|000020d0| 20 6f 66 20 70 72 6f 63 | 65 73 73 65 73 2e 0a 54 | of proc|esses..T|
|000020e0| 68 65 20 61 72 67 75 6d | 65 6e 74 20 69 73 20 74 |he argum|ent is t|
|000020f0| 68 65 20 70 72 6f 63 65 | 73 73 20 74 61 62 6c 65 |he proce|ss table|
|00002100| 20 73 6c 6f 74 2e 20 20 | 49 66 20 6f 6d 69 74 74 | slot. |If omitt|
|00002110| 65 64 2c 20 74 68 65 20 | 63 75 72 72 65 6e 74 6c |ed, the |currentl|
|00002120| 79 0a 72 75 6e 6e 69 6e | 67 20 70 72 6f 63 65 73 |y.runnin|g proces|
|00002130| 73 2c 20 77 68 69 63 68 | 20 77 69 6c 6c 20 69 6e |s, which| will in|
|00002140| 76 61 72 69 61 62 6c 79 | 20 62 65 20 63 72 61 73 |variably| be cras|
|00002150| 68 2c 20 75 73 65 72 20 | 70 61 67 65 20 77 69 6c |h, user |page wil|
|00002160| 6c 20 62 65 0a 64 69 73 | 70 6c 61 79 65 64 2e 20 |l be.dis|played. |
|00002170| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 6e 63 | Informa|tion inc|
|00002180| 6c 75 64 65 73 20 75 73 | 65 72 20 61 6e 64 20 73 |ludes us|er and s|
|00002190| 79 73 74 65 6d 20 74 69 | 6d 65 73 2c 20 75 73 65 |ystem ti|mes, use|
|000021a0| 72 20 61 6e 64 0a 67 72 | 6f 75 70 20 69 64 73 2c |r and.gr|oup ids,|
|000021b0| 20 66 69 6c 65 20 49 2f | 4f 2c 20 73 79 73 74 65 | file I/|O, syste|
|000021c0| 6d 20 61 63 63 6f 75 6e | 74 69 6e 67 20 61 6e 64 |m accoun|ting and|
|000021d0| 20 6f 70 65 6e 20 66 69 | 6c 65 20 69 6e 66 6f 72 | open fi|le infor|
|000021e0| 6d 61 74 69 6f 6e 2e 0a | 50 72 6f 76 69 64 65 73 |mation..|Provides|
|000021f0| 20 61 20 6c 69 73 74 20 | 6f 66 20 63 75 72 72 65 | a list |of curre|
|00002200| 6e 74 6c 79 20 6f 70 65 | 6e 20 66 69 6c 65 73 20 |ntly ope|n files |
|00002210| 62 79 20 66 69 6c 65 20 | 74 61 62 6c 65 20 65 6e |by file |table en|
|00002220| 74 72 79 20 6e 75 6d 62 | 65 72 2e 0a 0a 45 78 61 |try numb|er...Exa|
|00002230| 6d 70 6c 65 3a 0a 3e 20 | 75 73 65 72 0a 50 45 52 |mple:.> |user.PER|
|00002240| 20 50 52 4f 43 45 53 53 | 20 55 53 45 52 20 41 52 | PROCESS| USER AR|
|00002250| 45 41 3a 0a 55 53 45 52 | 20 49 44 27 73 3a 09 75 |EA:.USER| ID's:.u|
|00002260| 69 64 3a 20 31 30 30 2c | 20 67 69 64 3a 20 30 2c |id: 100,| gid: 0,|
|00002270| 20 72 65 61 6c 20 75 69 | 64 3a 20 31 30 30 2c 20 | real ui|d: 100, |
|00002280| 72 65 61 6c 20 67 69 64 | 3a 20 30 0a 50 52 4f 43 |real gid|: 0.PROC|
|00002290| 45 53 53 20 54 49 4d 45 | 53 3a 09 75 73 65 72 3a |ESS TIME|S:.user:|
|000022a0| 20 31 36 2c 20 73 79 73 | 3a 20 32 32 2c 20 63 68 | 16, sys|: 22, ch|
|000022b0| 69 6c 64 20 75 73 65 72 | 3a 20 30 2c 20 63 68 69 |ild user|: 0, chi|
|000022c0| 6c 64 20 73 79 73 3a 20 | 30 0a 50 52 4f 43 45 53 |ld sys: |0.PROCES|
|000022d0| 53 20 4d 49 53 43 3a 09 | 70 72 6f 63 20 73 6c 6f |S MISC:.|proc slo|
|000022e0| 74 3a 20 31 30 2c 20 63 | 6e 74 72 6c 20 74 74 79 |t: 10, c|ntrl tty|
|000022f0| 3a 20 6d 61 6a 28 30 29 | 20 6d 69 6e 28 30 29 0a |: maj(0)| min(0).|
|00002300| 49 50 43 3a 09 09 6c 6f | 63 6b 73 3a 20 75 6e 6c |IPC:..lo|cks: unl|
|00002310| 6f 63 6b 65 64 0a 46 49 | 4c 45 20 49 2f 4f 3a 09 |ocked.FI|LE I/O:.|
|00002320| 75 73 65 72 20 61 64 64 | 72 3a 20 32 35 37 30 33 |user add|r: 25703|
|00002330| 36 34 30 2c 20 66 69 6c | 65 20 6f 66 66 73 65 74 |640, fil|e offset|
|00002340| 3a 20 31 30 30 36 36 35 | 33 34 34 2c 20 62 79 74 |: 100665|344, byt|
|00002350| 65 73 3a 20 31 38 39 32 | 2c 0a 09 09 73 65 67 6d |es: 1892|,...segm|
|00002360| 65 6e 74 3a 20 75 73 65 | 72 2c 20 75 6d 61 73 6b |ent: use|r, umask|
|00002370| 3a 20 32 32 2c 20 75 6c | 69 6d 69 74 3a 20 32 30 |: 22, ul|imit: 20|
|00002380| 39 37 31 35 32 0a 41 43 | 43 4f 55 4e 54 49 4e 47 |97152.AC|COUNTING|
|00002390| 3a 09 63 6f 6d 6d 61 6e | 64 3a 20 63 72 61 73 68 |:.comman|d: crash|
|000023a0| 2c 20 6d 65 6d 6f 72 79 | 3a 20 31 39 38 37 31 36 |, memory|: 198716|
|000023b0| 37 2c 20 74 79 70 65 3a | 20 65 78 65 63 0a 09 09 |7, type:| exec...|
|000023c0| 73 74 61 72 74 3a 20 54 | 68 75 20 41 75 67 20 31 |start: T|hu Aug 1|
|000023d0| 31 20 31 31 3a 32 38 3a | 31 30 20 31 39 38 38 0a |1 11:28:|10 1988.|
|000023e0| 4f 50 45 4e 20 46 49 4c | 45 53 3a 09 66 69 6c 65 |OPEN FIL|ES:.file|
|000023f0| 20 64 65 73 63 3a 20 20 | 20 20 20 30 20 20 20 31 | desc: | 0 1|
|00002400| 20 20 20 32 20 20 20 33 | 20 20 20 34 20 20 20 35 | 2 3| 4 5|
|00002410| 0a 09 09 66 69 6c 65 20 | 73 6c 6f 74 3a 20 20 20 |...file |slot: |
|00002420| 20 31 31 20 20 31 33 20 | 20 31 33 20 20 31 38 20 | 11 13 | 13 18 |
|00002430| 20 31 39 20 20 32 30 0a | 0a 50 72 69 6e 74 20 54 | 19 20.|.Print T|
|00002440| 75 6e 61 62 6c 65 20 50 | 61 72 61 6d 65 74 65 72 |unable P|arameter|
|00002450| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 0a 53 79 6e | Informa|tion.Syn|
|00002460| 74 61 78 3a 20 76 61 72 | 2c 20 76 0a 0a 44 69 73 |tax: var|, v..Dis|
|00002470| 70 6c 61 79 73 20 74 68 | 65 20 74 75 6e 61 62 6c |plays th|e tunabl|
|00002480| 65 20 70 61 72 61 6d 65 | 74 65 72 20 76 61 6c 75 |e parame|ter valu|
|00002490| 65 73 20 77 68 69 63 68 | 20 77 65 72 65 20 75 73 |es which| were us|
|000024a0| 65 64 20 61 74 20 74 68 | 65 20 74 69 6d 65 0a 6f |ed at th|e time.o|
|000024b0| 66 20 73 79 73 74 65 6d | 20 67 65 6e 65 72 61 74 |f system| generat|
|000024c0| 69 6f 6e 2e 20 20 49 6e | 63 6c 75 64 65 64 20 61 |ion. In|cluded a|
|000024d0| 72 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6f 70 65 |re numbe|r of ope|
|000024e0| 6e 20 66 69 6c 65 73 2c | 20 70 72 6f 63 65 73 73 |n files,| process|
|000024f0| 65 73 0a 70 65 72 20 75 | 73 65 72 2c 20 69 6e 6f |es.per u|ser, ino|
|00002500| 64 65 73 2c 20 6d 6f 75 | 6e 74 73 2c 20 70 75 72 |des, mou|nts, pur|
|00002510| 65 20 74 65 78 74 20 65 | 6e 74 72 69 65 73 20 61 |e text e|ntries a|
|00002520| 6e 64 20 6f 74 68 65 72 | 20 72 65 6c 61 74 65 64 |nd other| related|
|00002530| 0a 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 0a 0a 45 |.informa|tion...E|
|00002540| 78 61 6d 70 6c 65 3a 0a | 3e 20 76 61 72 0a 62 75 |xample:.|> var.bu|
|00002550| 66 66 65 72 73 09 20 20 | 35 31 32 0a 63 61 6c 6c |ffers. |512.call|
|00002560| 73 09 20 20 20 33 30 0a | 69 6e 6f 64 65 73 09 20 |s. 30.|inodes. |
|00002570| 20 31 30 30 0a 65 5f 69 | 6e 6f 64 65 73 20 20 31 | 100.e_i|nodes 1|
|00002580| 30 30 0a 66 69 6c 65 73 | 09 20 20 31 30 30 0a 65 |00.files|. 100.e|
|00002590| 5f 66 69 6c 65 73 09 20 | 20 31 30 30 0a 6d 6f 75 |_files. | 100.mou|
|000025a0| 6e 74 73 09 20 20 20 20 | 38 0a 65 5f 6d 6f 75 6e |nts. |8.e_moun|
|000025b0| 74 73 20 20 20 20 38 0a | 70 72 6f 63 73 09 20 20 |ts 8.|procs. |
|000025c0| 20 36 30 0a 65 5f 70 72 | 6f 63 73 09 20 20 20 31 | 60.e_pr|ocs. 1|
|000025d0| 36 0a 74 65 78 74 73 09 | 20 20 20 34 30 0a 65 5f |6.texts.| 40.e_|
|000025e0| 74 65 78 74 73 09 20 20 | 20 34 30 0a 63 6c 69 73 |texts. | 40.clis|
|000025f0| 74 73 09 20 20 20 36 34 | 0a 73 61 62 75 66 73 09 |ts. 64|.sabufs.|
|00002600| 20 20 20 36 34 0a 6d 61 | 78 70 72 6f 63 09 20 20 | 64.ma|xproc. |
|00002610| 20 33 30 0a 68 61 73 68 | 62 75 66 09 20 20 35 31 | 30.hash|buf. 51|
|00002620| 32 0a 68 61 73 68 6d 61 | 73 6b 20 20 35 31 31 0a |2.hashma|sk 511.|
|00002630| 0a 43 61 76 65 61 74 73 | 20 61 6e 64 20 46 65 61 |.Caveats| and Fea|
|00002640| 74 75 72 65 73 0a 0a 54 | 68 69 73 20 72 65 6c 65 |tures..T|his rele|
|00002650| 61 73 65 20 6f 66 20 63 | 72 61 73 68 20 69 73 20 |ase of c|rash is |
|00002660| 6b 6e 6f 77 6e 20 74 6f | 20 72 75 6e 20 75 6e 64 |known to| run und|
|00002670| 65 72 20 53 43 4f 20 58 | 65 6e 69 78 20 32 2e 32 |er SCO X|enix 2.2|
|00002680| 2e 31 2e 20 20 4e 6f 20 | 6f 74 68 65 72 0a 70 6f |.1. No |other.po|
|00002690| 72 74 73 20 61 72 65 20 | 70 72 65 73 65 6e 74 6c |rts are |presentl|
|000026a0| 79 20 6b 6e 6f 77 6e 20 | 6f 66 2e 20 20 46 6f 72 |y known |of. For|
|000026b0| 20 74 68 65 20 6d 6f 73 | 74 20 70 61 72 74 2c 20 | the mos|t part, |
|000026c0| 70 6f 72 74 69 6e 67 20 | 74 6f 20 61 20 64 69 66 |porting |to a dif|
|000026d0| 66 65 72 65 6e 74 0a 72 | 65 6c 65 61 73 65 20 6f |ferent.r|elease o|
|000026e0| 66 20 58 65 6e 69 78 20 | 73 68 6f 75 6c 64 20 62 |f Xenix |should b|
|000026f0| 65 20 71 75 69 74 65 20 | 70 61 69 6e 6c 65 73 73 |e quite |painless|
|00002700| 2e 20 20 54 68 65 20 70 | 72 69 6e 63 69 70 6c 65 |. The p|rinciple|
|00002710| 20 63 68 61 6e 67 65 73 | 20 61 72 65 0a 6c 69 6b | changes| are.lik|
|00002720| 65 6c 79 20 74 6f 20 62 | 65 20 69 6e 20 74 68 65 |ely to b|e in the|
|00002730| 20 75 73 65 72 20 61 72 | 65 61 20 61 6e 64 20 70 | user ar|ea and p|
|00002740| 72 6f 63 65 73 73 20 74 | 61 62 6c 65 20 65 6e 74 |rocess t|able ent|
|00002750| 72 69 65 73 2e 0a 0a 4e | 6f 6e 65 20 6f 66 20 74 |ries...N|one of t|
|00002760| 68 65 20 6f 70 74 69 6f | 6e 73 20 61 72 65 20 70 |he optio|ns are p|
|00002770| 72 65 73 65 6e 74 6c 79 | 20 69 6d 70 6c 65 6d 65 |resently| impleme|
|00002780| 6e 74 65 64 2e 20 20 43 | 6f 6d 6d 61 6e 64 73 20 |nted. C|ommands |
|00002790| 77 68 69 63 68 20 68 61 | 76 65 20 62 65 65 6e 0a |which ha|ve been.|
|000027a0| 69 6d 70 6c 65 6d 65 6e | 74 65 64 20 68 61 76 65 |implemen|ted have|
|000027b0| 20 6f 6e 6c 79 20 6f 6e | 65 20 66 6f 72 6d 61 74 | only on|e format|
|000027c0| 2e 0a 0a 41 6c 6c 20 6f | 66 20 74 68 65 20 63 6f |...All o|f the co|
|000027d0| 6d 6d 61 6e 64 73 20 61 | 72 65 20 61 76 61 69 6c |mmands a|re avail|
|000027e0| 61 62 6c 65 20 61 73 20 | 63 6f 6d 6d 61 6e 64 20 |able as |command |
|000027f0| 6c 69 6e 65 20 6f 70 74 | 69 6f 6e 73 2e 20 20 55 |line opt|ions. U|
|00002800| 73 65 20 74 68 65 20 6f | 6e 65 0a 6c 65 74 74 65 |se the o|ne.lette|
|00002810| 72 20 63 6f 6d 6d 61 6e | 64 20 61 6c 69 61 73 20 |r comman|d alias |
|00002820| 61 73 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 6c |as the c|ommand l|
|00002830| 69 6e 65 20 6f 70 74 69 | 6f 6e 2e 20 20 54 68 65 |ine opti|on. The|
|00002840| 20 6f 75 74 70 75 74 20 | 64 65 66 61 75 6c 74 73 | output |defaults|
|00002850| 0a 74 6f 20 77 68 61 74 | 20 69 74 20 77 6f 75 6c |.to what| it woul|
|00002860| 64 20 62 65 20 69 66 20 | 74 68 61 74 20 6f 6e 65 |d be if |that one|
|00002870| 20 6c 65 74 74 65 72 20 | 61 6c 69 61 73 20 77 65 | letter |alias we|
|00002880| 72 65 20 69 73 73 75 65 | 64 20 74 6f 20 63 72 61 |re issue|d to cra|
|00002890| 73 68 20 61 73 20 61 0a | 63 6f 6d 6d 61 6e 64 2e |sh as a.|command.|
|000028a0| 20 20 4d 75 6c 74 69 70 | 6c 65 20 66 6c 61 67 73 | Multip|le flags|
|000028b0| 20 6d 61 79 20 62 65 20 | 67 69 76 65 6e 2e 20 20 | may be |given. |
|000028c0| 57 68 65 6e 20 69 6e 20 | 64 6f 75 62 74 2c 20 72 |When in |doubt, r|
|000028d0| 65 61 64 20 74 68 65 20 | 73 6f 75 72 63 65 2e 0a |ead the |source..|
|000028e0| 20 68 65 6c 70 2c 20 68 | 2c 20 3f 0a 0a 50 72 69 | help, h|, ?..Pri|
|000028f0| 6e 74 73 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 |nts the |list of |
|00002900| 63 75 72 72 65 6e 74 6c | 79 20 61 76 61 69 6c 61 |currentl|y availa|
|00002910| 62 6c 65 20 63 6f 6d 6d | 61 6e 64 73 20 61 6e 64 |ble comm|ands and|
|00002920| 20 74 68 65 20 61 6c 69 | 61 73 65 73 0a 66 6f 72 | the ali|ases.for|
|00002930| 20 74 68 65 6d 2e 0a 0a | 45 78 61 6d 70 6c 65 3a | them...|Example:|
|00002940| 0a 3e 20 68 65 6c 70 0a | 63 6f 6d 6d 61 6e 64 20 |.> help.|command |
|00002950| 73 75 6d 6d 61 72 79 0a | 0a 62 75 66 20 28 62 29 |summary.|.buf (b)|
|00002960| 20 20 20 20 20 20 20 20 | 2d 20 62 75 66 66 65 72 | |- buffer|
|00002970| 20 68 65 61 64 65 72 73 | 0a 66 69 6c 65 20 28 66 | headers|.file (f|
|00002980| 29 20 20 20 20 20 20 20 | 2d 20 6f 70 65 6e 20 66 |) |- open f|
|00002990| 69 6c 65 73 0a 68 65 6c | 70 20 28 68 2c 3f 29 20 |iles.hel|p (h,?) |
|000029a0| 20 20 20 20 2d 20 6c 69 | 73 74 20 63 6f 6d 6d 61 | - li|st comma|
|000029b0| 6e 64 73 0a 69 6e 6f 64 | 65 20 28 69 6e 6f 2c 69 |nds.inod|e (ino,i|
|000029c0| 29 20 20 2d 20 61 63 74 | 69 76 65 20 69 6e 6f 64 |) - act|ive inod|
|000029d0| 65 73 0a 6d 6f 75 6e 74 | 20 28 6d 29 20 20 20 20 |es.mount| (m) |
|000029e0| 20 20 2d 20 6d 6f 75 6e | 74 65 64 20 66 69 6c 65 | - moun|ted file|
|000029f0| 20 73 79 73 74 65 6d 73 | 0a 70 72 6f 63 20 28 70 | systems|.proc (p|
|00002a00| 73 63 6f 2d 63 72 61 73 | 68 2f 4d 61 6b 65 66 69 |sco-cras|h/Makefi|
|00002a10| 6c 65 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |le......|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002a70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002a80| 20 20 20 31 35 35 32 20 | 20 34 34 30 34 30 35 36 | 1552 | 4404056|
|00002a90| 37 37 33 20 20 20 37 34 | 33 37 00 20 00 00 00 00 |773 74|37. ....|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 23 20 59 6f 75 72 20 66 | 61 76 6f 72 69 74 65 20 |# Your f|avorite |
|00002c10| 42 6f 75 72 6e 65 20 53 | 68 65 6c 6c 20 61 6e 64 |Bourne S|hell and|
|00002c20| 20 4d 69 6e 65 20 2e 2e | 2e 0a 53 48 45 4c 4c 3d | Mine ..|..SHELL=|
|00002c30| 2f 62 69 6e 2f 73 68 0a | 23 20 41 20 6c 69 73 74 |/bin/sh.|# A list|
|00002c40| 20 6f 66 20 61 6c 6c 20 | 6f 62 6a 65 63 74 20 66 | of all |object f|
|00002c50| 69 6c 65 73 20 77 68 69 | 63 68 20 6e 65 65 64 20 |iles whi|ch need |
|00002c60| 74 6f 20 62 65 20 6d 61 | 64 65 0a 4f 42 4a 53 20 |to be ma|de.OBJS |
|00002c70| 3d 09 63 72 61 73 68 2e | 6f 20 69 6e 74 65 72 61 |=.crash.|o intera|
|00002c80| 63 74 2e 6f 20 66 69 6c | 65 73 2e 6f 20 69 6e 6f |ct.o fil|es.o ino|
|00002c90| 64 65 73 2e 6f 20 6d 6f | 75 6e 74 73 2e 6f 20 70 |des.o mo|unts.o p|
|00002ca0| 72 6f 63 73 2e 6f 20 74 | 65 78 74 73 2e 6f 20 5c |rocs.o t|exts.o \|
|00002cb0| 0a 09 75 73 65 72 2e 6f | 20 76 61 72 73 2e 6f 20 |..user.o| vars.o |
|00002cc0| 73 74 61 74 73 2e 6f 20 | 62 75 66 73 2e 6f 0a 23 |stats.o |bufs.o.#|
|00002cd0| 20 41 20 6c 69 73 74 20 | 6f 66 20 43 20 66 69 6c | A list |of C fil|
|00002ce0| 65 73 20 61 6e 64 20 73 | 75 63 68 20 66 6f 72 20 |es and s|uch for |
|00002cf0| 73 68 61 72 63 68 69 76 | 69 6e 67 0a 46 49 4c 45 |sharchiv|ing.FILE|
|00002d00| 53 20 3d 09 52 45 41 44 | 4d 45 20 4d 61 6b 65 66 |S =.READ|ME Makef|
|00002d10| 69 6c 65 20 5c 0a 09 63 | 72 61 73 68 2e 63 20 69 |ile \..c|rash.c i|
|00002d20| 6e 74 65 72 61 63 74 2e | 63 20 66 69 6c 65 73 2e |nteract.|c files.|
|00002d30| 63 20 69 6e 6f 64 65 73 | 2e 63 20 6d 6f 75 6e 74 |c inodes|.c mount|
|00002d40| 73 2e 63 20 70 72 6f 63 | 73 2e 63 20 74 65 78 74 |s.c proc|s.c text|
|00002d50| 73 2e 63 20 5c 0a 09 75 | 73 65 72 2e 63 20 76 61 |s.c \..u|ser.c va|
|00002d60| 72 73 2e 63 20 73 74 61 | 74 73 2e 63 20 62 75 66 |rs.c sta|ts.c buf|
|00002d70| 73 2e 63 20 63 72 61 73 | 68 2e 68 0a 23 20 43 20 |s.c cras|h.h.# C |
|00002d80| 66 6c 61 67 73 2c 20 73 | 75 69 74 61 62 6c 65 20 |flags, s|uitable |
|00002d90| 66 6f 72 20 64 65 62 75 | 67 67 69 6e 67 20 6f 72 |for debu|gging or|
|00002da0| 20 70 72 6f 64 75 63 74 | 69 6f 6e 2e 0a 43 46 4c | product|ion..CFL|
|00002db0| 41 47 53 20 3d 20 2d 63 | 20 2d 4f 78 20 2d 67 0a |AGS = -c| -Ox -g.|
|00002dc0| 0a 63 72 61 73 68 3a 09 | 24 28 4f 42 4a 53 29 0a |.crash:.|$(OBJS).|
|00002dd0| 09 63 63 20 2d 6f 20 63 | 72 61 73 68 20 2d 67 20 |.cc -o c|rash -g |
|00002de0| 24 28 4f 42 4a 53 29 0a | 0a 63 6c 65 61 6e 3a 0a |$(OBJS).|.clean:.|
|00002df0| 09 72 6d 20 2d 66 20 2a | 2e 6f 20 61 2e 6f 75 74 |.rm -f *|.o a.out|
|00002e00| 0a 0a 63 6c 6f 62 62 65 | 72 3a 09 63 6c 65 61 6e |..clobbe|r:.clean|
|00002e10| 0a 09 72 6d 20 2d 66 20 | 63 72 61 73 68 20 63 6f |..rm -f |crash co|
|00002e20| 72 65 0a 0a 73 68 61 72 | 3a 09 24 28 46 49 4c 45 |re..shar|:.$(FILE|
|00002e30| 53 29 0a 09 73 68 61 72 | 20 24 28 46 49 4c 45 53 |S)..shar| $(FILES|
|00002e40| 29 20 3e 20 63 72 61 73 | 68 2e 73 68 61 72 0a 0a |) > cras|h.shar..|
|00002e50| 63 72 61 73 68 2e 6f 3a | 09 63 72 61 73 68 2e 68 |crash.o:|.crash.h|
|00002e60| 20 63 72 61 73 68 2e 63 | 0a 0a 69 6e 74 65 72 61 | crash.c|..intera|
|00002e70| 63 74 2e 6f 3a 09 69 6e | 74 65 72 61 63 74 2e 63 |ct.o:.in|teract.c|
|00002e80| 0a 0a 66 69 6c 65 73 2e | 6f 3a 09 63 72 61 73 68 |..files.|o:.crash|
|00002e90| 2e 68 20 66 69 6c 65 73 | 2e 63 0a 0a 69 6e 6f 64 |.h files|.c..inod|
|00002ea0| 65 73 2e 6f 3a 09 63 72 | 61 73 68 2e 68 20 69 6e |es.o:.cr|ash.h in|
|00002eb0| 6f 64 65 73 2e 63 0a 0a | 6d 6f 75 6e 74 73 2e 6f |odes.c..|mounts.o|
|00002ec0| 3a 09 63 72 61 73 68 2e | 68 20 6d 6f 75 6e 74 73 |:.crash.|h mounts|
|00002ed0| 2e 63 0a 0a 70 72 6f 63 | 73 2e 6f 3a 09 63 72 61 |.c..proc|s.o:.cra|
|00002ee0| 73 68 2e 68 20 70 72 6f | 63 73 2e 63 0a 0a 73 74 |sh.h pro|cs.c..st|
|00002ef0| 61 74 73 2e 6f 3a 09 63 | 72 61 73 68 2e 68 20 73 |ats.o:.c|rash.h s|
|00002f00| 74 61 74 73 2e 63 0a 0a | 74 65 78 74 73 2e 6f 3a |tats.c..|texts.o:|
|00002f10| 09 63 72 61 73 68 2e 68 | 20 74 65 78 74 73 2e 63 |.crash.h| texts.c|
|00002f20| 0a 0a 75 73 65 72 2e 6f | 3a 09 63 72 61 73 68 2e |..user.o|:.crash.|
|00002f30| 68 20 75 73 65 72 2e 63 | 0a 0a 76 61 72 73 2e 6f |h user.c|..vars.o|
|00002f40| 3a 09 63 72 61 73 68 2e | 68 20 76 61 72 73 2e 63 |:.crash.|h vars.c|
|00002f50| 0a 0a 62 75 66 73 2e 6f | 3a 09 63 72 61 73 68 2e |..bufs.o|:.crash.|
|00002f60| 68 20 62 75 66 73 2e 63 | 0a 0a 20 75 6d 61 73 6b |h bufs.c|.. umask|
|00002f70| 3a 20 32 32 2c 20 75 6c | 69 6d 69 74 3a 20 32 30 |: 22, ul|imit: 20|
|00002f80| 39 37 31 35 32 0a 41 43 | 43 4f 55 4e 54 49 4e 47 |97152.AC|COUNTING|
|00002f90| 3a 09 63 6f 6d 6d 61 6e | 64 3a 20 63 72 61 73 68 |:.comman|d: crash|
|00002fa0| 2c 20 6d 65 6d 6f 72 79 | 3a 20 31 39 38 37 31 36 |, memory|: 198716|
|00002fb0| 37 2c 20 74 79 70 65 3a | 20 65 78 65 63 0a 09 09 |7, type:| exec...|
|00002fc0| 73 74 61 72 74 3a 20 54 | 68 75 20 41 75 67 20 31 |start: T|hu Aug 1|
|00002fd0| 31 20 31 31 3a 32 38 3a | 31 30 20 31 39 38 38 0a |1 11:28:|10 1988.|
|00002fe0| 4f 50 45 4e 20 46 49 4c | 45 53 3a 09 66 69 6c 65 |OPEN FIL|ES:.file|
|00002ff0| 20 64 65 73 63 3a 20 20 | 20 20 20 30 20 20 20 31 | desc: | 0 1|
|00003000| 73 63 6f 2d 63 72 61 73 | 68 2f 63 72 61 73 68 2e |sco-cras|h/crash.|
|00003010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003080| 20 20 20 36 37 32 33 20 | 20 34 34 30 34 30 35 36 | 6723 | 4404056|
|00003090| 37 37 35 20 20 20 37 32 | 35 32 00 20 00 00 00 00 |775 72|52. ....|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 70 61 |#include| <sys/pa|
|00003210| 72 61 6d 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ram.h>.#|include |
|00003220| 3c 73 79 73 2f 73 79 73 | 6d 61 63 72 6f 73 2e 68 |<sys/sys|macros.h|
|00003230| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00003240| 74 79 70 65 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |types.h>|.#includ|
|00003250| 65 20 3c 73 79 73 2f 70 | 61 67 65 2e 68 3e 0a 23 |e <sys/p|age.h>.#|
|00003260| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 73 65 67 |include |<sys/seg|
|00003270| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |.h>.#inc|lude <sy|
|00003280| 73 2f 70 72 6f 63 2e 68 | 3e 0a 23 69 6e 63 6c 75 |s/proc.h|>.#inclu|
|00003290| 64 65 20 3c 73 79 73 2f | 73 69 67 6e 61 6c 2e 68 |de <sys/|signal.h|
|000032a0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|000032b0| 64 69 72 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |dir.h>.#|include |
|000032c0| 3c 73 79 73 2f 75 73 65 | 72 2e 68 3e 0a 23 69 6e |<sys/use|r.h>.#in|
|000032d0| 63 6c 75 64 65 20 3c 73 | 79 73 2f 76 61 72 2e 68 |clude <s|ys/var.h|
|000032e0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|000032f0| 75 74 73 6e 61 6d 65 2e | 68 3e 0a 23 69 6e 63 6c |utsname.|h>.#incl|
|00003300| 75 64 65 20 3c 66 63 6e | 74 6c 2e 68 3e 0a 23 69 |ude <fcn|tl.h>.#i|
|00003310| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|00003320| 0a 23 69 6e 63 6c 75 64 | 65 20 22 63 72 61 73 68 |.#includ|e "crash|
|00003330| 2e 68 22 0a 0a 69 6e 74 | 09 6d 65 6d 66 64 3b 0a |.h"..int|.memfd;.|
|00003340| 69 6e 74 09 6b 6d 65 6d | 66 64 3b 0a 69 6e 74 09 |int.kmem|fd;.int.|
|00003350| 73 77 61 70 66 64 3b 0a | 0a 69 6e 74 09 62 66 6c |swapfd;.|.int.bfl|
|00003360| 61 67 3b 0a 69 6e 74 09 | 66 66 6c 61 67 3b 0a 69 |ag;.int.|fflag;.i|
|00003370| 6e 74 09 69 66 6c 61 67 | 3b 0a 69 6e 74 09 6d 66 |nt.iflag|;.int.mf|
|00003380| 6c 61 67 3b 0a 69 6e 74 | 09 70 66 6c 61 67 3b 0a |lag;.int|.pflag;.|
|00003390| 69 6e 74 09 73 66 6c 61 | 67 3b 0a 69 6e 74 09 74 |int.sfla|g;.int.t|
|000033a0| 66 6c 61 67 3b 0a 69 6e | 74 09 75 66 6c 61 67 3b |flag;.in|t.uflag;|
|000033b0| 0a 69 6e 74 09 76 66 6c | 61 67 3b 0a 0a 69 6e 74 |.int.vfl|ag;..int|
|000033c0| 09 61 6e 79 66 6c 61 67 | 3b 0a 0a 73 74 72 75 63 |.anyflag|;..struc|
|000033d0| 74 09 76 61 72 09 76 3b | 0a 73 74 72 75 63 74 09 |t.var.v;|.struct.|
|000033e0| 66 69 6c 65 09 2a 66 69 | 6c 65 73 3b 0a 73 74 72 |file.*fi|les;.str|
|000033f0| 75 63 74 09 69 6e 6f 64 | 65 09 2a 69 6e 6f 64 65 |uct.inod|e.*inode|
|00003400| 73 3b 0a 73 74 72 75 63 | 74 09 74 65 78 74 09 2a |s;.struc|t.text.*|
|00003410| 74 65 78 74 73 3b 0a 73 | 74 72 75 63 74 09 70 72 |texts;.s|truct.pr|
|00003420| 6f 63 09 2a 70 72 6f 63 | 73 3b 0a 73 74 72 75 63 |oc.*proc|s;.struc|
|00003430| 74 09 6d 6f 75 6e 74 09 | 2a 6d 6f 75 6e 74 73 3b |t.mount.|*mounts;|
|00003440| 0a 73 74 72 75 63 74 09 | 62 75 66 09 2a 62 75 66 |.struct.|buf.*buf|
|00003450| 73 3b 0a 73 74 72 75 63 | 74 09 62 75 66 09 2a 62 |s;.struc|t.buf.*b|
|00003460| 75 66 73 74 61 72 74 3b | 0a 73 74 72 75 63 74 09 |ufstart;|.struct.|
|00003470| 75 73 65 72 09 75 73 65 | 72 3b 0a 64 61 64 64 72 |user.use|r;.daddr|
|00003480| 5f 74 09 73 77 70 6c 6f | 3b 0a 73 74 72 75 63 74 |_t.swplo|;.struct|
|00003490| 09 75 74 73 6e 61 6d 65 | 09 75 74 73 6e 61 6d 65 |.utsname|.utsname|
|000034a0| 3b 0a 74 69 6d 65 5f 74 | 09 6b 74 69 6d 65 3b 0a |;.time_t|.ktime;.|
|000034b0| 74 69 6d 65 5f 74 09 6b | 6c 62 6f 6c 74 3b 0a 0a |time_t.k|lbolt;..|
|000034c0| 73 74 72 75 63 74 09 78 | 6c 69 73 74 09 6e 61 6d |struct.x|list.nam|
|000034d0| 65 6c 69 73 74 5b 5d 20 | 3d 20 7b 0a 09 7b 20 30 |elist[] |= {..{ 0|
|000034e0| 2c 20 30 2c 20 30 2c 20 | 22 5f 76 22 20 7d 2c 0a |, 0, 0, |"_v" },.|
|000034f0| 09 7b 20 30 2c 20 30 2c | 20 30 2c 20 22 5f 66 69 |.{ 0, 0,| 0, "_fi|
|00003500| 6c 65 22 20 7d 2c 0a 09 | 7b 20 30 2c 20 30 2c 20 |le" },..|{ 0, 0, |
|00003510| 30 2c 20 22 5f 69 6e 6f | 64 65 22 20 7d 2c 0a 09 |0, "_ino|de" },..|
|00003520| 7b 20 30 2c 20 30 2c 20 | 30 2c 20 22 5f 70 72 6f |{ 0, 0, |0, "_pro|
|00003530| 63 22 20 7d 2c 0a 09 7b | 20 30 2c 20 30 2c 20 30 |c" },..{| 0, 0, 0|
|00003540| 2c 20 22 5f 74 65 78 74 | 22 20 7d 2c 0a 09 7b 20 |, "_text|" },..{ |
|00003550| 30 2c 20 30 2c 20 30 2c | 20 22 5f 6d 6f 75 6e 74 |0, 0, 0,| "_mount|
|00003560| 22 20 7d 2c 0a 09 7b 20 | 30 2c 20 30 2c 20 30 2c |" },..{ |0, 0, 0,|
|00003570| 20 22 5f 62 75 66 73 74 | 72 74 22 20 7d 2c 0a 09 | "_bufst|rt" },..|
|00003580| 7b 20 30 2c 20 30 2c 20 | 30 2c 20 22 5f 73 77 70 |{ 0, 0, |0, "_swp|
|00003590| 6c 6f 22 20 7d 2c 0a 09 | 7b 20 30 2c 20 30 2c 20 |lo" },..|{ 0, 0, |
|000035a0| 30 2c 20 22 5f 74 69 6d | 65 22 20 7d 2c 0a 09 7b |0, "_tim|e" },..{|
|000035b0| 20 30 2c 20 30 2c 20 30 | 2c 20 22 5f 6c 62 6f 6c | 0, 0, 0|, "_lbol|
|000035c0| 74 22 20 7d 2c 0a 09 7b | 20 30 2c 20 30 2c 20 30 |t" },..{| 0, 0, 0|
|000035d0| 2c 20 22 5f 75 74 73 6e | 61 6d 65 22 20 7d 2c 0a |, "_utsn|ame" },.|
|000035e0| 09 7b 20 30 2c 20 30 2c | 20 30 2c 20 22 5f 75 22 |.{ 0, 0,| 0, "_u"|
|000035f0| 20 7d 2c 0a 09 7b 20 30 | 2c 20 30 2c 20 30 2c 20 | },..{ 0|, 0, 0, |
|00003600| 28 63 68 61 72 20 2a 29 | 20 30 20 7d 0a 7d 3b 0a |(char *)| 0 }.};.|
|00003610| 0a 75 73 61 67 65 20 28 | 29 0a 7b 0a 09 66 70 72 |.usage (|).{..fpr|
|00003620| 69 6e 74 66 20 28 73 74 | 64 65 72 72 2c 20 22 75 |intf (st|derr, "u|
|00003630| 73 61 67 65 3a 20 63 72 | 61 73 68 20 2d 62 66 69 |sage: cr|ash -bfi|
|00003640| 6d 70 73 74 76 20 5b 20 | 2d 4e 20 6e 61 6d 65 6c |mpstv [ |-N namel|
|00003650| 69 73 74 20 5d 20 22 29 | 3b 0a 09 66 70 72 69 6e |ist ] ")|;..fprin|
|00003660| 74 66 20 28 73 74 64 65 | 72 72 2c 20 22 5b 20 2d |tf (stde|rr, "[ -|
|00003670| 43 20 63 6f 72 65 66 69 | 6c 65 20 5d 20 5b 20 2d |C corefi|le ] [ -|
|00003680| 53 20 73 77 61 70 66 69 | 6c 65 20 5d 5c 6e 22 29 |S swapfi|le ]\n")|
|00003690| 3b 0a 09 65 78 69 74 20 | 28 31 29 3b 0a 7d 0a 0a |;..exit |(1);.}..|
|000036a0| 72 5f 72 65 61 64 20 28 | 66 64 2c 20 62 75 66 2c |r_read (|fd, buf,|
|000036b0| 20 6e 29 0a 69 6e 74 09 | 66 64 3b 0a 63 68 61 72 | n).int.|fd;.char|
|000036c0| 09 2a 62 75 66 3b 0a 69 | 6e 74 09 6e 3b 0a 7b 0a |.*buf;.i|nt.n;.{.|
|000036d0| 09 69 6e 74 09 69 3b 0a | 0a 09 69 66 20 28 28 69 |.int.i;.|..if ((i|
|000036e0| 20 3d 20 72 65 61 64 20 | 28 66 64 2c 20 62 75 66 | = read |(fd, buf|
|000036f0| 2c 20 6e 29 29 20 3d 3d | 20 2d 31 29 20 7b 0a 09 |, n)) ==| -1) {..|
|00003700| 09 70 65 72 72 6f 72 20 | 28 22 65 72 72 6f 72 20 |.perror |("error |
|00003710| 6f 6e 20 72 65 61 64 22 | 29 3b 0a 09 09 72 65 74 |on read"|);...ret|
|00003720| 75 72 6e 20 28 2d 31 29 | 3b 0a 09 7d 20 65 6c 73 |urn (-1)|;..} els|
|00003730| 65 0a 09 09 72 65 74 75 | 72 6e 20 28 69 29 3b 0a |e...retu|rn (i);.|
|00003740| 7d 0a 0a 6c 6f 6e 67 09 | 6c 5f 6c 73 65 65 6b 20 |}..long.|l_lseek |
|00003750| 28 66 64 2c 20 6f 66 66 | 73 2c 20 77 68 65 6e 63 |(fd, off|s, whenc|
|00003760| 65 29 0a 69 6e 74 09 66 | 64 3b 0a 6c 6f 6e 67 09 |e).int.f|d;.long.|
|00003770| 6f 66 66 73 3b 0a 69 6e | 74 09 77 68 65 6e 63 65 |offs;.in|t.whence|
|00003780| 3b 0a 7b 0a 09 6c 6f 6e | 67 09 69 3b 0a 09 6c 6f |;.{..lon|g.i;..lo|
|00003790| 6e 67 09 6c 73 65 65 6b | 20 28 29 3b 0a 0a 09 69 |ng.lseek| ();...i|
|000037a0| 66 20 28 28 69 20 3d 20 | 6c 73 65 65 6b 20 28 66 |f ((i = |lseek (f|
|000037b0| 64 2c 20 6f 66 66 73 2c | 20 77 68 65 6e 63 65 29 |d, offs,| whence)|
|000037c0| 29 20 3d 3d 20 2d 31 4c | 29 20 7b 0a 09 09 70 65 |) == -1L|) {...pe|
|000037d0| 72 72 6f 72 20 28 22 65 | 72 72 6f 72 20 6f 6e 20 |rror ("e|rror on |
|000037e0| 6c 73 65 65 6b 22 29 3b | 0a 09 09 72 65 74 75 72 |lseek");|...retur|
|000037f0| 6e 20 28 2d 31 29 3b 0a | 09 7d 20 65 6c 73 65 0a |n (-1);.|.} else.|
|00003800| 09 09 72 65 74 75 72 6e | 20 28 69 29 3b 0a 7d 0a |..return| (i);.}.|
|00003810| 0a 6d 61 69 6e 20 28 61 | 72 67 63 2c 20 61 72 67 |.main (a|rgc, arg|
|00003820| 76 29 0a 69 6e 74 09 61 | 72 67 63 3b 0a 63 68 61 |v).int.a|rgc;.cha|
|00003830| 72 09 2a 2a 61 72 67 76 | 3b 0a 7b 0a 09 63 68 61 |r.**argv|;.{..cha|
|00003840| 72 09 6e 65 77 6e 61 6d | 65 5b 31 30 5d 3b 0a 09 |r.newnam|e[10];..|
|00003850| 63 68 61 72 09 2a 6e 61 | 6d 65 66 69 6c 65 20 3d |char.*na|mefile =|
|00003860| 20 22 2f 78 65 6e 69 78 | 22 3b 0a 09 63 68 61 72 | "/xenix|";..char|
|00003870| 09 2a 63 6f 72 65 66 69 | 6c 65 20 3d 20 22 2f 64 |.*corefi|le = "/d|
|00003880| 65 76 2f 6d 65 6d 22 3b | 0a 09 63 68 61 72 09 2a |ev/mem";|..char.*|
|00003890| 6b 6d 65 6d 66 69 6c 65 | 20 3d 20 22 2f 64 65 76 |kmemfile| = "/dev|
|000038a0| 2f 6b 6d 65 6d 22 3b 0a | 09 63 68 61 72 09 2a 73 |/kmem";.|.char.*s|
|000038b0| 77 61 70 66 69 6c 65 20 | 3d 20 22 2f 64 65 76 2f |wapfile |= "/dev/|
|000038c0| 73 77 61 70 22 3b 0a 09 | 69 6e 74 09 63 3b 0a 09 |swap";..|int.c;..|
|000038d0| 65 78 74 65 72 6e 09 69 | 6e 74 09 6f 70 74 69 6e |extern.i|nt.optin|
|000038e0| 64 3b 0a 09 65 78 74 65 | 72 6e 09 63 68 61 72 09 |d;..exte|rn.char.|
|000038f0| 2a 6f 70 74 61 72 67 3b | 0a 0a 09 73 65 74 62 75 |*optarg;|...setbu|
|00003900| 66 20 28 73 74 64 6f 75 | 74 2c 20 4e 55 4c 4c 29 |f (stdou|t, NULL)|
|00003910| 3b 0a 09 73 65 74 62 75 | 66 20 28 73 74 64 65 72 |;..setbu|f (stder|
|00003920| 72 2c 20 4e 55 4c 4c 29 | 3b 0a 0a 09 77 68 69 6c |r, NULL)|;...whil|
|00003930| 65 20 28 28 63 20 3d 20 | 67 65 74 6f 70 74 20 28 |e ((c = |getopt (|
|00003940| 61 72 67 63 2c 20 61 72 | 67 76 2c 20 22 62 66 69 |argc, ar|gv, "bfi|
|00003950| 6d 70 73 74 75 76 4e 3a | 43 3a 53 3a 22 29 29 20 |mpstuvN:|C:S:")) |
|00003960| 21 3d 20 45 4f 46 29 20 | 7b 0a 09 09 73 77 69 74 |!= EOF) |{...swit|
|00003970| 63 68 20 28 63 29 20 7b | 0a 09 09 09 63 61 73 65 |ch (c) {|....case|
|00003980| 20 27 62 27 3a 0a 09 09 | 09 09 62 66 6c 61 67 2b | 'b':...|..bflag+|
|00003990| 2b 3b 0a 09 09 09 09 61 | 6e 79 66 6c 61 67 2b 2b |+;.....a|nyflag++|
|000039a0| 3b 0a 09 09 09 09 62 72 | 65 61 6b 3b 0a 09 09 09 |;.....br|eak;....|
|000039b0| 63 61 73 65 20 27 43 27 | 3a 0a 09 09 09 09 63 6f |case 'C'|:.....co|
|000039c0| 72 65 66 69 6c 65 20 3d | 20 6f 70 74 61 72 67 3b |refile =| optarg;|
|000039d0| 0a 09 09 09 09 6b 6d 65 | 6d 66 69 6c 65 20 3d 20 |.....kme|mfile = |
|000039e0| 6f 70 74 61 72 67 3b 0a | 09 09 09 09 62 72 65 61 |optarg;.|....brea|
|000039f0| 6b 3b 0a 09 09 09 63 61 | 73 65 20 27 66 27 3a 0a |k;....ca|se 'f':.|
|00003a00| 09 09 09 09 66 66 6c 61 | 67 2b 2b 3b 0a 09 09 09 |....ffla|g++;....|
|00003a10| 09 61 6e 79 66 6c 61 67 | 2b 2b 3b 0a 09 09 09 09 |.anyflag|++;.....|
|00003a20| 62 72 65 61 6b 3b 0a 09 | 09 09 63 61 73 65 20 27 |break;..|..case '|
|00003a30| 69 27 3a 0a 09 09 09 09 | 69 66 6c 61 67 2b 2b 3b |i':.....|iflag++;|
|00003a40| 0a 09 09 09 09 61 6e 79 | 66 6c 61 67 2b 2b 3b 0a |.....any|flag++;.|
|00003a50| 09 09 09 09 62 72 65 61 | 6b 3b 0a 09 09 09 63 61 |....brea|k;....ca|
|00003a60| 73 65 20 27 6d 27 3a 0a | 09 09 09 09 6d 66 6c 61 |se 'm':.|....mfla|
|00003a70| 67 2b 2b 3b 0a 09 09 09 | 09 61 6e 79 66 6c 61 67 |g++;....|.anyflag|
|00003a80| 2b 2b 3b 0a 09 09 09 09 | 62 72 65 61 6b 3b 0a 09 |++;.....|break;..|
|00003a90| 09 09 63 61 73 65 20 27 | 4e 27 3a 0a 09 09 09 09 |..case '|N':.....|
|00003aa0| 6e 61 6d 65 66 69 6c 65 | 20 3d 20 6f 70 74 61 72 |namefile| = optar|
|00003ab0| 67 3b 0a 09 09 09 09 62 | 72 65 61 6b 3b 0a 09 09 |g;.....b|reak;...|
|00003ac0| 09 63 61 73 65 20 27 70 | 27 3a 0a 09 09 09 09 70 |.case 'p|':.....p|
|00003ad0| 66 6c 61 67 2b 2b 3b 0a | 09 09 09 09 61 6e 79 66 |flag++;.|....anyf|
|00003ae0| 6c 61 67 2b 2b 3b 0a 09 | 09 09 09 62 72 65 61 6b |lag++;..|...break|
|00003af0| 3b 0a 09 09 09 63 61 73 | 65 20 27 73 27 3a 0a 09 |;....cas|e 's':..|
|00003b00| 09 09 09 73 66 6c 61 67 | 2b 2b 3b 0a 09 09 09 09 |...sflag|++;.....|
|00003b10| 61 6e 79 66 6c 61 67 2b | 2b 3b 0a 09 09 09 09 62 |anyflag+|+;.....b|
|00003b20| 72 65 61 6b 3b 0a 09 09 | 09 63 61 73 65 20 27 53 |reak;...|.case 'S|
|00003b30| 27 3a 0a 09 09 09 09 73 | 77 61 70 66 69 6c 65 20 |':.....s|wapfile |
|00003b40| 3d 20 6f 70 74 61 72 67 | 3b 0a 09 09 09 09 62 72 |= optarg|;.....br|
|00003b50| 65 61 6b 3b 0a 09 09 09 | 63 61 73 65 20 27 74 27 |eak;....|case 't'|
|00003b60| 3a 0a 09 09 09 09 74 66 | 6c 61 67 2b 2b 3b 0a 09 |:.....tf|lag++;..|
|00003b70| 09 09 09 61 6e 79 66 6c | 61 67 2b 2b 3b 0a 09 09 |...anyfl|ag++;...|
|00003b80| 09 09 62 72 65 61 6b 3b | 0a 09 09 09 63 61 73 65 |..break;|....case|
|00003b90| 20 27 75 27 3a 0a 09 09 | 09 09 75 66 6c 61 67 2b | 'u':...|..uflag+|
|00003ba0| 2b 3b 0a 09 09 09 09 61 | 6e 79 66 6c 61 67 2b 2b |+;.....a|nyflag++|
|00003bb0| 3b 0a 09 09 09 09 62 72 | 65 61 6b 3b 0a 09 09 09 |;.....br|eak;....|
|00003bc0| 63 61 73 65 20 27 76 27 | 3a 0a 09 09 09 09 76 66 |case 'v'|:.....vf|
|00003bd0| 6c 61 67 2b 2b 3b 0a 09 | 09 09 09 61 6e 79 66 6c |lag++;..|...anyfl|
|00003be0| 61 67 2b 2b 3b 0a 09 09 | 09 09 62 72 65 61 6b 3b |ag++;...|..break;|
|00003bf0| 0a 09 09 09 64 65 66 61 | 75 6c 74 3a 0a 09 09 09 |....defa|ult:....|
|00003c00| 09 75 73 61 67 65 20 28 | 29 3b 0a 09 09 7d 0a 09 |.usage (|);...}..|
|00003c10| 7d 0a 09 69 66 20 28 78 | 6c 69 73 74 20 28 6e 61 |}..if (x|list (na|
|00003c20| 6d 65 66 69 6c 65 2c 20 | 6e 61 6d 65 6c 69 73 74 |mefile, |namelist|
|00003c30| 29 20 21 3d 20 30 29 20 | 7b 0a 09 09 70 65 72 72 |) != 0) |{...perr|
|00003c40| 6f 72 20 28 22 70 73 74 | 61 74 3a 20 6e 61 6d 65 |or ("pst|at: name|
|00003c50| 6c 69 73 74 22 29 3b 0a | 09 09 65 78 69 74 20 28 |list");.|..exit (|
|00003c60| 31 29 3b 0a 09 7d 0a 09 | 69 66 20 28 28 6d 65 6d |1);..}..|if ((mem|
|00003c70| 66 64 20 3d 20 6f 70 65 | 6e 20 28 63 6f 72 65 66 |fd = ope|n (coref|
|00003c80| 69 6c 65 2c 20 4f 5f 52 | 44 4f 4e 4c 59 29 29 20 |ile, O_R|DONLY)) |
|00003c90| 3c 20 30 29 20 7b 0a 09 | 09 70 65 72 72 6f 72 20 |< 0) {..|.perror |
|00003ca0| 28 22 70 73 74 61 74 3a | 20 63 6f 72 65 66 69 6c |("pstat:| corefil|
|00003cb0| 65 22 29 3b 0a 09 09 65 | 78 69 74 20 28 31 29 3b |e");...e|xit (1);|
|00003cc0| 0a 09 7d 0a 09 69 66 20 | 28 28 6b 6d 65 6d 66 64 |..}..if |((kmemfd|
|00003cd0| 20 3d 20 6f 70 65 6e 20 | 28 6b 6d 65 6d 66 69 6c | = open |(kmemfil|
|00003ce0| 65 2c 20 4f 5f 52 44 4f | 4e 4c 59 29 29 20 3c 20 |e, O_RDO|NLY)) < |
|00003cf0| 30 29 20 7b 0a 09 09 70 | 65 72 72 6f 72 20 28 22 |0) {...p|error ("|
|00003d00| 70 73 74 61 74 3a 20 6b | 6d 65 6d 66 69 6c 65 22 |pstat: k|memfile"|
|00003d10| 29 3b 0a 09 09 65 78 69 | 74 20 28 31 29 3b 0a 09 |);...exi|t (1);..|
|00003d20| 7d 0a 09 69 66 20 28 28 | 73 77 61 70 66 64 20 3d |}..if ((|swapfd =|
|00003d30| 20 6f 70 65 6e 20 28 73 | 77 61 70 66 69 6c 65 2c | open (s|wapfile,|
|00003d40| 20 4f 5f 52 44 4f 4e 4c | 59 29 29 20 3c 20 30 29 | O_RDONL|Y)) < 0)|
|00003d50| 20 7b 0a 09 09 70 65 72 | 72 6f 72 20 28 22 70 73 | {...per|ror ("ps|
|00003d60| 74 61 74 3a 20 73 77 61 | 70 66 69 6c 65 22 29 3b |tat: swa|pfile");|
|00003d70| 0a 09 09 65 78 69 74 20 | 28 31 29 3b 0a 09 7d 0a |...exit |(1);..}.|
|00003d80| 09 6c 5f 6c 73 65 65 6b | 20 28 6b 6d 65 6d 66 64 |.l_lseek| (kmemfd|
|00003d90| 2c 20 6e 61 6d 65 6c 69 | 73 74 5b 4e 4d 5f 56 5d |, nameli|st[NM_V]|
|00003da0| 2e 78 6c 5f 76 61 6c 75 | 65 2c 20 30 29 3b 0a 09 |.xl_valu|e, 0);..|
|00003db0| 72 5f 72 65 61 64 20 28 | 6b 6d 65 6d 66 64 2c 20 |r_read (|kmemfd, |
|00003dc0| 26 76 2c 20 73 69 7a 65 | 6f 66 20 76 29 3b 0a 09 |&v, size|of v);..|
|00003dd0| 6c 5f 6c 73 65 65 6b 20 | 28 6b 6d 65 6d 66 64 2c |l_lseek |(kmemfd,|
|00003de0| 20 6e 61 6d 65 6c 69 73 | 74 5b 4e 4d 5f 53 57 50 | namelis|t[NM_SWP|
|00003df0| 4c 4f 5d 2e 78 6c 5f 76 | 61 6c 75 65 2c 20 30 29 |LO].xl_v|alue, 0)|
|00003e00| 3b 0a 09 72 5f 72 65 61 | 64 20 28 6b 6d 65 6d 66 |;..r_rea|d (kmemf|
|00003e10| 64 2c 20 26 73 77 70 6c | 6f 2c 20 73 69 7a 65 6f |d, &swpl|o, sizeo|
|00003e20| 66 20 73 77 70 6c 6f 29 | 3b 0a 0a 09 69 66 20 28 |f swplo)|;...if (|
|00003e30| 62 66 6c 61 67 29 0a 09 | 09 70 72 62 75 66 73 20 |bflag)..|.prbufs |
|00003e40| 28 28 69 6e 74 20 2a 29 | 20 30 2c 20 30 29 3b 0a |((int *)| 0, 0);.|
|00003e50| 0a 09 69 66 20 28 66 66 | 6c 61 67 29 0a 09 09 70 |..if (ff|lag)...p|
|00003e60| 72 66 69 6c 65 73 20 28 | 28 69 6e 74 20 2a 29 20 |rfiles (|(int *) |
|00003e70| 30 2c 20 30 29 3b 0a 0a | 09 69 66 20 28 69 66 6c |0, 0);..|.if (ifl|
|00003e80| 61 67 29 0a 09 09 70 72 | 69 6e 6f 64 65 73 20 28 |ag)...pr|inodes (|
|00003e90| 28 69 6e 74 20 2a 29 20 | 30 2c 20 30 29 3b 0a 0a |(int *) |0, 0);..|
|00003ea0| 09 69 66 20 28 6d 66 6c | 61 67 29 20 0a 09 09 70 |.if (mfl|ag) ...p|
|00003eb0| 72 6d 6f 75 6e 74 73 20 | 28 28 69 6e 74 20 2a 29 |rmounts |((int *)|
|00003ec0| 20 30 2c 20 30 29 3b 0a | 0a 09 69 66 20 28 70 66 | 0, 0);.|..if (pf|
|00003ed0| 6c 61 67 29 0a 09 09 70 | 72 70 72 6f 63 73 20 28 |lag)...p|rprocs (|
|00003ee0| 28 69 6e 74 20 2a 29 20 | 30 2c 20 30 29 3b 0a 0a |(int *) |0, 0);..|
|00003ef0| 09 69 66 20 28 73 66 6c | 61 67 29 0a 09 09 70 72 |.if (sfl|ag)...pr|
|00003f00| 73 74 61 74 73 20 28 28 | 69 6e 74 20 2a 29 20 30 |stats ((|int *) 0|
|00003f10| 2c 20 30 29 3b 0a 0a 09 | 69 66 20 28 74 66 6c 61 |, 0);...|if (tfla|
|00003f20| 67 29 0a 09 09 70 72 74 | 65 78 74 73 20 28 28 69 |g)...prt|exts ((i|
|00003f30| 6e 74 20 2a 29 20 30 2c | 20 30 29 3b 0a 0a 09 69 |nt *) 0,| 0);...i|
|00003f40| 66 20 28 75 66 6c 61 67 | 29 0a 09 09 70 72 75 73 |f (uflag|)...prus|
|00003f50| 65 72 73 20 28 28 69 6e | 74 20 2a 29 20 30 2c 20 |ers ((in|t *) 0, |
|00003f60| 30 29 3b 0a 0a 09 69 66 | 20 28 76 66 6c 61 67 29 |0);...if| (vflag)|
|00003f70| 0a 09 09 70 72 76 61 72 | 73 20 28 28 69 6e 74 20 |...prvar|s ((int |
|00003f80| 2a 29 20 30 2c 20 30 29 | 3b 0a 0a 09 69 66 20 28 |*) 0, 0)|;...if (|
|00003f90| 21 20 61 6e 79 66 6c 61 | 67 29 20 7b 0a 09 09 69 |! anyfla|g) {...i|
|00003fa0| 6e 74 65 72 61 63 74 20 | 28 29 3b 0a 09 09 65 78 |nteract |();...ex|
|00003fb0| 69 74 20 28 30 29 3b 0a | 09 7d 20 65 6c 73 65 20 |it (0);.|.} else |
|00003fc0| 7b 0a 09 09 65 78 69 74 | 20 28 30 29 3b 0a 09 7d |{...exit| (0);..}|
|00003fd0| 0a 7d 0a 75 6e 74 65 64 | 20 6f 6e 20 66 69 6c 65 |.}.unted| on file|
|00003fe0| 20 73 79 73 74 65 6d 73 | 2e 20 20 54 68 65 0a 64 | systems|. The.d|
|00003ff0| 65 76 69 63 65 2c 20 6d | 6f 75 6e 74 20 70 6f 69 |evice, m|ount poi|
|00004000| 73 63 6f 2d 63 72 61 73 | 68 2f 69 6e 74 65 72 61 |sco-cras|h/intera|
|00004010| 63 74 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |ct.c....|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00004080| 20 20 20 36 33 31 34 20 | 20 34 34 30 34 30 35 36 | 6314 | 4404056|
|00004090| 37 37 36 20 20 20 37 37 | 36 30 00 20 00 00 00 00 |776 77|60. ....|
|000040a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00004210| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |h>.#incl|ude <str|
|00004220| 69 6e 67 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ing.h>.#|include |
|00004230| 3c 63 74 79 70 65 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<ctype.h|>.#inclu|
|00004240| 64 65 20 3c 73 65 74 6a | 6d 70 2e 68 3e 0a 23 69 |de <setj|mp.h>.#i|
|00004250| 6e 63 6c 75 64 65 20 3c | 73 69 67 6e 61 6c 2e 68 |nclude <|signal.h|
|00004260| 3e 0a 0a 65 78 74 65 72 | 6e 09 70 72 62 75 66 73 |>..exter|n.prbufs|
|00004270| 20 28 29 3b 0a 65 78 74 | 65 72 6e 09 70 72 66 69 | ();.ext|ern.prfi|
|00004280| 6c 65 73 20 28 29 3b 0a | 65 78 74 65 72 6e 09 70 |les ();.|extern.p|
|00004290| 72 69 6e 6f 64 65 73 20 | 28 29 3b 0a 65 78 74 65 |rinodes |();.exte|
|000042a0| 72 6e 09 70 72 6d 6f 75 | 6e 74 73 20 28 29 3b 0a |rn.prmou|nts ();.|
|000042b0| 65 78 74 65 72 6e 09 70 | 72 70 72 6f 63 73 20 28 |extern.p|rprocs (|
|000042c0| 29 3b 0a 65 78 74 65 72 | 6e 09 70 72 73 74 61 74 |);.exter|n.prstat|
|000042d0| 73 20 28 29 3b 0a 65 78 | 74 65 72 6e 09 70 72 74 |s ();.ex|tern.prt|
|000042e0| 65 78 74 73 20 28 29 3b | 0a 65 78 74 65 72 6e 09 |exts ();|.extern.|
|000042f0| 70 72 75 73 65 72 73 20 | 28 29 3b 0a 65 78 74 65 |prusers |();.exte|
|00004300| 72 6e 09 70 72 76 61 72 | 73 20 28 29 3b 0a 65 78 |rn.prvar|s ();.ex|
|00004310| 74 65 72 6e 09 71 75 69 | 74 20 28 29 3b 0a 65 78 |tern.qui|t ();.ex|
|00004320| 74 65 72 6e 09 68 65 6c | 70 20 28 29 3b 0a 65 78 |tern.hel|p ();.ex|
|00004330| 74 65 72 6e 09 69 6e 74 | 09 65 72 72 6e 6f 3b 0a |tern.int|.errno;.|
|00004340| 0a 6a 6d 70 5f 62 75 66 | 09 64 65 6c 3b 0a 69 6e |.jmp_buf|.del;.in|
|00004350| 74 09 64 65 6c 66 6c 61 | 67 3b 0a 0a 73 74 72 75 |t.delfla|g;..stru|
|00004360| 63 74 09 66 75 6e 63 20 | 7b 0a 09 76 6f 69 64 09 |ct.func |{..void.|
|00004370| 28 2a 66 5f 66 75 6e 63 | 29 28 29 3b 0a 09 63 68 |(*f_func|)();..ch|
|00004380| 61 72 09 2a 66 5f 6e 61 | 6d 65 3b 0a 7d 3b 0a 0a |ar.*f_na|me;.};..|
|00004390| 73 74 72 75 63 74 09 66 | 75 6e 63 09 63 6f 6d 6d |struct.f|unc.comm|
|000043a0| 61 6e 64 73 5b 5d 20 3d | 20 7b 0a 09 7b 20 70 72 |ands[] =| {..{ pr|
|000043b0| 62 75 66 73 2c 20 22 62 | 22 20 7d 2c 0a 09 7b 20 |bufs, "b|" },..{ |
|000043c0| 70 72 62 75 66 73 2c 20 | 22 62 75 66 22 20 7d 2c |prbufs, |"buf" },|
|000043d0| 0a 09 7b 20 70 72 66 69 | 6c 65 73 2c 20 22 66 22 |..{ prfi|les, "f"|
|000043e0| 20 7d 2c 0a 09 7b 20 70 | 72 66 69 6c 65 73 2c 20 | },..{ p|rfiles, |
|000043f0| 22 66 69 6c 65 22 20 7d | 2c 0a 09 7b 20 68 65 6c |"file" }|,..{ hel|
|00004400| 70 2c 20 22 68 22 20 7d | 2c 0a 09 7b 20 68 65 6c |p, "h" }|,..{ hel|
|00004410| 70 2c 20 22 68 65 6c 70 | 22 20 7d 2c 0a 09 7b 20 |p, "help|" },..{ |
|00004420| 70 72 69 6e 6f 64 65 73 | 2c 20 22 69 22 20 7d 2c |prinodes|, "i" },|
|00004430| 0a 09 7b 20 70 72 69 6e | 6f 64 65 73 2c 20 22 69 |..{ prin|odes, "i|
|00004440| 6e 6f 22 20 7d 2c 0a 09 | 7b 20 70 72 69 6e 6f 64 |no" },..|{ prinod|
|00004450| 65 73 2c 20 22 69 6e 6f | 64 65 22 20 7d 2c 0a 09 |es, "ino|de" },..|
|00004460| 7b 20 70 72 6d 6f 75 6e | 74 73 2c 20 22 6d 22 20 |{ prmoun|ts, "m" |
|00004470| 7d 2c 0a 09 7b 20 70 72 | 6d 6f 75 6e 74 73 2c 20 |},..{ pr|mounts, |
|00004480| 22 6d 6f 75 6e 74 22 20 | 7d 2c 0a 09 7b 20 70 72 |"mount" |},..{ pr|
|00004490| 70 72 6f 63 73 2c 20 22 | 70 22 20 7d 2c 0a 09 7b |procs, "|p" },..{|
|000044a0| 20 70 72 70 72 6f 63 73 | 2c 20 22 70 72 6f 63 22 | prprocs|, "proc"|
|000044b0| 20 7d 2c 0a 09 7b 20 71 | 75 69 74 2c 20 22 71 22 | },..{ q|uit, "q"|
|000044c0| 20 7d 2c 0a 09 7b 20 71 | 75 69 74 2c 20 22 71 75 | },..{ q|uit, "qu|
|000044d0| 69 74 22 20 7d 2c 0a 09 | 7b 20 70 72 73 74 61 74 |it" },..|{ prstat|
|000044e0| 73 2c 20 22 73 22 20 7d | 2c 0a 09 7b 20 70 72 73 |s, "s" }|,..{ prs|
|000044f0| 74 61 74 73 2c 20 22 73 | 74 61 74 22 20 7d 2c 0a |tats, "s|tat" },.|
|00004500| 09 7b 20 70 72 74 65 78 | 74 73 2c 20 22 74 22 20 |.{ prtex|ts, "t" |
|00004510| 7d 2c 0a 09 7b 20 70 72 | 74 65 78 74 73 2c 20 22 |},..{ pr|texts, "|
|00004520| 74 65 78 74 22 20 7d 2c | 0a 09 7b 20 70 72 75 73 |text" },|..{ prus|
|00004530| 65 72 73 2c 20 22 75 22 | 20 7d 2c 0a 09 7b 20 70 |ers, "u"| },..{ p|
|00004540| 72 75 73 65 72 73 2c 20 | 22 75 73 65 72 22 20 7d |rusers, |"user" }|
|00004550| 2c 0a 09 7b 20 70 72 76 | 61 72 73 2c 20 22 76 22 |,..{ prv|ars, "v"|
|00004560| 20 7d 2c 0a 09 7b 20 70 | 72 76 61 72 73 2c 20 22 | },..{ p|rvars, "|
|00004570| 76 61 72 22 20 7d 2c 0a | 09 7b 20 30 2c 20 30 20 |var" },.|.{ 0, 0 |
|00004580| 7d 0a 7d 3b 0a 0a 68 65 | 6c 70 20 28 29 0a 7b 0a |}.};..he|lp ().{.|
|00004590| 09 70 72 69 6e 74 66 20 | 28 22 63 6f 6d 6d 61 6e |.printf |("comman|
|000045a0| 64 20 73 75 6d 6d 61 72 | 79 5c 6e 5c 6e 22 29 3b |d summar|y\n\n");|
|000045b0| 0a 0a 09 70 72 69 6e 74 | 66 20 28 22 62 75 66 20 |...print|f ("buf |
|000045c0| 28 62 29 20 20 20 20 20 | 20 20 20 2d 20 62 75 66 |(b) | - buf|
|000045d0| 66 65 72 20 68 65 61 64 | 65 72 73 5c 6e 22 29 3b |fer head|ers\n");|
|000045e0| 0a 09 70 72 69 6e 74 66 | 20 28 22 66 69 6c 65 20 |..printf| ("file |
|000045f0| 28 66 29 20 20 20 20 20 | 20 20 2d 20 6f 70 65 6e |(f) | - open|
|00004600| 20 66 69 6c 65 73 5c 6e | 22 29 3b 0a 09 70 72 69 | files\n|");..pri|
|00004610| 6e 74 66 20 28 22 68 65 | 6c 70 20 28 68 2c 3f 29 |ntf ("he|lp (h,?)|
|00004620| 20 20 20 20 20 2d 20 6c | 69 73 74 20 63 6f 6d 6d | - l|ist comm|
|00004630| 61 6e 64 73 5c 6e 22 29 | 3b 0a 09 70 72 69 6e 74 |ands\n")|;..print|
|00004640| 66 20 28 22 69 6e 6f 64 | 65 20 28 69 6e 6f 2c 69 |f ("inod|e (ino,i|
|00004650| 29 20 20 2d 20 61 63 74 | 69 76 65 20 69 6e 6f 64 |) - act|ive inod|
|00004660| 65 73 5c 6e 22 29 3b 0a | 09 70 72 69 6e 74 66 20 |es\n");.|.printf |
|00004670| 28 22 6d 6f 75 6e 74 20 | 28 6d 29 20 20 20 20 20 |("mount |(m) |
|00004680| 20 2d 20 6d 6f 75 6e 74 | 65 64 20 66 69 6c 65 20 | - mount|ed file |
|00004690| 73 79 73 74 65 6d 73 5c | 6e 22 29 3b 0a 09 70 72 |systems\|n");..pr|
|000046a0| 69 6e 74 66 20 28 22 70 | 72 6f 63 20 28 70 29 20 |intf ("p|roc (p) |
|000046b0| 20 20 20 20 20 20 2d 20 | 61 63 74 69 76 65 20 61 | - |active a|
|000046c0| 6e 64 20 64 65 66 75 6e | 63 74 20 70 72 6f 63 65 |nd defun|ct proce|
|000046d0| 73 73 65 73 5c 6e 22 29 | 3b 0a 09 70 72 69 6e 74 |sses\n")|;..print|
|000046e0| 66 20 28 22 71 75 69 74 | 20 28 71 2c 5e 44 29 20 |f ("quit| (q,^D) |
|000046f0| 20 20 20 2d 20 65 78 69 | 74 20 63 72 61 73 68 5c | - exi|t crash\|
|00004700| 6e 22 29 3b 0a 09 70 72 | 69 6e 74 66 20 28 22 73 |n");..pr|intf ("s|
|00004710| 74 61 74 20 28 73 29 20 | 20 20 20 20 20 20 2d 20 |tat (s) | - |
|00004720| 63 72 61 73 68 20 73 74 | 61 74 69 73 74 69 63 73 |crash st|atistics|
|00004730| 2c 20 61 67 65 2c 20 74 | 69 6d 65 5c 6e 22 29 3b |, age, t|ime\n");|
|00004740| 0a 09 70 72 69 6e 74 66 | 20 28 22 74 65 78 74 20 |..printf| ("text |
|00004750| 28 74 29 20 20 20 20 20 | 20 20 2d 20 61 63 74 69 |(t) | - acti|
|00004760| 76 65 20 61 6e 64 20 73 | 74 69 63 6b 79 20 62 69 |ve and s|ticky bi|
|00004770| 74 20 74 65 78 74 20 73 | 65 67 6d 65 6e 74 73 5c |t text s|egments\|
|00004780| 6e 22 29 3b 0a 09 70 72 | 69 6e 74 66 20 28 22 75 |n");..pr|intf ("u|
|00004790| 73 65 72 20 28 75 29 20 | 20 20 20 20 20 20 2d 20 |ser (u) | - |
|000047a0| 75 73 65 72 20 70 61 67 | 65 20 69 6e 66 6f 72 6d |user pag|e inform|
|000047b0| 61 74 69 6f 6e 5c 6e 22 | 29 3b 0a 09 70 72 69 6e |ation\n"|);..prin|
|000047c0| 74 66 20 28 22 76 61 72 | 20 28 76 29 20 20 20 20 |tf ("var| (v) |
|000047d0| 20 20 20 20 2d 20 74 75 | 6e 61 62 6c 65 20 70 61 | - tu|nable pa|
|000047e0| 72 61 6d 65 74 65 72 73 | 5c 6e 22 29 3b 0a 7d 0a |rameters|\n");.}.|
|000047f0| 0a 71 75 69 74 20 28 29 | 0a 7b 0a 09 65 78 69 74 |.quit ()|.{..exit|
|00004800| 20 28 30 29 3b 0a 7d 0a | 0a 69 6e 74 65 72 75 70 | (0);.}.|.interup|
|00004810| 74 20 28 73 69 67 29 0a | 69 6e 74 09 73 69 67 3b |t (sig).|int.sig;|
|00004820| 0a 7b 0a 09 64 65 6c 66 | 6c 61 67 20 3d 20 31 3b |.{..delf|lag = 1;|
|00004830| 0a 09 66 66 6c 75 73 68 | 20 28 73 74 64 6f 75 74 |..fflush| (stdout|
|00004840| 29 3b 0a 09 66 66 6c 75 | 73 68 20 28 73 74 64 65 |);..fflu|sh (stde|
|00004850| 72 72 29 3b 0a 09 6c 6f | 6e 67 6a 6d 70 20 28 64 |rr);..lo|ngjmp (d|
|00004860| 65 6c 2c 20 73 69 67 29 | 3b 0a 7d 0a 0a 69 6e 74 |el, sig)|;.}..int|
|00004870| 65 72 61 63 74 20 28 29 | 0a 7b 0a 09 69 6e 74 09 |eract ()|.{..int.|
|00004880| 69 3b 0a 09 69 6e 74 09 | 69 74 65 6d 73 5b 31 30 |i;..int.|items[10|
|00004890| 30 5d 3b 0a 09 69 6e 74 | 09 63 6e 74 3b 0a 09 63 |0];..int|.cnt;..c|
|000048a0| 68 61 72 09 2a 63 70 3b | 0a 09 63 68 61 72 09 2a |har.*cp;|..char.*|
|000048b0| 63 6f 6d 3b 0a 09 63 68 | 61 72 09 2a 6e 75 6d 3b |com;..ch|ar.*num;|
|000048c0| 0a 09 63 68 61 72 09 62 | 75 66 5b 42 55 46 53 49 |..char.b|uf[BUFSI|
|000048d0| 5a 5d 3b 0a 0a 09 77 68 | 69 6c 65 20 28 73 65 74 |Z];...wh|ile (set|
|000048e0| 6a 6d 70 20 28 64 65 6c | 29 29 09 09 2f 2a 20 63 |jmp (del|))../* c|
|000048f0| 61 74 63 68 20 74 68 61 | 74 20 66 69 72 73 74 20 |atch tha|t first |
|00004900| 69 6e 74 65 72 75 70 74 | 20 2a 2f 0a 09 09 66 70 |interupt| */...fp|
|00004910| 72 69 6e 74 66 20 28 73 | 74 64 65 72 72 2c 20 22 |rintf (s|tderr, "|
|00004920| 5c 6e 71 20 74 6f 20 71 | 75 69 74 5c 6e 22 29 3b |\nq to q|uit\n");|
|00004930| 0a 0a 09 73 69 67 6e 61 | 6c 20 28 53 49 47 49 4e |...signa|l (SIGIN|
|00004940| 54 2c 20 69 6e 74 65 72 | 75 70 74 29 3b 09 2f 2a |T, inter|upt);./*|
|00004950| 20 61 6e 64 20 73 65 74 | 75 70 20 74 68 65 20 68 | and set|up the h|
|00004960| 61 6e 64 6c 65 72 20 2a | 2f 0a 0a 09 77 68 69 6c |andler *|/...whil|
|00004970| 65 20 28 66 70 72 69 6e | 74 66 20 28 73 74 64 65 |e (fprin|tf (stde|
|00004980| 72 72 2c 20 22 3e 20 22 | 29 2c 20 67 65 74 73 20 |rr, "> "|), gets |
|00004990| 28 62 75 66 29 20 21 3d | 20 28 63 68 61 72 20 2a |(buf) !=| (char *|
|000049a0| 29 20 30 29 20 7b 0a 09 | 09 77 68 69 6c 65 20 28 |) 0) {..|.while (|
|000049b0| 73 65 74 6a 6d 70 20 28 | 64 65 6c 29 29 0a 09 09 |setjmp (|del))...|
|000049c0| 09 67 6f 74 6f 20 65 68 | 3b 0a 0a 09 09 2f 2a 0a |.goto eh|;..../*.|
|000049d0| 09 09 20 2a 20 6d 61 6b | 65 20 61 6c 6c 20 63 6f |.. * mak|e all co|
|000049e0| 6d 6d 61 6e 64 73 20 6c | 6f 77 65 72 20 63 61 73 |mmands l|ower cas|
|000049f0| 65 2e 0a 09 09 20 2a 2f | 0a 0a 09 09 66 6f 72 20 |e.... */|....for |
|00004a00| 28 69 20 3d 20 73 74 72 | 6c 65 6e 20 28 62 75 66 |(i = str|len (buf|
|00004a10| 29 20 2d 20 31 3b 69 20 | 3e 3d 20 30 3b 69 2d 2d |) - 1;i |>= 0;i--|
|00004a20| 29 0a 09 09 09 69 66 20 | 28 69 73 75 70 70 65 72 |)....if |(isupper|
|00004a30| 20 28 62 75 66 5b 69 5d | 29 29 0a 09 09 09 09 62 | (buf[i]|)).....b|
|00004a40| 75 66 5b 69 5d 20 3d 20 | 74 6f 6c 6f 77 65 72 20 |uf[i] = |tolower |
|00004a50| 28 62 75 66 5b 69 5d 29 | 3b 0a 0a 09 09 2f 2a 0a |(buf[i])|;..../*.|
|00004a60| 09 09 20 2a 20 66 69 6e | 64 20 66 69 72 73 74 20 |.. * fin|d first |
|00004a70| 6e 6f 6e 2d 77 68 69 74 | 65 20 73 70 61 63 65 20 |non-whit|e space |
|00004a80| 63 68 61 72 61 63 74 65 | 72 20 61 6e 64 20 73 6b |characte|r and sk|
|00004a90| 69 70 20 69 66 0a 09 09 | 20 2a 20 61 20 62 6c 61 |ip if...| * a bla|
|00004aa0| 6e 6b 20 6c 69 6e 65 0a | 09 09 20 2a 2f 0a 0a 09 |nk line.|.. */...|
|00004ab0| 09 66 6f 72 20 28 63 6f | 6d 20 3d 20 62 75 66 3b |.for (co|m = buf;|
|00004ac0| 2a 63 6f 6d 20 26 26 20 | 28 2a 63 6f 6d 20 3d 3d |*com && |(*com ==|
|00004ad0| 20 27 20 27 20 7c 7c 20 | 2a 63 6f 6d 20 3d 3d 20 | ' ' || |*com == |
|00004ae0| 27 5c 74 27 29 3b 63 6f | 6d 2b 2b 29 0a 09 09 09 |'\t');co|m++)....|
|00004af0| 3b 0a 0a 09 09 69 66 20 | 28 2a 63 6f 6d 20 3d 3d |;....if |(*com ==|
|00004b00| 20 27 5c 30 27 29 0a 09 | 09 09 63 6f 6e 74 69 6e | '\0')..|..contin|
|00004b10| 75 65 3b 0a 0a 09 09 2f | 2a 0a 09 09 20 2a 20 66 |ue;..../|*... * f|
|00004b20| 69 6e 64 20 74 68 65 20 | 65 6e 74 69 72 65 20 63 |ind the |entire c|
|00004b30| 6f 6d 6d 61 6e 64 20 77 | 6f 72 64 0a 09 09 20 2a |ommand w|ord... *|
|00004b40| 2f 0a 0a 09 09 69 66 20 | 28 2a 63 6f 6d 20 3d 3d |/....if |(*com ==|
|00004b50| 20 27 3f 27 29 20 7b 0a | 09 09 09 68 65 6c 70 20 | '?') {.|...help |
|00004b60| 28 29 3b 0a 09 09 09 63 | 6f 6e 74 69 6e 75 65 3b |();....c|ontinue;|
|00004b70| 0a 09 09 7d 0a 0a 09 09 | 66 6f 72 20 28 63 70 20 |...}....|for (cp |
|00004b80| 3d 20 63 6f 6d 3b 2a 63 | 70 20 3e 3d 20 27 61 27 |= com;*c|p >= 'a'|
|00004b90| 20 26 26 20 2a 63 70 20 | 3c 3d 20 27 7a 27 3b 63 | && *cp |<= 'z';c|
|00004ba0| 70 2b 2b 29 0a 09 09 09 | 3b 0a 0a 09 09 69 66 20 |p++)....|;....if |
|00004bb0| 28 2a 63 70 20 21 3d 20 | 27 5c 30 27 29 20 7b 0a |(*cp != |'\0') {.|
|00004bc0| 09 09 09 2a 63 70 2b 2b | 20 3d 20 27 5c 30 27 3b |...*cp++| = '\0';|
|00004bd0| 0a 0a 09 09 2f 2a 0a 09 | 09 20 2a 20 74 6f 6b 65 |..../*..|. * toke|
|00004be0| 6e 69 7a 65 20 74 68 65 | 20 72 65 6d 61 69 6e 64 |nize the| remaind|
|00004bf0| 65 72 20 6f 66 20 74 68 | 65 20 73 74 72 69 6e 67 |er of th|e string|
|00004c00| 20 69 6e 74 6f 20 6e 75 | 6d 62 65 72 73 0a 09 09 | into nu|mbers...|
|00004c10| 20 2a 2f 0a 0a 09 09 09 | 66 6f 72 20 28 63 6e 74 | */.....|for (cnt|
|00004c20| 20 3d 20 30 3b 2a 63 70 | 20 26 26 20 63 6e 74 20 | = 0;*cp| && cnt |
|00004c30| 3c 20 31 30 30 3b 63 6e | 74 2b 2b 29 20 7b 0a 09 |< 100;cn|t++) {..|
|00004c40| 09 09 09 66 6f 72 20 28 | 3b 2a 63 70 20 26 26 20 |...for (|;*cp && |
|00004c50| 69 73 73 70 61 63 65 20 | 28 2a 63 70 29 3b 63 70 |isspace |(*cp);cp|
|00004c60| 2b 2b 29 0a 09 09 09 09 | 09 3b 0a 0a 09 09 09 09 |++).....|.;......|
|00004c70| 66 6f 72 20 28 6e 75 6d | 20 3d 20 63 70 3b 2a 63 |for (num| = cp;*c|
|00004c80| 70 20 26 26 20 69 73 64 | 69 67 69 74 20 28 2a 63 |p && isd|igit (*c|
|00004c90| 70 29 3b 63 70 2b 2b 29 | 0a 09 09 09 09 09 3b 0a |p);cp++)|......;.|
|00004ca0| 0a 09 09 09 09 69 66 20 | 28 2a 63 70 20 26 26 20 |.....if |(*cp && |
|00004cb0| 21 20 69 73 73 70 61 63 | 65 20 28 2a 63 70 29 29 |! isspac|e (*cp))|
|00004cc0| 0a 09 09 09 09 09 67 6f | 74 6f 20 65 68 3b 0a 0a |......go|to eh;..|
|00004cd0| 09 09 09 09 69 66 20 28 | 2a 63 70 29 0a 09 09 09 |....if (|*cp)....|
|00004ce0| 09 09 2a 63 70 2b 2b 20 | 3d 20 27 5c 30 27 3b 0a |..*cp++ |= '\0';.|
|00004cf0| 0a 09 09 09 09 69 74 65 | 6d 73 5b 63 6e 74 5d 20 |.....ite|ms[cnt] |
|00004d00| 3d 20 61 74 6f 69 20 28 | 6e 75 6d 29 3b 0a 09 09 |= atoi (|num);...|
|00004d10| 09 7d 0a 09 09 7d 20 65 | 6c 73 65 20 7b 0a 09 09 |.}...} e|lse {...|
|00004d20| 09 63 6e 74 20 3d 20 30 | 3b 0a 09 09 7d 0a 09 09 |.cnt = 0|;...}...|
|00004d30| 0a 09 09 66 6f 72 20 28 | 69 20 3d 20 30 3b 63 6f |...for (|i = 0;co|
|00004d40| 6d 6d 61 6e 64 73 5b 69 | 5d 2e 66 5f 6e 61 6d 65 |mmands[i|].f_name|
|00004d50| 20 21 3d 20 28 63 68 61 | 72 20 2a 29 20 30 3b 69 | != (cha|r *) 0;i|
|00004d60| 2b 2b 29 0a 09 09 09 69 | 66 20 28 73 74 72 63 6d |++)....i|f (strcm|
|00004d70| 70 20 28 63 6f 6d 6d 61 | 6e 64 73 5b 69 5d 2e 66 |p (comma|nds[i].f|
|00004d80| 5f 6e 61 6d 65 2c 20 63 | 6f 6d 29 20 3d 3d 20 30 |_name, c|om) == 0|
|00004d90| 29 0a 09 09 09 09 62 72 | 65 61 6b 3b 0a 0a 09 09 |).....br|eak;....|
|00004da0| 69 66 20 28 63 6f 6d 6d | 61 6e 64 73 5b 69 5d 2e |if (comm|ands[i].|
|00004db0| 66 5f 6e 61 6d 65 20 3d | 3d 20 28 63 68 61 72 20 |f_name =|= (char |
|00004dc0| 2a 29 20 30 29 0a 09 09 | 09 67 6f 74 6f 20 65 68 |*) 0)...|.goto eh|
|00004dd0| 3b 0a 0a 09 09 28 2a 63 | 6f 6d 6d 61 6e 64 73 5b |;....(*c|ommands[|
|00004de0| 69 5d 2e 66 5f 66 75 6e | 63 29 20 28 69 74 65 6d |i].f_fun|c) (item|
|00004df0| 73 2c 20 63 6e 74 29 3b | 0a 09 09 63 6f 6e 74 69 |s, cnt);|...conti|
|00004e00| 6e 75 65 3b 0a 0a 09 09 | 2f 2a 0a 09 09 20 2a 20 |nue;....|/*... * |
|00004e10| 63 6f 6d 6d 6f 6e 20 65 | 72 72 6f 72 20 68 61 6e |common e|rror han|
|00004e20| 64 6c 65 72 2e 20 20 67 | 65 74 20 68 65 72 65 20 |dler. g|et here |
|00004e30| 69 66 20 61 6e 20 65 72 | 72 6f 72 20 69 73 20 66 |if an er|ror is f|
|00004e40| 6f 75 6e 64 2e 0a 09 09 | 20 2a 2f 0a 65 68 3a 0a |ound....| */.eh:.|
|00004e50| 09 09 69 66 20 28 64 65 | 6c 66 6c 61 67 29 20 7b |..if (de|lflag) {|
|00004e60| 0a 09 09 09 70 75 74 63 | 20 28 27 5c 6e 27 2c 20 |....putc| ('\n', |
|00004e70| 73 74 64 65 72 72 29 3b | 0a 09 09 09 64 65 6c 66 |stderr);|....delf|
|00004e80| 6c 61 67 20 3d 20 30 3b | 0a 09 09 7d 0a 09 09 66 |lag = 0;|...}...f|
|00004e90| 70 72 69 6e 74 66 20 28 | 73 74 64 65 72 72 2c 20 |printf (|stderr, |
|00004ea0| 22 65 68 3f 5c 6e 22 29 | 3b 0a 09 09 73 69 67 6e |"eh?\n")|;...sign|
|00004eb0| 61 6c 20 28 53 49 47 49 | 4e 54 2c 20 69 6e 74 65 |al (SIGI|NT, inte|
|00004ec0| 72 75 70 74 29 3b 0a 09 | 7d 0a 7d 0a 20 28 70 66 |rupt);..|}.}. (pf|
|00004ed0| 6c 61 67 29 0a 09 09 70 | 72 70 72 6f 63 73 20 28 |lag)...p|rprocs (|
|00004ee0| 28 69 6e 74 20 2a 29 20 | 30 2c 20 30 29 3b 0a 0a |(int *) |0, 0);..|
|00004ef0| 09 69 66 20 28 73 66 6c | 61 67 29 0a 09 09 70 72 |.if (sfl|ag)...pr|
|00004f00| 73 74 61 74 73 20 28 28 | 69 6e 74 20 2a 29 20 30 |stats ((|int *) 0|
|00004f10| 2c 20 30 29 3b 0a 0a 09 | 69 66 20 28 74 66 6c 61 |, 0);...|if (tfla|
|00004f20| 67 29 0a 09 09 70 72 74 | 65 78 74 73 20 28 28 69 |g)...prt|exts ((i|
|00004f30| 6e 74 20 2a 29 20 30 2c | 20 30 29 3b 0a 0a 09 69 |nt *) 0,| 0);...i|
|00004f40| 66 20 28 75 66 6c 61 67 | 29 0a 09 09 70 72 75 73 |f (uflag|)...prus|
|00004f50| 65 72 73 20 28 28 69 6e | 74 20 2a 29 20 30 2c 20 |ers ((in|t *) 0, |
|00004f60| 30 29 3b 0a 0a 09 69 66 | 20 28 76 66 6c 61 67 29 |0);...if| (vflag)|
|00004f70| 0a 09 09 70 72 76 61 72 | 73 20 28 28 69 6e 74 20 |...prvar|s ((int |
|00004f80| 2a 29 20 30 2c 20 30 29 | 3b 0a 0a 09 69 66 20 28 |*) 0, 0)|;...if (|
|00004f90| 21 20 61 6e 79 66 6c 61 | 67 29 20 7b 0a 09 09 69 |! anyfla|g) {...i|
|00004fa0| 6e 74 65 72 61 63 74 20 | 28 29 3b 0a 09 09 65 78 |nteract |();...ex|
|00004fb0| 69 74 20 28 30 29 3b 0a | 09 7d 20 65 6c 73 65 20 |it (0);.|.} else |
|00004fc0| 7b 0a 09 09 65 78 69 74 | 20 28 30 29 3b 0a 09 7d |{...exit| (0);..}|
|00004fd0| 0a 7d 0a 75 6e 74 65 64 | 20 6f 6e 20 66 69 6c 65 |.}.unted| on file|
|00004fe0| 20 73 79 73 74 65 6d 73 | 2e 20 20 54 68 65 0a 64 | systems|. The.d|
|00004ff0| 65 76 69 63 65 2c 20 6d | 6f 75 6e 74 20 70 6f 69 |evice, m|ount poi|
|00005000| 73 63 6f 2d 63 72 61 73 | 68 2f 66 69 6c 65 73 2e |sco-cras|h/files.|
|00005010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00005020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005080| 20 20 20 32 36 31 37 20 | 20 34 34 30 34 30 35 36 | 2617 | 4404056|
|00005090| 37 37 37 20 20 20 37 32 | 35 34 00 20 00 00 00 00 |777 72|54. ....|
|000050a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005200| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 70 61 |#include| <sys/pa|
|00005210| 72 61 6d 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ram.h>.#|include |
|00005220| 3c 73 79 73 2f 73 79 73 | 6d 61 63 72 6f 73 2e 68 |<sys/sys|macros.h|
|00005230| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00005240| 74 79 70 65 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |types.h>|.#includ|
|00005250| 65 20 3c 73 79 73 2f 76 | 61 72 2e 68 3e 0a 23 69 |e <sys/v|ar.h>.#i|
|00005260| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 69 6e 6f 64 |nclude <|sys/inod|
|00005270| 65 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |e.h>.#in|clude <s|
|00005280| 79 73 2f 66 69 6c 65 2e | 68 3e 0a 23 69 6e 63 6c |ys/file.|h>.#incl|
|00005290| 75 64 65 20 3c 73 79 73 | 2f 70 61 67 65 2e 68 3e |ude <sys|/page.h>|
|000052a0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 73 |.#includ|e <sys/s|
|000052b0| 65 67 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |eg.h>.#i|nclude <|
|000052c0| 73 79 73 2f 73 69 67 6e | 61 6c 2e 68 3e 0a 23 69 |sys/sign|al.h>.#i|
|000052d0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 64 69 72 2e |nclude <|sys/dir.|
|000052e0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |h>.#incl|ude <sys|
|000052f0| 2f 75 73 65 72 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |/user.h>|.#includ|
|00005300| 65 20 22 63 72 61 73 68 | 2e 68 22 0a 0a 70 72 66 |e "crash|.h"..prf|
|00005310| 69 6c 65 73 20 28 69 74 | 65 6d 73 2c 20 63 6e 74 |iles (it|ems, cnt|
|00005320| 29 0a 69 6e 74 09 2a 69 | 74 65 6d 73 3b 0a 69 6e |).int.*i|tems;.in|
|00005330| 74 09 63 6e 74 3b 0a 7b | 0a 09 69 6e 74 09 69 3b |t.cnt;.{|..int.i;|
|00005340| 0a 0a 09 66 69 6c 65 73 | 20 3d 20 28 73 74 72 75 |...files| = (stru|
|00005350| 63 74 20 66 69 6c 65 20 | 2a 29 20 6d 61 6c 6c 6f |ct file |*) mallo|
|00005360| 63 20 28 76 2e 76 5f 66 | 69 6c 65 20 2a 20 73 69 |c (v.v_f|ile * si|
|00005370| 7a 65 6f 66 20 28 73 74 | 72 75 63 74 20 66 69 6c |zeof (st|ruct fil|
|00005380| 65 29 29 3b 0a 09 6c 5f | 6c 73 65 65 6b 20 28 6b |e));..l_|lseek (k|
|00005390| 6d 65 6d 66 64 2c 20 6e | 61 6d 65 6c 69 73 74 5b |memfd, n|amelist[|
|000053a0| 4e 4d 5f 46 49 4c 45 5d | 2e 78 6c 5f 76 61 6c 75 |NM_FILE]|.xl_valu|
|000053b0| 65 2c 20 30 29 3b 0a 09 | 72 5f 72 65 61 64 20 28 |e, 0);..|r_read (|
|000053c0| 6b 6d 65 6d 66 64 2c 20 | 66 69 6c 65 73 2c 20 73 |kmemfd, |files, s|
|000053d0| 69 7a 65 6f 66 20 28 73 | 74 72 75 63 74 20 66 69 |izeof (s|truct fi|
|000053e0| 6c 65 29 20 2a 20 76 2e | 76 5f 66 69 6c 65 29 3b |le) * v.|v_file);|
|000053f0| 0a 0a 09 70 72 69 6e 74 | 66 20 28 22 53 4c 4f 54 |...print|f ("SLOT|
|00005400| 20 20 20 20 46 4c 41 47 | 20 20 20 20 20 20 20 20 | FLAG| |
|00005410| 20 20 43 4f 55 4e 54 20 | 20 49 4e 4f 44 45 20 20 | COUNT | INODE |
|00005420| 20 20 20 20 4f 46 46 53 | 45 54 5c 6e 22 29 3b 0a | OFFS|ET\n");.|
|00005430| 09 69 66 20 28 63 6e 74 | 20 3d 3d 20 30 29 20 7b |.if (cnt| == 0) {|
|00005440| 0a 09 09 66 6f 72 20 28 | 69 20 3d 20 30 3b 69 20 |...for (|i = 0;i |
|00005450| 3c 20 76 2e 76 5f 66 69 | 6c 65 3b 69 2b 2b 29 20 |< v.v_fi|le;i++) |
|00005460| 7b 0a 09 09 09 69 66 20 | 28 66 69 6c 65 73 5b 69 |{....if |(files[i|
|00005470| 5d 2e 66 5f 63 6f 75 6e | 74 20 3d 3d 20 30 20 7c |].f_coun|t == 0 ||
|00005480| 7c 20 66 69 6c 65 73 5b | 69 5d 2e 66 5f 66 6c 61 || files[|i].f_fla|
|00005490| 67 20 3d 3d 20 30 29 0a | 09 09 09 09 63 6f 6e 74 |g == 0).|....cont|
|000054a0| 69 6e 75 65 3b 0a 0a 09 | 09 09 64 6f 66 69 6c 65 |inue;...|..dofile|
|000054b0| 20 28 69 29 3b 0a 09 09 | 7d 0a 09 7d 20 65 6c 73 | (i);...|}..} els|
|000054c0| 65 20 7b 0a 09 09 66 6f | 72 20 28 69 20 3d 20 30 |e {...fo|r (i = 0|
|000054d0| 3b 69 20 3c 20 63 6e 74 | 3b 69 2b 2b 29 20 7b 0a |;i < cnt|;i++) {.|
|000054e0| 09 09 09 69 66 20 28 69 | 74 65 6d 73 5b 69 5d 20 |...if (i|tems[i] |
|000054f0| 3e 3d 20 76 2e 76 5f 66 | 69 6c 65 29 0a 09 09 09 |>= v.v_f|ile)....|
|00005500| 09 70 72 69 6e 74 66 20 | 28 22 76 61 6c 75 65 20 |.printf |("value |
|00005510| 28 25 64 29 20 6f 75 74 | 20 6f 66 20 72 61 6e 67 |(%d) out| of rang|
|00005520| 65 5c 6e 22 2c 20 69 74 | 65 6d 73 5b 69 5d 29 3b |e\n", it|ems[i]);|
|00005530| 0a 09 09 09 65 6c 73 65 | 0a 09 09 09 09 64 6f 66 |....else|.....dof|
|00005540| 69 6c 65 20 28 69 74 65 | 6d 73 5b 69 5d 29 3b 0a |ile (ite|ms[i]);.|
|00005550| 09 09 7d 0a 09 7d 0a 09 | 66 72 65 65 20 28 28 63 |..}..}..|free ((c|
|00005560| 68 61 72 20 2a 29 20 66 | 69 6c 65 73 29 3b 0a 7d |har *) f|iles);.}|
|00005570| 0a 0a 0a 64 6f 66 69 6c | 65 20 28 69 29 0a 69 6e |...dofil|e (i).in|
|00005580| 74 09 69 3b 0a 7b 0a 09 | 70 72 69 6e 74 66 20 28 |t.i;.{..|printf (|
|00005590| 22 25 34 64 20 20 20 20 | 25 30 33 6f 20 25 63 25 |"%4d |%03o %c%|
|000055a0| 63 25 63 25 63 25 63 25 | 63 25 63 25 63 20 20 25 |c%c%c%c%|c%c%c %|
|000055b0| 35 64 20 20 25 35 64 20 | 20 25 31 30 6c 64 5c 6e |5d %5d | %10ld\n|
|000055c0| 22 2c 0a 09 09 69 2c 20 | 66 69 6c 65 73 5b 69 5d |",...i, |files[i]|
|000055d0| 2e 66 5f 66 6c 61 67 20 | 26 20 46 4d 41 53 4b 2c |.f_flag |& FMASK,|
|000055e0| 0a 09 09 28 66 69 6c 65 | 73 5b 69 5d 2e 66 5f 66 |...(file|s[i].f_f|
|000055f0| 6c 61 67 20 26 20 46 52 | 45 41 44 29 20 3f 20 27 |lag & FR|EAD) ? '|
|00005600| 52 27 3a 27 20 27 2c 0a | 09 09 28 66 69 6c 65 73 |R':' ',.|..(files|
|00005610| 5b 69 5d 2e 66 5f 66 6c | 61 67 20 26 20 46 57 52 |[i].f_fl|ag & FWR|
|00005620| 49 54 45 29 20 3f 20 27 | 57 27 3a 27 20 27 2c 0a |ITE) ? '|W':' ',.|
|00005630| 09 09 28 66 69 6c 65 73 | 5b 69 5d 2e 66 5f 66 6c |..(files|[i].f_fl|
|00005640| 61 67 20 26 20 46 4e 44 | 45 4c 41 59 29 20 3f 20 |ag & FND|ELAY) ? |
|00005650| 27 4e 27 3a 27 20 27 2c | 0a 09 09 28 66 69 6c 65 |'N':' ',|...(file|
|00005660| 73 5b 69 5d 2e 66 5f 66 | 6c 61 67 20 26 20 46 41 |s[i].f_f|lag & FA|
|00005670| 50 50 45 4e 44 29 20 3f | 20 27 41 27 3a 27 20 27 |PPEND) ?| 'A':' '|
|00005680| 2c 0a 09 09 28 66 69 6c | 65 73 5b 69 5d 2e 66 5f |,...(fil|es[i].f_|
|00005690| 66 6c 61 67 20 26 20 46 | 53 59 4e 43 29 20 3f 20 |flag & F|SYNC) ? |
|000056a0| 27 53 27 3a 27 20 27 2c | 0a 09 09 28 66 69 6c 65 |'S':' ',|...(file|
|000056b0| 73 5b 69 5d 2e 66 5f 66 | 6c 61 67 20 26 20 46 43 |s[i].f_f|lag & FC|
|000056c0| 52 45 41 54 29 20 3f 20 | 27 43 27 3a 27 20 27 2c |REAT) ? |'C':' ',|
|000056d0| 0a 09 09 28 66 69 6c 65 | 73 5b 69 5d 2e 66 5f 66 |...(file|s[i].f_f|
|000056e0| 6c 61 67 20 26 20 46 54 | 52 55 4e 43 29 20 3f 20 |lag & FT|RUNC) ? |
|000056f0| 27 54 27 3a 27 20 27 2c | 0a 09 09 28 66 69 6c 65 |'T':' ',|...(file|
|00005700| 73 5b 69 5d 2e 66 5f 66 | 6c 61 67 20 26 20 46 45 |s[i].f_f|lag & FE|
|00005710| 58 43 4c 29 20 3f 20 27 | 58 27 3a 27 20 27 2c 0a |XCL) ? '|X':' ',.|
|00005720| 09 09 66 69 6c 65 73 5b | 69 5d 2e 66 5f 63 6f 75 |..files[|i].f_cou|
|00005730| 6e 74 2c 0a 09 09 66 69 | 6c 65 73 5b 69 5d 2e 66 |nt,...fi|les[i].f|
|00005740| 5f 69 6e 6f 64 65 20 2d | 20 28 73 74 72 75 63 74 |_inode -| (struct|
|00005750| 20 69 6e 6f 64 65 20 2a | 29 20 6e 61 6d 65 6c 69 | inode *|) nameli|
|00005760| 73 74 5b 4e 4d 5f 49 4e | 4f 44 45 5d 2e 78 6c 5f |st[NM_IN|ODE].xl_|
|00005770| 76 61 6c 75 65 2c 0a 09 | 09 66 69 6c 65 73 5b 69 |value,..|.files[i|
|00005780| 5d 2e 66 5f 6f 66 66 73 | 65 74 29 3b 0a 7d 0a 75 |].f_offs|et);.}.u|
|00005790| 73 65 72 20 28 75 29 20 | 20 20 20 20 20 20 2d 20 |ser (u) | - |
|000057a0| 75 73 65 72 20 70 61 67 | 65 20 69 6e 66 6f 72 6d |user pag|e inform|
|000057b0| 61 74 69 6f 6e 5c 6e 22 | 29 3b 0a 09 70 72 69 6e |ation\n"|);..prin|
|000057c0| 74 66 20 28 22 76 61 72 | 20 28 76 29 20 20 20 20 |tf ("var| (v) |
|000057d0| 20 20 20 20 2d 20 74 75 | 6e 61 62 6c 65 20 70 61 | - tu|nable pa|
|000057e0| 72 61 6d 65 74 65 72 73 | 5c 6e 22 29 3b 0a 7d 0a |rameters|\n");.}.|
|000057f0| 0a 71 75 69 74 20 28 29 | 0a 7b 0a 09 65 78 69 74 |.quit ()|.{..exit|
|00005800| 73 63 6f 2d 63 72 61 73 | 68 2f 69 6e 6f 64 65 73 |sco-cras|h/inodes|
|00005810| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00005820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005880| 20 20 20 33 35 35 33 20 | 20 34 34 30 34 30 35 37 | 3553 | 4404057|
|00005890| 30 30 30 20 20 20 37 34 | 30 37 00 20 00 00 00 00 |000 74|07. ....|
|000058a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 70 61 |#include| <sys/pa|
|00005a10| 72 61 6d 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ram.h>.#|include |
|00005a20| 3c 73 79 73 2f 73 79 73 | 6d 61 63 72 6f 73 2e 68 |<sys/sys|macros.h|
|00005a30| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00005a40| 74 79 70 65 73 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |types.h>|.#includ|
|00005a50| 65 20 3c 73 79 73 2f 76 | 61 72 2e 68 3e 0a 23 69 |e <sys/v|ar.h>.#i|
|00005a60| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 69 6e 6f 64 |nclude <|sys/inod|
|00005a70| 65 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 61 |e.h>.#in|clude <a|
|00005a80| 2e 6f 75 74 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |.out.h>.|#include|
|00005a90| 20 22 63 72 61 73 68 2e | 68 22 0a 0a 70 72 69 6e | "crash.|h"..prin|
|00005aa0| 6f 64 65 73 20 28 69 74 | 65 6d 73 2c 20 63 6e 74 |odes (it|ems, cnt|
|00005ab0| 29 0a 69 6e 74 09 2a 69 | 74 65 6d 73 3b 0a 69 6e |).int.*i|tems;.in|
|00005ac0| 74 09 63 6e 74 3b 0a 7b | 0a 09 69 6e 74 09 69 3b |t.cnt;.{|..int.i;|
|00005ad0| 0a 0a 09 69 6e 6f 64 65 | 73 20 3d 20 28 73 74 72 |...inode|s = (str|
|00005ae0| 75 63 74 20 69 6e 6f 64 | 65 20 2a 29 20 6d 61 6c |uct inod|e *) mal|
|00005af0| 6c 6f 63 20 28 76 2e 76 | 5f 69 6e 6f 64 65 20 2a |loc (v.v|_inode *|
|00005b00| 20 73 69 7a 65 6f 66 20 | 28 73 74 72 75 63 74 20 | sizeof |(struct |
|00005b10| 69 6e 6f 64 65 29 29 3b | 0a 09 6c 5f 6c 73 65 65 |inode));|..l_lsee|
|00005b20| 6b 20 28 6b 6d 65 6d 66 | 64 2c 20 6e 61 6d 65 6c |k (kmemf|d, namel|
|00005b30| 69 73 74 5b 4e 4d 5f 49 | 4e 4f 44 45 5d 2e 78 6c |ist[NM_I|NODE].xl|
|00005b40| 5f 76 61 6c 75 65 2c 20 | 30 29 3b 0a 09 72 5f 72 |_value, |0);..r_r|
|00005b50| 65 61 64 20 28 6b 6d 65 | 6d 66 64 2c 20 69 6e 6f |ead (kme|mfd, ino|
|00005b60| 64 65 73 2c 20 73 69 7a | 65 6f 66 20 28 73 74 72 |des, siz|eof (str|
|00005b70| 75 63 74 20 69 6e 6f 64 | 65 29 20 2a 20 76 2e 76 |uct inod|e) * v.v|
|00005b80| 5f 69 6e 6f 64 65 29 3b | 0a 0a 09 70 72 69 6e 74 |_inode);|...print|
|00005b90| 66 20 28 22 53 4c 4f 54 | 20 4d 41 4a 20 20 4d 49 |f ("SLOT| MAJ MI|
|00005ba0| 4e 20 49 4e 55 4d 42 20 | 52 45 46 20 4c 49 4e 4b |N INUMB |REF LINK|
|00005bb0| 20 20 55 49 44 20 20 47 | 49 44 20 20 20 20 20 53 | UID G|ID S|
|00005bc0| 49 5a 45 20 20 20 20 4d | 4f 44 45 20 53 4d 41 4a |IZE M|ODE SMAJ|
|00005bd0| 20 53 4d 49 4e 20 46 4c | 41 47 53 5c 6e 22 29 3b | SMIN FL|AGS\n");|
|00005be0| 0a 0a 09 69 66 20 28 63 | 6e 74 20 3d 3d 20 30 29 |...if (c|nt == 0)|
|00005bf0| 20 7b 0a 09 09 66 6f 72 | 20 28 69 20 3d 20 30 3b | {...for| (i = 0;|
|00005c00| 69 20 3c 20 76 2e 76 5f | 69 6e 6f 64 65 3b 69 2b |i < v.v_|inode;i+|
|00005c10| 2b 29 20 7b 0a 09 09 09 | 69 66 20 28 69 6e 6f 64 |+) {....|if (inod|
|00005c20| 65 73 5b 69 5d 2e 69 5f | 63 6f 75 6e 74 20 3d 3d |es[i].i_|count ==|
|00005c30| 20 30 29 0a 09 09 09 09 | 63 6f 6e 74 69 6e 75 65 | 0).....|continue|
|00005c40| 3b 0a 0a 09 09 09 64 6f | 69 6e 6f 64 65 20 28 69 |;.....do|inode (i|
|00005c50| 29 3b 0a 09 09 7d 0a 09 | 7d 20 65 6c 73 65 20 7b |);...}..|} else {|
|00005c60| 0a 09 09 66 6f 72 20 28 | 69 20 3d 20 30 3b 69 20 |...for (|i = 0;i |
|00005c70| 3c 20 63 6e 74 3b 69 2b | 2b 29 20 7b 0a 09 09 09 |< cnt;i+|+) {....|
|00005c80| 69 66 20 28 69 74 65 6d | 73 5b 69 5d 20 3e 3d 20 |if (item|s[i] >= |
|00005c90| 76 2e 76 5f 69 6e 6f 64 | 65 29 0a 09 09 09 09 70 |v.v_inod|e).....p|
|00005ca0| 72 69 6e 74 66 20 28 22 | 76 61 6c 75 65 20 28 25 |rintf ("|value (%|
|00005cb0| 64 29 20 6f 75 74 20 6f | 66 20 72 61 6e 67 65 5c |d) out o|f range\|
|00005cc0| 6e 22 2c 20 69 74 65 6d | 73 5b 69 5d 29 3b 0a 09 |n", item|s[i]);..|
|00005cd0| 09 09 65 6c 73 65 0a 09 | 09 09 09 64 6f 69 6e 6f |..else..|...doino|
|00005ce0| 64 65 20 28 69 74 65 6d | 73 5b 69 5d 29 3b 0a 09 |de (item|s[i]);..|
|00005cf0| 09 7d 0a 09 7d 0a 09 66 | 72 65 65 20 28 28 63 68 |.}..}..f|ree ((ch|
|00005d00| 61 72 20 2a 29 20 69 6e | 6f 64 65 73 29 3b 0a 7d |ar *) in|odes);.}|
|00005d10| 0a 09 0a 64 6f 69 6e 6f | 64 65 20 28 69 29 0a 69 |...doino|de (i).i|
|00005d20| 6e 74 09 69 3b 0a 7b 0a | 09 63 68 61 72 09 2a 6d |nt.i;.{.|.char.*m|
|00005d30| 6f 64 65 73 20 3d 20 22 | 20 70 63 43 64 20 62 42 |odes = "| pcCd bB|
|00005d40| 66 22 3b 0a 09 73 74 72 | 75 63 74 09 69 6e 6f 64 |f";..str|uct.inod|
|00005d50| 65 09 2a 69 70 3b 0a 0a | 09 69 70 20 3d 20 26 69 |e.*ip;..|.ip = &i|
|00005d60| 6e 6f 64 65 73 5b 69 5d | 3b 0a 0a 09 70 72 69 6e |nodes[i]|;...prin|
|00005d70| 74 66 20 28 22 25 34 64 | 20 25 30 33 6f 20 25 30 |tf ("%4d| %03o %0|
|00005d80| 34 6f 20 25 35 64 20 25 | 33 64 20 25 34 64 25 35 |4o %5d %|3d %4d%5|
|00005d90| 64 25 35 64 20 25 38 6c | 64 20 25 63 25 63 25 63 |d%5d %8l|d %c%c%c|
|00005da0| 25 63 25 30 33 6f 22 2c | 0a 09 09 69 2c 20 6d 61 |%c%03o",|...i, ma|
|00005db0| 6a 6f 72 20 28 69 70 2d | 3e 69 5f 64 65 76 29 2c |jor (ip-|>i_dev),|
|00005dc0| 20 6d 69 6e 6f 72 20 28 | 69 70 2d 3e 69 5f 64 65 | minor (|ip->i_de|
|00005dd0| 76 29 2c 20 69 70 2d 3e | 69 5f 6e 75 6d 62 65 72 |v), ip->|i_number|
|00005de0| 2c 0a 09 09 69 70 2d 3e | 69 5f 63 6f 75 6e 74 2c |,...ip->|i_count,|
|00005df0| 20 69 70 2d 3e 69 5f 6e | 6c 69 6e 6b 2c 20 69 70 | ip->i_n|link, ip|
|00005e00| 2d 3e 69 5f 75 69 64 2c | 20 69 70 2d 3e 69 5f 67 |->i_uid,| ip->i_g|
|00005e10| 69 64 2c 0a 09 09 69 70 | 2d 3e 69 5f 73 69 7a 65 |id,...ip|->i_size|
|00005e20| 2c 0a 09 09 6d 6f 64 65 | 73 5b 28 69 70 2d 3e 69 |,...mode|s[(ip->i|
|00005e30| 5f 6d 6f 64 65 20 26 20 | 49 46 4d 54 29 20 3e 3e |_mode & |IFMT) >>|
|00005e40| 20 31 32 5d 2c 0a 09 09 | 28 69 70 2d 3e 69 5f 6d | 12],...|(ip->i_m|
|00005e50| 6f 64 65 20 26 20 49 53 | 55 49 44 29 20 3f 20 27 |ode & IS|UID) ? '|
|00005e60| 75 27 3a 27 2d 27 2c 0a | 09 09 28 69 70 2d 3e 69 |u':'-',.|..(ip->i|
|00005e70| 5f 6d 6f 64 65 20 26 20 | 49 53 47 49 44 29 20 3f |_mode & |ISGID) ?|
|00005e80| 20 27 67 27 3a 27 2d 27 | 2c 0a 09 09 28 69 70 2d | 'g':'-'|,...(ip-|
|00005e90| 3e 69 5f 6d 6f 64 65 20 | 26 20 49 53 56 54 58 29 |>i_mode |& ISVTX)|
|00005ea0| 20 3f 20 27 74 27 3a 27 | 2d 27 2c 0a 09 09 28 69 | ? 't':'|-',...(i|
|00005eb0| 70 2d 3e 69 5f 6d 6f 64 | 65 20 26 20 30 37 37 37 |p->i_mod|e & 0777|
|00005ec0| 29 29 3b 0a 0a 09 69 66 | 20 28 21 20 28 28 28 69 |));...if| (! (((i|
|00005ed0| 70 2d 3e 69 5f 6d 6f 64 | 65 20 26 20 49 46 4d 54 |p->i_mod|e & IFMT|
|00005ee0| 29 20 3d 3d 20 49 46 44 | 49 52 29 20 7c 7c 0a 09 |) == IFD|IR) ||..|
|00005ef0| 09 28 28 69 70 2d 3e 69 | 5f 6d 6f 64 65 20 26 20 |.((ip->i|_mode & |
|00005f00| 49 46 4d 54 29 20 3d 3d | 20 49 46 52 45 47 29 20 |IFMT) ==| IFREG) |
|00005f10| 7c 7c 0a 09 09 28 28 69 | 70 2d 3e 69 5f 6d 6f 64 |||...((i|p->i_mod|
|00005f20| 65 20 26 20 49 46 4d 54 | 29 20 3d 3d 20 49 46 49 |e & IFMT|) == IFI|
|00005f30| 46 4f 29 29 29 0a 09 09 | 70 72 69 6e 74 66 20 28 |FO)))...|printf (|
|00005f40| 22 20 25 30 34 6f 20 25 | 30 34 6f 22 2c 20 6d 61 |" %04o %|04o", ma|
|00005f50| 6a 6f 72 20 28 69 70 2d | 3e 69 5f 72 64 65 76 29 |jor (ip-|>i_rdev)|
|00005f60| 2c 0a 09 09 09 09 09 6d | 69 6e 6f 72 20 28 69 70 |,......m|inor (ip|
|00005f70| 2d 3e 69 5f 72 64 65 76 | 29 29 3b 0a 09 65 6c 73 |->i_rdev|));..els|
|00005f80| 65 0a 09 09 70 72 69 6e | 74 66 20 28 22 20 20 20 |e...prin|tf (" |
|00005f90| 20 2d 20 20 20 20 2d 22 | 29 3b 09 2f 2a 20 73 70 | - -"|);./* sp|
|00005fa0| 65 63 69 61 6c 20 66 69 | 6c 65 20 73 74 75 66 66 |ecial fi|le stuff|
|00005fb0| 20 2a 2f 0a 09 69 66 20 | 28 69 70 2d 3e 69 5f 66 | */..if |(ip->i_f|
|00005fc0| 6c 61 67 20 26 20 49 55 | 50 44 29 09 09 70 72 69 |lag & IU|PD)..pri|
|00005fd0| 6e 74 66 20 28 22 20 75 | 70 64 22 29 3b 0a 09 69 |ntf (" u|pd");..i|
|00005fe0| 66 20 28 69 70 2d 3e 69 | 5f 66 6c 61 67 20 26 20 |f (ip->i|_flag & |
|00005ff0| 49 41 43 43 29 09 09 70 | 72 69 6e 74 66 20 28 22 |IACC)..p|rintf ("|
|00006000| 20 61 63 63 22 29 3b 0a | 09 69 66 20 28 69 70 2d | acc");.|.if (ip-|
|00006010| 3e 69 5f 66 6c 61 67 20 | 26 20 49 43 48 47 29 09 |>i_flag |& ICHG).|
|00006020| 09 70 72 69 6e 74 66 20 | 28 22 20 63 68 67 22 29 |.printf |(" chg")|
|00006030| 3b 0a 09 69 66 20 28 69 | 70 2d 3e 69 5f 66 6c 61 |;..if (i|p->i_fla|
|00006040| 67 20 26 20 49 4d 4f 55 | 4e 54 29 09 70 72 69 6e |g & IMOU|NT).prin|
|00006050| 74 66 20 28 22 20 6d 6e | 74 22 29 3b 0a 09 69 66 |tf (" mn|t");..if|
|00006060| 20 28 69 70 2d 3e 69 5f | 66 6c 61 67 20 26 20 49 | (ip->i_|flag & I|
|00006070| 54 45 58 54 29 09 09 70 | 72 69 6e 74 66 20 28 22 |TEXT)..p|rintf ("|
|00006080| 20 74 78 74 22 29 3b 0a | 09 69 66 20 28 69 70 2d | txt");.|.if (ip-|
|00006090| 3e 69 5f 66 6c 61 67 20 | 26 20 49 4c 4f 43 4b 29 |>i_flag |& ILOCK)|
|000060a0| 09 09 70 72 69 6e 74 66 | 20 28 22 20 6c 63 6b 22 |..printf| (" lck"|
|000060b0| 29 3b 0a 23 69 66 64 65 | 66 09 49 53 59 4e 0a 09 |);.#ifde|f.ISYN..|
|000060c0| 69 66 20 28 69 70 2d 3e | 69 5f 66 6c 61 67 20 26 |if (ip->|i_flag &|
|000060d0| 20 49 53 59 4e 29 09 09 | 70 72 69 6e 74 66 20 28 | ISYN)..|printf (|
|000060e0| 22 20 73 79 6e 22 29 3b | 0a 23 65 6e 64 69 66 0a |" syn");|.#endif.|
|000060f0| 23 69 66 64 65 66 09 49 | 52 4d 54 0a 09 69 66 20 |#ifdef.I|RMT..if |
|00006100| 28 69 70 2d 3e 69 5f 66 | 6c 61 67 20 26 20 49 52 |(ip->i_f|lag & IR|
|00006110| 4d 54 29 09 09 70 72 69 | 6e 74 66 20 28 22 20 72 |MT)..pri|ntf (" r|
|00006120| 6d 74 22 29 3b 0a 23 65 | 6e 64 69 66 0a 09 69 66 |mt");.#e|ndif..if|
|00006130| 20 28 69 70 2d 3e 69 5f | 66 6c 61 67 20 26 20 49 | (ip->i_|flag & I|
|00006140| 57 41 4e 54 29 09 09 70 | 72 69 6e 74 66 20 28 22 |WANT)..p|rintf ("|
|00006150| 20 77 6e 74 22 29 3b 0a | 0a 09 70 72 69 6e 74 66 | wnt");.|..printf|
|00006160| 20 28 22 5c 6e 22 29 3b | 0a 7d 0a 20 28 73 74 72 | ("\n");|.}. (str|
|00006170| 75 63 74 20 69 6e 6f 64 | 65 29 20 2a 20 76 2e 76 |uct inod|e) * v.v|
|00006180| 5f 69 6e 6f 64 65 29 3b | 0a 0a 09 70 72 69 6e 74 |_inode);|...print|
|00006190| 66 20 28 22 53 4c 4f 54 | 20 4d 41 4a 20 20 4d 49 |f ("SLOT| MAJ MI|
|000061a0| 4e 20 49 4e 55 4d 42 20 | 52 45 46 20 4c 49 4e 4b |N INUMB |REF LINK|
|000061b0| 20 20 55 49 44 20 20 47 | 49 44 20 20 20 20 20 53 | UID G|ID S|
|000061c0| 49 5a 45 20 20 20 20 4d | 4f 44 45 20 53 4d 41 4a |IZE M|ODE SMAJ|
|000061d0| 20 53 4d 49 4e 20 46 4c | 41 47 53 5c 6e 22 29 3b | SMIN FL|AGS\n");|
|000061e0| 0a 0a 09 69 66 20 28 63 | 6e 74 20 3d 3d 20 30 29 |...if (c|nt == 0)|
|000061f0| 20 7b 0a 09 09 66 6f 72 | 20 28 69 20 3d 20 30 3b | {...for| (i = 0;|
|00006200| 73 63 6f 2d 63 72 61 73 | 68 2f 6d 6f 75 6e 74 73 |sco-cras|h/mounts|
|00006210| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00006220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00006270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00006280| 20 20 20 33 35 32 31 20 | 20 34 34 30 34 30 35 37 | 3521 | 4404057|
|00006290| 30 30 31 20 20 20 37 34 | 34 37 00 20 00 00 00 00 |001 74|47. ....|
|000062a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.