home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / unix_c / sysadmin / lsof.tar < prev    next >
Tape Archive  |  1992-03-21  |  104.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: lsof.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file lsof/, mode 755 , uid 144 , gid 12 , size 0 , seconds 5162555241 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6c 73 6f 66 2f 00 00 00 | 00 00 00 00 00 00 00 00 |lsof/...|........|
|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 31 |.... 7|55 . 1|
|00000070| 34 34 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |44 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 31 36 32 35 35 35 | 0 | 5162555|
|00000090| 32 34 31 20 20 20 34 37 | 36 34 00 20 00 00 00 00 |241 47|64. ....|
|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| 6c 73 6f 66 2f 53 68 61 | 72 46 69 6c 65 2e 48 65 |lsof/Sha|rFile.He|
|00000210| 61 64 65 72 73 00 00 00 | 00 00 00 00 00 00 00 00 |aders...|........|
|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 31 |.... 6|44 . 1|
|00000270| 34 34 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |44 . |12 . |
|00000280| 20 20 20 31 30 33 37 20 | 20 35 31 36 32 35 35 35 | 1037 | 5162555|
|00000290| 32 34 31 20 20 31 30 30 | 34 34 00 20 00 00 00 00 |241 100|44. ....|
|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 6c 73 6f 66 | 2e 73 68 61 72 20 3d 3d |=== lsof|.shar ==|
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 0a | 53 75 62 6a 65 63 74 3a |=======.|Subject:|
|00000430| 20 20 76 32 35 69 30 30 | 32 3a 20 20 6c 73 6f 66 | v25i00|2: lsof|
|00000440| 20 2d 20 61 20 73 75 63 | 63 65 73 73 6f 72 20 74 | - a suc|cessor t|
|00000450| 6f 20 66 73 74 61 74 20 | 61 6e 64 20 6f 66 69 6c |o fstat |and ofil|
|00000460| 65 73 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |es.Newsg|roups: c|
|00000470| 6f 6d 70 2e 73 6f 75 72 | 63 65 73 2e 75 6e 69 78 |omp.sour|ces.unix|
|00000480| 0a 41 70 70 72 6f 76 65 | 64 3a 20 76 69 78 69 65 |.Approve|d: vixie|
|00000490| 40 70 61 2e 64 65 63 2e | 63 6f 6d 0a 0a 53 75 62 |@pa.dec.|com..Sub|
|000004a0| 6d 69 74 74 65 64 2d 62 | 79 3a 20 56 69 63 74 6f |mitted-b|y: Victo|
|000004b0| 72 20 41 20 41 62 65 6c | 6c 20 3c 61 62 65 40 6d |r A Abel|l <abe@m|
|000004c0| 61 63 65 2e 63 63 2e 70 | 75 72 64 75 65 2e 65 64 |ace.cc.p|urdue.ed|
|000004d0| 75 3e 0a 50 6f 73 74 69 | 6e 67 2d 6e 75 6d 62 65 |u>.Posti|ng-numbe|
|000004e0| 72 3a 20 56 6f 6c 75 6d | 65 20 32 35 2c 20 49 73 |r: Volum|e 25, Is|
|000004f0| 73 75 65 20 32 0a 41 72 | 63 68 69 76 65 2d 6e 61 |sue 2.Ar|chive-na|
|00000500| 6d 65 3a 20 6c 73 6f 66 | 0a 0a 4c 73 6f 66 20 28 |me: lsof|..Lsof (|
|00000510| 66 6f 72 20 4c 69 53 74 | 20 4f 70 65 6e 20 46 69 |for LiSt| Open Fi|
|00000520| 6c 65 73 29 20 6c 69 73 | 74 73 20 66 69 6c 65 73 |les) lis|ts files|
|00000530| 20 6f 70 65 6e 65 64 20 | 62 79 20 70 72 6f 63 65 | opened |by proce|
|00000540| 73 73 65 73 20 6f 6e 20 | 73 65 6c 65 63 74 65 64 |sses on |selected|
|00000550| 0a 55 6e 69 78 20 73 79 | 73 74 65 6d 73 2e 20 20 |.Unix sy|stems. |
|00000560| 49 74 20 69 73 20 6d 79 | 20 61 6e 73 77 65 72 20 |It is my| answer |
|00000570| 74 6f 20 74 68 6f 73 65 | 20 77 68 6f 20 72 65 67 |to those| who reg|
|00000580| 75 6c 61 72 6c 79 20 61 | 73 6b 20 6d 65 20 77 68 |ularly a|sk me wh|
|00000590| 65 6e 20 49 20 61 6d 0a | 67 6f 69 6e 67 20 74 6f |en I am.|going to|
|000005a0| 20 6d 61 6b 65 20 66 73 | 74 61 74 20 28 63 6f 6d | make fs|tat (com|
|000005b0| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 20 76 |p.source|s.unix v|
|000005c0| 6f 6c 75 6d 65 20 31 38 | 2c 20 6e 75 6d 62 65 72 |olume 18|, number|
|000005d0| 20 31 30 37 29 20 6f 72 | 20 6f 66 69 6c 65 73 0a | 107) or| ofiles.|
|000005e0| 58 28 76 6f 6c 75 6d 65 | 20 31 38 2c 20 6e 75 6d |X(volume| 18, num|
|000005f0| 62 65 72 20 35 37 29 20 | 61 76 61 69 6c 61 62 6c |ber 57) |availabl|
|00000600| 65 20 6f 6e 20 53 75 6e | 4f 53 20 34 2e 31 2e 31 |e on Sun|OS 4.1.1|
|00000610| 20 6f 72 20 74 68 65 20 | 6c 69 6b 65 2e 0a 0a 00 | or the |like....|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 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| 6c 73 6f 66 2f 30 30 44 | 49 53 54 00 00 00 00 00 |lsof/00D|IST.....|
|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 31 |.... 6|44 . 1|
|00000870| 34 34 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |44 . |12 . |
|00000880| 20 20 20 33 30 33 34 20 | 20 35 31 36 32 35 35 35 | 3034 | 5162555|
|00000890| 32 33 37 20 20 20 35 37 | 30 34 00 20 00 00 00 00 |237 57|04. ....|
|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| 09 4e 6f 74 65 73 20 66 | 6f 72 20 74 68 65 20 63 |.Notes f|or the c|
|00000a10| 6f 6d 70 2e 73 6f 75 72 | 63 65 73 2e 75 6e 69 78 |omp.sour|ces.unix|
|00000a20| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 20 6f 66 | distrib|ution of|
|00000a30| 20 6c 73 6f 66 20 31 2e | 30 0a 0a 4c 73 6f 66 20 | lsof 1.|0..Lsof |
|00000a40| 28 66 6f 72 20 4c 69 53 | 74 20 4f 70 65 6e 20 46 |(for LiS|t Open F|
|00000a50| 69 6c 65 73 29 20 6c 69 | 73 74 73 20 66 69 6c 65 |iles) li|sts file|
|00000a60| 73 20 6f 70 65 6e 65 64 | 20 62 79 20 70 72 6f 63 |s opened| by proc|
|00000a70| 65 73 73 65 73 20 6f 6e | 20 73 65 6c 65 63 74 65 |esses on| selecte|
|00000a80| 64 0a 55 6e 69 78 20 73 | 79 73 74 65 6d 73 2e 20 |d.Unix s|ystems. |
|00000a90| 20 49 74 20 69 73 20 6d | 79 20 61 6e 73 77 65 72 | It is m|y answer|
|00000aa0| 20 74 6f 20 74 68 6f 73 | 65 20 77 68 6f 20 72 65 | to thos|e who re|
|00000ab0| 67 75 6c 61 72 6c 79 20 | 61 73 6b 20 6d 65 20 77 |gularly |ask me w|
|00000ac0| 68 65 6e 20 49 20 61 6d | 0a 67 6f 69 6e 67 20 74 |hen I am|.going t|
|00000ad0| 6f 20 6d 61 6b 65 20 66 | 73 74 61 74 20 28 63 6f |o make f|stat (co|
|00000ae0| 6d 70 2e 73 6f 75 72 63 | 65 73 2e 75 6e 69 78 20 |mp.sourc|es.unix |
|00000af0| 76 6f 6c 75 6d 65 20 31 | 38 2c 20 6e 75 6d 62 65 |volume 1|8, numbe|
|00000b00| 72 20 31 30 37 29 20 6f | 72 20 6f 66 69 6c 65 73 |r 107) o|r ofiles|
|00000b10| 0a 28 76 6f 6c 75 6d 65 | 20 31 38 2c 20 6e 75 6d |.(volume| 18, num|
|00000b20| 62 65 72 20 35 37 29 20 | 61 76 61 69 6c 61 62 6c |ber 57) |availabl|
|00000b30| 65 20 6f 6e 20 53 75 6e | 4f 53 20 34 2e 31 2e 31 |e on Sun|OS 4.1.1|
|00000b40| 20 6f 72 20 74 68 65 20 | 6c 69 6b 65 2e 0a 0a 4c | or the |like...L|
|00000b50| 73 6f 66 20 69 73 20 61 | 20 63 6f 6d 70 6c 65 74 |sof is a| complet|
|00000b60| 65 20 72 65 64 65 73 69 | 67 6e 20 6f 66 20 74 68 |e redesi|gn of th|
|00000b70| 65 20 66 73 74 61 74 2f | 6f 66 69 6c 65 73 20 73 |e fstat/|ofiles s|
|00000b80| 65 72 69 65 73 2c 20 62 | 61 73 65 64 20 6f 6e 20 |eries, b|ased on |
|00000b90| 74 68 65 20 53 75 6e 4f | 53 0a 76 6e 6f 64 65 20 |the SunO|S.vnode |
|00000ba0| 6d 6f 64 65 6c 2e 20 20 | 54 68 75 73 2c 20 69 74 |model. |Thus, it|
|00000bb0| 20 68 61 73 20 62 65 65 | 6e 20 74 65 73 74 65 64 | has bee|n tested|
|00000bc0| 20 6f 6e 20 41 49 58 20 | 33 2e 31 2e 5b 33 35 37 | on AIX |3.1.[357|
|00000bd0| 5d 2c 20 48 50 2d 55 58 | 20 5b 37 38 5d 2e 78 2c |], HP-UX| [78].x,|
|00000be0| 0a 4e 65 58 54 53 74 65 | 70 20 32 2e 5b 30 31 5d |.NeXTSte|p 2.[01]|
|00000bf0| 2c 20 53 65 71 75 65 6e | 74 20 44 79 6e 69 78 20 |, Sequen|t Dynix |
|00000c00| 33 2e 30 2e 31 32 20 61 | 6e 64 20 33 2e 31 2e 32 |3.0.12 a|nd 3.1.2|
|00000c10| 2c 20 61 6e 64 20 53 75 | 6e 6f 73 20 34 2e 31 20 |, and Su|nos 4.1 |
|00000c20| 61 6e 64 20 34 2e 31 2e | 31 2e 0a 55 73 69 6e 67 |and 4.1.|1..Using|
|00000c30| 20 61 76 61 69 6c 61 62 | 6c 65 20 6b 65 72 6e 65 | availab|le kerne|
|00000c40| 6c 20 61 63 63 65 73 73 | 20 6d 65 74 68 6f 64 73 |l access| methods|
|00000c50| 2c 20 73 75 63 68 20 61 | 73 20 6e 6c 69 73 74 28 |, such a|s nlist(|
|00000c60| 29 20 61 6e 64 20 6b 76 | 6d 5f 72 65 61 64 28 29 |) and kv|m_read()|
|00000c70| 2c 0a 6c 73 6f 66 20 72 | 65 61 64 73 20 70 72 6f |,.lsof r|eads pro|
|00000c80| 63 65 73 73 20 74 61 62 | 6c 65 20 65 6e 74 72 69 |cess tab|le entri|
|00000c90| 65 73 2c 20 75 73 65 72 | 20 61 72 65 61 73 20 61 |es, user| areas a|
|00000ca0| 6e 64 20 66 69 6c 65 20 | 70 6f 69 6e 74 65 72 73 |nd file |pointers|
|00000cb0| 20 74 6f 20 72 65 61 63 | 68 0a 74 68 65 20 75 6e | to reac|h.the un|
|00000cc0| 64 65 72 6c 79 69 6e 67 | 20 73 74 72 75 63 74 75 |derlying| structu|
|00000cd0| 72 65 73 20 74 68 61 74 | 20 64 65 73 63 72 69 62 |res that| describ|
|00000ce0| 65 20 66 69 6c 65 73 20 | 6f 70 65 6e 65 64 20 62 |e files |opened b|
|00000cf0| 79 20 70 72 6f 63 65 73 | 73 65 73 2e 0a 0a 4c 73 |y proces|ses...Ls|
|00000d00| 6f 66 20 69 6e 74 65 72 | 70 72 65 74 73 20 6d 6f |of inter|prets mo|
|00000d10| 73 74 20 76 6e 6f 64 65 | 20 65 78 74 65 6e 73 69 |st vnode| extensi|
|00000d20| 6f 6e 73 20 2d 2d 20 63 | 64 72 6e 6f 64 65 73 2c |ons -- c|drnodes,|
|00000d30| 20 66 69 66 6f 6e 6f 64 | 65 73 2c 20 67 6e 6f 64 | fifonod|es, gnod|
|00000d40| 65 73 2c 0a 69 6e 6f 64 | 65 73 2c 20 72 6e 6f 64 |es,.inod|es, rnod|
|00000d50| 65 73 2c 20 73 6e 6f 64 | 65 73 20 61 6e 64 20 74 |es, snod|es and t|
|00000d60| 6d 70 6e 6f 64 65 73 2e | 20 20 49 74 20 75 6e 64 |mpnodes.| It und|
|00000d70| 65 72 73 74 61 6e 64 73 | 20 4e 46 53 20 63 6f 6e |erstands| NFS con|
|00000d80| 6e 65 63 74 69 6f 6e 73 | 2e 20 20 49 74 0a 72 65 |nections|. It.re|
|00000d90| 63 6f 67 6e 69 7a 65 73 | 20 46 49 46 4f 73 2c 20 |cognizes| FIFOs, |
|00000da0| 6d 75 6c 74 69 70 6c 65 | 78 65 64 20 66 69 6c 65 |multiple|xed file|
|00000db0| 73 2c 20 55 6e 69 78 20 | 61 6e 64 20 49 6e 74 65 |s, Unix |and Inte|
|00000dc0| 72 6e 65 74 20 73 6f 63 | 6b 65 74 73 2e 0a 0a 4c |rnet soc|kets...L|
|00000dd0| 73 6f 66 20 61 63 63 65 | 70 74 73 20 6f 70 74 69 |sof acce|pts opti|
|00000de0| 6f 6e 73 20 74 6f 20 6c | 69 6d 69 74 20 61 6e 64 |ons to l|imit and|
|00000df0| 20 66 69 6c 74 65 72 20 | 69 74 73 20 6f 75 74 70 | filter |its outp|
|00000e00| 75 74 2e 20 20 54 68 61 | 74 20 6f 75 74 70 75 74 |ut. Tha|t output|
|00000e10| 20 64 65 73 63 72 69 62 | 65 73 0a 74 68 65 20 70 | describ|es.the p|
|00000e20| 72 6f 63 65 73 73 20 74 | 68 61 74 20 68 61 73 20 |rocess t|hat has |
|00000e30| 6f 70 65 6e 65 64 20 74 | 68 65 20 66 69 6c 65 2c |opened t|he file,|
|00000e40| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 74 68 65 | the com|mand the|
|00000e50| 20 70 72 6f 63 65 73 73 | 20 69 73 20 65 78 65 63 | process| is exec|
|00000e60| 75 74 69 6e 67 2c 0a 74 | 68 65 20 6f 77 6e 65 72 |uting,.t|he owner|
|00000e70| 20 6f 66 20 74 68 65 20 | 70 72 6f 63 65 73 73 2c | of the |process,|
|00000e80| 20 74 68 65 20 66 69 6c | 65 20 64 65 73 63 72 69 | the fil|e descri|
|00000e90| 70 74 6f 72 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |ptor of |the file|
|00000ea0| 2c 20 61 6e 64 20 74 68 | 65 20 66 69 6c 65 27 73 |, and th|e file's|
|00000eb0| 0a 64 65 76 69 63 65 2c | 20 69 6e 6f 64 65 20 6e |.device,| inode n|
|00000ec0| 75 6d 62 65 72 2c 20 73 | 69 7a 65 20 61 6e 64 20 |umber, s|ize and |
|00000ed0| 66 69 6c 65 20 73 79 73 | 74 65 6d 20 6e 61 6d 65 |file sys|tem name|
|00000ee0| 2e 20 20 41 64 64 69 74 | 69 6f 6e 61 6c 20 73 70 |. Addit|ional sp|
|00000ef0| 65 63 69 61 6c 20 6f 75 | 74 70 75 74 0a 69 73 20 |ecial ou|tput.is |
|00000f00| 70 72 6f 76 69 64 65 64 | 20 66 6f 72 20 73 70 65 |provided| for spe|
|00000f10| 63 69 61 6c 20 66 69 6c | 65 73 20 2d 2d 20 65 2e |cial fil|es -- e.|
|00000f20| 20 67 2e 2c 20 74 68 65 | 20 6c 6f 63 61 6c 20 61 | g., the| local a|
|00000f30| 6e 64 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 49 |nd desti|nation I|
|00000f40| 6e 74 65 72 6e 65 74 0a | 61 64 64 72 65 73 73 65 |nternet.|addresse|
|00000f50| 73 20 6f 66 20 49 6e 74 | 65 72 6e 65 74 20 73 6f |s of Int|ernet so|
|00000f60| 63 6b 65 74 20 66 69 6c | 65 73 2e 0a 0a 4c 73 6f |cket fil|es...Lso|
|00000f70| 66 20 6d 61 79 20 62 65 | 20 75 73 65 64 20 61 6e |f may be| used an|
|00000f80| 64 20 64 69 73 74 72 69 | 62 75 74 65 64 20 66 72 |d distri|buted fr|
|00000f90| 65 65 6c 79 2c 20 73 75 | 62 6a 65 63 74 20 74 6f |eely, su|bject to|
|00000fa0| 20 74 68 65 20 6c 69 6d | 69 74 65 64 20 63 6f 6e | the lim|ited con|
|00000fb0| 64 69 74 69 6f 6e 73 0a | 64 65 73 63 72 69 62 65 |ditions.|describe|
|00000fc0| 64 20 69 6e 20 69 74 73 | 20 73 6f 75 72 63 65 20 |d in its| source |
|00000fd0| 66 69 6c 65 2e 0a 0a 56 | 69 63 74 6f 72 20 41 2e |file...V|ictor A.|
|00000fe0| 20 41 62 65 6c 6c 0a 50 | 75 72 64 75 65 20 55 6e | Abell.P|urdue Un|
|00000ff0| 69 76 65 72 73 69 74 79 | 20 43 6f 6d 70 75 74 69 |iversity| Computi|
|00001000| 6e 67 20 43 65 6e 74 65 | 72 0a 4e 6f 76 65 6d 62 |ng Cente|r.Novemb|
|00001010| 65 72 20 32 32 2c 20 31 | 39 39 31 0a 00 00 00 00 |er 22, 1|991.....|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 6c 73 6f 66 2f 30 30 52 | 45 41 44 4d 45 00 00 00 |lsof/00R|EADME...|
|00001210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 31 |.... 6|44 . 1|
|00001270| 34 34 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |44 . |12 . |
|00001280| 20 20 20 32 37 36 34 20 | 20 35 31 36 32 35 35 35 | 2764 | 5162555|
|00001290| 32 33 37 20 20 20 36 31 | 30 37 00 20 00 00 00 00 |237 61|07. ....|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 09 09 20 20 20 20 4d 61 | 6b 69 6e 67 20 61 6e 64 |.. Ma|king and|
|00001410| 20 49 6e 73 74 61 6c 6c | 69 6e 67 20 6c 73 6f 66 | Install|ing lsof|
|00001420| 20 31 2e 30 0a 0a 54 68 | 65 20 4d 61 6b 65 66 69 | 1.0..Th|e Makefi|
|00001430| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 72 75 6c 65 |le conta|ins rule|
|00001440| 73 20 66 6f 72 20 6d 61 | 6b 69 6e 67 20 4d 61 6b |s for ma|king Mak|
|00001450| 65 66 69 6c 65 27 73 20 | 66 6f 72 20 73 70 65 63 |efile's |for spec|
|00001460| 69 66 69 63 20 55 4e 49 | 58 20 76 65 72 73 69 6f |ific UNI|X versio|
|00001470| 6e 73 0a 2d 2d 20 65 2e | 20 67 2e 2c 20 60 60 6d |ns.-- e.| g., ``m|
|00001480| 61 6b 65 20 4d 61 6b 65 | 66 69 6c 65 2e 73 75 6e |ake Make|file.sun|
|00001490| 27 27 2e 20 20 49 66 20 | 6e 6f 6e 65 20 6f 66 20 |''. If |none of |
|000014a0| 74 68 65 20 73 75 70 70 | 6c 69 65 64 20 72 75 6c |the supp|lied rul|
|000014b0| 65 73 20 66 69 74 73 20 | 79 6f 75 72 0a 63 6f 6e |es fits |your.con|
|000014c0| 66 69 67 75 72 61 74 69 | 6f 6e 2c 20 74 68 65 20 |figurati|on, the |
|000014d0| 4d 61 6b 65 66 69 6c 65 | 20 68 61 73 20 63 6f 6d |Makefile| has com|
|000014e0| 6d 65 6e 74 73 20 61 62 | 6f 75 74 20 74 68 65 20 |ments ab|out the |
|000014f0| 73 74 72 69 6e 67 73 20 | 74 68 61 74 20 79 6f 75 |strings |that you|
|00001500| 20 6d 61 79 20 6e 65 65 | 64 0a 74 6f 20 63 68 61 | may nee|d.to cha|
|00001510| 6e 67 65 2e 20 20 59 6f | 75 20 6d 61 79 20 6e 65 |nge. Yo|u may ne|
|00001520| 65 64 20 74 6f 20 63 68 | 65 63 6b 20 79 6f 75 72 |ed to ch|eck your|
|00001530| 20 63 70 70 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | cpp doc|umentati|
|00001540| 6f 6e 20 74 6f 20 73 65 | 65 20 69 66 20 74 68 65 |on to se|e if the|
|00001550| 20 73 74 61 6e 64 61 72 | 64 0a 73 79 6d 62 6f 6c | standar|d.symbol|
|00001560| 20 74 68 61 74 20 6c 73 | 6f 66 2e 63 20 61 73 73 | that ls|of.c ass|
|00001570| 75 6d 65 73 20 66 6f 72 | 20 79 6f 75 72 20 73 79 |umes for| your sy|
|00001580| 73 74 65 6d 20 69 73 20 | 64 65 66 69 6e 65 64 2e |stem is |defined.|
|00001590| 20 20 41 73 20 61 6e 20 | 65 78 61 6d 70 6c 65 2c | As an |example,|
|000015a0| 20 69 66 20 74 68 65 0a | 60 60 68 70 75 78 27 27 | if the.|``hpux''|
|000015b0| 20 73 79 6d 62 6f 6c 20 | 69 73 20 64 65 66 69 6e | symbol |is defin|
|000015c0| 65 64 20 62 79 20 63 70 | 70 2c 20 74 6f 20 63 6f |ed by cp|p, to co|
|000015d0| 6d 70 69 6c 65 20 6c 73 | 6f 66 20 75 6e 64 65 72 |mpile ls|of under|
|000015e0| 20 48 50 2d 55 58 20 38 | 2e 78 2c 20 79 6f 75 20 | HP-UX 8|.x, you |
|000015f0| 6e 65 65 64 0a 74 6f 20 | 64 65 63 6c 61 72 65 3a |need.to |declare:|
|00001600| 0a 0a 09 53 59 53 44 45 | 46 53 20 3d 20 2d 44 48 |...SYSDE|FS = -DH|
|00001610| 50 55 58 38 0a 0a 53 65 | 74 20 74 68 65 20 66 6f |PUX8..Se|t the fo|
|00001620| 6c 6c 6f 77 69 6e 67 20 | 4d 61 6b 65 66 69 6c 65 |llowing |Makefile|
|00001630| 20 73 74 72 69 6e 67 73 | 20 66 6f 72 20 69 6e 73 | strings| for ins|
|00001640| 74 61 6c 6c 69 6e 67 20 | 6c 73 6f 66 3a 0a 0a 09 |talling |lsof:...|
|00001650| 42 49 4e 09 09 64 65 73 | 74 69 6e 61 74 69 6f 6e |BIN..des|tination|
|00001660| 20 64 69 72 65 63 74 6f | 72 79 20 66 6f 72 20 74 | directo|ry for t|
|00001670| 68 65 20 69 6e 73 74 61 | 6c 6c 20 72 75 6c 65 0a |he insta|ll rule.|
|00001680| 09 43 44 45 46 53 09 09 | 63 6f 6d 70 69 6c 65 72 |.CDEFS..|compiler|
|00001690| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 0a 09 44 45 | definit|ions..DE|
|000016a0| 42 55 47 09 09 63 6f 6d | 70 69 6c 65 72 20 6f 70 |BUG..com|piler op|
|000016b0| 74 69 6d 69 7a 61 74 69 | 6f 6e 73 20 2d 2d 20 65 |timizati|ons -- e|
|000016c0| 2e 20 67 2e 2c 20 2d 67 | 20 6f 72 20 2d 4f 0a 09 |. g., -g| or -O..|
|000016d0| 44 4f 43 09 09 64 65 73 | 74 69 6e 61 74 69 6f 6e |DOC..des|tination|
|000016e0| 20 64 69 72 65 63 74 6f | 72 79 20 66 6f 72 20 74 | directo|ry for t|
|000016f0| 68 65 20 50 55 43 43 2d | 73 70 65 63 69 66 69 63 |he PUCC-|specific|
|00001700| 20 6d 6b 63 61 74 20 72 | 75 6c 65 0a 09 47 52 50 | mkcat r|ule..GRP|
|00001710| 09 09 67 72 6f 75 70 20 | 28 6d 61 79 20 6e 65 65 |..group |(may nee|
|00001720| 64 20 74 6f 20 62 65 20 | 74 68 65 20 67 72 6f 75 |d to be |the grou|
|00001730| 70 20 74 68 61 74 20 63 | 61 6e 20 72 65 61 64 0a |p that c|an read.|
|00001740| 09 09 09 2f 64 65 76 2f | 6b 6d 65 6d 29 20 28 73 |.../dev/|kmem) (s|
|00001750| 65 65 20 4d 4f 44 45 29 | 0a 09 4c 44 4c 49 42 09 |ee MODE)|..LDLIB.|
|00001760| 09 73 70 65 63 69 61 6c | 20 6c 6f 61 64 65 72 20 |.special| loader |
|00001770| 6c 69 62 72 61 72 79 20 | 2d 2d 20 65 2e 20 67 2e |library |-- e. g.|
|00001780| 2c 20 2d 6c 6b 76 6d 20 | 66 6f 72 20 53 75 6e 4f |, -lkvm |for SunO|
|00001790| 53 0a 09 4d 4f 44 45 09 | 09 30 37 35 35 20 2b 20 |S..MODE.|.0755 + |
|000017a0| 32 30 30 30 20 69 66 20 | 73 65 74 67 69 64 20 61 |2000 if |setgid a|
|000017b0| 63 63 65 73 73 20 6e 65 | 65 64 65 64 20 74 6f 20 |ccess ne|eded to |
|000017c0| 2f 64 65 76 2f 6b 6d 65 | 6d 2c 0a 09 09 09 61 6e |/dev/kme|m,....an|
|000017d0| 64 20 2b 34 30 30 30 20 | 69 66 20 61 6e 79 20 75 |d +4000 |if any u|
|000017e0| 73 65 72 20 73 68 6f 75 | 6c 64 20 62 65 20 61 62 |ser shou|ld be ab|
|000017f0| 6c 65 20 74 6f 20 73 65 | 61 72 63 68 20 66 6f 72 |le to se|arch for|
|00001800| 0a 09 09 09 61 6e 79 20 | 66 69 6c 65 2c 20 72 65 |....any |file, re|
|00001810| 67 61 72 64 6c 65 73 73 | 20 6f 66 20 6f 77 6e 65 |gardless| of owne|
|00001820| 72 73 68 69 70 20 6f 72 | 20 70 65 72 6d 69 73 73 |rship or| permiss|
|00001830| 69 6f 6e 73 0a 09 53 48 | 45 4c 4c 09 09 74 68 65 |ions..SH|ELL..the|
|00001840| 20 73 68 65 6c 6c 20 6d | 61 6b 65 28 31 29 20 73 | shell m|ake(1) s|
|00001850| 68 6f 75 6c 64 20 75 73 | 65 20 2d 2d 20 75 73 75 |hould us|e -- usu|
|00001860| 61 6c 6c 79 20 2f 62 69 | 6e 2f 73 68 0a 0a 59 6f |ally /bi|n/sh..Yo|
|00001870| 75 20 6d 61 79 20 61 6c | 73 6f 20 68 61 76 65 20 |u may al|so have |
|00001880| 74 6f 20 63 68 61 6e 67 | 65 20 74 68 65 20 69 6e |to chang|e the in|
|00001890| 73 74 61 6c 6c 20 72 75 | 6c 65 20 74 6f 20 75 73 |stall ru|le to us|
|000018a0| 65 20 73 65 70 61 72 61 | 74 65 20 63 6f 6d 6d 61 |e separa|te comma|
|000018b0| 6e 64 73 20 2d 2d 0a 63 | 70 2c 20 63 68 6f 77 6e |nds --.c|p, chown|
|000018c0| 2c 20 63 68 67 72 70 2c | 20 63 68 6d 6f 64 20 2d |, chgrp,| chmod -|
|000018d0| 2d 20 69 66 20 79 6f 75 | 72 20 73 79 73 74 65 6d |- if you|r system|
|000018e0| 27 73 20 69 6e 73 74 61 | 6c 6c 20 63 6f 6d 6d 61 |'s insta|ll comma|
|000018f0| 6e 64 20 64 6f 65 73 20 | 6e 6f 74 20 68 6f 6e 6f |nd does |not hono|
|00001900| 72 0a 42 65 72 6b 65 6c | 65 79 20 73 79 6e 74 61 |r.Berkel|ey synta|
|00001910| 78 2e 0a 0a 49 66 20 79 | 6f 75 72 20 48 50 2d 55 |x...If y|our HP-U|
|00001920| 58 20 68 70 39 30 30 30 | 73 38 30 30 20 73 79 73 |X hp9000|s800 sys|
|00001930| 74 65 6d 20 64 6f 65 73 | 20 6e 6f 74 20 68 61 76 |tem does| not hav|
|00001940| 65 20 74 68 65 20 3c 73 | 79 73 2f 66 73 73 2e 68 |e the <s|ys/fss.h|
|00001950| 3e 20 68 65 61 64 65 72 | 20 66 69 6c 65 0a 61 64 |> header| file.ad|
|00001960| 64 20 60 60 2d 49 2e 27 | 27 20 74 6f 20 74 68 65 |d ``-I.'|' to the|
|00001970| 20 43 44 45 46 53 20 72 | 75 6c 65 20 2d 2d 20 65 | CDEFS r|ule -- e|
|00001980| 2e 20 67 2e 2c 0a 0a 09 | 43 44 45 46 53 3d 20 2d |. g.,...|CDEFS= -|
|00001990| 49 2e 0a 0a 0a 56 69 63 | 20 41 62 65 6c 6c 20 3c |I....Vic| Abell <|
|000019a0| 61 62 65 40 6d 61 63 65 | 2e 63 63 2e 70 75 72 64 |abe@mace|.cc.purd|
|000019b0| 75 65 2e 65 64 75 3e 0a | 50 75 72 64 75 65 20 55 |ue.edu>.|Purdue U|
|000019c0| 6e 69 76 65 72 73 69 74 | 79 20 43 6f 6d 70 75 74 |niversit|y Comput|
|000019d0| 69 6e 67 20 43 65 6e 74 | 65 72 20 28 50 55 43 43 |ing Cent|er (PUCC|
|000019e0| 29 0a 4e 6f 76 65 6d 62 | 65 72 20 32 32 2c 20 31 |).Novemb|er 22, 1|
|000019f0| 39 39 31 0a 73 69 74 79 | 20 43 6f 6d 70 75 74 69 |991.sity| Computi|
|00001a00| 6c 73 6f 66 2f 4d 61 6b | 65 66 69 6c 65 00 00 00 |lsof/Mak|efile...|
|00001a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 31 |.... 6|44 . 1|
|00001a70| 34 34 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |44 . |12 . |
|00001a80| 20 20 20 36 30 36 30 20 | 20 35 31 36 32 35 35 35 | 6060 | 5162555|
|00001a90| 32 33 37 20 20 20 36 35 | 32 30 00 20 00 00 00 00 |237 65|20. ....|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 23 09 24 49 64 3a 20 4d | 61 6b 65 66 69 6c 65 2c |#.$Id: M|akefile,|
|00001c10| 76 20 31 2e 31 20 39 31 | 2f 31 31 2f 32 32 20 30 |v 1.1 91|/11/22 0|
|00001c20| 39 3a 32 31 3a 30 37 20 | 61 62 65 20 45 78 70 20 |9:21:07 |abe Exp |
|00001c30| 24 0a 23 0a 23 09 4d 61 | 6b 65 66 69 6c 65 20 66 |$.#.#.Ma|kefile f|
|00001c40| 6f 72 20 6c 73 6f 66 28 | 38 4c 29 0a 23 0a 23 09 |or lsof(|8L).#.#.|
|00001c50| 56 69 63 74 6f 72 20 41 | 2e 20 41 62 65 6c 6c 20 |Victor A|. Abell |
|00001c60| 3c 61 62 65 40 6d 61 63 | 65 2e 63 63 2e 70 75 72 |<abe@mac|e.cc.pur|
|00001c70| 64 75 65 2e 65 64 75 3e | 0a 23 09 50 75 72 64 75 |due.edu>|.#.Purdu|
|00001c80| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 43 6f 6d |e Univer|sity Com|
|00001c90| 70 75 74 69 6e 67 20 43 | 65 6e 74 65 72 20 28 50 |puting C|enter (P|
|00001ca0| 55 43 43 29 0a 0a 23 20 | 4e 6f 74 65 3a 20 74 68 |UCC)..# |Note: th|
|00001cb0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 70 70 20 |e follow|ing cpp |
|00001cc0| 28 6f 72 20 65 71 75 69 | 76 61 6c 65 6e 74 29 20 |(or equi|valent) |
|00001cd0| 64 65 66 69 6e 69 74 69 | 6f 6e 73 20 61 72 65 20 |definiti|ons are |
|00001ce0| 61 73 73 75 6d 65 64 2e | 0a 23 0a 23 20 20 20 20 |assumed.|.#.# |
|00001cf0| 20 20 20 41 49 58 20 33 | 2e 31 2e 5b 33 35 37 5d | AIX 3|.1.[357]|
|00001d00| 20 20 20 20 20 20 20 20 | 20 20 20 2d 44 5f 49 42 | | -D_IB|
|00001d10| 4d 52 32 0a 23 20 20 20 | 20 20 20 20 48 50 2d 55 |MR2.# | HP-U|
|00001d20| 58 20 37 2e 78 20 20 20 | 20 20 20 20 20 20 20 20 |X 7.x | |
|00001d30| 20 20 20 20 2d 44 68 70 | 75 78 0a 23 20 20 20 20 | -Dhp|ux.# |
|00001d40| 20 20 20 48 50 2d 55 58 | 20 38 2e 78 20 20 20 20 | HP-UX| 8.x |
|00001d50| 20 20 20 20 20 20 20 20 | 20 20 20 2d 44 68 70 75 | | -Dhpu|
|00001d60| 78 0a 23 20 20 20 20 20 | 20 20 50 75 72 64 75 65 |x.# | Purdue|
|00001d70| 20 44 59 4e 49 58 20 33 | 2e 30 2e 31 32 20 20 20 | DYNIX 3|.0.12 |
|00001d80| 20 20 2d 44 44 59 4e 49 | 58 0a 23 20 20 20 20 20 | -DDYNI|X.# |
|00001d90| 20 20 53 65 71 75 65 6e | 74 20 44 59 4e 49 58 20 | Sequen|t DYNIX |
|00001da0| 33 2e 30 2e 31 32 20 20 | 20 20 2d 44 44 59 4e 49 |3.0.12 | -DDYNI|
|00001db0| 58 0a 23 20 20 20 20 20 | 20 20 4e 65 58 54 53 74 |X.# | NeXTSt|
|00001dc0| 65 70 20 32 2e 31 20 20 | 20 20 20 20 20 20 20 20 |ep 2.1 | |
|00001dd0| 20 20 2d 44 4e 65 58 54 | 0a 23 20 20 20 20 20 20 | -DNeXT|.# |
|00001de0| 20 53 75 6e 4f 53 20 34 | 2e 31 2e 31 20 20 20 20 | SunOS 4|.1.1 |
|00001df0| 20 20 20 20 20 20 20 20 | 20 2d 44 73 75 6e 0a 23 | | -Dsun.#|
|00001e00| 0a 23 20 53 65 65 20 53 | 59 53 44 45 46 53 20 66 |.# See S|YSDEFS f|
|00001e10| 6f 72 20 6f 74 68 65 72 | 2c 20 73 70 65 63 69 66 |or other|, specif|
|00001e20| 69 63 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 74 |ic defin|itions t|
|00001e30| 68 61 74 20 6d 61 79 20 | 62 65 20 72 65 71 75 69 |hat may |be requi|
|00001e40| 72 65 64 2e 0a 23 0a 23 | 20 48 69 6e 74 3a 20 73 |red..#.#| Hint: s|
|00001e50| 65 65 20 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |ee if th|ere is a|
|00001e60| 20 73 70 65 63 69 66 69 | 63 20 4d 61 6b 65 66 69 | specifi|c Makefi|
|00001e70| 6c 65 2e 3c 73 79 73 74 | 65 6d 3e 20 72 75 6c 65 |le.<syst|em> rule|
|00001e80| 20 74 68 61 74 20 69 73 | 0a 23 20 20 20 20 20 20 | that is|.# |
|00001e90| 20 73 75 69 74 61 62 6c | 65 20 66 6f 72 20 79 6f | suitabl|e for yo|
|00001ea0| 75 72 20 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 20 |ur insta|llation |
|00001eb0| 2d 2d 20 65 2e 20 67 2e | 2c 20 4d 61 6b 65 66 69 |-- e. g.|, Makefi|
|00001ec0| 6c 65 2e 68 70 75 78 37 | 20 6f 72 0a 23 20 20 20 |le.hpux7| or.# |
|00001ed0| 20 20 20 20 4d 61 6b 65 | 66 69 6c 65 2e 73 75 6e | Make|file.sun|
|00001ee0| 2e 0a 0a 23 20 53 6f 6d | 65 20 6d 61 6b 65 28 31 |...# Som|e make(1|
|00001ef0| 29 27 73 20 6e 65 65 64 | 20 74 6f 20 62 65 20 74 |)'s need| to be t|
|00001f00| 6f 6c 64 20 65 78 70 6c | 69 63 69 74 6c 79 20 77 |old expl|icitly w|
|00001f10| 68 61 74 20 73 68 65 6c | 6c 20 74 6f 20 75 73 65 |hat shel|l to use|
|00001f20| 2e 0a 0a 53 48 45 4c 4c | 3d 20 2f 62 69 6e 2f 73 |...SHELL|= /bin/s|
|00001f30| 68 0a 0a 23 20 44 65 66 | 69 6e 65 20 73 79 73 74 |h..# Def|ine syst|
|00001f40| 65 6d 2d 73 70 65 63 69 | 66 69 63 20 76 61 6c 75 |em-speci|fic valu|
|00001f50| 65 73 20 69 6e 20 53 59 | 53 44 45 46 53 2e 0a 23 |es in SY|SDEFS..#|
|00001f60| 0a 23 09 53 79 73 74 65 | 6d 09 09 09 4e 65 65 64 |.#.Syste|m...Need|
|00001f70| 73 0a 23 20 20 20 20 20 | 20 20 48 50 2d 55 58 20 |s.# | HP-UX |
|00001f80| 37 2e 78 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |7.x | |
|00001f90| 20 20 53 59 53 44 45 46 | 53 3d 20 2d 44 48 50 55 | SYSDEF|S= -DHPU|
|00001fa0| 58 37 0a 23 20 20 20 20 | 20 20 20 48 50 2d 55 58 |X7.# | HP-UX|
|00001fb0| 20 38 2e 78 20 20 20 20 | 20 20 20 20 20 20 20 20 | 8.x | |
|00001fc0| 20 20 20 53 59 53 44 45 | 46 53 3d 20 2d 44 48 50 | SYSDE|FS= -DHP|
|00001fd0| 55 58 38 0a 23 20 20 20 | 20 20 20 20 53 65 71 75 |UX8.# | Sequ|
|00001fe0| 65 6e 74 20 44 59 4e 49 | 58 20 33 2e 30 2e 31 32 |ent DYNI|X 3.0.12|
|00001ff0| 20 20 20 20 53 59 53 44 | 45 46 53 3d 20 2d 44 53 | SYSD|EFS= -DS|
|00002000| 45 51 55 45 4e 54 0a 0a | 53 59 53 44 45 46 53 3d |EQUENT..|SYSDEFS=|
|00002010| 0a 0a 42 49 4e 3d 20 24 | 7b 44 45 53 54 44 49 52 |..BIN= $|{DESTDIR|
|00002020| 7d 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 65 74 63 0a |}/usr/lo|cal/etc.|
|00002030| 44 4f 43 3d 20 24 7b 44 | 45 53 54 44 49 52 7d 2f |DOC= ${D|ESTDIR}/|
|00002040| 75 73 72 2f 6d 61 6e 0a | 47 52 50 3d 20 6b 6d 65 |usr/man.|GRP= kme|
|00002050| 6d 0a 0a 44 45 42 55 47 | 3d 20 2d 4f 0a 0a 23 20 |m..DEBUG|= -O..# |
|00002060| 49 66 20 79 6f 75 72 20 | 48 50 2d 55 58 20 68 70 |If your |HP-UX hp|
|00002070| 39 30 30 30 73 38 30 30 | 20 73 79 73 74 65 6d 20 |9000s800| system |
|00002080| 64 6f 65 73 20 6e 6f 74 | 20 68 61 76 65 20 74 68 |does not| have th|
|00002090| 65 20 3c 73 79 73 2f 66 | 73 73 2e 68 3e 20 68 65 |e <sys/f|ss.h> he|
|000020a0| 61 64 65 72 0a 23 20 66 | 69 6c 65 2c 20 61 64 64 |ader.# f|ile, add|
|000020b0| 20 60 60 2d 49 2e 27 27 | 20 74 6f 20 43 44 45 46 | ``-I.''| to CDEF|
|000020c0| 53 20 2d 2d 20 65 2e 20 | 67 2e 2c 0a 23 0a 23 20 |S -- e. |g.,.#.# |
|000020d0| 43 44 45 46 53 3d 20 2d | 49 2e 0a 0a 43 44 45 46 |CDEFS= -|I...CDEF|
|000020e0| 53 3d 0a 0a 43 46 4c 41 | 47 53 3d 20 24 7b 44 45 |S=..CFLA|GS= ${DE|
|000020f0| 42 55 47 7d 20 24 7b 43 | 44 45 46 53 7d 20 24 7b |BUG} ${C|DEFS} ${|
|00002100| 53 59 53 44 45 46 53 7d | 0a 0a 23 20 44 65 66 69 |SYSDEFS}|..# Defi|
|00002110| 6e 65 20 61 20 73 70 65 | 63 69 61 6c 20 6c 6f 61 |ne a spe|cial loa|
|00002120| 64 65 72 20 6c 69 62 72 | 61 72 79 2e 0a 23 0a 23 |der libr|ary..#.#|
|00002130| 20 09 53 79 73 74 65 6d | 09 09 09 4e 65 65 64 73 | .System|...Needs|
|00002140| 0a 23 09 48 50 55 58 37 | 09 09 09 4c 44 4c 49 42 |.#.HPUX7|...LDLIB|
|00002150| 3d 20 2d 6c 42 53 44 0a | 23 09 53 75 6e 4f 53 09 |= -lBSD.|#.SunOS.|
|00002160| 09 09 4c 44 4c 49 42 3d | 20 2d 6c 6b 76 6d 0a 0a |..LDLIB=| -lkvm..|
|00002170| 4c 44 4c 49 42 3d 0a 0a | 48 44 52 3d 0a 53 52 43 |LDLIB=..|HDR=.SRC|
|00002180| 3d 20 6c 73 6f 66 2e 63 | 0a 44 45 50 3d 20 24 7b |= lsof.c|.DEP= ${|
|00002190| 53 52 43 7d 0a 4d 41 4e | 3d 20 6c 73 6f 66 2e 38 |SRC}.MAN|= lsof.8|
|000021a0| 0a 4f 42 4a 3d 20 6c 73 | 6f 66 2e 6f 0a 53 4f 55 |.OBJ= ls|of.o.SOU|
|000021b0| 52 43 45 3d 20 4d 61 6b | 65 66 69 6c 65 20 24 7b |RCE= Mak|efile ${|
|000021c0| 48 44 52 7d 20 24 7b 53 | 52 43 7d 0a 0a 61 6c 6c |HDR} ${S|RC}..all|
|000021d0| 3a 20 6c 73 6f 66 0a 0a | 63 6c 65 61 6e 3a 20 46 |: lsof..|clean: F|
|000021e0| 52 43 0a 09 72 6d 20 2d | 66 20 4d 61 6b 65 66 69 |RC..rm -|f Makefi|
|000021f0| 6c 65 2e 2a 20 6c 73 6f | 66 20 2a 2e 6f 20 61 2e |le.* lso|f *.o a.|
|00002200| 6f 75 74 20 63 6f 72 65 | 20 65 72 72 73 20 74 61 |out core| errs ta|
|00002210| 67 73 0a 0a 23 20 54 68 | 65 20 64 65 70 65 6e 64 |gs..# Th|e depend|
|00002220| 20 72 75 6c 65 20 61 73 | 73 75 6d 65 73 20 74 68 | rule as|sumes th|
|00002230| 65 20 61 76 61 69 6c 61 | 62 69 6c 69 74 79 20 6f |e availa|bility o|
|00002240| 66 20 50 55 43 43 27 73 | 20 64 65 70 65 6e 64 65 |f PUCC's| depende|
|00002250| 6e 63 79 20 67 65 6e 65 | 72 61 74 6f 72 2e 0a 0a |ncy gene|rator...|
|00002260| 64 65 70 65 6e 64 3a 20 | 24 7b 53 52 43 7d 20 24 |depend: |${SRC} $|
|00002270| 7b 48 44 52 7d 20 46 52 | 43 0a 09 6d 61 6b 65 74 |{HDR} FR|C..maket|
|00002280| 64 20 24 7b 43 44 45 46 | 53 7d 20 24 7b 44 45 50 |d ${CDEF|S} ${DEP|
|00002290| 7d 0a 0a 69 6e 73 74 61 | 6c 6c 3a 20 6c 73 6f 66 |}..insta|ll: lsof|
|000022a0| 20 46 52 43 0a 09 69 6e | 73 74 61 6c 6c 20 2d 63 | FRC..in|stall -c|
|000022b0| 20 2d 73 20 2d 6d 20 32 | 37 35 35 20 2d 67 20 24 | -s -m 2|755 -g $|
|000022c0| 7b 47 52 50 7d 20 6c 73 | 6f 66 20 24 7b 42 49 4e |{GRP} ls|of ${BIN|
|000022d0| 7d 0a 0a 6c 69 6e 74 3a | 20 24 7b 53 52 43 7d 20 |}..lint:| ${SRC} |
|000022e0| 24 7b 48 44 52 7d 20 46 | 52 43 0a 09 6c 69 6e 74 |${HDR} F|RC..lint|
|000022f0| 20 24 7b 43 44 45 46 53 | 7d 20 24 7b 44 45 50 7d | ${CDEFS|} ${DEP}|
|00002300| 0a 0a 6c 73 6f 66 3a 20 | 24 7b 4f 42 4a 7d 0a 09 |..lsof: |${OBJ}..|
|00002310| 24 7b 43 43 7d 20 2d 6f | 20 24 40 20 24 7b 43 46 |${CC} -o| $@ ${CF|
|00002320| 4c 41 47 53 7d 20 24 7b | 4f 42 4a 7d 20 24 7b 4c |LAGS} ${|OBJ} ${L|
|00002330| 44 4c 49 42 7d 0a 0a 23 | 20 47 65 6e 65 72 61 74 |DLIB}..#| Generat|
|00002340| 65 20 4d 61 6b 65 66 69 | 6c 65 20 66 6f 72 20 49 |e Makefi|le for I|
|00002350| 42 4d 20 52 49 53 43 2f | 53 79 73 74 65 6d 20 36 |BM RISC/|System 6|
|00002360| 30 30 30 2e 0a 0a 4d 61 | 6b 65 66 69 6c 65 2e 69 |000...Ma|kefile.i|
|00002370| 62 6d 72 32 3a 20 4d 61 | 6b 65 66 69 6c 65 0a 09 |bmr2: Ma|kefile..|
|00002380| 73 65 64 20 2d 65 20 27 | 73 40 5e 47 52 50 3d 20 |sed -e '|s@^GRP= |
|00002390| 6b 6d 65 6d 40 47 52 50 | 3d 20 73 79 73 74 65 6d |kmem@GRP|= system|
|000023a0| 40 27 20 3c 4d 61 6b 65 | 66 69 6c 65 20 3e 24 40 |@' <Make|file >$@|
|000023b0| 0a 0a 23 20 47 65 6e 65 | 72 61 74 65 20 4d 61 6b |..# Gene|rate Mak|
|000023c0| 65 66 69 6c 65 20 66 6f | 72 20 48 50 2d 55 58 20 |efile fo|r HP-UX |
|000023d0| 37 2e 78 2e 0a 0a 4d 61 | 6b 65 66 69 6c 65 2e 68 |7.x...Ma|kefile.h|
|000023e0| 70 75 78 37 3a 20 4d 61 | 6b 65 66 69 6c 65 0a 09 |pux7: Ma|kefile..|
|000023f0| 73 65 64 20 2d 65 20 27 | 73 40 5e 4c 44 4c 49 42 |sed -e '|s@^LDLIB|
|00002400| 3d 40 4c 44 4c 49 42 3d | 20 2d 6c 42 53 44 40 27 |=@LDLIB=| -lBSD@'|
|00002410| 20 2d 65 20 27 73 40 5e | 53 59 53 44 45 46 53 3d | -e 's@^|SYSDEFS=|
|00002420| 40 53 59 53 44 45 46 53 | 3d 20 2d 44 48 50 55 58 |@SYSDEFS|= -DHPUX|
|00002430| 37 40 27 20 3c 4d 61 6b | 65 66 69 6c 65 20 3e 24 |7@' <Mak|efile >$|
|00002440| 40 0a 0a 23 20 47 65 6e | 65 72 61 74 65 20 4d 61 |@..# Gen|erate Ma|
|00002450| 6b 65 66 69 6c 65 20 66 | 6f 72 20 48 50 2d 55 58 |kefile f|or HP-UX|
|00002460| 20 38 2e 78 2e 0a 0a 4d | 61 6b 65 66 69 6c 65 2e | 8.x...M|akefile.|
|00002470| 68 70 75 78 38 3a 20 4d | 61 6b 65 66 69 6c 65 0a |hpux8: M|akefile.|
|00002480| 09 73 65 64 20 2d 65 20 | 27 73 40 5e 53 59 53 44 |.sed -e |'s@^SYSD|
|00002490| 45 46 53 3d 40 53 59 53 | 44 45 46 53 3d 20 2d 44 |EFS=@SYS|DEFS= -D|
|000024a0| 48 50 55 58 38 40 27 20 | 3c 4d 61 6b 65 66 69 6c |HPUX8@' |<Makefil|
|000024b0| 65 20 3e 24 40 0a 0a 23 | 20 47 65 6e 65 72 61 74 |e >$@..#| Generat|
|000024c0| 65 20 4d 61 6b 65 66 69 | 6c 65 20 66 6f 72 20 4e |e Makefi|le for N|
|000024d0| 65 58 54 53 74 65 70 20 | 32 2e 5b 30 31 5d 2e 0a |eXTStep |2.[01]..|
|000024e0| 0a 4d 61 6b 65 66 69 6c | 65 2e 6e 65 78 74 32 3a |.Makefil|e.next2:|
|000024f0| 20 4d 61 6b 65 66 69 6c | 65 0a 09 73 65 64 20 2d | Makefil|e..sed -|
|00002500| 65 20 27 73 40 5e 47 52 | 50 3d 20 6b 6d 65 6d 40 |e 's@^GR|P= kmem@|
|00002510| 47 52 50 3d 20 6f 70 65 | 72 61 74 6f 72 40 27 20 |GRP= ope|rator@' |
|00002520| 3c 4d 61 6b 65 66 69 6c | 65 20 3e 24 40 0a 0a 23 |<Makefil|e >$@..#|
|00002530| 20 47 65 6e 65 72 61 74 | 65 20 4d 61 6b 65 66 69 | Generat|e Makefi|
|00002540| 6c 65 20 66 6f 72 20 53 | 65 71 75 65 6e 74 27 73 |le for S|equent's|
|00002550| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 44 59 4e 49 | version| of DYNI|
|00002560| 58 2e 0a 0a 4d 61 6b 65 | 66 69 6c 65 2e 73 65 71 |X...Make|file.seq|
|00002570| 75 65 6e 74 3a 20 4d 61 | 6b 65 66 69 6c 65 0a 09 |uent: Ma|kefile..|
|00002580| 73 65 64 20 2d 65 20 27 | 73 40 5e 53 59 53 44 45 |sed -e '|s@^SYSDE|
|00002590| 46 53 3d 40 53 59 53 44 | 45 46 53 3d 20 2d 44 53 |FS=@SYSD|EFS= -DS|
|000025a0| 45 51 55 45 4e 54 40 27 | 20 3c 4d 61 6b 65 66 69 |EQUENT@'| <Makefi|
|000025b0| 6c 65 20 3e 24 40 0a 0a | 23 20 47 65 6e 65 72 61 |le >$@..|# Genera|
|000025c0| 74 65 20 4d 61 6b 65 66 | 69 6c 65 20 66 6f 72 20 |te Makef|ile for |
|000025d0| 53 75 6e 4f 53 20 34 2e | 31 2e 31 2e 0a 0a 4d 61 |SunOS 4.|1.1...Ma|
|000025e0| 6b 65 66 69 6c 65 2e 73 | 75 6e 3a 20 4d 61 6b 65 |kefile.s|un: Make|
|000025f0| 66 69 6c 65 0a 09 73 65 | 64 20 2d 65 20 27 73 40 |file..se|d -e 's@|
|00002600| 5e 4c 44 4c 49 42 3d 40 | 4c 44 4c 49 42 3d 20 2d |^LDLIB=@|LDLIB= -|
|00002610| 6c 6b 76 6d 40 27 20 3c | 4d 61 6b 65 66 69 6c 65 |lkvm@' <|Makefile|
|00002620| 20 3e 24 40 0a 0a 23 20 | 54 68 65 20 6d 6b 63 61 | >$@..# |The mkca|
|00002630| 74 20 72 75 6c 65 20 61 | 73 73 75 6d 65 73 20 74 |t rule a|ssumes t|
|00002640| 68 65 20 61 76 61 69 6c | 61 62 69 6c 69 74 79 20 |he avail|ability |
|00002650| 6f 66 20 50 55 43 43 27 | 73 20 6d 61 6e 75 61 6c |of PUCC'|s manual|
|00002660| 20 70 61 67 65 20 68 61 | 6e 64 6c 65 72 2e 0a 0a | page ha|ndler...|
|00002670| 6d 6b 63 61 74 3a 20 24 | 7b 4d 41 4e 7d 20 24 7b |mkcat: $|{MAN} ${|
|00002680| 44 4f 43 7d 20 46 52 43 | 0a 09 6d 6b 63 61 74 20 |DOC} FRC|..mkcat |
|00002690| 2d 72 24 7b 44 4f 43 7d | 20 24 7b 4d 41 4e 7d 0a |-r${DOC}| ${MAN}.|
|000026a0| 0a 70 72 69 6e 74 3a 20 | 73 6f 75 72 63 65 20 46 |.print: |source F|
|000026b0| 52 43 0a 09 6c 70 72 20 | 2d 4a 27 6c 73 6f 66 20 |RC..lpr |-J'lsof |
|000026c0| 73 6f 75 72 63 65 27 20 | 24 7b 53 4f 55 52 43 45 |source' |${SOURCE|
|000026d0| 7d 0a 0a 73 6f 75 72 63 | 65 3a 20 24 7b 53 4f 55 |}..sourc|e: ${SOU|
|000026e0| 52 43 45 7d 20 46 52 43 | 0a 0a 23 20 54 68 65 20 |RCE} FRC|..# The |
|000026f0| 66 6f 6c 6c 6f 77 69 6e | 67 20 72 75 6c 65 20 61 |followin|g rule a|
|00002700| 73 73 75 6d 65 73 20 74 | 68 65 20 75 73 65 20 6f |ssumes t|he use o|
|00002710| 66 20 52 43 53 2e 0a 0a | 73 70 6f 74 6c 65 73 73 |f RCS...|spotless|
|00002720| 3a 20 63 6c 65 61 6e 0a | 09 72 63 73 63 6c 65 61 |: clean.|.rcsclea|
|00002730| 6e 20 24 7b 53 4f 55 52 | 43 45 7d 0a 0a 74 61 67 |n ${SOUR|CE}..tag|
|00002740| 73 3a 20 24 7b 53 52 43 | 7d 20 24 7b 48 44 52 7d |s: ${SRC|} ${HDR}|
|00002750| 20 46 52 43 0a 09 63 74 | 61 67 73 20 2d 74 20 24 | FRC..ct|ags -t $|
|00002760| 7b 53 52 43 7d 20 24 7b | 48 44 52 7d 0a 0a 23 20 |{SRC} ${|HDR}..# |
|00002770| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 72 75 |The foll|owing ru|
|00002780| 6c 65 20 61 73 73 75 6d | 65 73 20 74 68 65 20 75 |le assum|es the u|
|00002790| 73 65 20 6f 66 20 52 43 | 53 2e 0a 0a 24 7b 53 4f |se of RC|S...${SO|
|000027a0| 55 52 43 45 7d 3a 0a 09 | 63 6f 20 2d 71 20 24 40 |URCE}:..|co -q $@|
|000027b0| 0a 0a 46 52 43 3a 0a 0a | 23 20 44 4f 20 4e 4f 54 |..FRC:..|# DO NOT|
|000027c0| 20 44 45 4c 45 54 45 20 | 54 48 49 53 20 4c 49 4e | DELETE |THIS LIN|
|000027d0| 45 20 2d 20 6d 61 6b 65 | 74 64 20 44 45 50 45 4e |E - make|td DEPEN|
|000027e0| 44 53 20 4f 4e 20 49 54 | 0a 0a 6c 73 6f 66 2e 6f |DS ON IT|..lsof.o|
|000027f0| 3a 20 6c 73 6f 66 2e 63 | 0a 0a 23 20 2a 2a 2a 20 |: lsof.c|..# *** |
|00002800| 44 6f 20 6e 6f 74 20 61 | 64 64 20 61 6e 79 74 68 |Do not a|dd anyth|
|00002810| 69 6e 67 20 68 65 72 65 | 20 2d 20 49 74 20 77 69 |ing here| - It wi|
|00002820| 6c 6c 20 67 6f 20 61 77 | 61 79 2e 20 2a 2a 2a 0a |ll go aw|ay. ***.|
|00002830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 6c 73 6f 66 2f 6c 73 6f | 66 2e 38 00 00 00 00 00 |lsof/lso|f.8.....|
|00002a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 31 |.... 6|44 . 1|
|00002a70| 34 34 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |44 . |12 . |
|00002a80| 20 20 32 30 36 30 31 20 | 20 35 31 36 32 35 35 35 | 20601 | 5162555|
|00002a90| 32 33 37 20 20 20 36 31 | 33 31 00 20 00 00 00 00 |237 61|31. ....|
|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| 2e 54 48 20 4c 53 4f 46 | 20 38 20 50 55 43 43 0a |.TH LSOF| 8 PUCC.|
|00002c10| 2e 69 66 20 21 5c 6e 28 | 29 50 20 2e 6e 72 20 29 |.if !\n(|)P .nr )|
|00002c20| 50 20 31 76 0a 2e 53 48 | 20 4e 41 4d 45 0a 6c 73 |P 1v..SH| NAME.ls|
|00002c30| 6f 66 20 5c 2d 20 6c 69 | 73 74 20 6f 70 65 6e 20 |of \- li|st open |
|00002c40| 66 69 6c 65 73 0a 2e 53 | 48 20 53 59 4e 4f 50 53 |files..S|H SYNOPS|
|00002c50| 49 53 0a 2e 42 20 6c 73 | 6f 66 0a 5b 0a 2e 42 20 |IS..B ls|of.[..B |
|00002c60| 5c 2d 64 0a 5d 20 5b 0a | 2e 42 20 5c 2d 68 0a 5d |\-d.] [.|.B \-h.]|
|00002c70| 20 5b 0a 2e 42 20 5c 2d | 6c 0a 5d 20 5b 0a 2e 42 | [..B \-|l.] [..B|
|00002c80| 20 5c 2d 6e 0a 5d 20 5b | 0a 2e 42 20 5c 2d 4e 0a | \-n.] [|..B \-N.|
|00002c90| 5d 20 5b 0a 2e 42 49 20 | 5c 2d 70 20 22 20 6c 22 |] [..BI |\-p " l"|
|00002ca0| 0a 5d 20 5b 0a 2e 42 20 | 5c 2d 73 0a 5d 20 5b 0a |.] [..B |\-s.] [.|
|00002cb0| 2e 42 20 5c 2d 74 0a 5d | 20 5b 0a 2e 42 49 20 5c |.B \-t.]| [..BI \|
|00002cc0| 2d 75 20 22 20 6c 22 0a | 5d 20 5b 0a 2e 42 49 20 |-u " l".|] [..BI |
|00002cd0| 5c 2d 55 0a 5d 0a 2e 49 | 20 6e 61 6d 65 73 0a 2e |\-U.]..I| names..|
|00002ce0| 53 48 20 44 45 53 43 52 | 49 50 54 49 4f 4e 0a 2e |SH DESCR|IPTION..|
|00002cf0| 49 20 4c 73 6f 66 0a 6c | 69 73 74 73 20 69 6e 66 |I Lsof.l|ists inf|
|00002d00| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 66 |ormation| about f|
|00002d10| 69 6c 65 73 20 6f 70 65 | 6e 65 64 20 62 79 20 70 |iles ope|ned by p|
|00002d20| 72 6f 63 65 73 73 65 73 | 20 66 6f 72 20 74 68 65 |rocesses| for the|
|00002d30| 20 66 6f 6c 6c 6f 77 69 | 6e 67 0a 6f 70 65 72 61 | followi|ng.opera|
|00002d40| 74 69 6e 67 20 73 79 73 | 74 65 6d 73 3a 0a 2e 50 |ting sys|tems:..P|
|00002d50| 50 0a 2e 6e 66 0a 09 41 | 49 58 20 33 2e 31 2e 33 |P..nf..A|IX 3.1.3|
|00002d60| 2c 20 33 2e 31 2e 35 20 | 61 6e 64 20 33 2e 31 2e |, 3.1.5 |and 3.1.|
|00002d70| 37 20 66 6f 72 20 74 68 | 65 20 49 42 4d 20 52 49 |7 for th|e IBM RI|
|00002d80| 53 43 2f 53 79 73 74 65 | 6d 20 36 30 30 30 0a 09 |SC/Syste|m 6000..|
|00002d90| 44 79 6e 69 78 20 33 2e | 30 2e 31 32 20 61 6e 64 |Dynix 3.|0.12 and|
|00002da0| 20 33 2e 31 2e 32 20 66 | 6f 72 20 74 68 65 20 53 | 3.1.2 f|or the S|
|00002db0| 65 71 75 65 6e 74 20 53 | 79 6d 6d 65 74 72 79 20 |equent S|ymmetry |
|00002dc0| 53 38 31 0a 09 48 50 5c | 2d 55 58 20 37 2e 78 20 |S81..HP\|-UX 7.x |
|00002dd0| 66 6f 72 20 74 68 65 20 | 48 65 77 6c 65 74 74 20 |for the |Hewlett |
|00002de0| 50 61 63 6b 61 72 64 20 | 39 30 30 30 2f 33 30 30 |Packard |9000/300|
|00002df0| 20 61 6e 64 20 39 30 30 | 30 2f 38 30 30 0a 09 48 | and 900|0/800..H|
|00002e00| 50 5c 2d 55 58 20 38 2e | 78 20 66 6f 72 20 74 68 |P\-UX 8.|x for th|
|00002e10| 65 20 48 65 77 6c 65 74 | 74 20 50 61 63 6b 61 72 |e Hewlet|t Packar|
|00002e20| 64 20 39 30 30 30 2f 33 | 30 30 2c 20 39 30 30 30 |d 9000/3|00, 9000|
|00002e30| 2f 37 30 30 20 61 6e 64 | 20 39 30 30 30 2f 38 30 |/700 and| 9000/80|
|00002e40| 30 0a 09 4e 65 58 54 53 | 74 65 70 20 32 2e 30 20 |0..NeXTS|tep 2.0 |
|00002e50| 61 6e 64 20 32 2e 31 20 | 66 6f 72 20 74 68 65 20 |and 2.1 |for the |
|00002e60| 4e 65 58 54 20 57 6f 72 | 6b 20 53 74 61 74 69 6f |NeXT Wor|k Statio|
|00002e70| 6e 0a 09 53 75 6e 4f 53 | 20 34 2e 31 2e 31 0a 2e |n..SunOS| 4.1.1..|
|00002e80| 66 69 0a 2e 50 50 0a 41 | 6e 20 6f 70 65 6e 20 66 |fi..PP.A|n open f|
|00002e90| 69 6c 65 20 6d 61 79 20 | 62 65 20 61 20 72 65 67 |ile may |be a reg|
|00002ea0| 75 6c 61 72 20 66 69 6c | 65 2c 20 61 20 64 69 72 |ular fil|e, a dir|
|00002eb0| 65 63 74 6f 72 79 2c 20 | 61 20 63 68 61 72 61 63 |ectory, |a charac|
|00002ec0| 74 65 72 20 73 70 65 63 | 69 61 6c 0a 66 69 6c 65 |ter spec|ial.file|
|00002ed0| 2c 20 6f 72 20 61 20 6e | 65 74 77 6f 72 6b 20 66 |, or a n|etwork f|
|00002ee0| 69 6c 65 20 28 49 6e 74 | 65 72 6e 65 74 20 73 6f |ile (Int|ernet so|
|00002ef0| 63 6b 65 74 2c 20 4e 46 | 53 20 66 69 6c 65 20 6f |cket, NF|S file o|
|00002f00| 72 20 55 6e 69 78 20 64 | 6f 6d 61 69 6e 20 73 6f |r Unix d|omain so|
|00002f10| 63 6b 65 74 2e 29 0a 41 | 20 73 70 65 63 69 66 69 |cket.).A| specifi|
|00002f20| 63 20 66 69 6c 65 20 6d | 61 79 20 62 65 20 73 65 |c file m|ay be se|
|00002f30| 6c 65 63 74 65 64 20 62 | 79 20 69 74 73 20 70 61 |lected b|y its pa|
|00002f40| 74 68 0a 2e 49 52 20 6e | 61 6d 65 20 2e 0a 2e 53 |th..IR n|ame ...S|
|00002f50| 48 20 4f 50 54 49 4f 4e | 53 0a 49 6e 20 74 68 65 |H OPTION|S.In the|
|00002f60| 20 61 62 73 65 6e 63 65 | 20 6f 66 20 61 6e 79 20 | absence| of any |
|00002f70| 6f 70 74 69 6f 6e 73 2c | 0a 2e 49 20 6c 73 6f 66 |options,|..I lsof|
|00002f80| 0a 6c 69 73 74 73 20 61 | 6c 6c 20 6f 70 65 6e 20 |.lists a|ll open |
|00002f90| 66 69 6c 65 73 20 62 65 | 6c 6f 6e 67 69 6e 67 20 |files be|longing |
|00002fa0| 74 6f 20 61 6c 6c 20 61 | 63 74 69 76 65 20 70 72 |to all a|ctive pr|
|00002fb0| 6f 63 65 73 73 65 73 2e | 0a 2e 50 50 0a 49 66 20 |ocesses.|..PP.If |
|00002fc0| 61 6e 79 20 6c 69 73 74 | 20 72 65 71 75 65 73 74 |any list| request|
|00002fd0| 20 6f 70 74 69 6f 6e 20 | 69 73 20 73 70 65 63 69 | option |is speci|
|00002fe0| 66 69 65 64 2c 20 61 6c | 6c 20 6f 74 68 65 72 20 |fied, al|l other |
|00002ff0| 6c 69 73 74 73 20 6d 75 | 73 74 20 62 65 0a 73 70 |lists mu|st be.sp|
|00003000| 65 63 69 66 69 63 61 6c | 6c 79 20 72 65 71 75 65 |ecifical|ly reque|
|00003010| 73 74 65 64 20 5c 2d 20 | 65 2e 20 67 2e 2c 20 69 |sted \- |e. g., i|
|00003020| 66 0a 2e 42 20 5c 2d 6e | 0a 69 73 20 73 70 65 63 |f..B \-n|.is spec|
|00003030| 69 66 69 65 64 20 66 6f | 72 20 74 68 65 20 6c 69 |ified fo|r the li|
|00003040| 73 74 69 6e 67 20 6f 66 | 20 49 6e 74 65 72 6e 65 |sting of| Interne|
|00003050| 74 20 6e 65 74 77 6f 72 | 6b 20 66 69 6c 65 73 2c |t networ|k files,|
|00003060| 20 4e 46 53 20 66 69 6c | 65 73 20 77 6f 6e 27 74 | NFS fil|es won't|
|00003070| 20 62 65 0a 6c 69 73 74 | 65 64 20 75 6e 6c 65 73 | be.list|ed unles|
|00003080| 73 0a 2e 42 20 5c 2d 4e | 0a 69 73 20 61 6c 73 6f |s..B \-N|.is also|
|00003090| 20 73 70 65 63 69 66 69 | 65 64 3b 0a 6f 72 20 69 | specifi|ed;.or i|
|000030a0| 66 20 61 20 75 73 65 72 | 20 6c 69 73 74 20 69 73 |f a user| list is|
|000030b0| 20 73 70 65 63 69 66 69 | 65 64 20 77 69 74 68 20 | specifi|ed with |
|000030c0| 74 68 65 0a 2e 42 20 5c | 2d 75 0a 6f 70 74 69 6f |the..B \|-u.optio|
|000030d0| 6e 2c 20 49 6e 74 65 72 | 6e 65 74 20 6e 65 74 77 |n, Inter|net netw|
|000030e0| 6f 72 6b 20 66 69 6c 65 | 73 20 61 6e 64 20 55 6e |ork file|s and Un|
|000030f0| 69 78 20 64 6f 6d 61 69 | 6e 20 73 6f 63 6b 65 74 |ix domai|n socket|
|00003100| 20 66 69 6c 65 73 20 62 | 65 6c 6f 6e 67 69 6e 67 | files b|elonging|
|00003110| 20 74 6f 0a 75 73 65 72 | 73 20 6e 6f 74 20 69 6e | to.user|s not in|
|00003120| 20 74 68 65 20 6c 69 73 | 74 20 77 6f 6e 27 74 20 | the lis|t won't |
|00003130| 62 65 20 6c 69 73 74 65 | 64 20 75 6e 6c 65 73 73 |be liste|d unless|
|00003140| 20 74 68 65 0a 2e 42 20 | 5c 2d 6e 0a 61 6e 64 0a | the..B |\-n.and.|
|00003150| 2e 42 20 5c 2d 55 0a 6f | 70 74 69 6f 6e 73 20 61 |.B \-U.o|ptions a|
|00003160| 72 65 20 61 6c 73 6f 20 | 73 70 65 63 69 66 69 65 |re also |specifie|
|00003170| 64 2e 0a 2e 54 50 20 5c | 77 27 6e 61 6d 65 73 27 |d...TP \|w'names'|
|00003180| 75 2b 34 0a 2e 42 20 5c | 2d 64 0a 54 68 69 73 20 |u+4..B \|-d.This |
|00003190| 6f 70 74 69 6f 6e 20 73 | 65 6c 65 63 74 73 20 74 |option s|elects t|
|000031a0| 68 65 20 70 72 6f 64 75 | 63 74 69 6f 6e 20 6f 66 |he produ|ction of|
|000031b0| 20 65 72 72 6f 72 20 6d | 65 73 73 61 67 65 73 20 | error m|essages |
|000031c0| 61 62 6f 75 74 20 75 6e | 72 65 61 64 61 62 6c 65 |about un|readable|
|000031d0| 0a 73 75 62 64 69 72 65 | 63 74 6f 72 69 65 73 20 |.subdire|ctories |
|000031e0| 6f 66 20 74 68 65 0a 2e | 49 20 2f 64 65 76 0a 64 |of the..|I /dev.d|
|000031f0| 69 72 65 63 74 6f 72 79 | 2e 0a 55 6e 64 65 72 20 |irectory|..Under |
|00003200| 53 75 6e 4f 53 2c 20 66 | 6f 72 20 65 78 61 6d 70 |SunOS, f|or examp|
|00003210| 6c 65 2c 20 74 68 65 0a | 2e 49 20 2f 64 65 76 2f |le, the.|.I /dev/|
|00003220| 6c 70 64 0a 73 75 62 64 | 69 72 65 63 74 6f 72 79 |lpd.subd|irectory|
|00003230| 20 69 73 20 75 6e 72 65 | 61 64 61 62 6c 65 20 66 | is unre|adable f|
|00003240| 6f 72 20 73 65 63 75 72 | 69 74 79 20 72 65 61 73 |or secur|ity reas|
|00003250| 6f 6e 73 2e 0a 57 68 65 | 6e 20 62 75 69 6c 64 69 |ons..Whe|n buildi|
|00003260| 6e 67 20 69 74 73 20 63 | 61 63 68 65 20 6f 66 20 |ng its c|ache of |
|00003270| 6e 61 6d 65 73 20 61 6e | 64 20 64 65 76 69 63 65 |names an|d device|
|00003280| 20 6e 75 6d 62 65 72 73 | 20 66 6f 72 20 64 65 76 | numbers| for dev|
|00003290| 69 63 65 73 2c 0a 2e 49 | 20 6c 73 6f 66 0a 73 6b |ices,..I| lsof.sk|
|000032a0| 69 70 73 20 75 6e 72 65 | 61 64 61 62 6c 65 20 73 |ips unre|adable s|
|000032b0| 75 62 64 69 72 65 63 74 | 6f 72 69 65 73 20 73 69 |ubdirect|ories si|
|000032c0| 6c 65 6e 74 6c 79 20 75 | 6e 6c 65 73 73 0a 2e 42 |lently u|nless..B|
|000032d0| 20 5c 2d 64 0a 69 73 20 | 73 70 65 63 69 66 69 65 | \-d.is |specifie|
|000032e0| 64 2e 0a 2e 54 50 0a 2e | 42 20 5c 2d 68 0a 54 68 |d...TP..|B \-h.Th|
|000032f0| 69 73 20 6f 70 74 69 6f | 6e 20 73 65 6c 65 63 74 |is optio|n select|
|00003300| 73 20 61 20 62 72 69 65 | 66 20 75 73 61 67 65 20 |s a brie|f usage |
|00003310| 28 68 65 6c 70 29 20 6f | 75 74 70 75 74 20 6c 69 |(help) o|utput li|
|00003320| 73 74 2e 0a 2e 54 50 0a | 2e 42 20 5c 2d 6c 0a 54 |st...TP.|.B \-l.T|
|00003330| 68 69 73 20 6f 70 74 69 | 6f 6e 20 69 6e 68 69 62 |his opti|on inhib|
|00003340| 69 74 73 20 74 68 65 20 | 63 6f 6e 76 65 72 73 69 |its the |conversi|
|00003350| 6f 6e 20 6f 66 20 75 73 | 65 72 20 49 44 20 6e 75 |on of us|er ID nu|
|00003360| 6d 62 65 72 73 20 74 6f | 20 6c 6f 67 69 6e 20 6e |mbers to| login n|
|00003370| 61 6d 65 73 2e 0a 2e 54 | 50 0a 2e 42 20 5c 2d 6e |ames...T|P..B \-n|
|00003380| 0a 54 68 69 73 20 6f 70 | 74 69 6f 6e 20 73 65 6c |.This op|tion sel|
|00003390| 65 63 74 73 20 74 68 65 | 20 6c 69 73 74 69 6e 67 |ects the| listing|
|000033a0| 20 6f 66 20 49 6e 74 65 | 72 6e 65 74 20 6e 65 74 | of Inte|rnet net|
|000033b0| 77 6f 72 6b 20 66 69 6c | 65 73 2e 0a 2e 54 50 0a |work fil|es...TP.|
|000033c0| 2e 42 20 5c 2d 4e 0a 54 | 68 69 73 20 6f 70 74 69 |.B \-N.T|his opti|
|000033d0| 6f 6e 20 73 65 6c 65 63 | 74 73 20 74 68 65 20 6c |on selec|ts the l|
|000033e0| 69 73 74 69 6e 67 20 6f | 66 20 4e 46 53 20 66 69 |isting o|f NFS fi|
|000033f0| 6c 65 73 2e 0a 2e 54 50 | 0a 2e 42 49 20 5c 2d 70 |les...TP|..BI \-p|
|00003400| 20 22 20 6c 22 0a 54 68 | 69 73 20 6f 70 74 69 6f | " l".Th|is optio|
|00003410| 6e 20 73 65 6c 65 63 74 | 73 20 74 68 65 20 6c 69 |n select|s the li|
|00003420| 73 74 69 6e 67 20 6f 66 | 20 66 69 6c 65 73 20 66 |sting of| files f|
|00003430| 6f 72 20 74 68 65 20 70 | 72 6f 63 65 73 73 65 73 |or the p|rocesses|
|00003440| 20 77 68 6f 73 65 20 49 | 44 20 6e 75 6d 62 65 72 | whose I|D number|
|00003450| 73 0a 61 72 65 20 69 6e | 20 74 68 65 20 63 6f 6d |s.are in| the com|
|00003460| 6d 61 5c 2d 73 65 70 61 | 72 61 74 65 64 20 6c 69 |ma\-sepa|rated li|
|00003470| 73 74 20 60 6c 27 20 5c | 2d 20 65 2e 20 67 2e 2c |st `l' \|- e. g.,|
|00003480| 20 60 60 31 32 33 27 27 | 20 6f 72 20 60 60 31 32 | ``123''| or ``12|
|00003490| 33 2c 34 35 36 27 27 2e | 0a 28 54 68 65 72 65 20 |3,456''.|.(There |
|000034a0| 73 68 6f 75 6c 64 20 62 | 65 20 6e 6f 20 73 70 61 |should b|e no spa|
|000034b0| 63 65 73 20 69 6e 20 74 | 68 65 20 6c 69 73 74 2e |ces in t|he list.|
|000034c0| 29 0a 2e 54 50 0a 2e 42 | 20 5c 2d 73 0a 54 68 69 |)..TP..B| \-s.Thi|
|000034d0| 73 20 6f 70 74 69 6f 6e | 20 72 65 6d 6f 76 65 73 |s option| removes|
|000034e0| 20 74 68 65 20 53 49 5a | 45 20 63 6f 6c 75 6d 6e | the SIZ|E column|
|000034f0| 20 66 72 6f 6d 20 74 68 | 65 20 6f 75 74 70 75 74 | from th|e output|
|00003500| 2c 20 73 68 6f 72 74 65 | 6e 69 6e 67 0a 6f 75 74 |, shorte|ning.out|
|00003510| 70 75 74 20 6c 69 6e 65 | 73 20 62 79 20 6e 69 6e |put line|s by nin|
|00003520| 65 20 63 68 61 72 61 63 | 74 65 72 73 2e 0a 2e 54 |e charac|ters...T|
|00003530| 50 0a 2e 42 20 5c 2d 74 | 20 0a 54 68 69 73 20 6f |P..B \-t| .This o|
|00003540| 70 74 69 6f 6e 20 73 70 | 65 63 69 66 69 65 73 20 |ption sp|ecifies |
|00003550| 74 68 61 74 0a 2e 49 20 | 6c 73 6f 66 0a 73 68 6f |that..I |lsof.sho|
|00003560| 75 6c 64 20 70 72 6f 64 | 75 63 65 20 74 65 72 73 |uld prod|uce ters|
|00003570| 65 20 6f 75 74 70 75 74 | 20 77 69 74 68 20 70 72 |e output| with pr|
|00003580| 6f 63 65 73 73 20 69 64 | 65 6e 74 69 66 69 65 72 |ocess id|entifier|
|00003590| 73 20 6f 6e 6c 79 20 61 | 6e 64 20 6e 6f 20 68 65 |s only a|nd no he|
|000035a0| 61 64 65 72 20 5c 2d 0a | 65 2e 20 67 2e 2c 20 73 |ader \-.|e. g., s|
|000035b0| 6f 20 74 68 61 74 20 74 | 68 65 20 6f 75 74 70 75 |o that t|he outpu|
|000035c0| 74 20 6d 61 79 20 62 65 | 20 70 69 70 65 64 20 74 |t may be| piped t|
|000035d0| 6f 0a 2e 49 52 20 6b 69 | 6c 6c 20 28 31 29 2e 0a |o..IR ki|ll (1)..|
|000035e0| 2e 54 50 0a 2e 42 49 20 | 5c 2d 75 20 22 20 6c 22 |.TP..BI |\-u " l"|
|000035f0| 0a 54 68 69 73 20 6f 70 | 74 69 6f 6e 20 73 65 6c |.This op|tion sel|
|00003600| 65 63 74 73 20 74 68 65 | 20 6c 69 73 74 69 6e 67 |ects the| listing|
|00003610| 20 6f 66 20 66 69 6c 65 | 73 20 66 6f 72 20 74 68 | of file|s for th|
|00003620| 65 20 75 73 65 72 20 77 | 68 6f 73 65 20 6c 6f 67 |e user w|hose log|
|00003630| 69 6e 20 6e 61 6d 65 73 | 0a 6f 72 20 75 73 65 72 |in names|.or user|
|00003640| 20 49 44 20 6e 75 6d 62 | 65 72 73 20 61 72 65 20 | ID numb|ers are |
|00003650| 69 6e 20 74 68 65 20 63 | 6f 6d 6d 61 5c 2d 73 65 |in the c|omma\-se|
|00003660| 70 61 72 61 74 65 64 20 | 6c 69 73 74 20 60 6c 27 |parated |list `l'|
|00003670| 20 5c 2d 20 65 2e 20 67 | 2e 2c 20 60 60 61 62 65 | \- e. g|., ``abe|
|00003680| 27 27 2c 0a 6f 72 20 60 | 60 35 34 38 2c 72 6f 6f |'',.or `|`548,roo|
|00003690| 74 27 27 2e 0a 28 54 68 | 65 72 65 20 73 68 6f 75 |t''..(Th|ere shou|
|000036a0| 6c 64 20 62 65 20 6e 6f | 20 73 70 61 63 65 73 20 |ld be no| spaces |
|000036b0| 69 6e 20 74 68 65 20 6c | 69 73 74 2e 29 0a 2e 54 |in the l|ist.)..T|
|000036c0| 50 0a 2e 42 20 5c 2d 55 | 0a 54 68 69 73 20 6f 70 |P..B \-U|.This op|
|000036d0| 74 69 6f 6e 20 73 65 6c | 65 63 74 73 20 74 68 65 |tion sel|ects the|
|000036e0| 20 6c 69 73 74 69 6e 67 | 20 6f 66 20 55 6e 69 78 | listing| of Unix|
|000036f0| 20 64 6f 6d 61 69 6e 20 | 73 6f 63 6b 65 74 20 66 | domain |socket f|
|00003700| 69 6c 65 73 2e 0a 2e 54 | 50 0a 2e 49 20 6e 61 6d |iles...T|P..I nam|
|00003710| 65 73 0a 54 68 65 73 65 | 20 61 72 65 20 70 61 74 |es.These| are pat|
|00003720| 68 20 6e 61 6d 65 73 20 | 6f 66 20 73 70 65 63 69 |h names |of speci|
|00003730| 66 69 63 20 66 69 6c 65 | 73 20 74 6f 20 6c 69 73 |fic file|s to lis|
|00003740| 74 2e 0a 53 79 6d 62 6f | 6c 69 63 20 6c 69 6e 6b |t..Symbo|lic link|
|00003750| 73 20 61 72 65 20 72 65 | 73 6f 6c 76 65 64 20 62 |s are re|solved b|
|00003760| 65 66 6f 72 65 20 75 73 | 65 2e 0a 2e 49 50 0a 49 |efore us|e...IP.I|
|00003770| 66 20 61 0a 2e 49 20 6e | 61 6d 65 20 0a 69 73 20 |f a..I n|ame .is |
|00003780| 74 68 65 20 6d 6f 75 6e | 74 20 70 6f 69 6e 74 20 |the moun|t point |
|00003790| 6f 66 20 61 20 66 69 6c | 65 20 73 79 73 74 65 6d |of a fil|e system|
|000037a0| 20 6f 72 20 74 68 65 20 | 64 65 76 69 63 65 20 6f | or the |device o|
|000037b0| 66 20 74 68 65 20 6d 6f | 75 6e 74 20 70 6f 69 6e |f the mo|unt poin|
|000037c0| 74 20 6f 66 20 61 0a 66 | 69 6c 65 20 73 79 73 74 |t of a.f|ile syst|
|000037d0| 65 6d 2c 0a 2e 49 20 6c | 73 6f 66 0a 77 69 6c 6c |em,..I l|sof.will|
|000037e0| 20 6c 69 73 74 20 61 6c | 6c 20 74 68 65 20 66 69 | list al|l the fi|
|000037f0| 6c 65 73 20 6f 70 65 6e | 20 6f 6e 20 74 68 65 20 |les open| on the |
|00003800| 66 69 6c 65 20 73 79 73 | 74 65 6d 2e 0a 49 66 20 |file sys|tem..If |
|00003810| 61 0a 2e 49 20 6e 61 6d | 65 0a 69 73 20 74 68 65 |a..I nam|e.is the|
|00003820| 20 62 61 73 65 20 6e 61 | 6d 65 20 6f 66 20 61 20 | base na|me of a |
|00003830| 66 61 6d 69 6c 79 20 6f | 66 20 6d 75 6c 74 69 70 |family o|f multip|
|00003840| 6c 65 78 65 64 20 66 69 | 6c 65 73 20 5c 2d 20 65 |lexed fi|les \- e|
|00003850| 2e 20 67 2c 20 41 49 58 | 27 73 0a 2e 49 52 20 2f |. g, AIX|'s..IR /|
|00003860| 64 65 76 2f 70 74 73 20 | 22 20 5c 2d 22 0a 2e 49 |dev/pts |" \-"..I|
|00003870| 20 6c 73 6f 66 0a 77 69 | 6c 6c 20 6c 69 73 74 20 | lsof.wi|ll list |
|00003880| 61 6c 6c 20 74 68 65 20 | 61 73 73 6f 63 69 61 74 |all the |associat|
|00003890| 65 64 20 6d 75 6c 74 69 | 70 6c 65 64 20 66 69 6c |ed multi|pled fil|
|000038a0| 65 73 20 6f 6e 20 74 68 | 65 20 64 65 76 69 63 65 |es on th|e device|
|000038b0| 20 74 68 61 74 0a 61 72 | 65 20 6f 70 65 6e 20 5c | that.ar|e open \|
|000038c0| 2d 20 65 2e 20 67 2e 2c | 0a 2e 49 52 20 2f 64 65 |- e. g.,|..IR /de|
|000038d0| 76 2f 70 74 73 2f 31 20 | 2c 0a 2e 49 52 20 2f 64 |v/pts/1 |,..IR /d|
|000038e0| 65 76 2f 70 74 73 2f 32 | 20 2c 0a 65 74 63 2e 0a |ev/pts/2| ,.etc..|
|000038f0| 2e 49 50 0a 49 66 20 61 | 0a 2e 49 20 6e 61 6d 65 |.IP.If a|..I name|
|00003900| 0a 69 73 20 6e 6f 6e 65 | 20 6f 66 20 74 68 65 20 |.is none| of the |
|00003910| 61 62 6f 76 65 2c 0a 2e | 49 20 6c 73 6f 66 0a 77 |above,..|I lsof.w|
|00003920| 69 6c 6c 20 6c 69 73 74 | 20 61 6e 79 20 6f 70 65 |ill list| any ope|
|00003930| 6e 20 66 69 6c 65 73 20 | 77 68 6f 73 65 20 64 65 |n files |whose de|
|00003940| 76 69 63 65 20 61 6e 64 | 20 69 6e 6f 64 65 20 6d |vice and| inode m|
|00003950| 61 74 63 68 20 74 68 61 | 74 20 6f 66 20 74 68 65 |atch tha|t of the|
|00003960| 0a 73 70 65 63 69 66 69 | 65 64 20 70 61 74 68 0a |.specifi|ed path.|
|00003970| 2e 49 52 20 6e 61 6d 65 | 20 2e 0a 2e 53 48 20 4f |.IR name| ...SH O|
|00003980| 55 54 50 55 54 0a 2e 49 | 20 4c 73 6f 66 0a 6c 69 |UTPUT..I| Lsof.li|
|00003990| 73 74 73 20 66 6f 72 20 | 65 61 63 68 20 6f 70 65 |sts for |each ope|
|000039a0| 6e 20 66 69 6c 65 3a 0a | 2e 54 50 20 5c 77 27 43 |n file:.|.TP \w'C|
|000039b0| 4f 4d 4d 41 4e 44 27 75 | 2b 34 0a 43 4f 4d 4d 41 |OMMAND'u|+4.COMMA|
|000039c0| 4e 44 0a 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |ND.conta|ins the |
|000039d0| 66 69 72 73 74 20 6e 69 | 6e 65 20 63 68 61 72 61 |first ni|ne chara|
|000039e0| 63 74 65 72 73 20 6f 66 | 20 74 68 65 20 6e 61 6d |cters of| the nam|
|000039f0| 65 20 6f 66 20 74 68 65 | 20 55 6e 69 78 20 63 6f |e of the| Unix co|
|00003a00| 6d 6d 61 6e 64 20 61 73 | 73 6f 63 69 61 74 65 64 |mmand as|sociated|
|00003a10| 0a 77 69 74 68 20 74 68 | 65 20 70 72 6f 63 65 73 |.with th|e proces|
|00003a20| 73 2e 0a 2e 54 50 0a 50 | 49 44 0a 69 73 20 74 68 |s...TP.P|ID.is th|
|00003a30| 65 20 50 72 6f 63 65 73 | 73 20 49 44 65 6e 74 69 |e Proces|s IDenti|
|00003a40| 66 69 63 61 74 69 6f 6e | 20 6e 75 6d 62 65 72 20 |fication| number |
|00003a50| 6f 66 20 74 68 65 20 70 | 72 6f 63 65 73 73 2e 0a |of the p|rocess..|
|00003a60| 2e 54 50 0a 55 53 45 52 | 0a 69 73 20 74 68 65 20 |.TP.USER|.is the |
|00003a70| 75 73 65 72 20 49 44 20 | 6e 75 6d 62 65 72 20 6f |user ID |number o|
|00003a80| 72 20 6c 6f 67 69 6e 20 | 6e 61 6d 65 20 6f 66 20 |r login |name of |
|00003a90| 74 68 65 20 75 73 65 72 | 20 74 6f 20 77 68 6f 6d |the user| to whom|
|00003aa0| 20 74 68 65 20 70 72 6f | 63 65 73 73 0a 62 65 6c | the pro|cess.bel|
|00003ab0| 6f 6e 67 73 2e 0a 28 53 | 65 65 20 74 68 65 0a 2e |ongs..(S|ee the..|
|00003ac0| 42 20 5c 2d 6c 0a 6f 70 | 74 69 6f 6e 2e 29 0a 2e |B \-l.op|tion.)..|
|00003ad0| 54 50 0a 46 44 0a 69 73 | 20 74 68 65 20 46 69 6c |TP.FD.is| the Fil|
|00003ae0| 65 20 44 65 73 63 72 69 | 70 74 6f 72 20 6e 75 6d |e Descri|ptor num|
|00003af0| 62 65 72 20 6f 66 20 74 | 68 65 20 66 69 6c 65 20 |ber of t|he file |
|00003b00| 6f 72 20 60 60 63 77 64 | 27 27 20 69 66 20 69 74 |or ``cwd|'' if it|
|00003b10| 20 69 73 20 74 68 65 0a | 63 75 72 72 65 6e 74 20 | is the.|current |
|00003b20| 77 6f 72 6b 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |working |director|
|00003b30| 79 20 6f 66 20 74 68 65 | 20 70 72 6f 63 65 73 73 |y of the| process|
|00003b40| 2e 0a 46 44 20 69 73 20 | 66 6f 6c 6c 6f 77 65 64 |..FD is |followed|
|00003b50| 20 62 79 20 74 68 65 73 | 65 20 63 68 61 72 61 63 | by thes|e charac|
|00003b60| 74 65 72 73 20 66 6f 72 | 20 66 69 6c 65 20 6c 6f |ters for| file lo|
|00003b70| 63 6b 73 3a 0a 2e 49 50 | 0a 09 5c 66 42 72 5c 66 |cks:..IP|..\fBr\f|
|00003b80| 50 20 66 6f 72 20 72 65 | 61 64 20 6c 6f 63 6b 20 |P for re|ad lock |
|00003b90| 6f 6e 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 66 |on part |of the f|
|00003ba0| 69 6c 65 3b 0a 2e 62 72 | 0a 09 5c 66 42 52 5c 66 |ile;..br|..\fBR\f|
|00003bb0| 50 20 66 6f 72 20 61 20 | 72 65 61 64 20 6c 6f 63 |P for a |read loc|
|00003bc0| 6b 20 6f 6e 20 74 68 65 | 20 65 6e 74 69 72 65 20 |k on the| entire |
|00003bd0| 66 69 6c 65 3b 0a 2e 62 | 72 0a 09 5c 66 42 77 5c |file;..b|r..\fBw\|
|00003be0| 66 50 20 66 6f 72 20 61 | 20 77 72 69 74 65 20 6c |fP for a| write l|
|00003bf0| 6f 63 6b 20 6f 6e 20 70 | 61 72 74 20 6f 66 20 74 |ock on p|art of t|
|00003c00| 68 65 20 66 69 6c 65 3b | 0a 2e 62 72 0a 09 5c 66 |he file;|..br..\f|
|00003c10| 42 57 5c 66 50 20 66 6f | 72 20 61 20 77 72 69 74 |BW\fP fo|r a writ|
|00003c20| 65 20 6c 6f 63 6b 20 6f | 6e 20 74 68 65 20 65 6e |e lock o|n the en|
|00003c30| 74 69 72 65 20 66 69 6c | 65 2e 0a 2e 54 50 0a 54 |tire fil|e...TP.T|
|00003c40| 59 50 45 0a 69 73 20 74 | 68 65 20 74 79 70 65 20 |YPE.is t|he type |
|00003c50| 6f 66 20 74 68 65 20 76 | 6e 6f 64 65 20 61 73 73 |of the v|node ass|
|00003c60| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 74 68 65 |ociated |with the|
|00003c70| 20 66 69 6c 65 20 28 73 | 65 65 20 3c 73 79 73 2f | file (s|ee <sys/|
|00003c80| 76 6e 6f 64 65 2e 68 3e | 29 3b 0a 2e 49 50 0a 6f |vnode.h>|);..IP.o|
|00003c90| 72 20 60 60 69 6e 65 74 | 27 27 20 66 6f 72 20 61 |r ``inet|'' for a|
|00003ca0| 6e 20 49 6e 74 65 72 6e | 65 74 20 64 6f 6d 61 69 |n Intern|et domai|
|00003cb0| 6e 20 73 6f 63 6b 65 74 | 3b 0a 2e 49 50 0a 6f 72 |n socket|;..IP.or|
|00003cc0| 20 60 60 75 6e 69 78 27 | 27 20 66 6f 72 20 61 20 | ``unix'|' for a |
|00003cd0| 55 6e 69 78 20 64 6f 6d | 61 69 6e 20 73 6f 63 6b |Unix dom|ain sock|
|00003ce0| 65 74 2e 0a 2e 54 50 0a | 44 45 56 49 43 45 0a 63 |et...TP.|DEVICE.c|
|00003cf0| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 6d 61 6a 6f |ontains |the majo|
|00003d00| 72 20 61 6e 64 20 6d 69 | 6e 6f 72 20 64 65 76 69 |r and mi|nor devi|
|00003d10| 63 65 20 6e 75 6d 62 65 | 72 73 20 66 6f 72 20 61 |ce numbe|rs for a|
|00003d20| 20 63 68 61 72 61 63 74 | 65 72 20 73 70 65 63 69 | charact|er speci|
|00003d30| 61 6c 2c 20 62 6c 6f 63 | 6b 0a 73 70 65 63 69 61 |al, bloc|k.specia|
|00003d40| 6c 2c 20 72 65 67 75 6c | 61 72 2c 20 64 69 72 65 |l, regul|ar, dire|
|00003d50| 63 74 6f 72 79 20 6f 72 | 20 4e 46 53 20 66 69 6c |ctory or| NFS fil|
|00003d60| 65 20 28 61 6e 20 48 50 | 5c 2d 55 58 20 6d 69 6e |e (an HP|\-UX min|
|00003d70| 6f 72 20 64 65 76 69 63 | 65 20 6e 75 6d 62 65 72 |or devic|e number|
|00003d80| 20 69 73 0a 6c 69 73 74 | 65 64 20 69 6e 20 68 65 | is.list|ed in he|
|00003d90| 78 61 64 65 63 69 6d 61 | 6c 29 3b 0a 2e 49 50 0a |xadecima|l);..IP.|
|00003da0| 6f 72 20 74 68 65 20 70 | 72 6f 74 6f 63 6f 6c 20 |or the p|rotocol |
|00003db0| 63 6f 6e 74 72 6f 6c 20 | 62 6c 6f 63 6b 20 61 64 |control |block ad|
|00003dc0| 64 72 65 73 73 20 6f 66 | 20 61 20 55 6e 69 78 20 |dress of| a Unix |
|00003dd0| 6f 72 20 49 6e 74 65 72 | 6e 65 74 20 64 6f 6d 61 |or Inter|net doma|
|00003de0| 69 6e 20 66 69 6c 65 0a | 28 74 68 65 20 6e 75 6d |in file.|(the num|
|00003df0| 62 65 72 20 74 68 61 74 | 20 61 70 70 65 61 72 73 |ber that| appears|
|00003e00| 20 69 6e 0a 2e 49 52 20 | 6e 65 74 73 74 61 74 20 | in..IR |netstat |
|00003e10| 28 31 29 27 73 0a 2e 42 | 20 5c 2d 41 0a 6f 75 74 |(1)'s..B| \-A.out|
|00003e20| 70 75 74 29 2e 0a 2e 54 | 50 0a 53 49 5a 45 0a 69 |put)...T|P.SIZE.i|
|00003e30| 73 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |s the si|ze of th|
|00003e40| 65 20 66 69 6c 65 20 69 | 6e 20 62 79 74 65 73 2c |e file i|n bytes,|
|00003e50| 20 77 68 65 6e 20 69 74 | 20 69 73 20 6b 6e 6f 77 | when it| is know|
|00003e60| 6e 2e 0a 54 68 69 73 20 | 63 6f 6c 75 6d 6e 20 6d |n..This |column m|
|00003e70| 61 79 20 62 65 20 72 65 | 6d 6f 76 65 64 20 66 72 |ay be re|moved fr|
|00003e80| 6f 6d 20 74 68 65 20 6f | 75 74 70 75 74 20 62 79 |om the o|utput by|
|00003e90| 20 73 70 65 63 69 66 79 | 69 6e 67 20 74 68 65 0a | specify|ing the.|
|00003ea0| 2e 42 20 5c 2d 73 0a 6f | 70 74 69 6f 6e 2e 0a 2e |.B \-s.o|ption...|
|00003eb0| 54 50 0a 49 4e 4f 44 45 | 0a 69 73 20 74 68 65 20 |TP.INODE|.is the |
|00003ec0| 69 6e 6f 64 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |inode nu|mber of |
|00003ed0| 61 20 6c 6f 63 61 6c 20 | 66 69 6c 65 3b 0a 2e 49 |a local |file;..I|
|00003ee0| 50 0a 6f 72 20 74 68 65 | 20 69 6e 6f 64 65 20 6e |P.or the| inode n|
|00003ef0| 75 6d 62 65 72 20 6f 66 | 20 61 6e 20 4e 46 53 20 |umber of| an NFS |
|00003f00| 66 69 6c 65 20 69 6e 20 | 74 68 65 20 73 65 72 76 |file in |the serv|
|00003f10| 65 72 20 68 6f 73 74 3b | 0a 2e 49 50 0a 6f 72 20 |er host;|..IP.or |
|00003f20| 74 68 65 20 49 6e 74 65 | 72 6e 65 74 20 70 72 6f |the Inte|rnet pro|
|00003f30| 74 6f 63 6f 6c 20 74 79 | 70 65 20 5c 2d 20 65 2e |tocol ty|pe \- e.|
|00003f40| 20 67 2c 20 60 60 54 43 | 50 27 27 2e 0a 2e 54 50 | g, ``TC|P''...TP|
|00003f50| 0a 4e 41 4d 45 0a 69 73 | 20 74 68 65 20 6e 61 6d |.NAME.is| the nam|
|00003f60| 65 20 6f 66 20 74 68 65 | 20 6d 6f 75 6e 74 20 70 |e of the| mount p|
|00003f70| 6f 69 6e 74 20 61 6e 64 | 20 66 69 6c 65 20 73 79 |oint and| file sy|
|00003f80| 73 74 65 6d 20 6f 6e 20 | 77 68 69 63 68 20 74 68 |stem on |which th|
|00003f90| 65 20 66 69 6c 65 20 72 | 65 73 69 64 65 73 3b 0a |e file r|esides;.|
|00003fa0| 2e 49 50 0a 6f 72 20 74 | 68 65 20 6e 61 6d 65 20 |.IP.or t|he name |
|00003fb0| 6f 66 20 61 20 66 69 6c | 65 20 73 70 65 63 69 66 |of a fil|e specif|
|00003fc0| 69 65 64 20 69 6e 20 74 | 68 65 0a 2e 49 20 6e 61 |ied in t|he..I na|
|00003fd0| 6d 65 73 0a 6f 70 74 69 | 6f 6e 20 28 61 66 74 65 |mes.opti|on (afte|
|00003fe0| 72 20 61 6e 79 20 73 79 | 6d 62 6f 6c 69 63 20 6c |r any sy|mbolic l|
|00003ff0| 69 6e 6b 73 20 68 61 76 | 65 20 62 65 65 6e 20 72 |inks hav|e been r|
|00004000| 65 73 6f 6c 76 65 64 29 | 3b 0a 2e 49 50 0a 6f 72 |esolved)|;..IP.or|
|00004010| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 61 20 63 | the nam|e of a c|
|00004020| 68 61 72 61 63 74 65 72 | 20 73 70 65 63 69 61 6c |haracter| special|
|00004030| 20 6f 72 20 62 6c 6f 63 | 6b 20 73 70 65 63 69 61 | or bloc|k specia|
|00004040| 6c 20 64 65 76 69 63 65 | 3b 0a 2e 49 50 0a 6f 72 |l device|;..IP.or|
|00004050| 20 74 68 65 20 6c 6f 63 | 61 6c 20 61 6e 64 20 72 | the loc|al and r|
|00004060| 65 6d 6f 74 65 20 49 6e | 74 65 72 6e 65 74 20 61 |emote In|ternet a|
|00004070| 64 64 72 65 73 73 65 73 | 20 6f 66 20 61 20 6e 65 |ddresses| of a ne|
|00004080| 74 77 6f 72 6b 20 66 69 | 6c 65 3b 0a 2e 49 50 0a |twork fi|le;..IP.|
|00004090| 6f 72 20 74 68 65 20 61 | 64 64 72 65 73 73 20 6f |or the a|ddress o|
|000040a0| 66 20 61 20 55 6e 69 78 | 20 64 6f 6d 61 69 6e 20 |f a Unix| domain |
|000040b0| 73 6f 63 6b 65 74 3b 0a | 2e 49 50 0a 6f 72 20 74 |socket;.|.IP.or t|
|000040c0| 68 65 20 6c 6f 63 61 6c | 20 61 6e 64 20 72 65 6d |he local| and rem|
|000040d0| 6f 74 65 20 6d 6f 75 6e | 74 20 70 6f 69 6e 74 20 |ote moun|t point |
|000040e0| 6e 61 6d 65 73 20 6f 66 | 20 61 6e 20 4e 46 53 20 |names of| an NFS |
|000040f0| 66 69 6c 65 2e 0a 2e 53 | 48 20 44 49 41 47 4e 4f |file...S|H DIAGNO|
|00004100| 53 54 49 43 53 0a 45 72 | 72 6f 72 73 20 61 72 65 |STICS.Er|rors are|
|00004110| 20 69 64 65 6e 74 69 66 | 69 65 64 20 77 69 74 68 | identif|ied with|
|00004120| 20 6d 65 73 73 61 67 65 | 73 20 6f 6e 20 74 68 65 | message|s on the|
|00004130| 20 73 74 61 6e 64 61 72 | 64 20 65 72 72 6f 72 20 | standar|d error |
|00004140| 66 69 6c 65 2e 0a 2e 50 | 50 0a 2e 49 20 4c 73 6f |file...P|P..I Lso|
|00004150| 66 0a 72 65 74 75 72 6e | 73 20 61 20 6f 6e 65 20 |f.return|s a one |
|00004160| 28 31 29 20 69 66 20 61 | 6e 79 20 65 72 72 6f 72 |(1) if a|ny error|
|00004170| 20 77 61 73 20 64 65 74 | 65 63 74 65 64 2c 20 69 | was det|ected, i|
|00004180| 6e 63 6c 75 64 69 6e 67 | 20 74 68 65 20 66 61 69 |ncluding| the fai|
|00004190| 6c 75 72 65 20 74 6f 0a | 6c 6f 63 61 74 65 20 61 |lure to.|locate a|
|000041a0| 6e 79 0a 2e 49 52 20 6e | 61 6d 65 73 20 2e 0a 49 |ny..IR n|ames ..I|
|000041b0| 74 20 72 65 74 75 72 6e | 73 20 61 20 7a 65 72 6f |t return|s a zero|
|000041c0| 20 28 30 29 20 69 66 20 | 6e 6f 20 65 72 72 6f 72 | (0) if |no error|
|000041d0| 73 20 77 65 72 65 20 64 | 65 74 65 63 74 65 64 20 |s were d|etected |
|000041e0| 61 6e 64 20 69 66 20 69 | 74 20 77 61 73 20 61 62 |and if i|t was ab|
|000041f0| 6c 65 20 74 6f 0a 6c 69 | 73 74 20 69 6e 66 6f 72 |le to.li|st infor|
|00004200| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 61 6c 6c |mation a|bout all|
|00004210| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 0a 2e | the spe|cified..|
|00004220| 49 52 20 6e 61 6d 65 73 | 20 2e 0a 2e 53 48 20 45 |IR names| ...SH E|
|00004230| 58 41 4d 50 4c 45 53 0a | 54 6f 20 6c 69 73 74 20 |XAMPLES.|To list |
|00004240| 61 6c 6c 20 6f 70 65 6e | 20 66 69 6c 65 73 2c 20 |all open| files, |
|00004250| 75 73 65 3a 0a 2e 49 50 | 0a 6c 73 6f 66 0a 2e 50 |use:..IP|.lsof..P|
|00004260| 50 0a 54 6f 20 6c 69 73 | 74 20 61 6c 6c 20 6f 70 |P.To lis|t all op|
|00004270| 65 6e 20 49 6e 74 65 72 | 6e 65 74 20 61 6e 64 20 |en Inter|net and |
|00004280| 55 6e 69 78 20 64 6f 6d | 61 69 6e 20 66 69 6c 65 |Unix dom|ain file|
|00004290| 73 2c 20 75 73 65 3a 0a | 2e 49 50 0a 6c 73 6f 66 |s, use:.|.IP.lsof|
|000042a0| 20 2d 6e 20 2d 55 0a 2e | 50 50 0a 54 6f 20 6c 69 | -n -U..|PP.To li|
|000042b0| 73 74 20 61 6c 6c 20 6f | 70 65 6e 20 66 69 6c 65 |st all o|pen file|
|000042c0| 73 20 66 6f 72 20 6c 6f | 67 69 6e 20 6e 61 6d 65 |s for lo|gin name|
|000042d0| 20 60 60 61 62 65 27 27 | 2c 20 75 73 65 72 20 49 | ``abe''|, user I|
|000042e0| 44 20 31 32 33 34 2c 20 | 70 72 6f 63 65 73 73 20 |D 1234, |process |
|000042f0| 31 32 33 2c 0a 70 72 6f | 63 65 73 73 20 34 35 36 |123,.pro|cess 456|
|00004300| 20 61 6e 64 20 70 72 6f | 63 65 73 73 20 37 38 39 | and pro|cess 789|
|00004310| 2c 20 75 73 65 3a 0a 2e | 49 50 0a 6c 73 6f 66 20 |, use:..|IP.lsof |
|00004320| 2d 70 20 37 38 39 2c 34 | 35 36 2c 31 32 33 20 2d |-p 789,4|56,123 -|
|00004330| 75 20 31 32 33 34 2c 61 | 62 65 0a 2e 50 50 0a 54 |u 1234,a|be..PP.T|
|00004340| 6f 20 6c 69 73 74 20 61 | 6c 6c 20 6f 70 65 6e 20 |o list a|ll open |
|00004350| 66 69 6c 65 73 20 6f 6e | 20 64 65 76 69 63 65 20 |files on| device |
|00004360| 2f 64 65 76 2f 68 64 34 | 2c 20 75 73 65 3a 0a 2e |/dev/hd4|, use:..|
|00004370| 49 50 0a 6c 73 6f 66 20 | 2f 64 65 76 2f 68 64 34 |IP.lsof |/dev/hd4|
|00004380| 0a 2e 50 50 0a 54 6f 20 | 66 69 6e 64 20 74 68 65 |..PP.To |find the|
|00004390| 20 70 72 6f 63 65 73 73 | 20 74 68 61 74 20 68 61 | process| that ha|
|000043a0| 73 20 2f 75 2f 61 62 65 | 2f 66 6f 6f 20 6f 70 65 |s /u/abe|/foo ope|
|000043b0| 6e 2c 20 75 73 65 3a 0a | 2e 49 50 0a 6c 73 6f 66 |n, use:.|.IP.lsof|
|000043c0| 20 2f 75 2f 61 62 65 2f | 66 6f 6f 0a 2e 50 50 0a | /u/abe/|foo..PP.|
|000043d0| 54 6f 20 73 65 6e 64 20 | 61 20 53 49 47 48 55 50 |To send |a SIGHUP|
|000043e0| 20 74 6f 20 74 68 65 20 | 70 72 6f 63 65 73 73 65 | to the |processe|
|000043f0| 73 20 74 68 61 74 20 68 | 61 76 65 20 2f 75 2f 61 |s that h|ave /u/a|
|00004400| 62 65 2f 62 61 72 20 6f | 70 65 6e 2c 20 75 73 65 |be/bar o|pen, use|
|00004410| 3a 0a 2e 49 50 0a 6b 69 | 6c 6c 20 2d 48 55 50 20 |:..IP.ki|ll -HUP |
|00004420| 60 6c 73 6f 66 20 2d 74 | 20 2f 75 2f 61 62 65 2f |`lsof -t| /u/abe/|
|00004430| 62 61 72 60 0a 2e 53 48 | 20 42 55 47 53 0a 53 69 |bar`..SH| BUGS.Si|
|00004440| 6e 63 65 0a 2e 49 20 6c | 73 6f 66 0a 72 65 61 64 |nce..I l|sof.read|
|00004450| 73 20 6b 65 72 6e 65 6c | 20 6d 65 6d 6f 72 79 20 |s kernel| memory |
|00004460| 69 6e 20 69 74 73 20 73 | 65 61 72 63 68 20 66 6f |in its s|earch fo|
|00004470| 72 20 6f 70 65 6e 20 66 | 69 6c 65 73 2c 20 72 61 |r open f|iles, ra|
|00004480| 70 69 64 20 63 68 61 6e | 67 65 73 20 69 6e 20 6b |pid chan|ges in k|
|00004490| 65 72 6e 65 6c 0a 6d 65 | 6d 6f 72 79 20 6d 61 79 |ernel.me|mory may|
|000044a0| 20 70 72 6f 64 75 63 65 | 20 75 6e 70 72 65 64 69 | produce| unpredi|
|000044b0| 63 74 61 62 6c 65 20 72 | 65 73 75 6c 74 73 2e 0a |ctable r|esults..|
|000044c0| 2e 50 50 0a 41 62 73 65 | 6e 63 65 20 6f 66 20 68 |.PP.Abse|nce of h|
|000044d0| 61 72 64 77 61 72 65 20 | 6f 72 20 73 6f 66 74 77 |ardware |or softw|
|000044e0| 61 72 65 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |are conf|iguratio|
|000044f0| 6e 73 20 66 6f 72 20 73 | 6f 6d 65 20 6f 70 65 72 |ns for s|ome oper|
|00004500| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 73 0a 5c 2d |ating sy|stems.\-|
|00004510| 20 65 2e 20 67 2e 2c 20 | 48 50 5c 2d 55 58 20 37 | e. g., |HP\-UX 7|
|00004520| 2e 78 20 61 6e 64 20 38 | 2e 78 20 61 6e 64 20 53 |.x and 8|.x and S|
|00004530| 65 71 75 65 6e 74 20 44 | 79 6e 69 78 20 33 2e 31 |equent D|ynix 3.1|
|00004540| 2e 32 20 5c 2d 20 6d 65 | 61 6e 73 20 74 68 61 74 |.2 \- me|ans that|
|00004550| 0a 2e 49 20 6c 73 6f 66 | 0a 68 61 73 20 6e 6f 74 |..I lsof|.has not|
|00004560| 20 62 65 65 6e 20 66 75 | 6c 6c 79 20 74 65 73 74 | been fu|lly test|
|00004570| 65 64 20 6f 6e 20 74 68 | 65 6d 2e 0a 2e 50 50 0a |ed on th|em...PP.|
|00004580| 54 68 65 20 6c 6f 63 6b | 20 73 74 61 74 75 73 20 |The lock| status |
|00004590| 63 68 61 72 61 63 74 65 | 72 20 28 66 6f 6c 6c 6f |characte|r (follo|
|000045a0| 77 69 6e 67 20 74 68 65 | 20 66 69 6c 65 20 64 65 |wing the| file de|
|000045b0| 73 63 72 69 70 74 6f 72 | 29 20 69 73 20 64 65 72 |scriptor|) is der|
|000045c0| 69 76 65 64 20 75 6e 64 | 65 72 0a 41 49 58 20 66 |ived und|er.AIX f|
|000045d0| 72 6f 6d 20 61 20 74 65 | 73 74 20 6f 66 20 6f 6e |rom a te|st of on|
|000045e0| 6c 79 20 74 68 65 20 66 | 69 72 73 74 20 66 69 6c |ly the f|irst fil|
|000045f0| 6f 63 6b 20 73 74 72 75 | 63 74 75 72 65 20 6f 66 |ock stru|cture of|
|00004600| 20 74 68 65 20 67 6e 6f | 64 65 0a 28 73 65 65 20 | the gno|de.(see |
|00004610| 3c 73 79 73 2f 66 6c 6f | 63 6b 2e 68 3e 20 61 6e |<sys/flo|ck.h> an|
|00004620| 64 20 3c 73 79 73 2f 67 | 6e 6f 64 65 2e 68 3e 29 |d <sys/g|node.h>)|
|00004630| 2e 0a 2e 50 50 0a 2e 49 | 20 4c 73 6f 66 0a 63 61 |...PP..I| Lsof.ca|
|00004640| 6e 27 74 20 73 65 61 72 | 63 68 20 66 6f 72 20 61 |n't sear|ch for a|
|00004650| 6e 79 20 66 69 6c 65 20 | 62 79 0a 2e 49 20 6e 61 |ny file |by..I na|
|00004660| 6d 65 0a 75 6e 6c 65 73 | 73 20 69 74 20 69 73 20 |me.unles|s it is |
|00004670| 69 6e 73 74 61 6c 6c 65 | 64 20 77 69 74 68 20 72 |installe|d with r|
|00004680| 6f 6f 74 20 73 65 74 2d | 55 49 44 20 70 65 72 6d |oot set-|UID perm|
|00004690| 69 73 73 69 6f 6e 2e 0a | 4f 74 68 65 72 77 69 73 |ission..|Otherwis|
|000046a0| 65 20 69 74 20 69 73 20 | 72 65 73 74 72 69 63 74 |e it is |restrict|
|000046b0| 65 64 20 74 6f 20 73 65 | 61 72 63 68 69 6e 67 20 |ed to se|arching |
|000046c0| 66 6f 72 20 66 69 6c 65 | 73 20 74 6f 20 77 68 69 |for file|s to whi|
|000046d0| 63 68 20 69 74 73 20 75 | 73 65 72 0a 6f 72 20 69 |ch its u|ser.or i|
|000046e0| 74 73 20 73 65 74 2d 47 | 49 44 20 67 72 6f 75 70 |ts set-G|ID group|
|000046f0| 20 28 69 66 20 61 6e 79 | 29 20 68 61 76 65 20 61 | (if any|) have a|
|00004700| 63 63 65 73 73 2e 0a 2e | 50 50 0a 2e 49 20 4c 73 |ccess...|PP..I Ls|
|00004710| 6f 66 0a 73 74 61 72 74 | 75 70 20 74 69 6d 65 20 |of.start|up time |
|00004720| 69 73 20 6c 6f 6e 67 20 | 6f 6e 20 73 79 73 74 65 |is long |on syste|
|00004730| 6d 73 20 77 68 65 72 65 | 20 73 63 61 6e 6e 69 6e |ms where| scannin|
|00004740| 67 20 74 68 65 0a 2e 49 | 20 2f 64 65 76 0a 64 69 |g the..I| /dev.di|
|00004750| 72 65 63 74 6f 72 79 20 | 69 73 20 61 20 73 6c 6f |rectory |is a slo|
|00004760| 77 20 6f 70 65 72 61 74 | 69 6f 6e 2e 0a 2e 50 50 |w operat|ion...PP|
|00004770| 0a 4f 75 74 70 75 74 20 | 6c 69 6e 65 73 20 61 72 |.Output |lines ar|
|00004780| 65 20 73 6f 6d 65 74 69 | 6d 65 73 20 67 72 65 61 |e someti|mes grea|
|00004790| 74 65 72 20 74 68 61 6e | 20 65 69 67 68 74 79 20 |ter than| eighty |
|000047a0| 63 68 61 72 61 63 74 65 | 72 73 20 5c 2d 20 65 2e |characte|rs \- e.|
|000047b0| 20 67 2e 2c 0a 66 6f 72 | 20 63 6f 6d 70 6c 65 74 | g.,.for| complet|
|000047c0| 65 64 20 49 6e 74 65 72 | 6e 65 74 20 63 6f 6e 6e |ed Inter|net conn|
|000047d0| 65 63 74 69 6f 6e 73 20 | 6f 72 20 4e 46 53 20 66 |ections |or NFS f|
|000047e0| 69 6c 65 73 20 5c 2d 20 | 63 61 75 73 69 6e 67 20 |iles \- |causing |
|000047f0| 74 68 65 20 6f 75 74 70 | 75 74 0a 6c 69 73 74 69 |the outp|ut.listi|
|00004800| 6e 67 20 74 6f 20 62 65 | 20 69 72 72 65 67 75 6c |ng to be| irregul|
|00004810| 61 72 6c 79 20 73 70 61 | 63 65 64 2e 0a 54 68 65 |arly spa|ced..The|
|00004820| 0a 2e 42 20 5c 2d 73 0a | 6f 70 74 69 6f 6e 20 6d |..B \-s.|option m|
|00004830| 61 79 20 62 65 20 73 70 | 65 63 69 66 69 65 64 20 |ay be sp|ecified |
|00004840| 74 6f 20 72 65 6d 6f 76 | 65 20 74 68 65 20 53 49 |to remov|e the SI|
|00004850| 5a 45 20 63 6f 6c 75 6d | 6e 2c 20 73 68 6f 72 74 |ZE colum|n, short|
|00004860| 65 6e 69 6e 67 20 6f 75 | 74 70 75 74 0a 6c 69 6e |ening ou|tput.lin|
|00004870| 65 73 20 62 79 20 6e 69 | 6e 65 20 63 68 61 72 61 |es by ni|ne chara|
|00004880| 63 74 65 72 73 2e 0a 2e | 50 50 0a 49 66 20 74 68 |cters...|PP.If th|
|00004890| 65 72 65 20 61 72 65 20 | 66 69 6c 65 73 20 6f 72 |ere are |files or|
|000048a0| 20 73 75 62 64 69 72 65 | 63 74 6f 72 69 65 73 20 | subdire|ctories |
|000048b0| 69 6e 0a 2e 49 20 2f 64 | 65 76 0a 74 68 61 74 0a |in..I /d|ev.that.|
|000048c0| 2e 49 20 6c 73 6f 66 0a | 63 61 6e 27 74 0a 2e 49 |.I lsof.|can't..I|
|000048d0| 52 20 73 74 61 74 20 28 | 32 29 0a 6f 72 20 72 65 |R stat (|2).or re|
|000048e0| 61 64 2c 20 69 74 20 77 | 69 6c 6c 20 69 67 6e 6f |ad, it w|ill igno|
|000048f0| 72 65 20 74 68 65 6d 20 | 77 69 74 68 6f 75 74 20 |re them |without |
|00004900| 63 6f 6d 70 6c 61 69 6e | 74 2c 20 75 6e 6c 65 73 |complain|t, unles|
|00004910| 73 20 74 68 65 0a 2e 42 | 20 5c 2d 64 0a 6f 70 74 |s the..B| \-d.opt|
|00004920| 69 6f 6e 20 69 73 20 73 | 65 6c 65 63 74 65 64 2e |ion is s|elected.|
|00004930| 0a 57 68 65 74 68 65 72 | 0a 2e 49 20 6c 73 6f 66 |.Whether|..I lsof|
|00004940| 0a 63 6f 6d 70 6c 61 69 | 6e 73 20 6f 72 20 6e 6f |.complai|ns or no|
|00004950| 74 2c 20 69 74 20 69 73 | 20 75 6e 61 62 6c 65 20 |t, it is| unable |
|00004960| 74 6f 20 72 65 70 6f 72 | 74 20 6d 61 6a 6f 72 20 |to repor|t major |
|00004970| 61 6e 64 20 6d 69 6e 6f | 72 20 64 65 76 69 63 65 |and mino|r device|
|00004980| 20 6e 75 6d 62 65 72 73 | 0a 66 6f 72 20 74 68 65 | numbers|.for the|
|00004990| 20 65 6e 74 72 69 65 73 | 20 69 74 20 63 61 6e 27 | entries| it can'|
|000049a0| 74 20 61 63 63 65 73 73 | 2e 0a 2e 53 48 20 46 49 |t access|...SH FI|
|000049b0| 4c 45 53 0a 2e 54 50 20 | 5c 77 27 2f 64 65 76 2f |LES..TP |\w'/dev/|
|000049c0| 73 77 61 70 27 75 2b 31 | 36 0a 2f 64 65 76 2f 64 |swap'u+1|6./dev/d|
|000049d0| 72 75 6d 09 73 79 73 74 | 65 6d 20 70 61 67 69 6e |rum.syst|em pagin|
|000049e0| 67 20 64 65 76 69 63 65 | 0a 2e 54 50 0a 2f 64 65 |g device|..TP./de|
|000049f0| 76 2f 6b 6d 65 6d 09 6b | 65 72 6e 65 6c 20 76 69 |v/kmem.k|ernel vi|
|00004a00| 72 74 75 61 6c 20 6d 65 | 6d 6f 72 79 20 64 65 76 |rtual me|mory dev|
|00004a10| 69 63 65 0a 2e 54 50 0a | 2f 64 65 76 2f 6d 65 6d |ice..TP.|/dev/mem|
|00004a20| 09 70 68 79 73 69 63 61 | 6c 20 6d 65 6d 6f 72 79 |.physica|l memory|
|00004a30| 20 64 65 76 69 63 65 0a | 2e 54 50 0a 2f 64 65 76 | device.|.TP./dev|
|00004a40| 2f 73 77 61 70 09 73 79 | 73 74 65 6d 20 70 61 67 |/swap.sy|stem pag|
|00004a50| 69 6e 67 20 64 65 76 69 | 63 65 0a 2e 53 48 20 41 |ing devi|ce..SH A|
|00004a60| 55 54 48 4f 52 53 0a 2e | 49 20 4c 73 6f 66 0a 77 |UTHORS..|I Lsof.w|
|00004a70| 61 73 20 77 72 69 74 74 | 65 6e 20 62 79 20 56 69 |as writt|en by Vi|
|00004a80| 63 74 6f 72 20 41 2e 20 | 41 62 65 6c 6c 20 6f 66 |ctor A. |Abell of|
|00004a90| 20 74 68 65 20 50 75 72 | 64 75 65 20 55 6e 69 76 | the Pur|due Univ|
|00004aa0| 65 72 73 69 74 79 20 43 | 6f 6d 70 75 74 69 6e 67 |ersity C|omputing|
|00004ab0| 20 43 65 6e 74 65 72 0a | 28 50 55 43 43 29 2c 20 | Center.|(PUCC), |
|00004ac0| 62 61 73 65 64 20 6f 6e | 20 74 68 65 0a 2e 49 20 |based on| the..I |
|00004ad0| 66 73 74 61 74 0a 61 6e | 64 0a 2e 49 20 6f 66 69 |fstat.an|d..I ofi|
|00004ae0| 6c 65 73 0a 70 72 6f 67 | 72 61 6d 73 2e 0a 48 65 |les.prog|rams..He|
|00004af0| 20 61 63 6b 6e 6f 77 6c | 65 64 67 65 73 20 68 69 | acknowl|edges hi|
|00004b00| 73 20 64 65 62 74 20 74 | 6f 20 74 68 65 20 77 6f |s debt t|o the wo|
|00004b10| 72 6b 20 6f 66 20 44 61 | 6e 20 42 65 72 6e 73 74 |rk of Da|n Bernst|
|00004b20| 65 69 6e 2c 20 4d 69 63 | 68 61 65 6c 20 60 60 46 |ein, Mic|hael ``F|
|00004b30| 6f 72 64 27 27 0a 44 69 | 74 74 6f 2c 20 54 6f 6d |ord''.Di|tto, Tom|
|00004b40| 20 44 75 6e 69 67 61 6e | 2c 20 41 6c 65 78 61 6e | Dunigan|, Alexan|
|00004b50| 64 65 72 20 44 75 70 75 | 79 2c 20 56 69 6b 20 4c |der Dupu|y, Vik L|
|00004b60| 61 6c 6c 2c 20 52 61 79 | 20 4d 6f 6f 64 79 2c 20 |all, Ray| Moody, |
|00004b70| 43 2e 20 53 70 65 6e 63 | 65 72 2c 0a 4d 69 63 68 |C. Spenc|er,.Mich|
|00004b80| 61 65 6c 20 53 70 69 74 | 7a 65 72 20 61 6e 64 20 |ael Spit|zer and |
|00004b90| 74 68 6f 73 65 20 77 68 | 6f 20 77 72 6f 74 65 20 |those wh|o wrote |
|00004ba0| 42 65 72 6b 65 6c 65 79 | 27 73 0a 2e 49 20 66 73 |Berkeley|'s..I fs|
|00004bb0| 74 61 74 0a 70 72 6f 67 | 72 61 6d 2c 20 61 6c 6c |tat.prog|ram, all|
|00004bc0| 20 63 6f 6e 74 72 69 62 | 75 74 6f 72 73 20 74 6f | contrib|utors to|
|00004bd0| 0a 2e 49 20 6c 73 6f 66 | 27 73 0a 70 72 65 64 65 |..I lsof|'s.prede|
|00004be0| 63 65 73 73 6f 72 73 2e | 0a 48 65 20 74 68 61 6e |cessors.|.He than|
|00004bf0| 6b 73 20 44 6f 75 67 20 | 4d 63 4b 65 6e 7a 69 65 |ks Doug |McKenzie|
|00004c00| 20 66 6f 72 20 68 69 73 | 20 48 50 5c 2d 55 58 0a | for his| HP\-UX.|
|00004c10| 2e 49 20 70 72 6f 63 74 | 6f 72 0a 70 72 6f 67 72 |.I proct|or.progr|
|00004c20| 61 6d 20 61 6e 64 20 52 | 69 63 68 20 4b 75 6c 61 |am and R|ich Kula|
|00004c30| 77 69 65 63 20 66 6f 72 | 20 70 6f 69 6e 74 69 6e |wiec for| pointin|
|00004c40| 67 20 69 74 20 6f 75 74 | 2e 0a 46 69 6e 61 6c 6c |g it out|..Finall|
|00004c50| 79 2c 20 68 65 20 69 73 | 20 67 72 61 74 65 66 75 |y, he is| gratefu|
|00004c60| 6c 20 74 6f 20 4a 69 6d | 20 43 6f 6f 70 65 72 2c |l to Jim| Cooper,|
|00004c70| 20 4a 2e 20 4e 65 6c 73 | 6f 6e 20 48 6f 77 65 6c | J. Nels|on Howel|
|00004c80| 6c 2c 20 4d 61 72 6b 75 | 73 0a 4c 61 75 74 65 6e |l, Marku|s.Lauten|
|00004c90| 62 61 63 68 65 72 2c 20 | 57 65 6e 64 79 20 4c 69 |bacher, |Wendy Li|
|00004ca0| 6e 2c 20 41 6e 64 72 65 | 61 73 20 4c 75 69 6b 2c |n, Andre|as Luik,|
|00004cb0| 20 46 6c 65 74 63 68 65 | 72 20 4d 61 74 74 6f 78 | Fletche|r Mattox|
|00004cc0| 2c 20 4d 69 63 68 61 65 | 6c 20 4d 61 63 6b 65 6e |, Michae|l Macken|
|00004cd0| 7a 69 65 2c 0a 4a 65 66 | 66 20 53 74 65 77 61 72 |zie,.Jef|f Stewar|
|00004ce0| 74 20 61 6e 64 20 50 61 | 74 72 69 63 6b 20 57 6f |t and Pa|trick Wo|
|00004cf0| 6c 66 65 20 66 6f 72 20 | 74 68 65 69 72 20 68 65 |lfe for |their he|
|00004d00| 6c 70 20 69 6e 20 64 65 | 76 65 6c 6f 70 69 6e 67 |lp in de|veloping|
|00004d10| 20 61 6e 64 0a 69 6d 70 | 72 6f 76 69 6e 67 0a 2e | and.imp|roving..|
|00004d20| 49 52 20 6c 73 6f 66 20 | 2e 0a 2e 53 48 20 53 45 |IR lsof |...SH SE|
|00004d30| 45 20 41 4c 53 4f 0a 66 | 66 28 31 29 2c 0a 66 73 |E ALSO.f|f(1),.fs|
|00004d40| 74 61 74 28 38 29 2c 0a | 66 75 73 65 72 28 31 29 |tat(8),.|fuser(1)|
|00004d50| 2c 0a 6b 69 6c 6c 28 31 | 29 2c 0a 6e 65 74 73 74 |,.kill(1|),.netst|
|00004d60| 61 74 28 31 29 2c 0a 6f | 66 69 6c 65 73 28 38 4c |at(1),.o|files(8L|
|00004d70| 29 2c 0a 70 73 28 31 29 | 2e 0a 6c 73 6f 66 2e 38 |),.ps(1)|..lsof.8|
|00004d80| 0a 54 50 55 54 0a 2e 49 | 20 4c 73 6f 66 0a 6c 69 |.TPUT..I| Lsof.li|
|00004d90| 73 74 73 20 66 6f 72 20 | 65 61 63 68 20 6f 70 65 |sts for |each ope|
|00004da0| 6e 20 66 69 6c 65 3a 0a | 2e 54 50 20 5c 77 27 43 |n file:.|.TP \w'C|
|00004db0| 4f 4d 4d 41 4e 44 27 75 | 2b 34 0a 43 4f 4d 4d 41 |OMMAND'u|+4.COMMA|
|00004dc0| 4e 44 0a 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |ND.conta|ins the |
|00004dd0| 66 69 72 73 74 20 6e 69 | 6e 65 20 63 68 61 72 61 |first ni|ne chara|
|00004de0| 63 74 65 72 73 20 6f 66 | 20 74 68 65 20 6e 61 6d |cters of| the nam|
|00004df0| 65 20 6f 66 20 74 68 65 | 20 55 6e 69 78 20 63 6f |e of the| Unix co|
|00004e00| 6c 73 6f 66 2f 6c 73 6f | 66 2e 63 00 00 00 00 00 |lsof/lso|f.c.....|
|00004e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 31 |.... 6|44 . 1|
|00004e70| 34 34 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |44 . |12 . |
|00004e80| 20 32 33 33 35 33 31 20 | 20 35 31 36 32 35 35 35 | 233531 | 5162555|
|00004e90| 32 34 30 20 20 20 36 32 | 32 36 00 20 00 00 00 00 |240 62|26. ....|
|00004ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005000| 2f 2a 0a 20 2a 09 6c 73 | 6f 66 2e 63 20 2d 20 6c |/*. *.ls|of.c - l|
|00005010| 69 73 74 20 6f 70 65 6e | 20 66 69 6c 65 73 0a 20 |ist open| files. |
|00005020| 2a 2f 0a 0a 0a 2f 2a 0a | 20 2a 09 4c 73 6f 66 20 |*/.../*.| *.Lsof |
|00005030| 6c 69 73 74 73 20 66 69 | 6c 65 73 20 6f 70 65 6e |lists fi|les open|
|00005040| 65 64 20 62 79 20 70 72 | 6f 63 65 73 73 65 73 20 |ed by pr|ocesses |
|00005050| 6f 66 3a 0a 20 2a 0a 20 | 2a 09 09 41 49 58 20 33 |of:. *. |*..AIX 3|
|00005060| 2e 31 2e 5b 33 35 37 5d | 09 09 28 23 64 65 66 69 |.1.[357]|..(#defi|
|00005070| 6e 65 20 5f 49 42 4d 52 | 32 29 0a 20 2a 09 09 50 |ne _IBMR|2). *..P|
|00005080| 75 72 64 75 65 20 44 59 | 4e 49 58 20 33 2e 30 2e |urdue DY|NIX 3.0.|
|00005090| 31 32 09 28 23 64 65 66 | 69 6e 65 20 44 59 4e 49 |12.(#def|ine DYNI|
|000050a0| 58 29 0a 20 2a 09 09 53 | 65 71 75 65 6e 74 20 44 |X). *..S|equent D|
|000050b0| 59 4e 49 58 20 33 2e 30 | 2e 31 32 09 28 23 64 65 |YNIX 3.0|.12.(#de|
|000050c0| 66 69 6e 65 20 44 59 4e | 49 58 2c 20 23 64 65 66 |fine DYN|IX, #def|
|000050d0| 69 6e 65 20 53 45 51 55 | 45 4e 54 29 0a 20 2a 09 |ine SEQU|ENT). *.|
|000050e0| 09 53 65 71 75 65 6e 74 | 20 44 59 4e 49 58 20 33 |.Sequent| DYNIX 3|
|000050f0| 2e 31 2e 32 09 28 23 64 | 65 66 69 6e 65 20 44 59 |.1.2.(#d|efine DY|
|00005100| 4e 49 58 33 31 29 0a 20 | 2a 09 09 48 50 2d 55 58 |NIX31). |*..HP-UX|
|00005110| 20 37 2e 78 09 09 28 23 | 64 65 66 69 6e 65 20 68 | 7.x..(#|define h|
|00005120| 70 75 78 2c 20 23 64 65 | 66 69 6e 65 20 48 50 55 |pux, #de|fine HPU|
|00005130| 58 37 29 0a 20 2a 09 09 | 48 50 2d 55 58 20 38 2e |X7). *..|HP-UX 8.|
|00005140| 78 09 09 28 23 64 65 66 | 69 6e 65 20 68 70 75 78 |x..(#def|ine hpux|
|00005150| 2c 20 23 64 65 66 69 6e | 65 20 48 50 55 58 38 29 |, #defin|e HPUX8)|
|00005160| 0a 20 2a 09 09 4e 65 58 | 54 53 74 65 70 20 32 2e |. *..NeX|TStep 2.|
|00005170| 5b 30 31 5d 09 09 28 23 | 64 65 66 69 6e 65 20 4e |[01]..(#|define N|
|00005180| 65 58 54 29 0a 20 2a 09 | 09 53 75 6e 4f 53 20 34 |eXT). *.|.SunOS 4|
|00005190| 2e 31 2e 31 09 09 28 23 | 64 65 66 69 6e 65 20 73 |.1.1..(#|define s|
|000051a0| 75 6e 29 0a 20 2a 2f 0a | 0a 2f 2a 0a 20 2a 20 43 |un). */.|./*. * C|
|000051b0| 6f 70 79 72 69 67 68 74 | 20 31 39 39 31 20 50 75 |opyright| 1991 Pu|
|000051c0| 72 64 75 65 20 52 65 73 | 65 61 72 63 68 20 46 6f |rdue Res|earch Fo|
|000051d0| 75 6e 64 61 74 69 6f 6e | 2c 20 57 65 73 74 20 4c |undation|, West L|
|000051e0| 61 66 61 79 65 74 74 65 | 2c 20 49 6e 64 69 61 6e |afayette|, Indian|
|000051f0| 61 0a 20 2a 20 34 37 39 | 30 37 2e 20 20 41 6c 6c |a. * 479|07. All|
|00005200| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|00005210| 2e 0a 20 2a 0a 20 2a 20 | 57 72 69 74 74 65 6e 20 |.. *. * |Written |
|00005220| 62 79 20 56 69 63 74 6f | 72 20 41 2e 20 41 62 65 |by Victo|r A. Abe|
|00005230| 6c 6c 0a 20 2a 0a 20 2a | 20 54 68 69 73 20 73 6f |ll. *. *| This so|
|00005240| 66 74 77 61 72 65 20 69 | 73 20 6e 6f 74 20 73 75 |ftware i|s not su|
|00005250| 62 6a 65 63 74 20 74 6f | 20 61 6e 79 20 6c 69 63 |bject to| any lic|
|00005260| 65 6e 73 65 20 6f 66 20 | 74 68 65 20 41 6d 65 72 |ense of |the Amer|
|00005270| 69 63 61 6e 20 54 65 6c | 65 70 68 6f 6e 65 0a 20 |ican Tel|ephone. |
|00005280| 2a 20 61 6e 64 20 54 65 | 6c 65 67 72 61 70 68 20 |* and Te|legraph |
|00005290| 43 6f 6d 70 61 6e 79 20 | 6f 72 20 74 68 65 20 52 |Company |or the R|
|000052a0| 65 67 65 6e 74 73 20 6f | 66 20 74 68 65 20 55 6e |egents o|f the Un|
|000052b0| 69 76 65 72 73 69 74 79 | 20 6f 66 20 43 61 6c 69 |iversity| of Cali|
|000052c0| 66 6f 72 6e 69 61 2e 0a | 20 2a 0a 20 2a 20 50 65 |fornia..| *. * Pe|
|000052d0| 72 6d 69 73 73 69 6f 6e | 20 69 73 20 67 72 61 6e |rmission| is gran|
|000052e0| 74 65 64 20 74 6f 20 61 | 6e 79 6f 6e 65 20 74 6f |ted to a|nyone to|
|000052f0| 20 75 73 65 20 74 68 69 | 73 20 73 6f 66 74 77 61 | use thi|s softwa|
|00005300| 72 65 20 66 6f 72 20 61 | 6e 79 20 70 75 72 70 6f |re for a|ny purpo|
|00005310| 73 65 20 6f 6e 0a 20 2a | 20 61 6e 79 20 63 6f 6d |se on. *| any com|
|00005320| 70 75 74 65 72 20 73 79 | 73 74 65 6d 2c 20 61 6e |puter sy|stem, an|
|00005330| 64 20 74 6f 20 61 6c 74 | 65 72 20 69 74 20 61 6e |d to alt|er it an|
|00005340| 64 20 72 65 64 69 73 74 | 72 69 62 75 74 65 20 69 |d redist|ribute i|
|00005350| 74 20 66 72 65 65 6c 79 | 2c 20 73 75 62 6a 65 63 |t freely|, subjec|
|00005360| 74 0a 20 2a 20 74 6f 20 | 74 68 65 20 66 6f 6c 6c |t. * to |the foll|
|00005370| 6f 77 69 6e 67 20 72 65 | 73 74 72 69 63 74 69 6f |owing re|strictio|
|00005380| 6e 73 3a 0a 20 2a 0a 20 | 2a 20 31 2e 20 4e 65 69 |ns:. *. |* 1. Nei|
|00005390| 74 68 65 72 20 74 68 65 | 20 61 75 74 68 6f 72 20 |ther the| author |
|000053a0| 6e 6f 72 20 50 75 72 64 | 75 65 20 55 6e 69 76 65 |nor Purd|ue Unive|
|000053b0| 72 73 69 74 79 20 61 72 | 65 20 72 65 73 70 6f 6e |rsity ar|e respon|
|000053c0| 73 69 62 6c 65 20 66 6f | 72 20 61 6e 79 0a 20 2a |sible fo|r any. *|
|000053d0| 20 20 20 20 63 6f 6e 73 | 65 71 75 65 6e 63 65 73 | cons|equences|
|000053e0| 20 6f 66 20 74 68 65 20 | 75 73 65 20 6f 66 20 74 | of the |use of t|
|000053f0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 2e 0a 20 2a |his soft|ware.. *|
|00005400| 0a 20 2a 20 32 2e 20 54 | 68 65 20 6f 72 69 67 69 |. * 2. T|he origi|
|00005410| 6e 20 6f 66 20 74 68 69 | 73 20 73 6f 66 74 77 61 |n of thi|s softwa|
|00005420| 72 65 20 6d 75 73 74 20 | 6e 6f 74 20 62 65 20 6d |re must |not be m|
|00005430| 69 73 72 65 70 72 65 73 | 65 6e 74 65 64 2c 20 65 |isrepres|ented, e|
|00005440| 69 74 68 65 72 20 62 79 | 0a 20 2a 20 20 20 20 65 |ither by|. * e|
|00005450| 78 70 6c 69 63 69 74 20 | 63 6c 61 69 6d 20 6f 72 |xplicit |claim or|
|00005460| 20 62 79 20 6f 6d 69 73 | 73 69 6f 6e 2e 20 20 43 | by omis|sion. C|
|00005470| 72 65 64 69 74 20 74 6f | 20 74 68 65 20 61 75 74 |redit to| the aut|
|00005480| 68 6f 72 20 61 6e 64 20 | 50 75 72 64 75 65 0a 20 |hor and |Purdue. |
|00005490| 2a 20 20 20 20 55 6e 69 | 76 65 72 73 69 74 79 20 |* Uni|versity |
|000054a0| 6d 75 73 74 20 61 70 70 | 65 61 72 20 69 6e 20 64 |must app|ear in d|
|000054b0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 61 6e 64 |ocumenta|tion and|
|000054c0| 20 73 6f 75 72 63 65 73 | 2e 0a 20 2a 0a 20 2a 20 | sources|.. *. * |
|000054d0| 33 2e 20 41 6c 74 65 72 | 65 64 20 76 65 72 73 69 |3. Alter|ed versi|
|000054e0| 6f 6e 73 20 6d 75 73 74 | 20 62 65 20 70 6c 61 69 |ons must| be plai|
|000054f0| 6e 6c 79 20 6d 61 72 6b | 65 64 20 61 73 20 73 75 |nly mark|ed as su|
|00005500| 63 68 2c 20 61 6e 64 20 | 6d 75 73 74 20 6e 6f 74 |ch, and |must not|
|00005510| 20 62 65 0a 20 2a 20 20 | 20 20 6d 69 73 72 65 70 | be. * | misrep|
|00005520| 72 65 73 65 6e 74 65 64 | 20 61 73 20 62 65 69 6e |resented| as bein|
|00005530| 67 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 73 |g the or|iginal s|
|00005540| 6f 66 74 77 61 72 65 2e | 0a 20 2a 0a 20 2a 20 34 |oftware.|. *. * 4|
|00005550| 2e 20 54 68 69 73 20 6e | 6f 74 69 63 65 20 6d 61 |. This n|otice ma|
|00005560| 79 20 6e 6f 74 20 62 65 | 20 72 65 6d 6f 76 65 64 |y not be| removed|
|00005570| 20 6f 72 20 61 6c 74 65 | 72 65 64 2e 0a 20 2a 2f | or alte|red.. */|
|00005580| 0a 0a 23 69 66 09 21 64 | 65 66 69 6e 65 64 28 6c |..#if.!d|efined(l|
|00005590| 69 6e 74 29 0a 73 74 61 | 74 69 63 20 63 68 61 72 |int).sta|tic char|
|000055a0| 20 63 6f 70 79 72 69 67 | 68 74 5b 5d 20 3d 0a 22 | copyrig|ht[] =."|
|000055b0| 40 28 23 29 20 43 6f 70 | 79 72 69 67 68 74 20 31 |@(#) Cop|yright 1|
|000055c0| 39 39 31 20 50 75 72 64 | 75 65 20 52 65 73 65 61 |991 Purd|ue Resea|
|000055d0| 72 63 68 20 46 6f 75 6e | 64 61 74 69 6f 6e 2e 5c |rch Foun|dation.\|
|000055e0| 6e 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 |nAll rig|hts rese|
|000055f0| 72 76 65 64 2e 5c 6e 22 | 3b 0a 23 65 6e 64 69 66 |rved.\n"|;.#endif|
|00005600| 0a 0a 73 74 61 74 69 63 | 20 63 68 61 72 20 56 65 |..static| char Ve|
|00005610| 72 73 69 6f 6e 5b 5d 20 | 3d 20 22 31 2e 30 22 3b |rsion[] |= "1.0";|
|00005620| 0a 0a 0a 2f 2a 0a 20 2a | 09 55 73 61 67 65 3a 0a |.../*. *|.Usage:.|
|00005630| 20 2a 0a 20 2a 09 20 20 | 20 20 6c 73 6f 66 20 5b | *. *. | lsof [|
|00005640| 2d 64 5d 20 5b 2d 68 5d | 20 5b 2d 6c 5d 20 5b 2d |-d] [-h]| [-l] [-|
|00005650| 6e 5d 20 5b 2d 4e 5d 20 | 5b 2d 70 20 6c 5d 20 5b |n] [-N] |[-p l] [|
|00005660| 2d 73 5d 20 5b 2d 74 5d | 20 5b 2d 75 20 6c 5d 20 |-s] [-t]| [-u l] |
|00005670| 5b 2d 55 5d 20 5b 6e 61 | 6d 65 73 5d 0a 20 2a 0a |[-U] [na|mes]. *.|
|00005680| 20 2a 09 77 68 65 72 65 | 3a 0a 20 2a 0a 20 2a 09 | *.where|:. *. *.|
|00005690| 09 2d 64 09 49 73 73 75 | 65 20 65 72 72 6f 72 20 |.-d.Issu|e error |
|000056a0| 6d 65 73 73 61 67 65 73 | 20 61 62 6f 75 74 20 75 |messages| about u|
|000056b0| 6e 72 65 61 64 61 62 6c | 65 20 2f 64 65 76 0a 20 |nreadabl|e /dev. |
|000056c0| 2a 09 09 09 73 75 62 64 | 69 72 65 63 74 6f 72 69 |*...subd|irectori|
|000056d0| 65 73 2e 0a 20 2a 0a 20 | 2a 09 09 2d 68 09 4c 69 |es.. *. |*..-h.Li|
|000056e0| 73 74 20 68 65 6c 70 2e | 0a 20 2a 0a 20 2a 09 09 |st help.|. *. *..|
|000056f0| 2d 6c 09 44 6f 20 6e 6f | 74 20 63 6f 6e 76 65 72 |-l.Do no|t conver|
|00005700| 74 20 55 73 65 72 20 49 | 44 20 6e 75 6d 62 65 72 |t User I|D number|
|00005710| 73 20 74 6f 20 6c 6f 67 | 69 6e 20 6e 61 6d 65 73 |s to log|in names|
|00005720| 2e 0a 20 2a 0a 20 2a 09 | 09 2d 6e 09 4c 69 73 74 |.. *. *.|.-n.List|
|00005730| 20 49 6e 74 65 72 6e 65 | 74 20 6e 65 74 77 6f 72 | Interne|t networ|
|00005740| 6b 20 66 69 6c 65 73 2e | 0a 20 2a 0a 20 2a 09 09 |k files.|. *. *..|
|00005750| 2d 4e 09 4c 69 73 74 20 | 4e 46 53 20 66 69 6c 65 |-N.List |NFS file|
|00005760| 73 2e 0a 20 2a 0a 20 2a | 09 09 2d 70 20 6c 09 4c |s.. *. *|..-p l.L|
|00005770| 69 73 74 20 66 69 6c 65 | 73 20 66 6f 72 20 50 72 |ist file|s for Pr|
|00005780| 6f 63 65 73 73 20 49 44 | 65 6e 74 69 66 69 65 72 |ocess ID|entifier|
|00005790| 20 6c 69 73 74 20 6c 20 | 2d 2d 20 63 6f 6d 6d 61 | list l |-- comma|
|000057a0| 0a 20 2a 09 09 09 73 65 | 70 61 72 61 74 65 64 20 |. *...se|parated |
|000057b0| 6c 69 73 74 20 6f 66 20 | 6e 75 6d 62 65 72 73 2e |list of |numbers.|
|000057c0| 0a 20 2a 0a 20 2a 09 09 | 2d 73 09 44 6f 20 6e 6f |. *. *..|-s.Do no|
|000057d0| 74 20 64 69 73 70 6c 61 | 79 20 66 69 6c 65 20 73 |t displa|y file s|
|000057e0| 69 7a 65 2e 0a 20 2a 0a | 20 2a 09 09 2d 74 09 4c |ize.. *.| *..-t.L|
|000057f0| 69 73 74 20 74 65 72 73 | 65 20 6f 75 74 70 75 74 |ist ters|e output|
|00005800| 20 2d 2d 20 69 2e 20 65 | 2e 2c 20 50 72 6f 63 65 | -- i. e|., Proce|
|00005810| 73 73 20 49 44 20 6e 75 | 6d 62 65 72 73 20 77 69 |ss ID nu|mbers wi|
|00005820| 74 68 6f 75 74 0a 20 2a | 09 09 09 61 20 68 65 61 |thout. *|...a hea|
|00005830| 64 65 72 2e 0a 20 2a 0a | 20 2a 09 09 2d 75 20 6c |der.. *.| *..-u l|
|00005840| 09 4c 69 73 74 20 66 69 | 6c 65 73 20 66 6f 72 20 |.List fi|les for |
|00005850| 75 73 65 72 20 6c 69 73 | 74 20 6c 20 2d 2d 20 63 |user lis|t l -- c|
|00005860| 6f 6d 6d 61 20 73 65 70 | 61 72 61 74 65 64 20 6c |omma sep|arated l|
|00005870| 69 73 74 20 6f 66 0a 20 | 2a 09 09 09 6c 6f 67 69 |ist of. |*...logi|
|00005880| 6e 20 6e 61 6d 65 73 20 | 6f 72 20 55 73 65 72 20 |n names |or User |
|00005890| 49 44 65 6e 74 69 66 69 | 63 61 74 69 6f 6e 20 6e |IDentifi|cation n|
|000058a0| 75 6d 62 65 72 73 2e 0a | 20 2a 0a 20 2a 09 09 2d |umbers..| *. *..-|
|000058b0| 55 09 4c 69 73 74 20 55 | 6e 69 78 20 64 6f 6d 61 |U.List U|nix doma|
|000058c0| 69 6e 20 73 6f 63 6b 65 | 74 73 2e 0a 20 2a 0a 20 |in socke|ts.. *. |
|000058d0| 2a 09 09 6e 61 6d 65 73 | 09 61 72 65 20 74 68 65 |*..names|.are the|
|000058e0| 20 70 61 74 68 20 6e 61 | 6d 65 73 20 6f 66 20 66 | path na|mes of f|
|000058f0| 69 6c 65 20 73 79 73 74 | 65 6d 73 2c 20 6d 6f 75 |ile syst|ems, mou|
|00005900| 6e 74 20 70 6f 69 6e 74 | 73 2c 0a 20 2a 09 09 09 |nt point|s,. *...|
|00005910| 64 65 76 69 63 65 73 20 | 61 6e 64 20 66 69 6c 65 |devices |and file|
|00005920| 73 20 74 6f 20 6c 6f 63 | 61 74 65 2e 0a 20 2a 2f |s to loc|ate.. */|
|00005930| 0a 0a 23 69 66 09 64 65 | 66 69 6e 65 64 28 4e 65 |..#if.de|fined(Ne|
|00005940| 58 54 29 20 26 26 20 21 | 64 65 66 69 6e 65 64 28 |XT) && !|defined(|
|00005950| 4d 41 43 48 29 0a 2f 2a | 0a 20 2a 20 54 68 65 20 |MACH)./*|. * The |
|00005960| 64 65 66 69 6e 69 74 69 | 6f 6e 20 6f 66 20 4d 41 |definiti|on of MA|
|00005970| 43 48 20 66 6f 72 20 74 | 68 65 20 4e 65 58 54 20 |CH for t|he NeXT |
|00005980| 69 73 20 72 65 71 75 69 | 72 65 64 20 66 6f 72 20 |is requi|red for |
|00005990| 70 72 6f 70 65 72 20 68 | 65 61 64 65 72 0a 20 2a |proper h|eader. *|
|000059a0| 20 66 69 6c 65 20 63 6f | 6e 66 69 67 75 72 61 74 | file co|nfigurat|
|000059b0| 69 6f 6e 20 2d 2d 20 69 | 2e 20 65 2e 2c 20 73 6f |ion -- i|. e., so|
|000059c0| 6d 65 20 68 65 61 64 65 | 72 20 66 69 6c 65 73 20 |me heade|r files |
|000059d0| 68 61 76 65 20 60 60 23 | 69 66 64 65 66 20 4d 41 |have ``#|ifdef MA|
|000059e0| 43 48 27 27 0a 20 2a 20 | 73 74 61 74 65 6d 65 6e |CH''. * |statemen|
|000059f0| 74 73 20 74 68 61 74 20 | 61 66 66 65 63 74 20 74 |ts that |affect t|
|00005a00| 68 65 20 73 69 7a 65 20 | 6f 66 20 6b 65 72 6e 65 |he size |of kerne|
|00005a10| 6c 20 73 74 72 75 63 74 | 75 72 65 73 2e 0a 20 2a |l struct|ures.. *|
|00005a20| 2f 0a 0a 23 64 65 66 69 | 6e 65 20 4d 41 43 48 09 |/..#defi|ne MACH.|
|00005a30| 31 0a 23 65 6e 64 69 66 | 0a 0a 23 69 6e 63 6c 75 |1.#endif|..#inclu|
|00005a40| 64 65 20 3c 73 79 73 2f | 74 79 70 65 73 2e 68 3e |de <sys/|types.h>|
|00005a50| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 70 |.#includ|e <sys/p|
|00005a60| 61 72 61 6d 2e 68 3e 0a | 0a 23 69 6e 63 6c 75 64 |aram.h>.|.#includ|
|00005a70| 65 20 3c 63 74 79 70 65 | 2e 68 3e 0a 23 69 6e 63 |e <ctype|.h>.#inc|
|00005a80| 6c 75 64 65 20 3c 65 72 | 72 6e 6f 2e 68 3e 0a 23 |lude <er|rno.h>.#|
|00005a90| 69 6e 63 6c 75 64 65 20 | 3c 70 77 64 2e 68 3e 0a |include |<pwd.h>.|
|00005aa0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 65 74 6a 6d 70 |#include| <setjmp|
|00005ab0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.h>.#inc|lude <st|
|00005ac0| 64 69 6f 2e 68 3e 0a 0a | 23 69 6e 63 6c 75 64 65 |dio.h>..|#include|
|00005ad0| 20 3c 73 79 73 2f 64 6f | 6d 61 69 6e 2e 68 3e 0a | <sys/do|main.h>.|
|00005ae0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 6d 62 |#include| <sys/mb|
|00005af0| 75 66 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |uf.h>.#i|nclude <|
|00005b00| 73 79 73 2f 70 72 6f 74 | 6f 73 77 2e 68 3e 0a 23 |sys/prot|osw.h>.#|
|00005b10| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 73 6f 63 |include |<sys/soc|
|00005b20| 6b 65 74 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ket.h>.#|include |
|00005b30| 3c 73 79 73 2f 73 6f 63 | 6b 65 74 76 61 72 2e 68 |<sys/soc|ketvar.h|
|00005b40| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00005b50| 73 74 61 74 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |stat.h>.|#include|
|00005b60| 20 3c 73 79 73 2f 74 69 | 6d 65 2e 68 3e 0a 23 69 | <sys/ti|me.h>.#i|
|00005b70| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 75 6e 2e 68 |nclude <|sys/un.h|
|00005b80| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00005b90| 75 6e 70 63 62 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |unpcb.h>|.#includ|
|00005ba0| 65 20 3c 73 79 73 2f 76 | 66 73 2e 68 3e 0a 23 69 |e <sys/v|fs.h>.#i|
|00005bb0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 76 6e 6f 64 |nclude <|sys/vnod|
|00005bc0| 65 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 6e |e.h>.#in|clude <n|
|00005bd0| 65 74 2f 72 6f 75 74 65 | 2e 68 3e 0a 23 69 6e 63 |et/route|.h>.#inc|
|00005be0| 6c 75 64 65 20 3c 6e 65 | 74 69 6e 65 74 2f 69 6e |lude <ne|tinet/in|
|00005bf0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 6e 65 |.h>.#inc|lude <ne|
|00005c00| 74 69 6e 65 74 2f 69 6e | 5f 70 63 62 2e 68 3e 0a |tinet/in|_pcb.h>.|
|00005c10| 0a 23 69 66 09 64 65 66 | 69 6e 65 64 28 44 59 4e |.#if.def|ined(DYN|
|00005c20| 49 58 33 31 29 0a 23 75 | 6e 64 65 66 09 53 45 51 |IX31).#u|ndef.SEQ|
|00005c30| 55 45 4e 54 0a 23 75 6e | 64 65 66 09 44 59 4e 49 |UENT.#un|def.DYNI|
|00005c40| 58 0a 23 64 65 66 69 6e | 65 09 44 59 4e 49 58 0a |X.#defin|e.DYNIX.|
|00005c50| 23 65 6e 64 69 66 0a 0a | 23 69 66 09 64 65 66 69 |#endif..|#if.defi|
|00005c60| 6e 65 64 28 44 59 4e 49 | 58 29 0a 23 69 6e 63 6c |ned(DYNI|X).#incl|
|00005c70| 75 64 65 20 3c 6d 6e 74 | 65 6e 74 2e 68 3e 0a 23 |ude <mnt|ent.h>.#|
|00005c80| 69 6e 63 6c 75 64 65 20 | 3c 73 74 72 69 6e 67 73 |include |<strings|
|00005c90| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 6e 6c |.h>.#inc|lude <nl|
|00005ca0| 69 73 74 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ist.h>.#|include |
|00005cb0| 3c 6e 66 73 2f 6e 66 73 | 2e 68 3e 0a 23 69 6e 63 |<nfs/nfs|.h>.#inc|
|00005cc0| 6c 75 64 65 20 3c 6e 66 | 73 2f 6e 66 73 5f 63 6c |lude <nf|s/nfs_cl|
|00005cd0| 6e 74 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |nt.h>.#i|nclude <|
|00005ce0| 6e 66 73 2f 72 6e 6f 64 | 65 2e 68 3e 0a 23 69 6e |nfs/rnod|e.h>.#in|
|00005cf0| 63 6c 75 64 65 20 3c 73 | 79 73 2f 64 69 72 2e 68 |clude <s|ys/dir.h|
|00005d00| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00005d10| 66 69 6c 65 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |file.h>.|#include|
|00005d20| 20 3c 73 79 73 2f 70 72 | 6f 63 2e 68 3e 0a 23 64 | <sys/pr|oc.h>.#d|
|00005d30| 65 66 69 6e 65 20 4b 45 | 52 4e 45 4c 0a 23 69 6e |efine KE|RNEL.#in|
|00005d40| 63 6c 75 64 65 20 3c 73 | 79 73 2f 66 69 6c 65 2e |clude <s|ys/file.|
|00005d50| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |h>.#incl|ude <sys|
|00005d60| 2f 69 6e 6f 64 65 2e 68 | 3e 0a 23 69 6e 63 6c 75 |/inode.h|>.#inclu|
|00005d70| 64 65 20 3c 75 66 73 2f | 6d 6f 75 6e 74 2e 68 3e |de <ufs/|mount.h>|
|00005d80| 0a 23 75 6e 64 65 66 20 | 4b 45 52 4e 45 4c 0a 23 |.#undef |KERNEL.#|
|00005d90| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 75 73 65 |include |<sys/use|
|00005da0| 72 2e 68 3e 0a 0a 23 69 | 66 09 21 64 65 66 69 6e |r.h>..#i|f.!defin|
|00005db0| 65 64 28 44 59 4e 49 58 | 33 31 29 0a 2f 2a 0a 20 |ed(DYNIX|31)./*. |
|00005dc0| 2a 20 54 68 69 73 20 69 | 73 20 66 72 6f 6d 20 73 |* This i|s from s|
|00005dd0| 79 73 2f 75 73 65 72 2e | 68 2e 20 20 49 74 27 73 |ys/user.|h. It's|
|00005de0| 20 69 66 64 65 66 20 4b | 45 52 4e 45 4c 2c 20 74 | ifdef K|ERNEL, t|
|00005df0| 68 6f 75 67 68 2c 20 61 | 6e 64 20 64 65 66 69 6e |hough, a|nd defin|
|00005e00| 69 6e 67 0a 20 2a 20 4b | 45 52 4e 45 4c 20 66 6f |ing. * K|ERNEL fo|
|00005e10| 72 20 75 73 65 72 2e 68 | 20 62 72 65 61 6b 73 20 |r user.h| breaks |
|00005e20| 6f 74 68 65 72 20 74 68 | 69 6e 67 73 2e 0a 20 2a |other th|ings.. *|
|00005e30| 0a 20 2a 20 4f 70 65 6e | 2d 66 69 6c 65 20 74 61 |. * Open|-file ta|
|00005e40| 62 6c 65 20 65 78 74 65 | 6e 73 69 6f 6e 20 6f 62 |ble exte|nsion ob|
|00005e50| 6a 65 63 74 20 73 74 72 | 75 63 74 75 72 65 2e 0a |ject str|ucture..|
|00005e60| 20 2a 2f 0a 0a 73 74 72 | 75 63 74 20 20 6f 66 69 | */..str|uct ofi|
|00005e70| 6c 65 5f 65 78 74 20 7b | 0a 09 73 74 72 75 63 74 |le_ext {|..struct|
|00005e80| 20 20 6f 66 69 6c 65 5f | 65 78 74 20 2a 6f 65 5f | ofile_|ext *oe_|
|00005e90| 6e 65 78 74 3b 20 20 20 | 20 20 20 20 20 20 20 20 |next; | |
|00005ea0| 20 20 2f 2a 20 6c 69 73 | 74 20 6f 66 20 75 6e 75 | /* lis|t of unu|
|00005eb0| 73 65 64 20 65 6e 74 72 | 69 65 73 20 2a 2f 0a 09 |sed entr|ies */..|
|00005ec0| 73 68 6f 72 74 20 20 20 | 20 20 20 20 20 20 20 20 |short | |
|00005ed0| 6f 65 5f 6e 6f 66 69 6c | 65 3b 20 20 20 20 20 20 |oe_nofil|e; |
|00005ee0| 20 20 20 20 20 20 20 20 | 2f 2a 20 23 20 6f 66 69 | |/* # ofi|
|00005ef0| 6c 65 20 65 6e 74 72 69 | 65 73 20 2a 2f 0a 09 73 |le entri|es */..s|
|00005f00| 68 6f 72 74 20 20 20 20 | 20 20 20 20 20 20 20 6f |hort | o|
|00005f10| 65 5f 72 65 66 63 6e 74 | 3b 20 20 20 20 20 20 20 |e_refcnt|; |
|00005f20| 20 20 20 20 20 20 20 2f | 2a 20 23 20 70 72 6f 63 | /|* # proc|
|00005f30| 27 73 20 73 68 61 72 69 | 6e 67 20 74 68 69 73 20 |'s shari|ng this |
|00005f40| 65 78 74 20 2a 2f 0a 09 | 73 68 6f 72 74 20 20 20 |ext */..|short |
|00005f50| 20 20 20 20 20 20 20 20 | 6f 65 5f 63 63 6f 75 6e | |oe_ccoun|
|00005f60| 74 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t; | |
|00005f70| 2f 2a 20 23 20 73 68 61 | 72 69 6e 67 20 70 72 6f |/* # sha|ring pro|
|00005f80| 63 27 73 20 69 6e 20 6d | 65 6d 6f 72 79 20 2a 2f |c's in m|emory */|
|00005f90| 0a 09 73 77 62 6c 6b 5f | 74 20 20 20 20 20 20 20 |..swblk_|t |
|00005fa0| 20 20 6f 65 5f 73 77 61 | 64 64 72 3b 20 20 20 20 | oe_swa|ddr; |
|00005fb0| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 64 69 73 | | /* dis|
|00005fc0| 6b 20 61 64 64 72 65 73 | 73 20 77 68 65 6e 20 73 |k addres|s when s|
|00005fd0| 77 61 70 70 65 64 20 2a | 2f 0a 09 73 65 6d 61 5f |wapped *|/..sema_|
|00005fe0| 74 20 20 20 20 20 20 20 | 20 20 20 6f 65 5f 6d 75 |t | oe_mu|
|00005ff0| 74 65 78 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |tex; | |
|00006000| 20 20 20 2f 2a 20 6d 69 | 73 63 20 6d 75 74 65 78 | /* mi|sc mutex|
|00006010| 20 2a 2f 0a 09 73 74 72 | 75 63 74 20 20 6f 66 69 | */..str|uct ofi|
|00006020| 6c 65 20 20 20 2a 6f 65 | 5f 6f 66 69 6c 65 3b 20 |le *oe|_ofile; |
|00006030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|00006040| 61 72 72 61 79 20 6f 66 | 20 6f 70 65 6e 20 66 69 |array of| open fi|
|00006050| 6c 65 73 20 2a 2f 0a 7d | 3b 0a 23 65 6e 64 69 66 |les */.}|;.#endif|
|00006060| 0a 0a 23 65 6e 64 69 66 | 0a 0a 23 69 66 09 64 65 |..#endif|..#if.de|
|00006070| 66 69 6e 65 64 28 68 70 | 75 78 29 0a 23 69 6e 63 |fined(hp|ux).#inc|
|00006080| 6c 75 64 65 20 3c 73 74 | 64 6c 69 62 2e 68 3e 0a |lude <st|dlib.h>.|
|00006090| 23 69 6e 63 6c 75 64 65 | 20 3c 64 69 72 65 6e 74 |#include| <dirent|
|000060a0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 6d 6e |.h>.#inc|lude <mn|
|000060b0| 74 65 6e 74 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |tent.h>.|#include|
|000060c0| 20 3c 73 74 72 69 6e 67 | 2e 68 3e 0a 23 69 6e 63 | <string|.h>.#inc|
|000060d0| 6c 75 64 65 20 3c 6e 6c | 69 73 74 2e 68 3e 0a 23 |lude <nl|ist.h>.#|
|000060e0| 69 6e 63 6c 75 64 65 20 | 3c 72 70 63 2f 74 79 70 |include |<rpc/typ|
|000060f0| 65 73 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |es.h>.#i|nclude <|
|00006100| 6e 66 73 2f 6e 66 73 2e | 68 3e 0a 23 69 6e 63 6c |nfs/nfs.|h>.#incl|
|00006110| 75 64 65 20 3c 6e 66 73 | 2f 6e 66 73 5f 63 6c 6e |ude <nfs|/nfs_cln|
|00006120| 74 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 6e |t.h>.#in|clude <n|
|00006130| 66 73 2f 72 6e 6f 64 65 | 2e 68 3e 0a 23 69 6e 63 |fs/rnode|.h>.#inc|
|00006140| 6c 75 64 65 20 3c 6e 66 | 73 2f 73 6e 6f 64 65 2e |lude <nf|s/snode.|
|00006150| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |h>.#incl|ude <sys|
|00006160| 2f 66 69 6c 65 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |/file.h>|.#includ|
|00006170| 65 20 3c 73 79 73 2f 69 | 6e 6f 64 65 2e 68 3e 0a |e <sys/i|node.h>.|
|00006180| 0a 23 69 66 09 64 65 66 | 69 6e 65 64 28 48 50 55 |.#if.def|ined(HPU|
|00006190| 58 38 29 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |X8).#inc|lude <sy|
|000061a0| 73 2f 70 73 74 61 74 2e | 68 3e 0a 23 65 6e 64 69 |s/pstat.|h>.#endi|
|000061b0| 66 0a 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |f..#incl|ude <sys|
|000061c0| 2f 72 65 73 6f 75 72 63 | 65 2e 68 3e 0a 23 69 6e |/resourc|e.h>.#in|
|000061d0| 63 6c 75 64 65 20 3c 73 | 79 73 2f 70 72 6f 63 2e |clude <s|ys/proc.|
|000061e0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |h>.#incl|ude <sys|
|000061f0| 2f 76 6d 6d 61 63 2e 68 | 3e 0a 23 69 6e 63 6c 75 |/vmmac.h|>.#inclu|
|00006200| 64 65 20 3c 73 79 73 2f | 75 73 65 72 2e 68 3e 0a |de <sys/|user.h>.|
|00006210| 0a 2f 2a 0a 20 2a 20 54 | 68 69 73 20 69 73 20 66 |./*. * T|his is f|
|00006220| 72 6f 6d 20 3c 73 79 73 | 2f 6d 6f 75 6e 74 2e 68 |rom <sys|/mount.h|
|00006230| 3e 2c 20 64 65 66 69 6e | 65 64 20 75 6e 64 65 72 |>, defin|ed under|
|00006240| 20 74 68 65 20 5f 4b 45 | 52 4e 45 4c 20 73 79 6d | the _KE|RNEL sym|
|00006250| 62 6f 6c 2e 0a 20 2a 20 | 55 6e 66 6f 72 74 75 6e |bol.. * |Unfortun|
|00006260| 61 74 65 6c 79 2c 20 64 | 65 66 69 6e 69 6e 67 20 |ately, d|efining |
|00006270| 5f 4b 45 52 4e 45 4c 20 | 63 61 75 73 65 73 20 3c |_KERNEL |causes <|
|00006280| 73 79 73 2f 6d 6f 75 6e | 74 2e 68 3e 20 74 6f 20 |sys/moun|t.h> to |
|00006290| 69 6e 63 6c 75 64 65 0a | 20 2a 20 6f 74 68 65 72 |include.| * other|
|000062a0| 20 68 65 61 64 65 72 20 | 66 69 6c 65 73 20 6e 6f | header |files no|
|000062b0| 74 20 69 6e 20 3c 73 79 | 73 3e 2e 0a 20 2a 2f 0a |t in <sy|s>.. */.|
|000062c0| 0a 73 74 72 75 63 74 20 | 6d 6f 75 6e 74 20 7b 0a |.struct |mount {.|
|000062d0| 09 73 74 72 75 63 74 09 | 6d 6f 75 6e 74 20 2a 6d |.struct.|mount *m|
|000062e0| 5f 68 66 6f 72 77 3b 20 | 20 2f 2a 20 66 6f 72 77 |_hforw; | /* forw|
|000062f0| 61 72 64 20 68 61 73 68 | 20 70 6f 69 6e 74 65 72 |ard hash| pointer|
|00006300| 20 2a 2f 0a 09 73 74 72 | 75 63 74 09 6d 6f 75 6e | */..str|uct.moun|
|00006310| 74 20 2a 6d 5f 68 62 61 | 63 6b 3b 20 20 2f 2a 20 |t *m_hba|ck; /* |
|00006320| 62 61 63 6b 77 61 72 64 | 20 68 61 73 68 20 70 6f |backward| hash po|
|00006330| 69 6e 74 65 72 20 2a 2f | 0a 09 73 74 72 75 63 74 |inter */|..struct|
|00006340| 09 6d 6f 75 6e 74 20 2a | 6d 5f 72 68 66 6f 72 77 |.mount *|m_rhforw|
|00006350| 3b 20 2f 2a 20 66 6f 72 | 77 61 72 64 20 68 61 73 |; /* for|ward has|
|00006360| 68 20 70 6f 69 6e 74 65 | 72 20 66 6f 72 20 72 65 |h pointe|r for re|
|00006370| 61 6c 20 64 65 76 69 63 | 65 20 2a 2f 0a 09 73 74 |al devic|e */..st|
|00006380| 72 75 63 74 09 6d 6f 75 | 6e 74 20 2a 6d 5f 72 68 |ruct.mou|nt *m_rh|
|00006390| 62 61 63 6b 3b 20 2f 2a | 20 62 61 63 6b 77 61 72 |back; /*| backwar|
|000063a0| 64 20 68 61 73 68 20 70 | 6f 69 6e 74 65 72 20 66 |d hash p|ointer f|
|000063b0| 6f 72 20 72 65 61 6c 20 | 64 65 76 69 63 65 20 2a |or real |device *|
|000063c0| 2f 0a 09 73 74 72 75 63 | 74 20 76 66 73 09 2a 6d |/..struc|t vfs.*m|
|000063d0| 5f 76 66 73 70 3b 20 2f | 2a 20 76 66 73 20 73 74 |_vfsp; /|* vfs st|
|000063e0| 72 75 63 74 75 72 65 20 | 66 6f 72 20 74 68 69 73 |ructure |for this|
|000063f0| 20 66 69 6c 65 73 79 73 | 74 65 6d 20 2a 2f 0a 09 | filesys|tem */..|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.