home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: part01
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 78 0a 50 61 74 68 3a |.sources|.x.Path:|
|00000020| 20 75 75 6e 65 74 21 64 | 61 72 77 69 6e 2e 73 75 | uunet!d|arwin.su|
|00000030| 72 61 2e 6e 65 74 21 6d | 69 70 73 21 6d 73 69 21 |ra.net!m|ips!msi!|
|00000040| 64 63 6d 61 72 74 69 6e | 0a 46 72 6f 6d 3a 20 4b |dcmartin|.From: K|
|00000050| 6f 6e 73 74 61 6e 74 69 | 6e 6f 73 20 4b 6f 6e 73 |onstanti|nos Kons|
|00000060| 74 61 6e 74 69 6e 69 64 | 65 73 20 3c 6b 6b 40 68 |tantinid|es <kk@h|
|00000070| 70 6b 72 6f 6e 6f 73 2e | 68 70 6c 2e 68 70 2e 63 |pkronos.|hpl.hp.c|
|00000080| 6f 6d 3e 0a 53 75 62 6a | 65 63 74 3a 20 76 31 38 |om>.Subj|ect: v18|
|00000090| 69 30 33 31 3a 20 78 64 | 74 72 65 65 20 28 4d 6f |i031: xd|tree (Mo|
|000000a0| 74 69 66 29 2c 20 50 61 | 72 74 30 31 2f 30 33 0a |tif), Pa|rt01/03.|
|000000b0| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 63 73 78 |Message-|ID: <csx|
|000000c0| 2d 31 38 69 30 33 31 2d | 78 64 74 72 65 65 40 75 |-18i031-|xdtree@u|
|000000d0| 75 6e 65 74 2e 55 55 2e | 4e 45 54 3e 0a 4f 72 69 |unet.UU.|NET>.Ori|
|000000e0| 67 69 6e 61 74 6f 72 3a | 20 64 63 6d 61 72 74 69 |ginator:| dcmarti|
|000000f0| 6e 40 66 61 73 63 65 74 | 0a 53 65 6e 64 65 72 3a |n@fascet|.Sender:|
|00000100| 20 64 63 6d 61 72 74 69 | 6e 40 6d 73 69 2e 63 6f | dcmarti|n@msi.co|
|00000110| 6d 20 28 44 61 76 69 64 | 20 43 2e 20 4d 61 72 74 |m (David| C. Mart|
|00000120| 69 6e 20 2d 20 4d 6f 64 | 65 72 61 74 6f 72 29 0a |in - Mod|erator).|
|00000130| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 4d 6f |Organiza|tion: Mo|
|00000140| 6c 65 63 75 6c 61 72 20 | 53 69 6d 75 6c 61 74 69 |lecular |Simulati|
|00000150| 6f 6e 73 2c 20 49 6e 63 | 2e 0a 44 61 74 65 3a 20 |ons, Inc|..Date: |
|00000160| 4d 6f 6e 2c 20 32 30 20 | 4a 75 6c 20 31 39 39 32 |Mon, 20 |Jul 1992|
|00000170| 20 31 35 3a 34 31 3a 32 | 35 20 47 4d 54 0a 41 70 | 15:41:2|5 GMT.Ap|
|00000180| 70 72 6f 76 65 64 3a 20 | 64 63 6d 61 72 74 69 6e |proved: |dcmartin|
|00000190| 40 6d 73 69 2e 63 6f 6d | 0a 4c 69 6e 65 73 3a 20 |@msi.com|.Lines: |
|000001a0| 31 38 30 35 0a 0a 53 75 | 62 6d 69 74 74 65 64 2d |1805..Su|bmitted-|
|000001b0| 62 79 3a 20 4b 6f 6e 73 | 74 61 6e 74 69 6e 6f 73 |by: Kons|tantinos|
|000001c0| 20 4b 6f 6e 73 74 61 6e | 74 69 6e 69 64 65 73 20 | Konstan|tinides |
|000001d0| 3c 6b 6b 40 68 70 6b 72 | 6f 6e 6f 73 2e 68 70 6c |<kk@hpkr|onos.hpl|
|000001e0| 2e 68 70 2e 63 6f 6d 3e | 0a 50 6f 73 74 69 6e 67 |.hp.com>|.Posting|
|000001f0| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|00000200| 31 38 2c 20 49 73 73 75 | 65 20 33 31 0a 41 72 63 |18, Issu|e 31.Arc|
|00000210| 68 69 76 65 2d 6e 61 6d | 65 3a 20 78 64 74 72 65 |hive-nam|e: xdtre|
|00000220| 65 2f 70 61 72 74 30 31 | 0a 0a 46 72 6f 6d 20 74 |e/part01|..From t|
|00000230| 68 65 20 52 45 41 44 4d | 45 3a 0a 0a 78 64 74 72 |he READM|E:..xdtr|
|00000240| 65 65 20 69 73 20 61 6e | 20 65 78 74 65 6e 73 69 |ee is an| extensi|
|00000250| 6f 6e 20 6f 66 20 64 74 | 72 65 65 2c 20 20 74 68 |on of dt|ree, th|
|00000260| 65 20 70 72 6f 67 72 61 | 6d 20 6f 72 69 67 69 6e |e progra|m origin|
|00000270| 61 6c 6c 79 20 77 72 69 | 74 74 65 6e 20 62 79 0a |ally wri|tten by.|
|00000280| 44 61 76 65 20 42 6f 72 | 6d 61 6e 2e 20 49 74 20 |Dave Bor|man. It |
|00000290| 69 73 20 76 65 72 79 20 | 73 69 6d 69 6c 61 72 20 |is very |similar |
|000002a0| 74 6f 20 6d 79 20 6f 6c | 64 20 22 64 74 72 65 65 |to my ol|d "dtree|
|000002b0| 22 20 49 20 70 6f 73 74 | 65 64 20 69 6e 0a 63 6f |" I post|ed in.co|
|000002c0| 6d 70 2e 73 6f 75 72 63 | 65 73 2e 78 20 69 6e 20 |mp.sourc|es.x in |
|000002d0| 31 39 39 30 2c 20 62 75 | 74 20 69 74 20 68 61 73 |1990, bu|t it has|
|000002e0| 20 61 20 6e 65 77 20 75 | 73 65 72 20 69 6e 74 65 | a new u|ser inte|
|000002f0| 72 66 61 63 65 2c 20 61 | 6e 64 20 49 20 63 68 61 |rface, a|nd I cha|
|00000300| 6e 67 65 64 0a 74 68 65 | 20 6e 61 6d 65 20 74 6f |nged.the| name to|
|00000310| 20 78 64 74 72 65 65 20 | 74 6f 20 61 76 6f 69 64 | xdtree |to avoid|
|00000320| 20 61 6e 79 20 63 6f 6e | 66 75 73 69 6f 6e 20 77 | any con|fusion w|
|00000330| 69 74 68 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c |ith the |original|
|00000340| 20 70 72 6f 67 72 61 6d | 2e 0a 49 74 20 64 69 73 | program|..It dis|
|00000350| 70 6c 61 79 73 20 6f 6e | 20 61 20 74 65 72 6d 69 |plays on| a termi|
|00000360| 6e 61 6c 20 6f 72 20 75 | 6e 64 65 72 20 58 31 31 |nal or u|nder X11|
|00000370| 20 28 75 73 69 6e 67 20 | 4d 6f 74 69 66 20 77 69 | (using |Motif wi|
|00000380| 64 67 65 74 73 29 20 74 | 68 65 20 74 72 65 65 0a |dgets) t|he tree.|
|00000390| 73 74 72 75 63 74 75 72 | 65 20 6f 66 20 61 20 55 |structur|e of a U|
|000003a0| 6e 69 78 20 64 69 72 65 | 63 74 6f 72 79 20 74 72 |nix dire|ctory tr|
|000003b0| 65 65 2e 20 20 4f 6e 20 | 61 20 63 6f 6c 6f 72 20 |ee. On |a color |
|000003c0| 74 65 72 6d 69 6e 61 6c | 2c 20 64 69 66 66 65 72 |terminal|, differ|
|000003d0| 65 6e 74 0a 63 6f 6c 6f | 72 73 20 63 61 6e 20 62 |ent.colo|rs can b|
|000003e0| 65 20 75 73 65 64 20 66 | 6f 72 20 66 69 6c 65 73 |e used f|or files|
|000003f0| 2c 20 64 69 72 65 63 74 | 6f 72 69 65 73 2c 20 61 |, direct|ories, a|
|00000400| 6e 64 20 73 79 6d 62 6f | 6c 69 63 20 6c 69 6e 6b |nd symbo|lic link|
|00000410| 73 2e 20 4f 6e 20 61 0a | 6d 6f 6e 6f 63 68 72 6f |s. On a.|monochro|
|00000420| 6d 65 20 74 65 72 6d 69 | 6e 61 6c 2c 20 6f 6e 65 |me termi|nal, one|
|00000430| 20 6d 61 79 20 74 72 79 | 20 74 6f 20 75 73 65 20 | may try| to use |
|00000440| 64 69 66 66 65 72 65 6e | 74 20 62 75 74 74 6f 6e |differen|t button|
|00000450| 20 62 69 74 6d 61 70 73 | 20 66 6f 72 0a 66 69 6c | bitmaps| for.fil|
|00000460| 65 73 20 61 6e 64 20 64 | 69 72 65 63 74 6f 72 69 |es and d|irectori|
|00000470| 65 73 20 75 73 69 6e 67 | 20 74 68 65 20 50 75 73 |es using| the Pus|
|00000480| 68 42 75 74 74 6f 6e 20 | 72 65 73 6f 75 72 63 65 |hButton |resource|
|00000490| 73 2e 0a 0a 23 21 2f 62 | 69 6e 2f 73 68 0a 23 20 |s...#!/b|in/sh.# |
|000004a0| 54 68 69 73 20 69 73 20 | 61 20 73 68 65 6c 6c 20 |This is |a shell |
|000004b0| 61 72 63 68 69 76 65 20 | 28 70 72 6f 64 75 63 65 |archive |(produce|
|000004c0| 64 20 62 79 20 73 68 61 | 72 20 33 2e 35 30 29 0a |d by sha|r 3.50).|
|000004d0| 23 20 54 6f 20 65 78 74 | 72 61 63 74 20 74 68 65 |# To ext|ract the|
|000004e0| 20 66 69 6c 65 73 20 66 | 72 6f 6d 20 74 68 69 73 | files f|rom this|
|000004f0| 20 61 72 63 68 69 76 65 | 2c 20 73 61 76 65 20 69 | archive|, save i|
|00000500| 74 20 74 6f 20 61 20 66 | 69 6c 65 2c 20 72 65 6d |t to a f|ile, rem|
|00000510| 6f 76 65 0a 23 20 65 76 | 65 72 79 74 68 69 6e 67 |ove.# ev|erything|
|00000520| 20 61 62 6f 76 65 20 74 | 68 65 20 22 21 2f 62 69 | above t|he "!/bi|
|00000530| 6e 2f 73 68 22 20 6c 69 | 6e 65 20 61 62 6f 76 65 |n/sh" li|ne above|
|00000540| 2c 20 61 6e 64 20 74 79 | 70 65 20 22 73 68 20 66 |, and ty|pe "sh f|
|00000550| 69 6c 65 5f 6e 61 6d 65 | 22 2e 0a 23 0a 23 20 6d |ile_name|"..#.# m|
|00000560| 61 64 65 20 30 37 2f 32 | 30 2f 31 39 39 32 20 31 |ade 07/2|0/1992 1|
|00000570| 35 3a 33 37 20 55 54 43 | 20 62 79 20 64 63 6d 61 |5:37 UTC| by dcma|
|00000580| 72 74 69 6e 40 66 61 73 | 63 65 74 0a 23 20 53 6f |rtin@fas|cet.# So|
|00000590| 75 72 63 65 20 64 69 72 | 65 63 74 6f 72 79 20 2f |urce dir|ectory /|
|000005a0| 68 6f 6d 65 2f 66 61 73 | 63 65 74 2f 64 63 6d 61 |home/fas|cet/dcma|
|000005b0| 72 74 69 6e 2f 63 73 78 | 2f 73 72 63 2f 74 6d 70 |rtin/csx|/src/tmp|
|000005c0| 0a 23 0a 23 20 65 78 69 | 73 74 69 6e 67 20 66 69 |.#.# exi|sting fi|
|000005d0| 6c 65 73 20 77 69 6c 6c | 20 4e 4f 54 20 62 65 20 |les will| NOT be |
|000005e0| 6f 76 65 72 77 72 69 74 | 74 65 6e 20 75 6e 6c 65 |overwrit|ten unle|
|000005f0| 73 73 20 2d 63 20 69 73 | 20 73 70 65 63 69 66 69 |ss -c is| specifi|
|00000600| 65 64 0a 23 0a 23 20 54 | 68 69 73 20 69 73 20 70 |ed.#.# T|his is p|
|00000610| 61 72 74 20 31 20 6f 66 | 20 61 20 6d 75 6c 74 69 |art 1 of| a multi|
|00000620| 70 61 72 74 20 61 72 63 | 68 69 76 65 20 20 20 20 |part arc|hive |
|00000630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000650| 0a 23 20 64 6f 20 6e 6f | 74 20 63 6f 6e 63 61 74 |.# do no|t concat|
|00000660| 65 6e 61 74 65 20 74 68 | 65 73 65 20 70 61 72 74 |enate th|ese part|
|00000670| 73 2c 20 75 6e 70 61 63 | 6b 20 74 68 65 6d 20 69 |s, unpac|k them i|
|00000680| 6e 20 6f 72 64 65 72 20 | 77 69 74 68 20 2f 62 69 |n order |with /bi|
|00000690| 6e 2f 73 68 20 20 20 20 | 20 20 20 20 0a 23 0a 23 |n/sh | .#.#|
|000006a0| 20 54 68 69 73 20 73 68 | 61 72 20 63 6f 6e 74 61 | This sh|ar conta|
|000006b0| 69 6e 73 3a 0a 23 20 6c | 65 6e 67 74 68 20 20 6d |ins:.# l|ength m|
|000006c0| 6f 64 65 20 20 20 20 20 | 20 20 6e 61 6d 65 0a 23 |ode | name.#|
|000006d0| 20 2d 2d 2d 2d 2d 2d 20 | 2d 2d 2d 2d 2d 2d 2d 2d | ------ |--------|
|000006e0| 2d 2d 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |-- -----|--------|
|000006f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 23 20 |--------|-----.# |
|00000710| 20 20 36 31 32 33 20 2d | 72 77 2d 72 2d 2d 72 2d | 6123 -|rw-r--r-|
|00000720| 2d 20 78 64 74 72 65 65 | 2e 31 0a 23 20 20 34 37 |- xdtree|.1.# 47|
|00000730| 33 31 38 20 2d 72 77 2d | 72 2d 2d 72 2d 2d 20 78 |318 -rw-|r--r-- x|
|00000740| 64 74 72 65 65 2e 63 0a | 23 20 20 31 30 34 35 32 |dtree.c.|# 10452|
|00000750| 20 2d 72 77 2d 72 2d 2d | 72 2d 2d 20 4d 61 6b 65 | -rw-r--|r-- Make|
|00000760| 66 69 6c 65 0a 23 20 20 | 20 20 37 38 35 20 2d 72 |file.# | 785 -r|
|00000770| 77 2d 72 2d 2d 72 2d 2d | 20 58 44 74 72 65 65 0a |w-r--r--| XDtree.|
|00000780| 23 20 20 20 32 32 37 30 | 20 2d 72 77 2d 72 2d 2d |# 2270| -rw-r--|
|00000790| 72 2d 2d 20 78 64 74 72 | 65 65 2d 69 2e 68 0a 23 |r-- xdtr|ee-i.h.#|
|000007a0| 20 20 20 20 32 36 31 20 | 2d 72 77 2d 72 2d 2d 72 | 261 |-rw-r--r|
|000007b0| 2d 2d 20 49 6d 61 6b 65 | 66 69 6c 65 0a 23 20 20 |-- Imake|file.# |
|000007c0| 20 31 34 31 38 20 2d 72 | 77 2d 72 2d 2d 72 2d 2d | 1418 -r|w-r--r--|
|000007d0| 20 52 45 41 44 4d 45 0a | 23 20 20 32 31 34 32 34 | README.|# 21424|
|000007e0| 20 2d 72 77 2d 72 2d 2d | 72 2d 2d 20 54 72 65 65 | -rw-r--|r-- Tree|
|000007f0| 2e 63 0a 23 20 20 20 32 | 34 32 30 20 2d 72 77 2d |.c.# 2|420 -rw-|
|00000800| 72 2d 2d 72 2d 2d 20 54 | 72 65 65 2e 68 0a 23 20 |r--r-- T|ree.h.# |
|00000810| 20 20 33 32 39 33 20 2d | 72 77 2d 72 2d 2d 72 2d | 3293 -|rw-r--r-|
|00000820| 2d 20 54 72 65 65 50 2e | 68 0a 23 0a 69 66 20 74 |- TreeP.|h.#.if t|
|00000830| 65 73 74 20 2d 72 20 5f | 73 68 61 72 5f 73 65 71 |est -r _|shar_seq|
|00000840| 5f 2e 74 6d 70 3b 20 74 | 68 65 6e 0a 09 65 63 68 |_.tmp; t|hen..ech|
|00000850| 6f 20 27 4d 75 73 74 20 | 75 6e 70 61 63 6b 20 61 |o 'Must |unpack a|
|00000860| 72 63 68 69 76 65 73 20 | 69 6e 20 73 65 71 75 65 |rchives |in seque|
|00000870| 6e 63 65 21 27 0a 09 65 | 63 68 6f 20 50 6c 65 61 |nce!'..e|cho Plea|
|00000880| 73 65 20 75 6e 70 61 63 | 6b 20 70 61 72 74 20 60 |se unpac|k part `|
|00000890| 63 61 74 20 5f 73 68 61 | 72 5f 73 65 71 5f 2e 74 |cat _sha|r_seq_.t|
|000008a0| 6d 70 60 20 6e 65 78 74 | 0a 09 65 78 69 74 20 31 |mp` next|..exit 1|
|000008b0| 0a 66 69 0a 23 20 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.fi.# ==|========|
|000008c0| 3d 3d 3d 20 78 64 74 72 | 65 65 2e 31 20 3d 3d 3d |=== xdtr|ee.1 ===|
|000008d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 69 66 20 74 |========|===.if t|
|000008e0| 65 73 74 20 2d 66 20 27 | 78 64 74 72 65 65 2e 31 |est -f '|xdtree.1|
|000008f0| 27 20 2d 61 20 58 22 24 | 31 22 20 21 3d 20 58 22 |' -a X"$|1" != X"|
|00000900| 2d 63 22 3b 20 74 68 65 | 6e 0a 09 65 63 68 6f 20 |-c"; the|n..echo |
|00000910| 27 78 20 2d 20 73 6b 69 | 70 70 69 6e 67 20 78 64 |'x - ski|pping xd|
|00000920| 74 72 65 65 2e 31 20 28 | 46 69 6c 65 20 61 6c 72 |tree.1 (|File alr|
|00000930| 65 61 64 79 20 65 78 69 | 73 74 73 29 27 0a 09 72 |eady exi|sts)'..r|
|00000940| 6d 20 2d 66 20 5f 73 68 | 61 72 5f 77 6e 74 5f 2e |m -f _sh|ar_wnt_.|
|00000950| 74 6d 70 0a 65 6c 73 65 | 0a 3e 20 5f 73 68 61 72 |tmp.else|.> _shar|
|00000960| 5f 77 6e 74 5f 2e 74 6d | 70 0a 65 63 68 6f 20 27 |_wnt_.tm|p.echo '|
|00000970| 78 20 2d 20 65 78 74 72 | 61 63 74 69 6e 67 20 78 |x - extr|acting x|
|00000980| 64 74 72 65 65 2e 31 20 | 28 54 65 78 74 29 27 0a |dtree.1 |(Text)'.|
|00000990| 73 65 64 20 27 73 2f 5e | 58 2f 2f 27 20 3c 3c 20 |sed 's/^|X//' << |
|000009a0| 27 53 48 41 52 5f 45 4f | 46 27 20 3e 20 27 78 64 |'SHAR_EO|F' > 'xd|
|000009b0| 74 72 65 65 2e 31 27 20 | 26 26 0a 2e 54 48 20 58 |tree.1' |&&..TH X|
|000009c0| 44 54 52 45 45 20 31 4c | 0a 2e 53 48 20 4e 41 4d |DTREE 1L|..SH NAM|
|000009d0| 45 0a 78 64 74 72 65 65 | 20 5c 2d 20 64 69 73 70 |E.xdtree| \- disp|
|000009e0| 6c 61 79 20 64 69 72 65 | 63 74 6f 72 79 20 74 72 |lay dire|ctory tr|
|000009f0| 65 65 20 73 74 72 75 63 | 74 75 72 65 73 0a 2e 53 |ee struc|tures..S|
|00000a00| 48 20 53 59 4e 4f 50 53 | 49 53 0a 2e 42 20 78 64 |H SYNOPS|IS..B xd|
|00000a10| 74 72 65 65 0a 5b 0a 2e | 49 20 5c 2d 61 44 66 67 |tree.[..|I \-aDfg|
|00000a20| 68 48 4e 70 73 53 74 76 | 78 0a 5d 20 5b 0a 2e 49 |hHNpsStv|x.] [..I|
|00000a30| 20 5c 2d 6c 20 6c 65 76 | 65 6c 0a 5d 20 5b 0a 2e | \-l lev|el.] [..|
|00000a40| 49 20 5c 2d 63 20 6c 69 | 6e 65 6c 65 6e 67 74 68 |I \-c li|nelength|
|00000a50| 0a 5d 20 5b 0a 2e 42 52 | 20 64 69 72 65 63 74 6f |.] [..BR| directo|
|00000a60| 72 79 20 2e 2e 2e 0a 5d | 0a 2e 53 48 20 44 45 53 |ry ....]|..SH DES|
|00000a70| 43 52 49 50 54 49 4f 4e | 0a 2e 49 20 78 64 74 72 |CRIPTION|..I xdtr|
|00000a80| 65 65 0a 69 73 20 61 6e | 20 65 78 74 65 6e 73 69 |ee.is an| extensi|
|00000a90| 6f 6e 20 6f 66 0a 2e 49 | 20 64 74 72 65 65 0a 61 |on of..I| dtree.a|
|00000aa0| 6e 64 20 64 69 73 70 6c | 61 79 73 20 61 20 67 72 |nd displ|ays a gr|
|00000ab0| 61 70 68 69 63 20 72 65 | 70 72 65 73 65 6e 74 61 |aphic re|presenta|
|00000ac0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 64 69 72 65 |tion of |the dire|
|00000ad0| 63 74 6f 72 79 20 73 74 | 72 75 63 74 75 72 65 20 |ctory st|ructure |
|00000ae0| 6f 66 20 65 61 63 68 20 | 67 69 76 65 6e 0a 2e 42 |of each |given..B|
|00000af0| 20 64 69 72 65 63 74 6f | 72 79 20 0a 61 6e 64 20 | directo|ry .and |
|00000b00| 69 74 73 20 63 68 69 6c | 64 72 65 6e 20 65 69 74 |its chil|dren eit|
|00000b10| 68 65 72 20 6f 6e 20 74 | 68 65 20 74 65 72 6d 69 |her on t|he termi|
|00000b20| 6e 61 6c 20 73 74 64 6f | 75 74 20 6f 72 20 6f 6e |nal stdo|ut or on|
|00000b30| 20 61 6e 20 58 31 31 20 | 77 69 6e 64 6f 77 2c 20 | an X11 |window, |
|00000b40| 75 73 69 6e 67 0a 74 68 | 65 20 4d 6f 74 69 66 20 |using.th|e Motif |
|00000b50| 77 69 64 67 65 74 73 20 | 28 64 65 66 61 75 6c 74 |widgets |(default|
|00000b60| 29 2e 20 49 66 20 6e 6f | 20 64 69 72 65 63 74 6f |). If no| directo|
|00000b70| 72 69 65 73 20 61 72 65 | 20 73 70 65 63 69 66 69 |ries are| specifi|
|00000b80| 65 64 2c 20 74 68 65 20 | 63 75 72 72 65 6e 74 0a |ed, the |current.|
|00000b90| 64 69 72 65 63 74 6f 72 | 79 20 69 73 20 75 73 65 |director|y is use|
|00000ba0| 64 2e 0a 42 79 20 64 65 | 66 61 75 6c 74 2c 20 6f |d..By de|fault, o|
|00000bb0| 6e 6c 79 20 64 69 72 65 | 63 74 6f 72 69 65 73 2c |nly dire|ctories,|
|00000bc0| 20 6e 6f 74 20 72 65 67 | 75 6c 61 72 20 66 69 6c | not reg|ular fil|
|00000bd0| 65 73 2c 20 61 72 65 20 | 73 68 6f 77 6e 2c 20 61 |es, are |shown, a|
|00000be0| 6e 64 20 6f 6e 6c 79 20 | 74 68 65 69 72 0a 66 69 |nd only |their.fi|
|00000bf0| 6c 65 6e 61 6d 65 73 20 | 61 72 65 20 67 69 76 65 |lenames |are give|
|00000c00| 6e 2e 20 20 56 61 72 69 | 6f 75 73 20 6f 70 74 69 |n. Vari|ous opti|
|00000c10| 6f 6e 73 20 61 64 64 20 | 61 64 64 69 74 69 6f 6e |ons add |addition|
|00000c20| 61 6c 0a 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |al.infor|mation t|
|00000c30| 6f 20 74 68 65 20 74 72 | 65 65 2e 0a 2e 53 53 20 |o the tr|ee...SS |
|00000c40| 4f 50 54 49 4f 4e 53 0a | 2e 54 50 0a 2e 49 20 5c |OPTIONS.|.TP..I \|
|00000c50| 2d 61 0a 49 6e 63 6c 75 | 64 65 20 66 69 6c 65 73 |-a.Inclu|de files|
|00000c60| 20 69 6e 20 74 68 65 20 | 6c 69 73 74 69 6e 67 20 | in the |listing |
|00000c70| 28 65 78 63 6c 75 64 69 | 6e 67 20 65 6e 74 72 69 |(excludi|ng entri|
|00000c80| 65 73 20 62 65 67 69 6e | 6e 69 6e 67 20 77 69 74 |es begin|ning wit|
|00000c90| 68 20 27 2e 27 29 2e 0a | 2e 54 50 0a 2e 49 20 5c |h '.')..|.TP..I \|
|00000ca0| 2d 63 20 6c 69 6e 65 6c | 65 6e 67 74 68 0a 4d 61 |-c linel|ength.Ma|
|00000cb0| 6b 65 0a 2e 49 20 6c 69 | 6e 65 6c 65 6e 67 74 68 |ke..I li|nelength|
|00000cc0| 0a 74 68 65 20 6c 65 6e | 67 74 68 20 6f 66 20 65 |.the len|gth of e|
|00000cd0| 61 63 68 0a 63 6f 6c 75 | 6d 6e 20 6f 66 20 74 68 |ach.colu|mn of th|
|00000ce0| 65 20 70 72 69 6e 74 6f | 75 74 2e 20 20 42 79 20 |e printo|ut. By |
|00000cf0| 64 65 66 61 75 6c 74 2c | 20 74 68 69 73 20 69 73 |default,| this is|
|00000d00| 20 31 34 2e 0a 41 6e 79 | 20 65 6e 74 72 69 65 73 | 14..Any| entries|
|00000d10| 20 6c 6f 6e 67 65 72 20 | 74 68 61 6e 0a 74 68 65 | longer |than.the|
|00000d20| 20 63 6f 6c 75 6d 6e 20 | 6c 65 6e 67 74 68 20 61 | column |length a|
|00000d30| 72 65 20 74 72 75 6e 63 | 61 74 65 64 20 61 63 63 |re trunc|ated acc|
|00000d40| 6f 72 64 69 6e 67 6c 79 | 2c 20 61 6e 64 20 74 68 |ordingly|, and th|
|00000d50| 65 20 6c 61 73 74 20 63 | 68 61 72 61 63 74 65 72 |e last c|haracter|
|00000d60| 20 74 68 61 74 0a 66 69 | 74 73 20 69 6e 74 6f 20 | that.fi|ts into |
|00000d70| 74 68 65 20 63 6f 6c 75 | 6d 6e 20 69 73 20 72 65 |the colu|mn is re|
|00000d80| 70 6c 61 63 65 64 20 62 | 79 20 61 6e 20 61 73 74 |placed b|y an ast|
|00000d90| 65 72 69 73 6b 2e 0a 54 | 68 69 73 20 6f 70 74 69 |erisk..T|his opti|
|00000da0| 6f 6e 20 6f 6e 6c 79 20 | 68 61 73 20 61 6e 20 65 |on only |has an e|
|00000db0| 66 66 65 63 74 20 69 66 | 20 74 68 65 0a 2e 49 20 |ffect if| the..I |
|00000dc0| 2d 76 20 0a 6f 70 74 69 | 6f 6e 20 69 73 20 73 70 |-v .opti|on is sp|
|00000dd0| 65 63 69 66 69 65 64 2e | 0a 2e 54 50 0a 2e 49 20 |ecified.|..TP..I |
|00000de0| 5c 2d 6c 20 6c 65 76 65 | 6c 0a 53 65 61 72 63 68 |\-l leve|l.Search|
|00000df0| 20 6f 6e 6c 79 20 75 70 | 20 74 6f 20 74 68 65 20 | only up| to the |
|00000e00| 73 70 65 63 69 66 69 65 | 64 20 6c 65 76 65 6c 2e |specifie|d level.|
|00000e10| 20 28 4d 61 78 69 6d 75 | 6d 20 69 73 20 31 30 29 | (Maximu|m is 10)|
|00000e20| 2e 0a 2e 54 50 0a 2e 49 | 20 5c 2d 44 0a 4c 69 73 |...TP..I| \-D.Lis|
|00000e30| 74 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 66 69 |t direct|ories fi|
|00000e40| 72 73 74 2e 20 20 46 6f | 72 20 65 61 63 68 20 64 |rst. Fo|r each d|
|00000e50| 69 72 65 63 74 6f 72 79 | 2c 20 69 74 73 20 73 75 |irectory|, its su|
|00000e60| 62 64 69 72 65 63 74 6f | 72 69 65 73 0a 77 69 6c |bdirecto|ries.wil|
|00000e70| 6c 20 62 65 20 6c 69 73 | 74 65 64 20 66 69 72 73 |l be lis|ted firs|
|00000e80| 74 2c 20 61 6e 64 20 74 | 68 65 6e 20 61 6c 6c 20 |t, and t|hen all |
|00000e90| 6f 66 20 69 74 73 20 6f | 74 68 65 72 20 65 6e 74 |of its o|ther ent|
|00000ea0| 72 69 65 73 2e 0a 2e 54 | 50 0a 2e 49 20 5c 2d 66 |ries...T|P..I \-f|
|00000eb0| 0a 4c 69 73 74 20 66 69 | 6c 65 73 20 66 69 72 73 |.List fi|les firs|
|00000ec0| 74 2e 20 20 54 68 65 20 | 72 65 76 65 72 73 65 20 |t. The |reverse |
|00000ed0| 6f 66 0a 2e 49 52 20 20 | 5c 2d 44 20 2e 0a 2e 54 |of..IR |\-D ...T|
|00000ee0| 50 0a 2e 49 20 5c 2d 53 | 0a 4c 6f 6e 67 20 6c 69 |P..I \-S|.Long li|
|00000ef0| 73 74 69 6e 67 2e 20 20 | 44 69 73 70 6c 61 79 20 |sting. |Display |
|00000f00| 75 73 65 66 75 6c 20 69 | 6e 66 6f 72 6d 61 74 69 |useful i|nformati|
|00000f10| 6f 6e 20 74 6f 20 74 68 | 65 20 72 69 67 68 74 20 |on to th|e right |
|00000f20| 6f 66 0a 65 61 63 68 20 | 65 6e 74 72 79 3a 20 74 |of.each |entry: t|
|00000f30| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 66 |he name |of the f|
|00000f40| 69 6c 65 27 73 20 6f 77 | 6e 65 72 2c 20 69 74 73 |ile's ow|ner, its|
|00000f50| 20 73 69 7a 65 20 69 6e | 20 62 6c 6f 63 6b 73 2c | size in| blocks,|
|00000f60| 20 61 6e 64 20 69 74 73 | 20 6d 6f 64 65 2e 0a 2e | and its| mode...|
|00000f70| 54 50 0a 2e 49 20 5c 2d | 67 0a 53 61 6d 65 20 61 |TP..I \-|g.Same a|
|00000f80| 73 20 74 68 65 0a 2e 49 | 20 5c 2d 53 0a 6f 70 74 |s the..I| \-S.opt|
|00000f90| 69 6f 6e 2c 20 65 78 63 | 65 70 74 20 74 68 61 74 |ion, exc|ept that|
|00000fa0| 20 74 68 65 20 67 72 6f | 75 70 20 6e 61 6d 65 20 | the gro|up name |
|00000fb0| 69 73 20 75 73 65 64 20 | 69 6e 73 74 65 61 64 20 |is used |instead |
|00000fc0| 6f 66 0a 74 68 65 20 6f | 77 6e 65 72 20 6e 61 6d |of.the o|wner nam|
|00000fd0| 65 2e 20 20 49 66 20 62 | 6f 74 68 20 74 68 65 0a |e. If b|oth the.|
|00000fe0| 2e 49 20 5c 2d 53 0a 61 | 6e 64 0a 2e 49 20 5c 2d |.I \-S.a|nd..I \-|
|00000ff0| 67 0a 6f 70 74 69 6f 6e | 73 20 61 72 65 20 75 73 |g.option|s are us|
|00001000| 65 64 2c 20 62 6f 74 68 | 20 74 68 65 0a 6f 77 6e |ed, both| the.own|
|00001010| 65 72 20 61 6e 64 20 67 | 72 6f 75 70 20 77 69 6c |er and g|roup wil|
|00001020| 6c 20 62 65 20 64 69 73 | 70 6c 61 79 65 64 2e 0a |l be dis|played..|
|00001030| 2e 54 50 0a 2e 49 20 5c | 2d 48 0a 44 69 73 70 6c |.TP..I \|-H.Displ|
|00001040| 61 79 20 61 20 68 65 61 | 64 65 72 20 61 74 20 74 |ay a hea|der at t|
|00001050| 68 65 20 74 6f 70 20 6f | 66 20 74 68 65 20 70 72 |he top o|f the pr|
|00001060| 69 6e 74 6f 75 74 20 74 | 68 61 74 20 67 69 76 65 |intout t|hat give|
|00001070| 73 20 74 68 65 20 74 69 | 6d 65 20 61 6e 64 0a 64 |s the ti|me and.d|
|00001080| 61 74 65 20 74 68 61 74 | 20 74 68 65 20 70 72 69 |ate that| the pri|
|00001090| 6e 74 6f 75 74 20 77 61 | 73 20 6d 61 64 65 20 61 |ntout wa|s made a|
|000010a0| 6e 64 20 61 20 73 75 6d | 6d 61 72 79 20 6f 66 20 |nd a sum|mary of |
|000010b0| 74 68 65 20 74 79 70 65 | 20 6f 66 0a 69 6e 66 6f |the type| of.info|
|000010c0| 72 6d 61 74 69 6f 6e 20 | 63 6f 6e 74 61 69 6e 65 |rmation |containe|
|000010d0| 64 20 69 6e 20 74 68 65 | 20 74 72 65 65 2e 0a 2e |d in the| tree...|
|000010e0| 54 50 0a 2e 49 20 5c 2d | 4e 0a 4e 6f 20 73 6f 72 |TP..I \-|N.No sor|
|000010f0| 74 2e 20 20 45 6e 74 72 | 69 65 73 20 61 72 65 20 |t. Entr|ies are |
|00001100| 6c 69 73 74 65 64 20 69 | 6e 20 74 68 65 20 6f 72 |listed i|n the or|
|00001110| 64 65 72 20 74 68 65 79 | 20 61 72 65 20 72 65 61 |der they| are rea|
|00001120| 64 0a 66 72 6f 6d 20 74 | 68 65 20 64 69 72 65 63 |d.from t|he direc|
|00001130| 74 6f 72 69 65 73 2e 0a | 2e 54 50 0a 2e 49 20 5c |tories..|.TP..I \|
|00001140| 2d 70 0a 49 6e 63 6c 75 | 64 65 20 65 6e 74 72 69 |-p.Inclu|de entri|
|00001150| 65 73 20 62 65 67 69 6e | 6e 69 6e 67 20 77 69 74 |es begin|ning wit|
|00001160| 68 20 27 2e 27 20 28 65 | 78 63 65 70 74 20 27 2e |h '.' (e|xcept '.|
|00001170| 27 20 61 6e 64 20 27 2e | 2e 27 29 2e 0a 2e 54 50 |' and '.|.')...TP|
|00001180| 0a 2e 49 20 5c 2d 73 0a | 53 69 6d 70 6c 69 66 79 |..I \-s.|Simplify|
|00001190| 20 74 68 65 20 6c 6f 6e | 67 20 6c 69 73 74 69 6e | the lon|g listin|
|000011a0| 67 3a 20 64 69 73 70 6c | 61 79 20 74 68 65 20 75 |g: displ|ay the u|
|000011b0| 73 65 72 20 69 64 2c 20 | 73 69 7a 65 20 69 6e 20 |ser id, |size in |
|000011c0| 62 6c 6f 63 6b 73 2c 20 | 61 6e 64 0a 6f 63 74 61 |blocks, |and.octa|
|000011d0| 6c 20 6d 6f 64 65 20 6f | 66 20 74 68 65 20 66 69 |l mode o|f the fi|
|000011e0| 6c 65 2e 20 20 54 68 69 | 73 20 6f 70 74 69 6f 6e |le. Thi|s option|
|000011f0| 20 69 6d 70 6c 69 65 73 | 20 74 68 65 0a 2e 49 20 | implies| the..I |
|00001200| 5c 2d 53 0a 6f 70 74 69 | 6f 6e 20 75 6e 6c 65 73 |\-S.opti|on unles|
|00001210| 73 20 74 68 65 0a 2e 49 | 20 5c 2d 67 0a 6f 70 74 |s the..I| \-g.opt|
|00001220| 69 6f 6e 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |ion is s|pecified|
|00001230| 2e 0a 2e 54 50 0a 2e 49 | 20 5c 2d 76 0a 44 6f 20 |...TP..I| \-v.Do |
|00001240| 6e 6f 74 20 6c 65 74 20 | 63 6f 6c 75 6d 6e 20 6c |not let |column l|
|00001250| 65 6e 67 74 68 73 20 76 | 61 72 79 3b 20 75 73 65 |engths v|ary; use|
|00001260| 20 74 68 65 20 73 61 6d | 65 0a 77 69 64 74 68 20 | the sam|e.width |
|00001270| 66 6f 72 20 65 61 63 68 | 20 63 6f 6c 75 6d 6e 20 |for each| column |
|00001280| 6f 66 20 6f 75 74 70 75 | 74 2e 20 20 54 68 65 20 |of outpu|t. The |
|00001290| 77 69 64 74 68 20 64 65 | 66 61 75 6c 74 73 20 74 |width de|faults t|
|000012a0| 6f 20 31 34 0a 62 75 74 | 20 63 61 6e 20 62 65 20 |o 14.but| can be |
|000012b0| 73 65 74 20 77 69 74 68 | 20 74 68 65 0a 2e 49 20 |set with| the..I |
|000012c0| 5c 2d 63 0a 6f 70 74 69 | 6f 6e 2e 0a 2e 54 50 0a |\-c.opti|on...TP.|
|000012d0| 2e 49 20 5c 2d 78 0a 44 | 6f 20 6e 6f 74 20 63 72 |.I \-x.D|o not cr|
|000012e0| 6f 73 73 20 66 69 6c 65 | 20 73 79 73 74 65 6d 73 |oss file| systems|
|000012f0| 2e 20 20 0a 2e 49 20 78 | 64 74 72 65 65 0a 77 69 |. ..I x|dtree.wi|
|00001300| 6c 6c 20 6e 6f 74 20 63 | 72 6f 73 73 20 6f 76 65 |ll not c|ross ove|
|00001310| 72 20 74 6f 20 61 0a 73 | 75 62 64 69 72 65 63 74 |r to a.s|ubdirect|
|00001320| 6f 72 79 20 69 66 20 69 | 74 20 69 73 20 6f 6e 20 |ory if i|t is on |
|00001330| 61 20 64 69 66 66 65 72 | 65 6e 74 20 66 69 6c 65 |a differ|ent file|
|00001340| 20 73 79 73 74 65 6d 2e | 0a 2e 54 50 0a 2e 49 20 | system.|..TP..I |
|00001350| 5c 2d 68 0a 57 69 6c 6c | 20 70 72 69 6e 74 20 61 |\-h.Will| print a|
|00001360| 20 6c 69 73 74 20 6f 66 | 20 74 68 65 20 6f 70 74 | list of| the opt|
|00001370| 69 6f 6e 73 2e 0a 2e 54 | 50 0a 2e 49 20 5c 2d 74 |ions...T|P..I \-t|
|00001380| 0a 54 65 72 6d 69 6e 61 | 6c 20 6d 6f 64 65 2e 0a |.Termina|l mode..|
|00001390| 49 6e 20 64 65 66 61 75 | 6c 74 20 6d 6f 64 65 0a |In defau|lt mode.|
|000013a0| 2e 49 0a 78 64 74 72 65 | 65 0a 77 69 6c 6c 20 64 |.I.xdtre|e.will d|
|000013b0| 69 73 70 6c 61 79 20 74 | 68 65 20 64 69 72 65 63 |isplay t|he direc|
|000013c0| 74 6f 72 79 20 74 72 65 | 65 20 73 74 72 75 63 74 |tory tre|e struct|
|000013d0| 75 72 65 20 69 6e 20 61 | 6e 20 58 31 31 20 77 69 |ure in a|n X11 wi|
|000013e0| 6e 64 6f 77 2e 0a 54 68 | 65 20 5c 2d 74 20 6f 70 |ndow..Th|e \-t op|
|000013f0| 74 69 6f 6e 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |tion all|ows the |
|00001400| 74 72 65 65 20 74 6f 20 | 62 65 20 70 72 69 6e 74 |tree to |be print|
|00001410| 65 64 20 6f 6e 20 74 68 | 65 20 74 65 72 6d 69 6e |ed on th|e termin|
|00001420| 61 6c 20 73 74 64 6f 75 | 74 2e 0a 58 0a 55 6e 64 |al stdou|t..X.Und|
|00001430| 65 72 20 74 68 65 20 58 | 31 31 20 77 69 6e 64 6f |er the X|11 windo|
|00001440| 77 20 6d 6f 64 65 2c 20 | 61 20 62 75 74 74 6f 6e |w mode, |a button|
|00001450| 20 63 6c 69 63 6b 20 6f | 6e 20 61 20 74 72 65 65 | click o|n a tree|
|00001460| 20 6e 6f 64 65 2c 20 20 | 6d 61 6b 65 73 20 69 74 | node, |makes it|
|00001470| 0a 74 68 65 20 22 61 63 | 74 69 76 65 22 20 6e 6f |.the "ac|tive" no|
|00001480| 64 65 2e 20 54 68 65 20 | 6e 61 6d 65 20 6f 66 20 |de. The |name of |
|00001490| 74 68 65 20 22 61 63 74 | 69 76 65 22 20 6e 6f 64 |the "act|ive" nod|
|000014a0| 65 20 61 6c 77 61 79 73 | 20 61 70 70 65 61 72 73 |e always| appears|
|000014b0| 0a 61 74 20 74 68 65 20 | 74 6f 70 20 6f 66 20 74 |.at the |top of t|
|000014c0| 68 65 20 77 69 6e 64 6f | 77 2c 20 75 6e 64 65 72 |he windo|w, under|
|000014d0| 20 74 68 65 20 22 71 75 | 69 74 22 20 62 75 74 74 | the "qu|it" butt|
|000014e0| 6f 6e 2e 0a 42 65 6c 6f | 77 20 74 68 65 20 61 72 |on..Belo|w the ar|
|000014f0| 65 61 20 77 68 65 72 65 | 20 74 68 65 20 6e 61 6d |ea where| the nam|
|00001500| 65 20 6f 66 20 74 68 65 | 20 22 61 63 74 69 76 65 |e of the| "active|
|00001510| 22 20 6e 6f 64 65 20 69 | 73 20 73 68 6f 77 6e 2c |" node i|s shown,|
|00001520| 0a 61 20 74 61 62 6c 65 | 20 64 69 73 70 6c 61 79 |.a table| display|
|00001530| 73 20 74 68 65 20 6d 6f | 64 65 20 6f 66 20 74 68 |s the mo|de of th|
|00001540| 65 20 6e 6f 64 65 2c 20 | 74 68 65 20 67 72 6f 75 |e node, |the grou|
|00001550| 70 20 61 6e 64 20 75 73 | 65 72 20 49 44 73 2c 20 |p and us|er IDs, |
|00001560| 61 6e 64 20 69 74 73 0a | 73 69 7a 65 2e 0a 4e 65 |and its.|size..Ne|
|00001570| 78 74 20 74 6f 20 74 68 | 69 73 20 6d 65 6e 75 20 |xt to th|is menu |
|00001580| 61 72 65 0a 74 68 65 20 | 5c 66 49 66 69 6c 65 2c |are.the |\fIfile,|
|00001590| 5c 66 52 20 5c 66 49 64 | 69 72 65 63 74 6f 72 79 |\fR \fId|irectory|
|000015a0| 2c 5c 66 52 20 61 6e 64 | 20 5c 66 49 50 72 69 6e |,\fR and| \fIPrin|
|000015b0| 74 2d 54 72 65 65 5c 66 | 52 20 6f 70 74 69 6f 6e |t-Tree\f|R option|
|000015c0| 20 62 75 74 74 6f 6e 73 | 2e 0a 54 68 65 72 65 20 | buttons|..There |
|000015d0| 61 72 65 0a 66 6f 75 72 | 20 5c 66 49 66 69 6c 65 |are.four| \fIfile|
|000015e0| 5c 66 52 20 6f 70 74 69 | 6f 6e 73 3a 20 5c 66 49 |\fR opti|ons: \fI|
|000015f0| 76 69 65 77 2c 20 74 6f | 70 76 69 65 77 2c 20 65 |view, to|pview, e|
|00001600| 64 69 74 5c 66 52 20 61 | 6e 64 20 5c 66 49 70 72 |dit\fR a|nd \fIpr|
|00001610| 69 6e 74 5c 66 52 2e 0a | 54 68 65 72 65 20 61 72 |int\fR..|There ar|
|00001620| 65 20 74 68 72 65 65 20 | 5c 66 49 64 69 72 65 63 |e three |\fIdirec|
|00001630| 74 6f 72 79 5c 66 52 20 | 6f 70 74 69 6f 6e 73 3a |tory\fR |options:|
|00001640| 20 5c 66 49 73 68 6f 77 | 20 73 75 62 74 72 65 65 | \fIshow| subtree|
|00001650| 2c 20 6c 69 73 74 20 66 | 69 6c 65 73 5c 66 52 2c |, list f|iles\fR,|
|00001660| 0a 61 6e 64 20 5c 66 49 | 6c 69 73 74 20 27 2e 2e |.and \fI|list '..|
|00001670| 2f 27 5c 66 52 2e 0a 54 | 68 75 73 2c 20 74 68 65 |/'\fR..T|hus, the|
|00001680| 20 5c 2d 63 2c 20 5c 2d | 53 2c 20 5c 2d 67 2c 20 | \-c, \-|S, \-g, |
|00001690| 5c 2d 73 2c 20 61 6e 64 | 20 5c 2d 76 20 6f 70 74 |\-s, and| \-v opt|
|000016a0| 69 6f 6e 73 20 61 72 65 | 20 6d 65 61 6e 69 6e 67 |ions are| meaning|
|000016b0| 66 75 6c 20 6f 6e 6c 79 | 0a 77 68 65 6e 20 74 68 |ful only|.when th|
|000016c0| 65 20 5c 2d 74 20 6f 70 | 74 69 6f 6e 20 69 73 20 |e \-t op|tion is |
|000016d0| 75 73 65 64 2e 0a 48 6f | 77 65 76 65 72 2c 20 74 |used..Ho|wever, t|
|000016e0| 68 65 20 5c 2d 53 2c 20 | 5c 2d 67 2c 20 61 6e 64 |he \-S, |\-g, and|
|000016f0| 20 5c 2d 48 20 6f 70 74 | 69 6f 6e 73 20 61 72 65 | \-H opt|ions are|
|00001700| 20 61 63 63 65 73 73 69 | 62 6c 65 20 66 72 6f 6d | accessi|ble from|
|00001710| 20 74 68 65 20 74 6f 67 | 67 6c 65 20 62 75 74 74 | the tog|gle butt|
|00001720| 6f 6e 73 0a 69 6e 20 74 | 68 65 20 5c 66 49 50 72 |ons.in t|he \fIPr|
|00001730| 69 6e 74 2d 54 72 65 65 | 5c 66 52 20 6f 70 74 69 |int-Tree|\fR opti|
|00001740| 6f 6e 73 20 6d 65 6e 75 | 2e 0a 2e 54 50 0a 2e 42 |ons menu|...TP..B|
|00001750| 20 76 69 65 77 20 0a 44 | 69 73 70 6c 61 79 20 74 | view .D|isplay t|
|00001760| 68 65 20 77 68 6f 6c 65 | 20 66 69 6c 65 20 6f 6e |he whole| file on|
|00001770| 20 61 20 73 63 72 6f 6c | 6c 65 64 20 77 69 6e 64 | a scrol|led wind|
|00001780| 6f 77 2e 0a 53 69 6e 63 | 65 20 74 68 65 20 70 72 |ow..Sinc|e the pr|
|00001790| 6f 67 72 61 6d 20 72 65 | 61 64 73 20 61 20 66 69 |ogram re|ads a fi|
|000017a0| 6c 65 20 61 6c 6c 20 61 | 74 20 6f 6e 63 65 2c 0a |le all a|t once,.|
|000017b0| 74 68 65 20 77 61 69 74 | 20 6d 61 79 20 62 65 20 |the wait| may be |
|000017c0| 73 69 67 6e 69 66 69 63 | 61 6e 74 20 66 6f 72 20 |signific|ant for |
|000017d0| 61 20 76 65 72 79 20 6c | 61 72 67 65 20 66 69 6c |a very l|arge fil|
|000017e0| 65 2e 20 20 48 6f 77 65 | 76 65 72 2c 20 74 68 65 |e. Howe|ver, the|
|000017f0| 20 6f 70 74 69 6f 6e 0a | 2e 54 50 0a 2e 42 20 74 | option.|.TP..B t|
|00001800| 6f 70 76 69 65 77 20 0a | 73 68 6f 77 73 20 6f 6e |opview .|shows on|
|00001810| 6c 79 20 74 68 65 20 74 | 6f 70 20 6f 66 20 74 68 |ly the t|op of th|
|00001820| 65 20 66 69 6c 65 20 28 | 32 30 30 30 20 62 79 74 |e file (|2000 byt|
|00001830| 65 73 29 2e 0a 2e 54 50 | 0a 2e 42 20 65 64 69 74 |es)...TP|..B edit|
|00001840| 0a 45 64 69 74 20 74 68 | 65 20 66 69 6c 65 2e 20 |.Edit th|e file. |
|00001850| 5c 66 49 78 64 74 72 65 | 65 5c 66 52 20 66 69 72 |\fIxdtre|e\fR fir|
|00001860| 73 74 20 63 68 65 63 6b | 73 20 61 6e 64 20 65 78 |st check|s and ex|
|00001870| 65 63 75 74 65 73 20 74 | 68 65 20 63 6f 6d 6d 61 |ecutes t|he comma|
|00001880| 6e 64 20 0a 73 70 65 63 | 69 66 69 65 64 20 62 79 |nd .spec|ified by|
|00001890| 20 74 68 65 0a 2e 42 20 | 78 64 74 72 65 65 2a 65 | the..B |xdtree*e|
|000018a0| 64 69 74 6f 72 3a 0a 72 | 65 73 6f 75 72 63 65 20 |ditor:.r|esource |
|000018b0| 69 6e 20 2e 58 64 65 66 | 61 75 6c 74 73 2e 20 49 |in .Xdef|aults. I|
|000018c0| 66 20 74 68 61 74 20 63 | 6f 6d 6d 61 6e 64 20 69 |f that c|ommand i|
|000018d0| 73 20 4e 55 4c 4c 2c 20 | 5c 66 49 78 64 74 72 65 |s NULL, |\fIxdtre|
|000018e0| 65 5c 66 52 0a 66 6f 72 | 6b 73 20 61 6e 20 68 70 |e\fR.for|ks an hp|
|000018f0| 74 65 72 6d 20 77 69 6e | 64 6f 77 20 75 73 69 6e |term win|dow usin|
|00001900| 67 20 74 68 65 20 65 64 | 69 74 6f 72 20 63 6f 6d |g the ed|itor com|
|00001910| 6d 61 6e 64 20 73 70 65 | 63 69 66 69 65 64 0a 69 |mand spe|cified.i|
|00001920| 6e 20 74 68 65 0a 2e 42 | 20 45 44 49 54 4f 52 0a |n the..B| EDITOR.|
|00001930| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 61 6c 20 76 61 |environm|ental va|
|00001940| 72 69 61 62 6c 65 2e 20 | 49 66 20 74 68 61 74 20 |riable. |If that |
|00001950| 76 61 72 69 61 62 6c 65 | 20 69 73 20 6e 6f 74 20 |variable| is not |
|00001960| 73 70 65 63 69 66 69 65 | 64 2c 20 69 74 20 75 73 |specifie|d, it us|
|00001970| 65 73 20 5c 66 49 76 69 | 2e 5c 66 52 0a 2e 54 50 |es \fIvi|.\fR..TP|
|00001980| 0a 2e 42 20 70 72 69 6e | 74 0a 50 72 69 6e 74 20 |..B prin|t.Print |
|00001990| 74 68 65 20 66 69 6c 65 | 2e 20 49 74 20 70 72 69 |the file|. It pri|
|000019a0| 6e 74 73 20 74 68 65 20 | 66 69 6c 65 20 6f 6e 20 |nts the |file on |
|000019b0| 74 68 65 20 70 72 69 6e | 74 65 72 20 64 65 73 74 |the prin|ter dest|
|000019c0| 69 6e 61 74 69 6f 6e 20 | 73 70 65 63 69 66 69 65 |ination |specifie|
|000019d0| 64 0a 62 79 20 74 68 65 | 0a 2e 42 20 78 64 74 72 |d.by the|..B xdtr|
|000019e0| 65 65 2a 6c 70 64 65 73 | 74 3a 0a 72 65 73 6f 75 |ee*lpdes|t:.resou|
|000019f0| 72 63 65 20 69 6e 20 2e | 58 64 65 66 61 75 6c 74 |rce in .|Xdefault|
|00001a00| 73 2e 0a 49 66 20 74 68 | 61 74 20 76 61 72 69 61 |s..If th|at varia|
|00001a10| 62 6c 65 20 69 73 20 6e | 6f 74 20 73 70 65 63 69 |ble is n|ot speci|
|00001a20| 66 69 65 64 20 69 74 20 | 75 73 65 73 0a 74 68 65 |fied it |uses.the|
|00001a30| 20 64 65 66 61 75 6c 74 | 20 6c 70 20 64 65 73 74 | default| lp dest|
|00001a40| 69 6e 61 74 69 6f 6e 2e | 0a 54 68 65 20 73 61 6d |ination.|.The sam|
|00001a50| 65 20 76 61 72 69 61 62 | 6c 65 20 69 73 20 61 6c |e variab|le is al|
|00001a60| 73 6f 20 62 65 69 6e 67 | 20 75 73 65 64 20 77 68 |so being| used wh|
|00001a70| 65 6e 20 74 68 65 20 5c | 66 49 50 72 69 6e 74 2d |en the \|fIPrint-|
|00001a80| 54 72 65 65 5c 66 52 20 | 62 75 74 74 6f 6e 0a 69 |Tree\fR |button.i|
|00001a90| 73 20 73 65 6c 65 63 74 | 65 64 2e 0a 2e 54 50 0a |s select|ed...TP.|
|00001aa0| 2e 42 20 22 73 68 6f 77 | 20 73 75 62 74 72 65 65 |.B "show| subtree|
|00001ab0| 22 0a 53 68 6f 77 20 74 | 68 65 20 64 69 72 65 63 |".Show t|he direc|
|00001ac0| 74 6f 72 79 20 73 75 62 | 74 72 65 65 20 73 74 61 |tory sub|tree sta|
|00001ad0| 72 74 69 6e 67 20 66 72 | 6f 6d 20 74 68 65 20 73 |rting fr|om the s|
|00001ae0| 65 6c 65 63 74 65 64 20 | 22 61 63 74 69 76 65 22 |elected |"active"|
|00001af0| 0a 64 69 72 65 63 74 6f | 72 79 20 6e 6f 64 65 2e |.directo|ry node.|
|00001b00| 0a 2e 54 50 0a 2e 42 20 | 22 6c 69 73 74 20 66 69 |..TP..B |"list fi|
|00001b10| 6c 65 73 22 0a 4c 69 73 | 74 20 61 6c 6c 20 66 69 |les".Lis|t all fi|
|00001b20| 6c 65 73 20 61 6e 64 20 | 64 69 72 65 63 74 6f 72 |les and |director|
|00001b30| 69 65 73 20 66 6f 72 20 | 74 68 65 20 22 61 63 74 |ies for |the "act|
|00001b40| 69 76 65 22 20 64 69 72 | 65 63 74 6f 72 79 20 6e |ive" dir|ectory n|
|00001b50| 6f 64 65 2e 0a 54 68 69 | 73 20 69 73 20 65 71 75 |ode..Thi|s is equ|
|00001b60| 69 76 61 6c 65 6e 74 20 | 74 6f 20 61 6e 20 22 6c |ivalent |to an "l|
|00001b70| 73 22 20 63 6f 6d 6d 61 | 6e 64 20 6f 6e 20 74 68 |s" comma|nd on th|
|00001b80| 61 74 20 64 69 72 65 63 | 74 6f 72 79 2e 0a 2e 54 |at direc|tory...T|
|00001b90| 50 0a 2e 42 20 22 6c 69 | 73 74 20 5c 2e 5c 2e 5c |P..B "li|st \.\.\|
|00001ba0| 2f 22 0a 4c 69 73 74 20 | 74 68 65 20 64 69 72 65 |/".List |the dire|
|00001bb0| 63 74 6f 72 69 65 73 20 | 69 6e 20 74 68 65 20 70 |ctories |in the p|
|00001bc0| 61 72 65 6e 74 20 28 74 | 6f 70 29 20 64 69 72 65 |arent (t|op) dire|
|00001bd0| 63 74 6f 72 79 2e 20 20 | 41 6c 6c 6f 77 73 20 74 |ctory. |Allows t|
|00001be0| 68 65 20 75 73 65 72 0a | 74 6f 20 74 72 61 76 65 |he user.|to trave|
|00001bf0| 72 73 65 20 75 70 77 61 | 72 64 73 20 74 68 65 20 |rse upwa|rds the |
|00001c00| 64 69 72 65 63 74 6f 72 | 79 20 74 72 65 65 2e 0a |director|y tree..|
|00001c10| 2e 54 50 0a 2e 42 20 22 | 50 72 69 6e 74 2d 54 72 |.TP..B "|Print-Tr|
|00001c20| 65 65 22 0a 50 72 69 6e | 74 20 74 68 65 20 74 72 |ee".Prin|t the tr|
|00001c30| 65 65 2e 20 20 54 68 69 | 73 20 69 73 20 65 71 75 |ee. Thi|s is equ|
|00001c40| 69 76 61 6c 65 6e 74 20 | 74 6f 20 75 73 69 6e 67 |ivalent |to using|
|00001c50| 20 74 68 65 20 5c 66 49 | 78 64 74 72 65 65 5c 66 | the \fI|xdtree\f|
|00001c60| 52 20 63 6f 6d 6d 61 6e | 64 0a 77 69 74 68 20 74 |R comman|d.with t|
|00001c70| 68 65 20 5c 2d 74 20 6f | 70 74 69 6f 6e 20 61 6e |he \-t o|ption an|
|00001c80| 64 20 70 69 70 69 6e 67 | 20 74 68 65 20 6f 75 74 |d piping| the out|
|00001c90| 70 75 74 20 74 6f 20 79 | 6f 75 72 20 70 72 69 6e |put to y|our prin|
|00001ca0| 74 65 72 2e 0a 58 0a 45 | 78 63 65 70 74 20 66 6f |ter..X.E|xcept fo|
|00001cb0| 72 20 74 68 65 20 5c 66 | 49 76 69 65 77 5c 66 52 |r the \f|Iview\fR|
|00001cc0| 20 61 6e 64 20 5c 66 49 | 74 6f 70 76 69 65 77 5c | and \fI|topview\|
|00001cd0| 66 52 20 6f 70 74 69 6f | 6e 73 2c 20 69 6e 20 61 |fR optio|ns, in a|
|00001ce0| 6c 6c 20 6f 74 68 65 72 | 20 63 61 73 65 73 0a 61 |ll other| cases.a|
|00001cf0| 20 63 6c 69 63 6b 20 6f | 6e 20 74 68 65 20 22 71 | click o|n the "q|
|00001d00| 75 69 74 22 20 62 75 74 | 74 6f 6e 20 6f 66 20 74 |uit" but|ton of t|
|00001d10| 68 65 20 22 70 61 72 65 | 6e 74 22 20 77 69 6c 6c |he "pare|nt" will|
|00001d20| 0a 63 61 75 73 65 20 74 | 68 65 20 22 70 61 72 65 |.cause t|he "pare|
|00001d30| 6e 74 22 20 5c 66 49 78 | 64 74 72 65 65 5c 66 52 |nt" \fIx|dtree\fR|
|00001d40| 20 77 69 6e 64 6f 77 20 | 74 6f 20 66 72 65 65 7a | window |to freez|
|00001d50| 65 20 75 6e 74 69 6c 20 | 74 68 65 20 73 65 6c 65 |e until |the sele|
|00001d60| 63 74 65 64 20 63 6f 6d | 6d 61 6e 64 0a 68 61 73 |cted com|mand.has|
|00001d70| 20 62 65 65 6e 20 65 78 | 65 63 75 74 65 64 20 6f | been ex|ecuted o|
|00001d80| 72 20 74 68 65 20 22 63 | 68 69 6c 64 22 20 77 69 |r the "c|hild" wi|
|00001d90| 6e 64 6f 77 20 68 61 73 | 20 62 65 65 6e 20 6b 69 |ndow has| been ki|
|00001da0| 6c 6c 65 64 2e 0a 54 68 | 65 6e 20 74 68 65 20 22 |lled..Th|en the "|
|00001db0| 70 61 72 65 6e 74 22 20 | 77 69 6e 64 6f 77 20 77 |parent" |window w|
|00001dc0| 69 6c 6c 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ill auto|maticall|
|00001dd0| 79 20 64 69 65 2e 0a 54 | 68 75 73 20 69 74 20 69 |y die..T|hus it i|
|00001de0| 73 20 72 65 63 6f 6d 6d | 65 6e 64 65 64 20 74 6f |s recomm|ended to|
|00001df0| 20 6b 69 6c 6c 20 22 63 | 68 69 6c 64 72 65 6e 22 | kill "c|hildren"|
|00001e00| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 62 65 | applica|tions be|
|00001e10| 66 6f 72 65 0a 79 6f 75 | 20 74 72 79 20 74 6f 20 |fore.you| try to |
|00001e20| 6b 69 6c 6c 20 74 68 65 | 20 22 70 61 72 65 6e 74 |kill the| "parent|
|00001e30| 22 2e 0a 58 0a 4f 6e 20 | 61 20 63 6f 6c 6f 72 20 |"..X.On |a color |
|00001e40| 74 65 72 6d 69 6e 61 6c | 2c 20 6f 6e 65 20 63 61 |terminal|, one ca|
|00001e50| 6e 20 63 68 6f 6f 73 65 | 20 64 69 66 66 65 72 65 |n choose| differe|
|00001e60| 6e 74 20 63 6f 6c 6f 72 | 73 20 74 6f 20 64 69 73 |nt color|s to dis|
|00001e70| 74 69 6e 67 75 69 73 68 | 0a 62 65 74 77 65 65 6e |tinguish|.between|
|00001e80| 20 64 69 72 65 63 74 6f | 72 69 65 73 2c 20 66 69 | directo|ries, fi|
|00001e90| 6c 65 73 2c 20 61 6e 64 | 20 73 79 6d 62 6f 6c 69 |les, and| symboli|
|00001ea0| 63 20 6c 69 6e 6b 73 2e | 0a 54 6f 20 73 65 74 20 |c links.|.To set |
|00001eb0| 75 70 20 61 20 73 69 6d | 70 6c 65 20 63 6f 6c 6f |up a sim|ple colo|
|00001ec0| 72 20 73 63 68 65 6d 65 | 20 66 6f 72 20 5c 66 49 |r scheme| for \fI|
|00001ed0| 78 64 74 72 65 65 5c 66 | 52 2c 20 70 75 74 20 74 |xdtree\f|R, put t|
|00001ee0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 65 6e 74 |he follo|wing ent|
|00001ef0| 72 69 65 73 0a 69 6e 20 | 79 6f 75 72 20 7e 2f 2e |ries.in |your ~/.|
|00001f00| 58 64 65 66 61 75 6c 74 | 73 20 66 69 6c 65 3a 0a |Xdefault|s file:.|
|00001f10| 58 0a 78 64 74 72 65 65 | 2a 67 65 6f 6d 65 74 72 |X.xdtree|*geometr|
|00001f20| 79 3a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |y: | |
|00001f30| 20 20 20 20 20 20 20 35 | 30 30 78 35 30 30 0a 2e | 5|00x500..|
|00001f40| 62 72 0a 78 64 74 72 65 | 65 2a 71 75 69 74 2e 62 |br.xdtre|e*quit.b|
|00001f50| 61 63 6b 67 72 6f 75 6e | 64 3a 20 20 20 20 20 20 |ackgroun|d: |
|00001f60| 20 20 20 20 20 20 20 20 | 44 61 72 6b 53 6c 61 74 | |DarkSlat|
|00001f70| 65 42 6c 75 65 0a 2e 62 | 72 0a 78 64 74 72 65 65 |eBlue..b|r.xdtree|
|00001f80| 2a 64 69 72 2e 62 61 63 | 6b 67 72 6f 75 6e 64 3a |*dir.bac|kground:|
|00001f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 52 | | R|
|00001fa0| 65 64 20 20 20 20 20 20 | 0a 2e 62 72 0a 78 64 74 |ed |..br.xdt|
|00001fb0| 72 65 65 2a 73 79 6d 5f | 6c 69 6e 6b 2e 62 61 63 |ree*sym_|link.bac|
|00001fc0| 6b 67 72 6f 75 6e 64 3a | 20 20 20 20 20 20 20 20 |kground:| |
|00001fd0| 20 20 42 72 6f 77 6e 20 | 20 0a 2e 62 72 0a 78 64 | Brown | ..br.xd|
|00001fe0| 74 72 65 65 2a 6f 70 74 | 69 6f 6e 73 2e 62 61 63 |tree*opt|ions.bac|
|00001ff0| 6b 67 72 6f 75 6e 64 3a | 20 20 20 20 20 20 20 20 |kground:| |
|00002000| 20 20 20 52 65 64 09 09 | 0a 58 0a 41 20 73 65 74 | Red..|.X.A set|
|00002010| 20 6f 66 20 73 69 6d 70 | 6c 65 20 72 65 73 6f 75 | of simp|le resou|
|00002020| 72 63 65 73 20 69 73 20 | 61 6c 73 6f 20 73 70 65 |rces is |also spe|
|00002030| 63 69 66 69 65 64 20 69 | 6e 0a 2f 75 73 72 2f 6c |cified i|n./usr/l|
|00002040| 69 62 2f 58 31 31 2f 61 | 70 70 2d 64 65 66 61 75 |ib/X11/a|pp-defau|
|00002050| 6c 74 73 2f 58 44 74 72 | 65 65 0a 2e 53 48 20 41 |lts/XDtr|ee..SH A|
|00002060| 55 54 48 4f 52 0a 44 61 | 76 65 20 42 6f 72 6d 61 |UTHOR.Da|ve Borma|
|00002070| 6e 2c 20 44 69 67 69 74 | 61 6c 20 55 6e 69 78 20 |n, Digit|al Unix |
|00002080| 45 6e 67 69 6e 65 65 72 | 69 6e 67 20 47 72 6f 75 |Engineer|ing Grou|
|00002090| 70 2c 20 77 72 6f 74 65 | 20 74 68 65 20 6f 72 69 |p, wrote| the ori|
|000020a0| 67 69 6e 61 6c 0a 64 74 | 72 65 65 20 70 72 6f 67 |ginal.dt|ree prog|
|000020b0| 72 61 6d 2e 0a 2e 62 72 | 0a 64 65 63 76 61 78 21 |ram...br|.decvax!|
|000020c0| 62 6f 72 6d 61 6e 0a 2e | 62 72 0a 4f 72 69 67 69 |borman..|br.Origi|
|000020d0| 6e 61 6c 6c 79 20 77 72 | 69 74 74 65 6e 20 61 74 |nally wr|itten at|
|000020e0| 20 53 74 2e 20 4f 6c 61 | 66 20 43 6f 6c 6c 65 67 | St. Ola|f Colleg|
|000020f0| 65 2c 20 4e 6f 72 74 68 | 66 69 65 6c 64 2c 20 4d |e, North|field, M|
|00002100| 4e 2e 0a 2e 62 72 0a 41 | 64 64 69 74 69 6f 6e 73 |N...br.A|dditions|
|00002110| 20 66 6f 72 20 74 68 65 | 20 58 31 31 20 77 69 6e | for the| X11 win|
|00002120| 64 6f 77 73 20 64 69 73 | 70 6c 61 79 20 62 79 20 |dows dis|play by |
|00002130| 4b 2e 20 4b 6f 6e 73 74 | 61 6e 74 69 6e 69 64 65 |K. Konst|antinide|
|00002140| 73 2c 0a 48 65 77 6c 65 | 74 74 2d 50 61 63 6b 61 |s,.Hewle|tt-Packa|
|00002150| 72 64 20 4c 61 62 6f 72 | 61 74 6f 72 69 65 73 2e |rd Labor|atories.|
|00002160| 0a 43 6f 70 79 72 69 67 | 68 74 3a 20 48 65 77 6c |.Copyrig|ht: Hewl|
|00002170| 65 74 74 2d 50 61 63 6b | 61 72 64 2c 20 31 39 39 |ett-Pack|ard, 199|
|00002180| 30 2c 20 61 6e 64 20 31 | 39 39 32 2e 0a 65 2d 6d |0, and 1|992..e-m|
|00002190| 61 69 6c 3a 6b 6b 40 68 | 70 6b 72 6f 6e 6f 73 2e |ail:kk@h|pkronos.|
|000021a0| 68 70 6c 2e 68 70 2e 63 | 6f 6d 0a 53 48 41 52 5f |hpl.hp.c|om.SHAR_|
|000021b0| 45 4f 46 0a 63 68 6d 6f | 64 20 30 36 34 34 20 78 |EOF.chmo|d 0644 x|
|000021c0| 64 74 72 65 65 2e 31 20 | 7c 7c 0a 65 63 68 6f 20 |dtree.1 |||.echo |
|000021d0| 27 72 65 73 74 6f 72 65 | 20 6f 66 20 78 64 74 72 |'restore| of xdtr|
|000021e0| 65 65 2e 31 20 66 61 69 | 6c 65 64 27 0a 57 63 5f |ee.1 fai|led'.Wc_|
|000021f0| 63 3d 22 60 77 63 20 2d | 63 20 3c 20 27 78 64 74 |c="`wc -|c < 'xdt|
|00002200| 72 65 65 2e 31 27 60 22 | 0a 74 65 73 74 20 36 31 |ree.1'`"|.test 61|
|00002210| 32 33 20 2d 65 71 20 22 | 24 57 63 5f 63 22 20 7c |23 -eq "|$Wc_c" ||
|00002220| 7c 0a 09 65 63 68 6f 20 | 27 78 64 74 72 65 65 2e ||..echo |'xdtree.|
|00002230| 31 3a 20 6f 72 69 67 69 | 6e 61 6c 20 73 69 7a 65 |1: origi|nal size|
|00002240| 20 36 31 32 33 2c 20 63 | 75 72 72 65 6e 74 20 73 | 6123, c|urrent s|
|00002250| 69 7a 65 27 20 22 24 57 | 63 5f 63 22 0a 72 6d 20 |ize' "$W|c_c".rm |
|00002260| 2d 66 20 5f 73 68 61 72 | 5f 77 6e 74 5f 2e 74 6d |-f _shar|_wnt_.tm|
|00002270| 70 0a 66 69 0a 23 20 3d | 3d 3d 3d 3d 3d 3d 3d 3d |p.fi.# =|========|
|00002280| 3d 3d 3d 3d 20 78 64 74 | 72 65 65 2e 63 20 3d 3d |==== xdt|ree.c ==|
|00002290| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 69 66 20 |========|====.if |
|000022a0| 74 65 73 74 20 2d 66 20 | 27 78 64 74 72 65 65 2e |test -f |'xdtree.|
|000022b0| 63 27 20 2d 61 20 58 22 | 24 31 22 20 21 3d 20 58 |c' -a X"|$1" != X|
|000022c0| 22 2d 63 22 3b 20 74 68 | 65 6e 0a 09 65 63 68 6f |"-c"; th|en..echo|
|000022d0| 20 27 78 20 2d 20 73 6b | 69 70 70 69 6e 67 20 78 | 'x - sk|ipping x|
|000022e0| 64 74 72 65 65 2e 63 20 | 28 46 69 6c 65 20 61 6c |dtree.c |(File al|
|000022f0| 72 65 61 64 79 20 65 78 | 69 73 74 73 29 27 0a 09 |ready ex|ists)'..|
|00002300| 72 6d 20 2d 66 20 5f 73 | 68 61 72 5f 77 6e 74 5f |rm -f _s|har_wnt_|
|00002310| 2e 74 6d 70 0a 65 6c 73 | 65 0a 3e 20 5f 73 68 61 |.tmp.els|e.> _sha|
|00002320| 72 5f 77 6e 74 5f 2e 74 | 6d 70 0a 65 63 68 6f 20 |r_wnt_.t|mp.echo |
|00002330| 27 78 20 2d 20 65 78 74 | 72 61 63 74 69 6e 67 20 |'x - ext|racting |
|00002340| 78 64 74 72 65 65 2e 63 | 20 28 54 65 78 74 29 27 |xdtree.c| (Text)'|
|00002350| 0a 73 65 64 20 27 73 2f | 5e 58 2f 2f 27 20 3c 3c |.sed 's/|^X//' <<|
|00002360| 20 27 53 48 41 52 5f 45 | 4f 46 27 20 3e 20 27 78 | 'SHAR_E|OF' > 'x|
|00002370| 64 74 72 65 65 2e 63 27 | 20 26 26 0a 2f 2a 0a 58 |dtree.c'| &&./*.X|
|00002380| 20 2a 09 44 54 52 45 45 | 20 2d 20 50 72 69 6e 74 | *.DTREE| - Print|
|00002390| 20 74 68 65 20 74 72 65 | 65 20 73 74 72 75 63 74 | the tre|e struct|
|000023a0| 75 72 65 20 6f 66 20 61 | 20 64 69 72 65 63 74 6f |ure of a| directo|
|000023b0| 72 79 0a 58 20 2a 09 34 | 2f 37 2f 38 33 20 6e 61 |ry.X *.4|/7/83 na|
|000023c0| 6d 65 20 77 61 73 20 63 | 68 61 6e 67 65 64 20 66 |me was c|hanged f|
|000023d0| 72 6f 6d 20 54 52 45 45 | 20 74 6f 20 44 54 52 45 |rom TREE| to DTRE|
|000023e0| 45 0a 58 20 2a 09 39 2f | 37 2f 38 33 20 6d 6f 64 |E.X *.9/|7/83 mod|
|000023f0| 73 20 66 6f 72 20 34 2e | 31 63 20 61 6e 64 20 34 |s for 4.|1c and 4|
|00002400| 2e 32 20 64 69 72 63 74 | 6f 72 79 20 73 74 72 75 |.2 dirct|ory stru|
|00002410| 63 74 75 72 65 20 61 64 | 64 65 64 0a 58 20 2a 0a |cture ad|ded.X *.|
|00002420| 58 20 2a 09 44 61 76 65 | 20 42 6f 72 6d 61 6e 2c |X *.Dave| Borman,|
|00002430| 20 44 69 67 69 74 61 6c | 20 55 6e 69 78 20 45 6e | Digital| Unix En|
|00002440| 67 69 6e 65 65 72 69 6e | 67 20 47 72 6f 75 70 0a |gineerin|g Group.|
|00002450| 58 20 2a 09 09 64 65 63 | 76 61 78 21 62 6f 72 6d |X *..dec|vax!borm|
|00002460| 61 6e 0a 58 20 2a 09 4f | 72 69 67 69 6e 61 6c 6c |an.X *.O|riginall|
|00002470| 79 20 77 72 69 74 74 65 | 6e 20 61 74 20 53 74 2e |y writte|n at St.|
|00002480| 20 4f 6c 61 66 20 43 6f | 6c 6c 65 67 65 2c 20 4e | Olaf Co|llege, N|
|00002490| 6f 72 74 68 66 69 65 6c | 64 20 4d 4e 2e 0a 58 20 |orthfiel|d MN..X |
|000024a0| 2a 09 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 |*.Copyri|ght (c) |
|000024b0| 31 39 38 33 20 62 79 20 | 44 61 76 65 20 42 6f 72 |1983 by |Dave Bor|
|000024c0| 6d 61 6e 0a 58 20 2a 09 | 41 6c 6c 20 72 69 67 68 |man.X *.|All righ|
|000024d0| 74 73 20 72 65 73 65 72 | 76 65 64 0a 58 20 2a 09 |ts reser|ved.X *.|
|000024e0| 54 68 69 73 20 70 72 6f | 67 72 61 6d 20 6d 61 79 |This pro|gram may|
|000024f0| 20 6e 6f 74 20 62 65 20 | 73 6f 6c 64 2c 20 62 75 | not be |sold, bu|
|00002500| 74 20 6d 61 79 20 62 65 | 20 64 69 73 74 72 69 62 |t may be| distrib|
|00002510| 75 74 65 64 0a 58 20 2a | 09 70 72 6f 76 69 64 65 |uted.X *|.provide|
|00002520| 64 20 74 68 69 73 20 68 | 65 61 64 65 72 20 69 73 |d this h|eader is|
|00002530| 20 69 6e 63 6c 75 64 65 | 64 2e 0a 58 20 2a 0a 58 | include|d..X *.X|
|00002540| 20 2a 09 55 73 61 67 65 | 3a 09 78 64 74 72 65 65 | *.Usage|:.xdtree|
|00002550| 20 5b 2d 61 44 66 67 68 | 48 6c 4e 70 73 74 76 78 | [-aDfgh|HlNpstvx|
|00002560| 5d 20 5b 2d 63 20 6c 69 | 6e 65 2d 6c 65 6e 67 74 |] [-c li|ne-lengt|
|00002570| 68 5d 20 5b 64 69 72 65 | 63 74 6f 72 79 2e 2e 2e |h] [dire|ctory...|
|00002580| 5d 0a 58 20 2a 09 46 6c | 61 67 73 3a 09 2d 61 29 |].X *.Fl|ags:.-a)|
|00002590| 20 69 6e 63 6c 75 64 65 | 20 6e 6f 6e 2d 64 69 72 | include| non-dir|
|000025a0| 65 63 74 6f 72 79 20 65 | 6e 74 72 69 65 73 20 69 |ectory e|ntries i|
|000025b0| 6e 20 6c 69 73 74 69 6e | 67 0a 58 20 2a 09 09 2d |n listin|g.X *..-|
|000025c0| 44 29 20 73 6f 72 74 20 | 74 72 65 65 20 77 69 74 |D) sort |tree wit|
|000025d0| 68 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 61 74 |h direct|ories at|
|000025e0| 20 74 68 65 20 74 6f 70 | 0a 58 20 2a 09 09 2d 66 | the top|.X *..-f|
|000025f0| 29 20 73 6f 72 74 20 74 | 72 65 65 20 77 69 74 68 |) sort t|ree with|
|00002600| 20 66 69 6c 65 73 20 61 | 74 20 74 68 65 20 74 6f | files a|t the to|
|00002610| 70 0a 58 20 2a 09 09 2d | 67 29 20 73 61 6d 65 20 |p.X *..-|g) same |
|00002620| 61 73 20 53 2c 20 62 75 | 74 20 75 73 65 20 67 72 |as S, bu|t use gr|
|00002630| 6f 75 70 20 6e 61 6d 65 | 20 69 6e 73 74 65 61 64 |oup name| instead|
|00002640| 20 6f 66 20 75 73 65 72 | 20 6e 61 6d 65 0a 58 20 | of user| name.X |
|00002650| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d |* | -|
|00002660| 68 29 20 68 65 6c 70 0a | 58 20 2a 09 09 2d 48 29 |h) help.|X *..-H)|
|00002670| 20 64 69 73 70 6c 61 79 | 20 61 20 68 65 61 64 65 | display| a heade|
|00002680| 72 20 61 74 20 74 6f 70 | 0a 58 20 2a 09 09 2d 53 |r at top|.X *..-S|
|00002690| 29 20 70 72 69 6e 74 20 | 73 74 61 74 73 20 77 69 |) print |stats wi|
|000026a0| 74 68 20 65 61 63 68 20 | 6c 69 73 74 69 6e 67 0a |th each |listing.|
|000026b0| 58 20 2a 09 09 20 20 20 | 20 69 66 20 62 6f 74 68 |X *.. | if both|
|000026c0| 20 67 20 26 20 53 20 66 | 6c 61 67 73 20 61 72 65 | g & S f|lags are|
|000026d0| 20 67 69 76 65 6e 2c 20 | 62 6f 74 68 20 6f 77 6e | given, |both own|
|000026e0| 65 72 20 61 6e 64 0a 58 | 20 2a 09 09 20 20 20 20 |er and.X| *.. |
|000026f0| 67 72 6f 75 70 20 77 69 | 6c 6c 20 62 65 20 70 72 |group wi|ll be pr|
|00002700| 69 6e 74 65 64 0a 58 20 | 2a 09 09 2d 4e 29 20 64 |inted.X |*..-N) d|
|00002710| 6f 20 6e 6f 74 20 73 6f | 72 74 20 74 68 65 20 74 |o not so|rt the t|
|00002720| 72 65 65 0a 58 20 2a 09 | 09 2d 70 29 20 69 6e 63 |ree.X *.|.-p) inc|
|00002730| 6c 75 64 65 20 66 69 6c | 65 73 20 73 74 61 72 74 |lude fil|es start|
|00002740| 69 6e 67 20 77 69 74 68 | 20 61 20 27 2e 27 20 28 |ing with| a '.' (|
|00002750| 65 78 63 65 70 74 20 22 | 2e 22 20 26 20 22 2e 2e |except "|." & "..|
|00002760| 22 29 0a 58 20 2a 09 09 | 2d 73 29 20 75 73 65 20 |").X *..|-s) use |
|00002770| 73 68 6f 72 74 65 72 20 | 73 74 61 74 73 2e 20 49 |shorter |stats. I|
|00002780| 6d 70 6c 69 65 73 20 2d | 53 20 69 66 20 2d 67 20 |mplies -|S if -g |
|00002790| 69 73 6e 27 74 20 67 69 | 76 65 6e 2e 0a 58 20 2a |isn't gi|ven..X *|
|000027a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2d 74 | | -t|
|000027b0| 29 20 55 73 65 20 74 65 | 72 6d 69 6e 61 6c 20 6d |) Use te|rminal m|
|000027c0| 6f 64 65 20 28 6e 6f 20 | 58 20 77 69 6e 64 6f 77 |ode (no |X window|
|000027d0| 73 29 0a 58 20 2a 09 09 | 2d 76 29 20 76 61 72 69 |s).X *..|-v) vari|
|000027e0| 61 62 6c 65 20 6c 65 6e | 67 74 68 20 63 6f 6c 75 |able len|gth colu|
|000027f0| 6d 6e 73 20 6f 66 66 0a | 58 20 2a 09 09 2d 78 29 |mns off.|X *..-x)|
|00002800| 20 64 6f 20 6e 6f 74 20 | 63 72 6f 73 73 20 6d 6f | do not |cross mo|
|00002810| 75 6e 74 65 64 20 66 69 | 6c 65 20 73 79 73 74 65 |unted fi|le syste|
|00002820| 6d 73 2e 0a 58 20 2a 09 | 09 2d 63 20 6c 65 6e 67 |ms..X *.|.-c leng|
|00002830| 74 68 29 20 73 65 74 20 | 6d 61 78 20 63 6f 6c 75 |th) set |max colu|
|00002840| 6d 6e 20 6c 65 6e 67 74 | 68 20 74 6f 20 22 6c 65 |mn lengt|h to "le|
|00002850| 6e 67 74 68 22 0a 58 20 | 2a 09 09 2d 6c 20 6c 65 |ngth".X |*..-l le|
|00002860| 76 65 6c 29 20 73 65 61 | 72 63 68 20 75 70 20 74 |vel) sea|rch up t|
|00002870| 6f 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |o the sp|ecified |
|00002880| 22 6c 65 76 65 6c 22 2e | 0a 58 20 2a 2f 0a 58 0a |"level".|.X */.X.|
|00002890| 58 20 2f 2a 20 20 20 20 | 20 4d 6f 64 69 66 69 65 |X /* | Modifie|
|000028a0| 64 20 62 79 20 20 20 20 | 20 20 45 64 20 41 72 6e |d by | Ed Arn|
|000028b0| 6f 6c 64 20 20 20 20 20 | 20 43 53 55 2d 43 53 20 |old | CSU-CS |
|000028c0| 20 20 28 63 73 75 2d 63 | 73 21 61 72 6e 6f 6c 64 | (csu-c|s!arnold|
|000028d0| 29 20 20 20 20 20 33 2d | 35 2d 38 34 0a 58 20 20 |) 3-|5-84.X |
|000028e0| 2a 0a 58 20 20 2a 20 20 | 20 20 20 41 6c 6c 6f 77 |*.X * | Allow|
|000028f0| 73 20 73 79 6d 62 6f 6c | 69 63 20 6c 69 6e 6b 73 |s symbol|ic links|
|00002900| 20 74 6f 20 62 6f 74 68 | 20 64 69 72 65 63 74 6f | to both| directo|
|00002910| 72 69 65 73 20 61 6e 64 | 20 69 6e 64 69 76 69 64 |ries and| individ|
|00002920| 75 61 6c 20 66 69 6c 65 | 73 2e 0a 58 20 20 2a 20 |ual file|s..X * |
|00002930| 20 20 20 20 57 69 74 68 | 20 61 20 27 2d 53 27 20 | With| a '-S' |
|00002940| 6f 72 20 27 2d 61 53 27 | 20 6f 70 74 69 6f 6e 2c |or '-aS'| option,|
|00002950| 20 6c 69 6e 6b 73 20 61 | 72 65 20 64 65 6e 6f 74 | links a|re denot|
|00002960| 65 64 20 77 69 74 68 20 | 61 20 27 6c 27 20 69 6e |ed with |a 'l' in|
|00002970| 20 66 72 6f 6e 74 20 6f | 66 20 0a 58 20 20 2a 20 | front o|f .X * |
|00002980| 20 20 20 20 66 69 6c 65 | 20 6f 72 20 64 69 72 65 | file| or dire|
|00002990| 63 74 6f 72 79 20 70 65 | 72 6d 69 73 73 69 6f 6e |ctory pe|rmission|
|000029a0| 73 2e 20 49 6e 20 61 6c | 6c 20 6f 74 68 65 72 20 |s. In al|l other |
|000029b0| 69 6e 73 74 61 6e 63 65 | 73 20 62 6f 74 68 20 6c |instance|s both l|
|000029c0| 69 6e 6b 73 20 74 6f 20 | 0a 58 20 20 2a 20 20 20 |inks to |.X * |
|000029d0| 20 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 61 6e | direct|ories an|
|000029e0| 64 20 66 69 6c 65 73 20 | 61 72 65 20 72 65 70 72 |d files |are repr|
|000029f0| 65 73 65 6e 74 65 64 20 | 6a 75 73 74 20 61 73 20 |esented |just as |
|00002a00| 66 69 6c 65 73 20 61 72 | 65 2e 20 43 6f 6e 74 65 |files ar|e. Conte|
|00002a10| 6e 74 73 20 6f 66 0a 58 | 20 20 2a 20 20 20 20 20 |nts of.X| * |
|00002a20| 6c 69 6e 6b 65 64 20 64 | 69 72 65 63 74 6f 72 69 |linked d|irectori|
|00002a30| 65 73 20 61 72 65 20 6e | 6f 74 20 70 72 69 6e 74 |es are n|ot print|
|00002a40| 65 64 20 64 75 65 20 74 | 6f 20 74 68 65 20 70 6f |ed due t|o the po|
|00002a50| 73 73 69 62 69 6c 69 74 | 79 20 6f 66 20 0a 58 20 |ssibilit|y of .X |
|00002a60| 20 2a 20 20 20 20 20 72 | 65 63 75 72 73 69 76 65 | * r|ecursive|
|00002a70| 6c 79 20 6c 69 6e 6b 65 | 64 20 64 69 72 65 63 74 |ly linke|d direct|
|00002a80| 6f 72 69 65 73 2e 0a 58 | 20 20 2a 0a 58 20 20 2a |ories..X| *.X *|
|00002a90| 20 20 20 20 20 42 69 67 | 20 64 69 72 65 63 74 6f | Big| directo|
|00002aa0| 72 79 20 6e 61 6d 65 20 | 6f 70 74 69 6f 6e 20 61 |ry name |option a|
|00002ab0| 64 64 65 64 20 62 79 3a | 0a 58 20 20 2a 20 20 20 |dded by:|.X * |
|00002ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ad0| 20 20 20 4d 69 6b 65 20 | 56 65 76 65 61 20 20 20 | Mike |Vevea |
|00002ae0| 20 20 20 43 53 55 2d 43 | 53 20 28 63 73 75 2d 63 | CSU-C|S (csu-c|
|00002af0| 73 21 76 65 76 65 61 29 | 20 20 20 20 20 20 33 2d |s!vevea)| 3-|
|00002b00| 32 32 2d 38 34 0a 58 20 | 20 2a 0a 58 20 20 2a 09 |22-84.X | *.X *.|
|00002b10| 54 6f 67 67 6c 65 20 73 | 65 6e 73 65 20 6f 66 20 |Toggle s|ense of |
|00002b20| 2d 76 20 28 72 75 6e 6e | 69 6e 67 20 34 2e 32 29 |-v (runn|ing 4.2)|
|00002b30| 2c 20 61 6e 64 20 65 6c | 69 6d 69 6e 61 74 65 20 |, and el|iminate |
|00002b40| 73 6f 6d 65 20 65 78 74 | 72 61 6e 65 6f 75 73 0a |some ext|raneous.|
|00002b50| 58 20 20 2a 09 09 70 72 | 69 6e 74 20 69 6e 66 6f |X *..pr|int info|
|00002b60| 09 4d 69 6b 65 20 4d 65 | 79 65 72 20 45 6e 65 72 |.Mike Me|yer Ener|
|00002b70| 67 79 20 41 6e 61 6c 79 | 73 74 73 20 28 6d 77 6d |gy Analy|sts (mwm|
|00002b80| 40 65 61 29 09 34 2f 31 | 37 2f 38 34 0a 58 20 20 |@ea).4/1|7/84.X |
|00002b90| 2a 0a 58 20 20 2a 09 46 | 69 78 20 74 68 65 20 65 |*.X *.F|ix the e|
|00002ba0| 78 69 74 20 73 74 61 74 | 75 73 20 74 6f 20 63 6f |xit stat|us to co|
|00002bb0| 72 72 65 63 74 6c 79 20 | 69 6e 64 69 63 61 74 65 |rrectly |indicate|
|00002bc0| 20 77 68 61 74 20 68 61 | 70 70 65 6e 65 64 2e 0a | what ha|ppened..|
|00002bd0| 58 20 20 2a 09 09 09 09 | 4d 69 6b 65 20 4d 65 79 |X *....|Mike Mey|
|00002be0| 65 72 20 45 6e 65 72 67 | 79 20 41 6e 61 6c 79 73 |er Energ|y Analys|
|00002bf0| 74 73 20 28 6d 77 6d 40 | 65 61 29 09 34 2f 32 33 |ts (mwm@|ea).4/23|
|00002c00| 2f 38 34 0a 58 20 20 2a | 0a 58 20 20 2a 09 43 68 |/84.X *|.X *.Ch|
|00002c10| 61 6e 67 65 20 4d 41 58 | 20 74 6f 20 49 4e 49 54 |ange MAX| to INIT|
|00002c20| 49 41 4c 5f 45 4c 45 4d | 20 74 6f 20 66 69 78 20 |IAL_ELEM| to fix |
|00002c30| 63 6f 6e 66 6c 69 63 74 | 20 6f 6e 20 53 75 6e 73 |conflict| on Suns|
|00002c40| 2c 0a 58 20 20 2a 09 66 | 69 78 20 69 6e 63 6f 72 |,.X *.f|ix incor|
|00002c50| 72 65 63 74 20 64 65 66 | 61 75 6c 74 20 76 61 6c |rect def|ault val|
|00002c60| 75 65 20 66 6f 72 20 43 | 6c 65 6e 67 74 68 20 77 |ue for C|length w|
|00002c70| 68 65 6e 20 2d 76 20 6e | 6f 74 20 67 69 76 65 6e |hen -v n|ot given|
|00002c80| 2c 0a 58 20 20 2a 09 61 | 64 64 20 2d 48 20 6f 70 |,.X *.a|dd -H op|
|00002c90| 74 69 6f 6e 20 74 6f 20 | 70 72 69 6e 74 20 68 65 |tion to |print he|
|00002ca0| 61 64 65 72 20 77 69 74 | 68 20 64 61 74 65 20 61 |ader wit|h date a|
|00002cb0| 6e 64 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f |nd descr|iption o|
|00002cc0| 66 20 74 72 65 65 2c 0a | 58 20 20 2a 09 72 65 6d |f tree,.|X *.rem|
|00002cd0| 6f 76 65 20 2d 62 20 6f | 70 74 69 6f 6e 20 28 75 |ove -b o|ption (u|
|00002ce0| 73 65 6c 65 73 73 29 20 | 61 6e 64 20 73 69 6d 70 |seless) |and simp|
|00002cf0| 6c 69 66 79 20 61 72 72 | 61 79 20 61 63 63 65 73 |lify arr|ay acces|
|00002d00| 73 2c 0a 58 20 20 2a 09 | 75 73 65 20 67 65 74 6f |s,.X *.|use geto|
|00002d10| 70 74 20 74 6f 20 70 61 | 72 73 65 20 6f 70 74 69 |pt to pa|rse opti|
|00002d20| 6f 6e 73 2c 20 66 69 78 | 20 75 73 61 67 65 20 6d |ons, fix| usage m|
|00002d30| 65 73 73 61 67 65 2c 0a | 58 20 20 2a 09 75 73 65 |essage,.|X *.use|
|00002d40| 20 67 65 74 77 64 20 69 | 6e 73 74 65 61 64 20 6f | getwd i|nstead o|
|00002d50| 66 20 6f 70 65 6e 69 6e | 67 20 61 20 70 69 70 65 |f openin|g a pipe|
|00002d60| 20 74 6f 20 70 77 64 2c | 0a 58 20 20 2a 09 6d 61 | to pwd,|.X *.ma|
|00002d70| 6b 65 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |ke error| message|
|00002d80| 73 20 6d 6f 72 65 20 69 | 6e 66 6f 72 6d 61 74 69 |s more i|nformati|
|00002d90| 76 65 2c 0a 58 20 20 2a | 09 75 73 65 20 73 74 72 |ve,.X *|.use str|
|00002da0| 6e 63 70 79 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |ncpy ins|tead of |
|00002db0| 73 70 72 69 6e 74 66 20 | 66 6f 72 20 73 70 65 65 |sprintf |for spee|
|00002dc0| 64 2c 0a 58 20 20 2a 09 | 6d 6f 76 65 20 66 75 6e |d,.X *.|move fun|
|00002dd0| 63 74 69 6f 6e 20 64 65 | 63 6c 61 72 61 74 69 6f |ction de|claratio|
|00002de0| 6e 73 20 74 6f 20 74 6f | 70 20 6f 66 20 66 69 6c |ns to to|p of fil|
|00002df0| 65 2c 0a 58 20 20 2a 09 | 63 6f 6d 6d 65 6e 74 20 |e,.X *.|comment |
|00002e00| 6f 75 74 20 6a 75 6e 6b | 20 61 66 74 65 72 20 23 |out junk| after #|
|00002e10| 65 6c 73 65 20 61 6e 64 | 20 23 65 6e 64 69 66 2c |else and| #endif,|
|00002e20| 0a 58 20 20 2a 09 6d 61 | 6b 65 20 73 79 6d 62 6f |.X *.ma|ke symbo|
|00002e30| 6c 69 63 20 6c 69 6e 6b | 20 63 6f 6e 66 69 67 75 |lic link| configu|
|00002e40| 72 69 6e 67 20 61 75 74 | 6f 6d 61 74 69 63 2c 0a |ring aut|omatic,.|
|00002e50| 58 20 20 2a 09 63 68 65 | 63 6b 20 61 6c 6c 20 65 |X *.che|ck all e|
|00002e60| 72 72 6f 72 20 72 65 74 | 75 72 6e 73 20 66 72 6f |rror ret|urns fro|
|00002e70| 6d 20 6d 61 6c 6c 6f 63 | 20 61 6e 64 20 72 65 61 |m malloc| and rea|
|00002e80| 6c 6c 6f 63 2c 0a 58 20 | 20 2a 09 61 64 64 20 53 |lloc,.X | *.add S|
|00002e90| 79 73 74 65 6d 20 56 2f | 58 65 6e 69 78 2f 55 6e |ystem V/|Xenix/Un|
|00002ea0| 6f 73 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |os compa|tibility|
|00002eb0| 2c 0a 58 20 20 2a 09 72 | 65 6d 6f 76 65 20 64 65 |,.X *.r|emove de|
|00002ec0| 66 69 6e 69 74 69 6f 6e | 20 6f 66 20 72 69 6e 64 |finition| of rind|
|00002ed0| 65 78 2e 0a 58 20 20 2a | 09 09 44 61 76 69 64 20 |ex..X *|..David |
|00002ee0| 4d 61 63 4b 65 6e 7a 69 | 65 20 3c 64 6a 6d 40 65 |MacKenzi|e <djm@e|
|00002ef0| 6e 67 2e 75 6d 64 2e 65 | 64 75 3e 20 31 32 2f 32 |ng.umd.e|du> 12/2|
|00002f00| 30 2f 38 39 0a 58 20 20 | 2a 0a 58 20 20 2a 09 4d |0/89.X |*.X *.M|
|00002f10| 6f 64 69 66 69 65 64 20 | 74 6f 20 64 69 73 70 6c |odified |to displ|
|00002f20| 61 79 20 74 68 65 20 74 | 72 65 65 20 6f 6e 20 58 |ay the t|ree on X|
|00002f30| 31 31 20 77 69 6e 64 6f | 77 73 20 75 73 69 6e 67 |11 windo|ws using|
|00002f40| 20 74 68 65 20 4d 6f 74 | 69 66 0a 58 20 20 2a 09 | the Mot|if.X *.|
|00002f50| 77 69 64 67 65 74 73 20 | 61 6e 64 20 74 68 65 20 |widgets |and the |
|00002f60| 54 72 65 65 20 77 69 64 | 67 65 74 20 64 65 73 63 |Tree wid|get desc|
|00002f70| 72 69 62 65 64 20 62 79 | 20 44 2e 59 6f 75 6e 67 |ribed by| D.Young|
|00002f80| 20 69 6e 20 68 69 73 20 | 62 6f 6f 6b 2c 0a 58 20 | in his |book,.X |
|00002f90| 20 2a 20 20 20 20 20 22 | 54 68 65 20 58 20 57 69 | * "|The X Wi|
|00002fa0| 6e 64 6f 77 20 53 79 73 | 74 65 6d 2c 20 50 72 6f |ndow Sys|tem, Pro|
|00002fb0| 67 72 61 6d 6d 69 6e 67 | 20 61 6e 64 20 61 70 70 |gramming| and app|
|00002fc0| 6c 69 63 61 74 69 6f 6e | 73 20 77 69 74 68 20 58 |lication|s with X|
|00002fd0| 74 2c 0a 58 20 20 2a 20 | 20 20 20 20 4f 53 46 2f |t,.X * | OSF/|
|00002fe0| 4d 4f 54 49 46 20 45 44 | 49 54 49 4f 4e 22 2c 20 |MOTIF ED|ITION", |
|00002ff0| 50 72 65 6e 74 69 63 65 | 20 48 61 6c 6c 2c 20 31 |Prentice| Hall, 1|
|00003000| 39 39 30 2e 0a 58 20 20 | 2a 20 20 20 20 20 43 6c |990..X |* Cl|
|00003010| 69 63 6b 69 6e 67 20 6f | 6e 20 74 68 65 20 22 61 |icking o|n the "a|
|00003020| 63 74 69 76 65 22 20 6e | 6f 64 65 20 70 6f 70 73 |ctive" n|ode pops|
|00003030| 2d 75 70 20 61 20 6d 65 | 6e 75 20 77 69 74 68 20 |-up a me|nu with |
|00003040| 74 68 65 20 4d 6f 64 65 | 2c 20 61 6e 64 20 47 72 |the Mode|, and Gr|
|00003050| 6f 75 70 0a 58 20 20 2a | 20 20 20 20 20 61 6e 64 |oup.X *| and|
|00003060| 20 55 73 65 72 20 49 44 | 73 2e 20 43 6c 69 63 6b | User ID|s. Click|
|00003070| 69 6e 67 20 6f 6e 20 22 | 76 69 65 77 22 20 70 6f |ing on "|view" po|
|00003080| 70 73 20 75 70 20 61 20 | 77 69 6e 64 6f 77 20 77 |ps up a |window w|
|00003090| 69 74 68 20 74 68 65 20 | 77 68 6f 6c 65 0a 58 20 |ith the |whole.X |
|000030a0| 20 2a 20 20 20 20 20 63 | 6f 6e 74 65 6e 74 73 20 | * c|ontents |
|000030b0| 6f 66 20 74 68 65 20 66 | 69 6c 65 2e 20 43 6c 69 |of the f|ile. Cli|
|000030c0| 63 6b 69 6e 67 20 6f 6e | 20 22 74 6f 70 76 69 65 |cking on| "topvie|
|000030d0| 77 22 20 73 68 6f 77 73 | 20 74 68 65 20 74 6f 70 |w" shows| the top|
|000030e0| 0a 58 20 20 2a 09 6f 66 | 20 74 68 65 20 66 69 6c |.X *.of| the fil|
|000030f0| 65 20 6f 6e 6c 79 20 28 | 32 30 30 30 20 62 79 74 |e only (|2000 byt|
|00003100| 65 73 29 2e 0a 58 20 20 | 2a 20 20 20 20 20 4f 6e |es)..X |* On|
|00003110| 20 74 68 65 20 74 72 65 | 65 2c 20 66 69 6c 65 73 | the tre|e, files|
|00003120| 2c 20 64 69 72 65 63 74 | 6f 72 69 65 73 2c 20 61 |, direct|ories, a|
|00003130| 6e 64 20 73 79 6d 62 6f | 6c 69 63 20 6c 69 6e 6b |nd symbo|lic link|
|00003140| 73 20 63 61 6e 20 62 65 | 0a 58 20 20 2a 20 20 20 |s can be|.X * |
|00003150| 20 20 73 68 6f 77 6e 20 | 77 69 74 68 20 64 69 66 | shown |with dif|
|00003160| 66 65 72 65 6e 74 20 63 | 6f 6c 6f 72 73 2e 0a 58 |ferent c|olors..X|
|00003170| 20 20 2a 20 20 20 20 20 | 43 68 61 6e 67 65 64 20 | * |Changed |
|00003180| 73 6f 6d 65 20 6f 70 74 | 69 6f 6e 73 20 73 6f 20 |some opt|ions so |
|00003190| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 63 6f 6e 66 |there is| no conf|
|000031a0| 6c 69 63 74 20 77 69 74 | 68 20 58 2d 77 69 6e 64 |lict wit|h X-wind|
|000031b0| 6f 77 0a 58 20 20 2a 09 | 6f 70 74 69 6f 6e 73 20 |ow.X *.|options |
|000031c0| 28 20 2d 64 20 74 6f 20 | 2d 44 2c 20 61 6e 64 20 |( -d to |-D, and |
|000031d0| 2d 6e 20 74 6f 20 2d 4e | 29 2e 0a 58 20 20 2a 09 |-n to -N|)..X *.|
|000031e0| 41 64 64 65 64 20 74 68 | 65 20 2d 74 20 61 6e 64 |Added th|e -t and|
|000031f0| 20 2d 68 20 6f 70 74 69 | 6f 6e 73 2e 20 43 68 61 | -h opti|ons. Cha|
|00003200| 6e 67 65 64 20 74 68 65 | 20 2d 6c 20 6f 70 74 69 |nged the| -l opti|
|00003210| 6f 6e 20 74 6f 20 2d 53 | 0a 58 20 20 2a 20 20 20 |on to -S|.X * |
|00003220| 20 20 41 64 64 65 64 20 | 74 68 65 20 22 2d 6c 20 | Added |the "-l |
|00003230| 6c 65 76 65 6c 22 20 6f | 70 74 69 6f 6e 2e 0a 58 |level" o|ption..X|
|00003240| 20 20 2a 09 4b 6f 6e 73 | 74 61 6e 74 69 6e 6f 73 | *.Kons|tantinos|
|00003250| 20 4b 6f 6e 73 74 61 6e | 74 69 6e 69 64 65 73 2c | Konstan|tinides,|
|00003260| 20 48 65 77 6c 65 74 74 | 2d 50 61 63 6b 61 72 64 | Hewlett|-Packard|
|00003270| 20 4c 61 62 6f 72 61 74 | 6f 72 69 65 73 0a 58 20 | Laborat|ories.X |
|00003280| 20 2a 20 20 20 20 20 6b | 6f 6e 73 74 61 6e 74 69 | * k|onstanti|
|00003290| 6e 6f 73 5f 6b 6f 6e 73 | 74 61 6e 74 69 6e 69 64 |nos_kons|tantinid|
|000032a0| 65 73 40 68 70 6c 61 62 | 73 2e 68 70 2e 63 6f 6d |es@hplab|s.hp.com|
|000032b0| 20 20 33 2f 32 33 2f 39 | 30 0a 58 20 20 2a 0a 58 | 3/23/9|0.X *.X|
|000032c0| 20 20 2a 20 20 20 20 20 | 43 6f 70 79 72 69 67 68 | * |Copyrigh|
|000032d0| 74 3a 20 48 45 57 4c 45 | 54 54 2d 50 41 43 4b 41 |t: HEWLE|TT-PACKA|
|000032e0| 52 44 2c 20 31 39 39 30 | 0a 58 20 20 2a 20 20 20 |RD, 1990|.X * |
|000032f0| 20 20 4d 6f 74 69 66 20 | 69 73 20 61 20 74 72 61 | Motif |is a tra|
|00003300| 64 65 6d 61 72 6b 20 6f | 66 20 4f 70 65 6e 20 53 |demark o|f Open S|
|00003310| 6f 66 74 77 61 72 65 20 | 46 6f 75 6e 64 61 74 69 |oftware |Foundati|
|00003320| 6f 6e 2c 20 49 6e 63 2e | 0a 58 20 20 2a 20 20 20 |on, Inc.|.X * |
|00003330| 20 20 58 20 57 69 6e 64 | 6f 77 20 53 79 73 74 65 | X Wind|ow Syste|
|00003340| 6d 20 69 73 20 61 20 74 | 72 61 64 65 6d 61 72 6b |m is a t|rademark|
|00003350| 20 6f 66 20 74 68 65 20 | 4d 61 73 73 61 63 68 75 | of the |Massachu|
|00003360| 73 65 74 74 73 20 49 6e | 73 74 69 74 75 74 65 20 |setts In|stitute |
|00003370| 6f 66 0a 58 20 20 2a 20 | 20 20 20 20 54 65 63 68 |of.X * | Tech|
|00003380| 6e 6f 6c 6f 67 79 0a 58 | 20 20 2a 0a 58 20 20 2a |nology.X| *.X *|
|00003390| 09 41 64 64 65 64 20 73 | 75 70 70 6f 72 74 20 66 |.Added s|upport f|
|000033a0| 6f 72 20 62 6f 74 68 20 | 74 68 65 20 54 72 65 65 |or both |the Tree|
|000033b0| 20 61 6e 64 20 58 6d 47 | 72 61 70 68 20 77 69 64 | and XmG|raph wid|
|000033c0| 67 65 74 73 0a 58 20 20 | 2a 09 4b 2e 20 4b 6f 6e |gets.X |*.K. Kon|
|000033d0| 73 74 61 6e 74 69 6e 69 | 64 65 73 20 34 2f 31 36 |stantini|des 4/16|
|000033e0| 2f 39 30 0a 58 20 20 2a | 0a 58 20 20 2a 20 20 20 |/90.X *|.X * |
|000033f0| 20 20 52 65 77 72 6f 74 | 65 20 74 68 65 20 75 73 | Rewrot|e the us|
|00003400| 65 72 20 69 6e 74 65 72 | 66 61 63 65 2c 20 72 65 |er inter|face, re|
|00003410| 6e 61 6d 65 64 20 70 72 | 6f 67 72 61 6d 20 66 72 |named pr|ogram fr|
|00003420| 6f 6d 20 64 74 72 65 65 | 20 74 6f 20 78 64 74 72 |om dtree| to xdtr|
|00003430| 65 65 0a 58 20 20 2a 20 | 20 20 20 20 4b 2e 20 4b |ee.X * | K. K|
|00003440| 6f 6e 73 74 61 6e 74 69 | 6e 69 64 65 73 20 34 2f |onstanti|nides 4/|
|00003450| 33 30 2f 39 32 0a 58 20 | 20 2a 2f 0a 58 0a 2f 2a |30/92.X | */.X./*|
|00003460| 20 43 6f 6d 70 69 6c 65 | 2d 74 69 6d 65 20 6f 70 | Compile|-time op|
|00003470| 74 69 6f 6e 73 3a 0a 58 | 20 2a 0a 58 20 2a 20 53 |tions:.X| *.X * S|
|00003480| 54 41 54 53 09 6c 65 61 | 76 65 20 75 6e 64 65 66 |TATS.lea|ve undef|
|00003490| 69 6e 65 64 20 74 6f 20 | 72 65 6d 6f 76 65 20 73 |ined to |remove s|
|000034a0| 74 61 74 73 2c 20 67 69 | 76 69 6e 67 20 6d 6f 72 |tats, gi|ving mor|
|000034b0| 65 20 63 6f 72 65 20 73 | 70 61 63 65 0a 58 20 2a |e core s|pace.X *|
|000034c0| 20 61 6e 64 20 74 68 75 | 73 20 74 68 65 20 61 62 | and thu|s the ab|
|000034d0| 69 6c 69 74 79 20 74 6f | 20 74 72 65 65 20 6c 61 |ility to| tree la|
|000034e0| 72 67 65 72 20 74 72 65 | 65 20 73 74 72 75 63 74 |rger tre|e struct|
|000034f0| 75 72 65 73 20 6f 6e 20 | 50 44 50 20 31 31 2f 37 |ures on |PDP 11/7|
|00003500| 30 73 2e 0a 58 20 2a 0a | 58 20 2a 20 4e 45 57 44 |0s..X *.|X * NEWD|
|00003510| 49 52 09 64 69 72 65 63 | 74 6f 72 79 20 73 74 72 |IR.direc|tory str|
|00003520| 75 63 74 75 72 65 20 61 | 20 6c 61 20 42 65 72 6b |ucture a| la Berk|
|00003530| 65 6c 65 79 20 34 2e 31 | 63 20 6f 72 20 34 2e 32 |eley 4.1|c or 4.2|
|00003540| 0a 58 20 2a 0a 58 20 2a | 20 4e 44 49 52 09 09 75 |.X *.X *| NDIR..u|
|00003550| 73 65 20 3c 73 79 73 2f | 6e 64 69 72 2e 68 3e 20 |se <sys/|ndir.h> |
|00003560| 69 6e 73 74 65 61 64 20 | 6f 66 20 3c 73 79 73 2f |instead |of <sys/|
|00003570| 64 69 72 2e 68 3e 0a 58 | 20 2a 20 4e 45 57 44 49 |dir.h>.X| * NEWDI|
|00003580| 52 20 6d 75 73 74 20 62 | 65 20 64 65 66 69 6e 65 |R must b|e define|
|00003590| 64 20 61 73 20 77 65 6c | 6c 2e 0a 58 20 2a 0a 58 |d as wel|l..X *.X|
|000035a0| 20 2a 20 44 49 52 45 4e | 54 09 75 73 65 20 50 6f | * DIREN|T.use Po|
|000035b0| 73 69 78 20 64 69 72 65 | 63 74 6f 72 79 20 6c 69 |six dire|ctory li|
|000035c0| 62 72 61 72 79 2e 0a 58 | 20 2a 20 4e 45 57 44 49 |brary..X| * NEWDI|
|000035d0| 52 20 6d 75 73 74 20 62 | 65 20 64 65 66 69 6e 65 |R must b|e define|
|000035e0| 64 20 61 73 20 77 65 6c | 6c 2e 0a 58 20 2a 0a 58 |d as wel|l..X *.X|
|000035f0| 20 2a 20 53 59 53 56 09 | 09 75 73 65 20 67 65 74 | * SYSV.|.use get|
|00003600| 63 77 64 20 69 6e 73 74 | 65 61 64 20 6f 66 20 67 |cwd inst|ead of g|
|00003610| 65 74 77 64 2c 20 73 74 | 72 72 63 68 72 20 69 6e |etwd, st|rrchr in|
|00003620| 73 74 65 61 64 20 6f 66 | 20 72 69 6e 64 65 78 2e |stead of| rindex.|
|00003630| 0a 58 20 2a 2f 0a 76 6f | 69 64 20 72 65 5f 6f 72 |.X */.vo|id re_or|
|00003640| 69 65 6e 74 28 29 3b 0a | 76 6f 69 64 20 64 69 73 |ient();.|void dis|
|00003650| 61 72 6d 5f 63 61 6c 6c | 62 61 63 6b 28 29 3b 0a |arm_call|back();.|
|00003660| 76 6f 69 64 20 61 63 74 | 69 76 61 74 65 5f 63 61 |void act|ivate_ca|
|00003670| 6c 6c 62 61 63 6b 28 29 | 3b 0a 76 6f 69 64 20 61 |llback()|;.void a|
|00003680| 72 6d 5f 63 61 6c 6c 62 | 61 63 6b 28 29 3b 0a 76 |rm_callb|ack();.v|
|00003690| 6f 69 64 20 63 6c 69 63 | 6b 42 28 29 3b 0a 76 6f |oid clic|kB();.vo|
|000036a0| 69 64 20 77 5f 70 72 69 | 6e 74 28 29 3b 0a 76 6f |id w_pri|nt();.vo|
|000036b0| 69 64 20 62 75 74 74 6f | 6e 5f 70 72 69 6e 74 28 |id butto|n_print(|
|000036c0| 29 3b 0a 76 6f 69 64 20 | 70 6f 70 5f 64 61 74 61 |);.void |pop_data|
|000036d0| 28 29 3b 0a 76 6f 69 64 | 20 76 69 65 77 28 29 3b |();.void| view();|
|000036e0| 0a 76 6f 69 64 20 71 75 | 69 74 5f 62 28 29 3b 0a |.void qu|it_b();.|
|000036f0| 76 6f 69 64 20 71 75 69 | 74 5f 62 5f 70 6f 70 28 |void qui|t_b_pop(|
|00003700| 29 3b 0a 76 6f 69 64 20 | 64 6f 5f 6d 65 6e 75 28 |);.void |do_menu(|
|00003710| 29 2c 20 73 74 6f 67 67 | 6c 65 28 29 2c 20 68 74 |), stogg|le(), ht|
|00003720| 6f 67 67 6c 65 28 29 2c | 20 67 74 6f 67 67 6c 65 |oggle(),| gtoggle|
|00003730| 28 29 2c 20 70 72 69 6e | 74 5f 74 72 65 65 28 29 |(), prin|t_tree()|
|00003740| 3b 0a 58 0a 73 74 61 74 | 69 63 09 63 68 61 72 20 |;.X.stat|ic.char |
|00003750| 53 63 63 73 69 64 5b 5d | 3d 22 40 28 23 29 78 64 |Sccsid[]|="@(#)xd|
|00003760| 74 72 65 65 2e 63 09 32 | 2e 30 09 34 2f 33 30 2f |tree.c.2|.0.4/30/|
|00003770| 39 32 22 3b 0a 58 0a 23 | 69 66 64 65 66 20 53 5f |92";.X.#|ifdef S_|
|00003780| 49 46 4c 4e 4b 0a 73 74 | 61 74 69 63 20 20 63 68 |IFLNK.st|atic ch|
|00003790| 61 72 20 52 63 73 69 64 | 5b 5d 20 3d 22 24 48 65 |ar Rcsid|[] ="$He|
|000037a0| 61 64 65 72 3a 20 78 64 | 74 72 65 65 2e 63 2c 76 |ader: xd|tree.c,v|
|000037b0| 20 32 2e 31 20 39 32 2f | 30 34 2f 33 30 20 31 38 | 2.1 92/|04/30 18|
|000037c0| 3a 30 31 3a 31 32 20 6b | 6b 20 45 78 70 20 24 22 |:01:12 k|k Exp $"|
|000037d0| 3b 0a 23 65 6e 64 69 66 | 20 2f 2a 20 53 5f 49 46 |;.#endif| /* S_IF|
|000037e0| 4c 4e 4b 20 2a 2f 0a 58 | 0a 23 69 6e 63 6c 75 64 |LNK */.X|.#includ|
|000037f0| 65 09 3c 73 74 64 69 6f | 2e 68 3e 0a 23 69 6e 63 |e.<stdio|.h>.#inc|
|00003800| 6c 75 64 65 09 3c 73 79 | 73 2f 74 79 70 65 73 2e |lude.<sy|s/types.|
|00003810| 68 3e 0a 23 69 6e 63 6c | 75 64 65 09 3c 73 79 73 |h>.#incl|ude.<sys|
|00003820| 2f 73 74 61 74 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |/stat.h>|.#includ|
|00003830| 65 09 3c 74 69 6d 65 2e | 68 3e 0a 23 69 6e 63 6c |e.<time.|h>.#incl|
|00003840| 75 64 65 09 3c 73 74 72 | 69 6e 67 2e 68 3e 0a 23 |ude.<str|ing.h>.#|
|00003850| 69 6e 63 6c 75 64 65 09 | 3c 73 74 64 6c 69 62 2e |include.|<stdlib.|
|00003860| 68 3e 0a 58 0a 2f 2a 20 | 49 6e 63 6c 75 64 65 20 |h>.X./* |Include |
|00003870| 66 69 6c 65 73 20 66 6f | 72 20 58 20 77 69 6e 64 |files fo|r X wind|
|00003880| 6f 77 73 20 2a 2f 0a 23 | 69 6e 63 6c 75 64 65 20 |ows */.#|include |
|00003890| 3c 58 31 31 2f 49 6e 74 | 72 69 6e 73 69 63 2e 68 |<X11/Int|rinsic.h|
|000038a0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 58 31 31 2f |>.#inclu|de <X11/|
|000038b0| 53 68 65 6c 6c 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |Shell.h>|.#includ|
|000038c0| 65 20 3c 58 31 31 2f 53 | 74 72 69 6e 67 44 65 66 |e <X11/S|tringDef|
|000038d0| 73 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 58 |s.h>.#in|clude <X|
|000038e0| 6d 2f 58 6d 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |m/Xm.h>.|#include|
|000038f0| 20 3c 58 6d 2f 4c 61 62 | 65 6c 2e 68 3e 0a 23 69 | <Xm/Lab|el.h>.#i|
|00003900| 6e 63 6c 75 64 65 20 3c | 58 6d 2f 50 75 73 68 42 |nclude <|Xm/PushB|
|00003910| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 58 6d |.h>.#inc|lude <Xm|
|00003920| 2f 50 75 73 68 42 47 2e | 68 3e 0a 23 69 6e 63 6c |/PushBG.|h>.#incl|
|00003930| 75 64 65 20 3c 58 6d 2f | 43 61 73 63 61 64 65 42 |ude <Xm/|CascadeB|
|00003940| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 58 6d |.h>.#inc|lude <Xm|
|00003950| 2f 52 6f 77 43 6f 6c 75 | 6d 6e 2e 68 3e 0a 23 69 |/RowColu|mn.h>.#i|
|00003960| 6e 63 6c 75 64 65 20 3c | 58 6d 2f 53 63 72 6f 6c |nclude <|Xm/Scrol|
|00003970| 6c 65 64 57 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ledW.h>.|#include|
|00003980| 20 3c 58 6d 2f 53 65 70 | 61 72 61 74 6f 72 2e 68 | <Xm/Sep|arator.h|
|00003990| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 58 6d 2f 4d |>.#inclu|de <Xm/M|
|000039a0| 61 69 6e 57 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ainW.h>.|#include|
|000039b0| 20 3c 58 6d 2f 46 72 61 | 6d 65 2e 68 3e 0a 23 69 | <Xm/Fra|me.h>.#i|
|000039c0| 6e 63 6c 75 64 65 20 3c | 58 6d 2f 46 6f 72 6d 2e |nclude <|Xm/Form.|
|000039d0| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 58 6d 2f |h>.#incl|ude <Xm/|
|000039e0| 54 65 78 74 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |Text.h>.|#include|
|000039f0| 20 3c 58 6d 2f 54 6f 67 | 67 6c 65 42 2e 68 3e 0a | <Xm/Tog|gleB.h>.|
|00003a00| 23 69 6e 63 6c 75 64 65 | 20 22 54 72 65 65 2e 68 |#include| "Tree.h|
|00003a10| 22 0a 58 0a 2f 2a 20 4f | 72 69 67 69 6e 61 6c 20 |".X./* O|riginal |
|00003a20| 44 65 66 73 20 2a 2f 0a | 23 69 66 64 65 66 09 53 |Defs */.|#ifdef.S|
|00003a30| 54 41 54 53 0a 23 20 69 | 6e 63 6c 75 64 65 09 3c |TATS.# i|nclude.<|
|00003a40| 70 77 64 2e 68 3e 0a 23 | 20 69 6e 63 6c 75 64 65 |pwd.h>.#| include|
|00003a50| 09 3c 67 72 70 2e 68 3e | 0a 23 65 6e 64 69 66 09 |.<grp.h>|.#endif.|
|00003a60| 2f 2a 20 53 54 41 54 53 | 20 2a 2f 0a 58 0a 23 69 |/* STATS| */.X.#i|
|00003a70| 66 64 65 66 09 4e 45 57 | 44 49 52 0a 23 20 69 66 |fdef.NEW|DIR.# if|
|00003a80| 09 44 49 52 45 4e 54 0a | 23 20 20 69 6e 63 6c 75 |.DIRENT.|# inclu|
|00003a90| 64 65 09 3c 64 69 72 65 | 6e 74 2e 68 3e 0a 23 20 |de.<dire|nt.h>.# |
|00003aa0| 20 64 65 66 69 6e 65 09 | 64 69 72 65 63 74 09 64 | define.|direct.d|
|00003ab0| 69 72 65 6e 74 0a 23 20 | 65 6c 73 65 0a 23 20 20 |irent.# |else.# |
|00003ac0| 69 66 09 4e 44 49 52 0a | 23 20 20 20 69 6e 63 6c |if.NDIR.|# incl|
|00003ad0| 75 64 65 09 3c 73 79 73 | 2f 6e 64 69 72 2e 68 3e |ude.<sys|/ndir.h>|
|00003ae0| 0a 23 20 20 65 6c 73 65 | 0a 23 20 20 20 69 6e 63 |.# else|.# inc|
|00003af0| 6c 75 64 65 09 3c 73 79 | 73 2f 64 69 72 2e 68 3e |lude.<sy|s/dir.h>|
|00003b00| 0a 23 20 20 65 6e 64 69 | 66 0a 23 20 65 6e 64 69 |.# endi|f.# endi|
|00003b10| 66 20 2f 2a 20 44 49 52 | 45 4e 54 20 2a 2f 0a 23 |f /* DIR|ENT */.#|
|00003b20| 65 6c 73 65 0a 23 20 69 | 6e 63 6c 75 64 65 09 3c |else.# i|nclude.<|
|00003b30| 73 79 73 2f 64 69 72 2e | 68 3e 0a 23 65 6e 64 69 |sys/dir.|h>.#endi|
|00003b40| 66 09 2f 2a 20 4e 45 57 | 44 49 52 20 2a 2f 0a 58 |f./* NEW|DIR */.X|
|00003b50| 0a 2f 2a 20 64 65 66 61 | 75 6c 74 20 63 6f 6c 75 |./* defa|ult colu|
|00003b60| 6d 6e 20 6c 65 6e 67 74 | 68 20 77 68 65 6e 20 2d |mn lengt|h when -|
|00003b70| 76 20 69 73 20 67 69 76 | 65 6e 20 2a 2f 0a 23 69 |v is giv|en */.#i|
|00003b80| 66 64 65 66 20 75 6e 6f | 73 0a 23 64 65 66 69 6e |fdef uno|s.#defin|
|00003b90| 65 20 44 45 46 43 4f 4c | 57 49 44 09 33 30 0a 23 |e DEFCOL|WID.30.#|
|00003ba0| 65 6c 73 65 0a 23 64 65 | 66 69 6e 65 20 44 45 46 |else.#de|fine DEF|
|00003bb0| 43 4f 4c 57 49 44 20 20 | 20 20 20 20 20 31 34 0a |COLWID | 14.|
|00003bc0| 23 65 6e 64 69 66 0a 58 | 0a 23 69 6e 63 6c 75 64 |#endif.X|.#includ|
|00003bd0| 65 09 3c 73 79 73 2f 70 | 61 72 61 6d 2e 68 3e 09 |e.<sys/p|aram.h>.|
|00003be0| 2f 2a 20 66 6f 72 20 4d | 41 58 50 41 54 48 4c 45 |/* for M|AXPATHLE|
|00003bf0| 4e 20 2a 2f 0a 23 69 66 | 6e 64 65 66 20 4d 41 58 |N */.#if|ndef MAX|
|00003c00| 50 41 54 48 4c 45 4e 0a | 23 20 69 66 64 65 66 20 |PATHLEN.|# ifdef |
|00003c10| 4c 50 4e 4d 41 58 09 09 | 2f 2a 20 58 65 6e 69 78 |LPNMAX..|/* Xenix|
|00003c20| 20 66 72 6f 6d 20 73 74 | 64 69 6f 2e 68 20 2a 2f | from st|dio.h */|
|00003c30| 0a 23 20 20 64 65 66 69 | 6e 65 20 4d 41 58 50 41 |.# defi|ne MAXPA|
|00003c40| 54 48 4c 45 4e 20 28 4c | 50 4e 4d 41 58 20 2d 20 |THLEN (L|PNMAX - |
|00003c50| 31 29 0a 23 20 65 6c 73 | 65 0a 23 20 20 69 6e 63 |1).# els|e.# inc|
|00003c60| 6c 75 64 65 20 3c 6c 69 | 6d 69 74 73 2e 68 3e 09 |lude <li|mits.h>.|
|00003c70| 2f 2a 20 74 72 79 20 73 | 6f 6d 65 77 68 65 72 65 |/* try s|omewhere|
|00003c80| 20 65 6c 73 65 20 2a 2f | 0a 23 20 20 64 65 66 69 | else */|.# defi|
|00003c90| 6e 65 20 4d 41 58 50 41 | 54 48 4c 45 4e 20 50 41 |ne MAXPA|THLEN PA|
|00003ca0| 54 48 5f 4d 41 58 0a 23 | 20 65 6e 64 69 66 0a 23 |TH_MAX.#| endif.#|
|00003cb0| 65 6e 64 69 66 0a 58 0a | 23 69 66 6e 64 65 66 20 |endif.X.|#ifndef |
|00003cc0| 4d 41 58 4e 41 4d 4c 45 | 4e 09 2f 2a 20 64 65 66 |MAXNAMLE|N./* def|
|00003cd0| 69 6e 65 64 20 77 69 74 | 68 20 4e 45 57 44 49 52 |ined wit|h NEWDIR|
|00003ce0| 20 72 6f 75 74 69 6e 65 | 73 20 2a 2f 0a 23 20 69 | routine|s */.# i|
|00003cf0| 66 64 65 66 20 4c 46 4e | 4d 41 58 09 09 2f 2a 20 |fdef LFN|MAX../* |
|00003d00| 58 65 6e 69 78 20 61 67 | 61 69 6e 20 2a 2f 0a 23 |Xenix ag|ain */.#|
|00003d10| 20 20 64 65 66 69 6e 65 | 20 4d 41 58 4e 41 4d 4c | define| MAXNAML|
|00003d20| 45 4e 20 28 4c 46 4e 4d | 41 58 20 2d 20 31 29 0a |EN (LFNM|AX - 1).|
|00003d30| 23 20 65 6c 73 65 0a 23 | 20 20 64 65 66 69 6e 65 |# else.#| define|
|00003d40| 20 4d 41 58 4e 41 4d 4c | 45 4e 20 20 20 20 20 20 | MAXNAML|EN |
|00003d50| 44 45 46 43 4f 4c 57 49 | 44 0a 23 20 65 6e 64 69 |DEFCOLWI|D.# endi|
|00003d60| 66 0a 23 65 6e 64 69 66 | 0a 58 0a 23 64 65 66 69 |f.#endif|.X.#defi|
|00003d70| 6e 65 09 44 45 50 54 48 | 20 31 30 09 2f 2a 20 6d |ne.DEPTH| 10./* m|
|00003d80| 61 78 69 6d 75 6d 20 64 | 65 70 74 68 20 74 68 61 |aximum d|epth tha|
|00003d90| 74 20 64 74 72 65 65 20 | 77 69 6c 6c 20 67 6f 20 |t dtree |will go |
|00003da0| 2a 2f 0a 23 64 65 66 69 | 6e 65 09 49 4e 49 54 49 |*/.#defi|ne.INITI|
|00003db0| 41 4c 5f 45 4c 45 4d 09 | 31 30 30 09 2f 2a 20 69 |AL_ELEM.|100./* i|
|00003dc0| 6e 69 74 69 61 6c 20 23 | 20 6f 66 20 65 6c 65 6d |nitial #| of elem|
|00003dd0| 65 6e 74 73 20 66 6f 72 | 20 6c 69 73 74 20 6f 66 |ents for| list of|
|00003de0| 20 66 69 6c 65 73 20 2a | 2f 0a 58 0a 23 64 65 66 | files *|/.X.#def|
|00003df0| 69 6e 65 09 46 46 49 52 | 53 54 09 32 09 2f 2a 20 |ine.FFIR|ST.2./* |
|00003e00| 73 6f 72 74 20 66 69 6c | 65 73 20 66 69 72 73 74 |sort fil|es first|
|00003e10| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 44 46 49 52 | */.#def|ine DFIR|
|00003e20| 53 54 09 31 09 2f 2a 20 | 73 6f 72 74 20 64 69 72 |ST.1./* |sort dir|
|00003e30| 65 63 74 6f 72 69 65 73 | 20 66 69 72 73 74 20 2a |ectories| first *|
|00003e40| 2f 0a 23 64 65 66 69 6e | 65 09 46 41 49 4c 09 2d |/.#defin|e.FAIL.-|
|00003e50| 31 09 2f 2a 20 66 61 69 | 6c 75 72 65 20 72 65 74 |1./* fai|lure ret|
|00003e60| 75 72 6e 20 73 74 61 74 | 75 73 20 6f 66 20 73 79 |urn stat|us of sy|
|00003e70| 73 20 63 61 6c 6c 73 20 | 2a 2f 0a 23 64 65 66 69 |s calls |*/.#defi|
|00003e80| 6e 65 09 47 52 45 41 54 | 45 52 09 31 09 2f 2a 20 |ne.GREAT|ER.1./* |
|00003e90| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 20 6f 66 20 |return v|alue of |
|00003ea0| 73 74 72 63 6d 70 20 69 | 66 20 61 72 67 31 20 3e |strcmp i|f arg1 >|
|00003eb0| 20 61 72 67 32 20 2a 2f | 0a 23 64 65 66 69 6e 65 | arg2 */|.#define|
|00003ec0| 09 4c 45 53 53 54 48 41 | 4e 20 2d 31 09 2f 2a 20 |.LESSTHA|N -1./* |
|00003ed0| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 20 6f 66 20 |return v|alue of |
|00003ee0| 73 74 72 63 6d 70 20 69 | 66 20 61 72 67 31 20 3c |strcmp i|f arg1 <|
|00003ef0| 20 61 72 67 32 20 2a 2f | 0a 23 64 65 66 69 6e 65 | arg2 */|.#define|
|00003f00| 09 53 41 4d 45 09 30 09 | 2f 2a 20 72 65 74 75 72 |.SAME.0.|/* retur|
|00003f10| 6e 20 76 61 6c 75 65 20 | 6f 66 20 73 74 72 63 6d |n value |of strcm|
|00003f20| 70 20 69 66 20 61 72 67 | 31 20 3d 3d 20 61 72 67 |p if arg|1 == arg|
|00003f30| 32 20 2a 2f 0a 58 0a 23 | 69 66 64 65 66 09 53 54 |2 */.X.#|ifdef.ST|
|00003f40| 41 54 53 0a 63 68 61 72 | 20 2a 67 65 74 6d 6f 64 |ATS.char| *getmod|
|00003f50| 65 28 29 3b 0a 63 68 61 | 72 20 2a 67 75 69 64 28 |e();.cha|r *guid(|
|00003f60| 29 3b 0a 63 68 61 72 20 | 2a 67 67 69 64 28 29 3b |);.char |*ggid();|
|00003f70| 0a 73 74 72 75 63 74 20 | 70 61 73 73 77 64 20 2a |.struct |passwd *|
|00003f80| 67 65 74 70 77 75 69 64 | 28 29 3b 0a 73 74 72 75 |getpwuid|();.stru|
|00003f90| 63 74 20 67 72 6f 75 70 | 20 2a 67 65 74 67 72 67 |ct group| *getgrg|
|00003fa0| 69 64 28 29 3b 0a 23 65 | 6e 64 69 66 20 2f 2a 20 |id();.#e|ndif /* |
|00003fb0| 53 54 41 54 53 20 2a 2f | 0a 58 0a 23 69 66 64 65 |STATS */|.X.#ifde|
|00003fc0| 66 09 53 59 53 56 0a 23 | 64 65 66 69 6e 65 09 72 |f.SYSV.#|define.r|
|00003fd0| 69 6e 64 65 78 09 73 74 | 72 72 63 68 72 0a 23 65 |index.st|rrchr.#e|
|00003fe0| 6e 64 69 66 20 2f 2a 20 | 53 59 53 56 20 2a 2f 0a |ndif /* |SYSV */.|
|00003ff0| 58 0a 63 68 61 72 20 2a | 67 65 74 77 64 28 29 3b |X.char *|getwd();|
|00004000| 0a 63 68 61 72 20 2a 72 | 69 6e 64 65 78 28 29 3b |.char *r|index();|
|00004010| 0a 2f 2a 20 0a 69 6e 74 | 20 71 73 6f 72 74 28 29 |./* .int| qsort()|
|00004020| 3b 0a 63 68 61 72 20 2a | 6d 61 6c 6c 6f 63 28 29 |;.char *|malloc()|
|00004030| 3b 0a 63 68 61 72 20 2a | 72 65 61 6c 6c 6f 63 28 |;.char *|realloc(|
|00004040| 29 3b 0a 2a 2f 0a 6c 6f | 6e 67 20 74 69 6d 65 28 |);.*/.lo|ng time(|
|00004050| 29 3b 0a 58 0a 69 6e 74 | 20 63 6f 6d 70 61 72 28 |);.X.int| compar(|
|00004060| 29 3b 09 09 09 2f 2a 20 | 63 6f 6d 70 61 72 69 73 |);.../* |comparis|
|00004070| 6f 6e 20 72 6f 75 74 69 | 6e 65 20 66 6f 72 20 71 |on routi|ne for q|
|00004080| 73 6f 72 74 20 2a 2f 0a | 63 68 61 72 20 2a 78 6d |sort */.|char *xm|
|00004090| 61 6c 6c 6f 63 28 29 3b | 0a 63 68 61 72 20 2a 78 |alloc();|.char *x|
|000040a0| 72 65 61 6c 6c 6f 63 28 | 29 3b 0a 58 0a 23 69 66 |realloc(|);.X.#if|
|000040b0| 64 65 66 09 53 59 53 56 | 0a 23 64 65 66 69 6e 65 |def.SYSV|.#define|
|000040c0| 20 67 65 74 77 64 28 62 | 75 66 29 20 67 65 74 63 | getwd(b|uf) getc|
|000040d0| 77 64 28 28 62 75 66 29 | 2c 20 4d 41 58 50 41 54 |wd((buf)|, MAXPAT|
|000040e0| 48 4c 45 4e 20 2b 20 31 | 29 0a 23 65 6e 64 69 66 |HLEN + 1|).#endif|
|000040f0| 20 2f 2a 20 53 59 53 56 | 20 2a 2f 0a 58 0a 69 6e | /* SYSV| */.X.in|
|00004100| 74 09 49 6e 64 65 78 20 | 3d 20 30 3b 09 09 2f 2a |t.Index |= 0;../*|
|00004110| 20 63 75 72 72 65 6e 74 | 20 65 6c 65 6d 65 6e 74 | current| element|
|00004120| 20 6f 66 20 6c 69 73 74 | 5b 5d 09 2a 2f 0a 69 6e | of list|[].*/.in|
|00004130| 74 20 20 20 20 20 43 4c | 65 6e 67 74 68 20 3d 20 |t CL|ength = |
|00004140| 30 3b 09 09 2f 2a 20 6d | 61 78 20 6c 65 6e 67 74 |0;../* m|ax lengt|
|00004150| 68 20 6f 66 20 61 20 63 | 6f 6c 75 6d 6e 20 20 20 |h of a c|olumn |
|00004160| 20 20 20 20 2a 2f 0a 69 | 6e 74 09 41 6c 6c 20 3d | */.i|nt.All =|
|00004170| 20 30 3b 09 09 2f 2a 20 | 61 6c 6c 20 21 3d 20 30 | 0;../* |all != 0|
|00004180| 3b 20 6c 69 73 74 20 6e | 6f 6e 2d 64 69 72 65 63 |; list n|on-direc|
|00004190| 74 6f 72 79 20 65 6e 74 | 72 69 65 73 20 2a 2f 0a |tory ent|ries */.|
|000041a0| 69 6e 74 09 46 69 6c 65 | 5f 64 69 72 20 3d 20 30 |int.File|_dir = 0|
|000041b0| 3b 09 09 2f 2a 20 66 6c | 61 67 20 66 6f 72 20 68 |;../* fl|ag for h|
|000041c0| 6f 77 20 74 6f 20 73 6f | 72 74 20 2a 2f 0a 69 6e |ow to so|rt */.in|
|000041d0| 74 09 53 6f 72 74 20 3d | 20 31 3b 09 09 2f 2a 20 |t.Sort =| 1;../* |
|000041e0| 66 6c 61 67 20 74 6f 20 | 63 61 75 73 65 20 73 6f |flag to |cause so|
|000041f0| 72 74 69 6e 67 20 6f 66 | 20 65 6e 74 72 69 65 73 |rting of| entries|
|00004200| 20 2a 2f 0a 69 6e 74 09 | 50 6f 69 6e 74 20 3d 20 | */.int.|Point = |
|00004210| 31 3b 09 09 2f 2a 20 73 | 6b 69 70 20 70 6f 69 6e |1;../* s|kip poin|
|00004220| 74 20 66 69 6c 65 73 20 | 69 66 20 73 65 74 09 2a |t files |if set.*|
|00004230| 2f 0a 69 6e 74 09 48 65 | 61 64 65 72 20 3d 20 30 |/.int.He|ader = 0|
|00004240| 3b 09 09 2f 2a 20 70 72 | 69 6e 74 20 76 65 72 62 |;../* pr|int verb|
|00004250| 6f 73 65 20 68 65 61 64 | 65 72 20 2a 2f 0a 69 6e |ose head|er */.in|
|00004260| 74 09 4d 61 78 65 73 5b | 44 45 50 54 48 5d 3b 09 |t.Maxes[|DEPTH];.|
|00004270| 09 2f 2a 20 61 72 72 61 | 79 20 6b 65 65 70 73 20 |./* arra|y keeps |
|00004280| 74 72 61 63 6b 20 6f 66 | 20 6d 61 78 20 6c 65 6e |track of| max len|
|00004290| 67 74 68 20 69 6e 20 63 | 6f 6c 75 6d 6e 73 20 2a |gth in c|olumns *|
|000042a0| 2f 0a 69 6e 74 09 4c 65 | 76 65 6c 20 3d 20 30 3b |/.int.Le|vel = 0;|
|000042b0| 09 09 2f 2a 20 63 6f 75 | 6e 74 65 72 20 66 6f 72 |../* cou|nter for|
|000042c0| 20 68 6f 77 20 64 65 65 | 70 20 77 65 20 61 72 65 | how dee|p we are|
|000042d0| 09 2a 2f 0a 69 6e 74 09 | 44 65 76 69 63 65 3b 09 |.*/.int.|Device;.|
|000042e0| 09 09 2f 2a 20 64 65 76 | 69 63 65 20 74 68 61 74 |../* dev|ice that|
|000042f0| 20 77 65 20 61 72 65 20 | 73 74 61 72 74 69 6e 67 | we are |starting|
|00004300| 20 74 72 65 65 20 6f 6e | 20 2a 2f 0a 69 6e 74 09 | tree on| */.int.|
|00004310| 58 64 65 76 20 3d 20 31 | 3b 09 09 2f 2a 20 73 65 |Xdev = 1|;../* se|
|00004320| 74 20 74 6f 20 61 6c 6c | 6f 77 20 63 72 6f 73 73 |t to all|ow cross|
|00004330| 69 6e 67 20 6f 66 20 64 | 65 76 69 63 65 73 20 2a |ing of d|evices *|
|00004340| 2f 0a 69 6e 74 09 56 61 | 72 73 70 61 63 65 73 20 |/.int.Va|rspaces |
|00004350| 3d 20 31 3b 09 09 2f 2a | 20 73 65 74 20 74 6f 20 |= 1;../*| set to |
|00004360| 61 6c 6c 6f 77 20 63 6f | 6d 70 61 63 74 69 6f 6e |allow co|mpaction|
|00004370| 20 6f 66 20 63 6f 6c 75 | 6d 6e 20 77 69 64 74 68 | of colu|mn width|
|00004380| 20 2a 2f 0a 23 69 66 64 | 65 66 09 53 54 41 54 53 | */.#ifd|ef.STATS|
|00004390| 0a 69 6e 74 09 47 66 6c | 61 67 20 3d 20 30 3b 09 |.int.Gfl|ag = 0;.|
|000043a0| 09 2f 2a 20 73 65 74 20 | 66 6f 72 20 67 72 6f 75 |./* set |for grou|
|000043b0| 70 20 73 74 61 74 73 20 | 69 6e 73 74 65 61 64 20 |p stats |instead |
|000043c0| 6f 66 20 6f 77 6e 65 72 | 20 2a 2f 0a 69 6e 74 09 |of owner| */.int.|
|000043d0| 4c 6f 6e 67 66 6c 67 20 | 3d 20 30 3b 09 09 2f 2a |Longflg |= 0;../*|
|000043e0| 20 73 65 74 20 66 6f 72 | 20 6c 6f 6e 67 20 6c 69 | set for| long li|
|000043f0| 73 74 69 6e 67 20 2a 2f | 0a 69 6e 74 09 43 6f 6d |sting */|.int.Com|
|00004400| 70 61 63 74 20 3d 20 30 | 3b 09 09 2f 2a 20 73 65 |pact = 0|;../* se|
|00004410| 74 20 66 6f 72 20 73 68 | 6f 72 74 65 6e 65 64 20 |t for sh|ortened |
|00004420| 6c 6f 6e 67 20 6c 69 73 | 74 69 6e 67 20 2a 2f 0a |long lis|ting */.|
|00004430| 23 65 6e 64 69 66 09 2f | 2a 20 53 54 41 54 53 20 |#endif./|* STATS |
|00004440| 2a 2f 0a 23 75 6e 64 65 | 66 20 53 74 61 74 75 73 |*/.#unde|f Status|
|00004450| 0a 73 74 72 75 63 74 09 | 73 74 61 74 20 53 74 61 |.struct.|stat Sta|
|00004460| 74 75 73 3b 0a 23 69 66 | 64 65 66 20 20 53 5f 49 |tus;.#if|def S_I|
|00004470| 46 4c 4e 4b 0a 73 74 72 | 75 63 74 20 20 73 74 61 |FLNK.str|uct sta|
|00004480| 74 20 4c 73 74 61 74 3b | 20 20 20 2f 2a 20 73 74 |t Lstat;| /* st|
|00004490| 61 74 20 6f 66 20 6c 69 | 6e 6b 2c 20 69 66 20 74 |at of li|nk, if t|
|000044a0| 68 65 72 65 20 69 73 20 | 6f 6e 65 20 2a 2f 0a 23 |here is |one */.#|
|000044b0| 65 6e 64 69 66 20 20 2f | 2a 20 53 5f 49 46 4c 4e |endif /|* S_IFLN|
|000044c0| 4b 20 2a 2f 0a 58 0a 73 | 74 72 75 63 74 20 65 6e |K */.X.s|truct en|
|000044d0| 74 72 79 20 7b 0a 58 09 | 69 6e 74 20 6e 65 78 74 |try {.X.|int next|
|000044e0| 3b 09 09 09 2f 2a 20 69 | 6e 64 65 78 20 74 6f 20 |;.../* i|ndex to |
|000044f0| 6e 65 78 74 20 65 6c 65 | 6d 65 6e 74 20 69 6e 20 |next ele|ment in |
|00004500| 6c 69 73 74 20 2a 2f 0a | 58 09 09 09 09 09 2f 2a |list */.|X...../*|
|00004510| 20 63 6f 75 6c 64 20 62 | 65 20 61 20 70 74 72 2c | could b|e a ptr,|
|00004520| 20 62 75 74 20 72 65 61 | 6c 6c 6f 63 28 29 20 2a | but rea|lloc() *|
|00004530| 2f 0a 58 09 09 09 09 09 | 2f 2a 20 6d 69 67 68 74 |/.X.....|/* might|
|00004540| 20 73 63 72 65 77 20 75 | 73 20 74 68 65 6e 20 2a | screw u|s then *|
|00004550| 2f 0a 23 69 66 64 65 66 | 09 53 54 41 54 53 0a 58 |/.#ifdef|.STATS.X|
|00004560| 09 6f 66 66 5f 74 09 65 | 5f 73 69 7a 65 3b 09 09 |.off_t.e|_size;..|
|00004570| 09 2f 2a 20 73 69 7a 65 | 20 69 6e 20 62 6c 6f 63 |./* size| in bloc|
|00004580| 6b 73 20 2a 2f 0a 58 09 | 75 6e 73 69 67 6e 65 64 |ks */.X.|unsigned|
|00004590| 20 73 68 6f 72 74 09 65 | 5f 6d 6f 64 65 3b 09 09 | short.e|_mode;..|
|000045a0| 2f 2a 20 66 69 6c 65 20 | 6d 6f 64 65 20 2a 2f 0a |/* file |mode */.|
|000045b0| 58 09 73 68 6f 72 74 09 | 65 5f 75 69 64 3b 09 09 |X.short.|e_uid;..|
|000045c0| 09 2f 2a 20 75 69 64 20 | 6f 66 20 6f 77 6e 65 72 |./* uid |of owner|
|000045d0| 20 2a 2f 0a 58 09 73 68 | 6f 72 74 09 65 5f 67 69 | */.X.sh|ort.e_gi|
|000045e0| 64 3b 09 09 09 2f 2a 20 | 67 69 64 20 6f 66 20 6f |d;.../* |gid of o|
|000045f0| 77 6e 65 72 20 2a 2f 0a | 23 65 6e 64 69 66 09 2f |wner */.|#endif./|
|00004600| 2a 20 53 54 41 54 53 20 | 2a 2f 0a 58 09 75 6e 73 |* STATS |*/.X.uns|
|00004610| 69 67 6e 65 64 20 73 68 | 6f 72 74 20 64 69 72 20 |igned sh|ort dir |
|00004620| 3a 20 31 3b 09 09 2f 2a | 20 65 6e 74 72 79 20 69 |: 1;../*| entry i|
|00004630| 73 20 61 20 64 69 72 65 | 63 74 6f 72 79 20 2a 2f |s a dire|ctory */|
|00004640| 0a 58 09 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |.X.unsig|ned shor|
|00004650| 74 20 6c 61 73 74 20 3a | 20 31 3b 09 2f 2a 20 6c |t last :| 1;./* l|
|00004660| 61 73 74 20 65 6e 74 72 | 79 20 69 6e 20 74 68 65 |ast entr|y in the|
|00004670| 20 64 69 72 2e 20 2a 2f | 0a 58 09 75 6e 73 69 67 | dir. */|.X.unsig|
|00004680| 6e 65 64 20 73 68 6f 72 | 74 20 64 65 76 20 3a 20 |ned shor|t dev : |
|00004690| 31 3b 09 09 2f 2a 20 73 | 65 74 20 69 66 20 73 61 |1;../* s|et if sa|
|000046a0| 6d 65 20 64 65 76 69 63 | 65 20 61 73 20 74 6f 70 |me devic|e as top|
|000046b0| 20 2a 2f 0a 58 09 75 6e | 73 69 67 6e 65 64 20 73 | */.X.un|signed s|
|000046c0| 68 6f 72 74 20 65 6e 64 | 20 3a 20 31 33 3b 09 2f |hort end| : 13;./|
|000046d0| 2a 20 69 6e 64 65 78 20 | 6f 66 20 6c 61 73 74 20 |* index |of last |
|000046e0| 73 75 62 64 69 72 20 65 | 6e 74 72 79 2a 2f 0a 58 |subdir e|ntry*/.X|
|000046f0| 09 63 68 61 72 09 65 5f | 6e 61 6d 65 5b 4d 41 58 |.char.e_|name[MAX|
|00004700| 4e 41 4d 4c 45 4e 20 2b | 20 31 5d 3b 09 2f 2a 20 |NAMLEN +| 1];./* |
|00004710| 6e 61 6d 65 20 66 72 6f | 6d 20 64 69 72 65 63 74 |name fro|m direct|
|00004720| 6f 72 79 20 65 6e 74 72 | 79 20 2a 2f 0a 58 09 63 |ory entr|y */.X.c|
|00004730| 68 61 72 20 20 20 20 70 | 61 74 68 5f 6e 61 6d 65 |har p|ath_name|
|00004740| 5b 4d 41 58 50 41 54 48 | 4c 45 4e 20 2b 20 31 5d |[MAXPATH|LEN + 1]|
|00004750| 3b 20 2f 2a 20 70 61 74 | 68 20 6e 61 6d 65 20 2a |; /* pat|h name *|
|00004760| 2f 0a 7d 20 2a 4c 69 73 | 74 2c 20 2a 53 61 76 65 |/.} *Lis|t, *Save|
|00004770| 4c 69 73 74 3b 0a 58 0a | 75 6e 73 69 67 6e 65 64 |List;.X.|unsigned|
|00004780| 20 53 69 7a 65 3b 09 09 | 09 09 2f 2a 20 68 6f 77 | Size;..|../* how|
|00004790| 20 62 69 67 20 6f 66 20 | 73 70 61 63 65 20 77 65 | big of |space we|
|000047a0| 27 76 65 20 6d 61 6c 6c | 6f 63 65 64 20 2a 2f 0a |'ve mall|oced */.|
|000047b0| 58 0a 63 68 61 72 09 2a | 53 70 61 63 65 73 3b 09 |X.char.*|Spaces;.|
|000047c0| 2f 2a 20 75 73 65 64 20 | 66 6f 72 20 6f 75 74 70 |/* used |for outp|
|000047d0| 75 74 20 2a 2f 0a 63 68 | 61 72 09 42 75 66 31 5b |ut */.ch|ar.Buf1[|
|000047e0| 42 55 46 53 49 5a 5d 3b | 09 2f 2a 20 62 75 66 66 |BUFSIZ];|./* buff|
|000047f0| 65 72 73 20 66 6f 72 20 | 73 74 64 69 6f 20 73 74 |ers for |stdio st|
|00004800| 75 66 66 2e 20 20 57 65 | 20 64 6f 6e 27 74 20 77 |uff. We| don't w|
|00004810| 61 6e 74 09 2a 2f 0a 23 | 69 66 6e 64 65 66 20 4e |ant.*/.#|ifndef N|
|00004820| 45 57 44 49 52 0a 63 68 | 61 72 09 42 75 66 32 5b |EWDIR.ch|ar.Buf2[|
|00004830| 42 55 46 53 49 5a 5d 3b | 09 2f 2a 20 61 6e 79 6f |BUFSIZ];|./* anyo|
|00004840| 6e 65 20 63 61 6c 6c 69 | 6e 67 20 6d 61 6c 6c 6f |ne calli|ng mallo|
|00004850| 63 2c 20 62 65 63 61 75 | 73 65 20 74 68 65 6e 09 |c, becau|se then.|
|00004860| 09 2a 2f 0a 58 09 09 09 | 2f 2a 20 72 65 61 6c 6c |.*/.X...|/* reall|
|00004870| 6f 63 28 29 20 77 69 6c | 6c 20 68 61 76 65 20 74 |oc() wil|l have t|
|00004880| 6f 20 6d 6f 76 65 20 74 | 68 65 20 77 68 6f 6c 65 |o move t|he whole|
|00004890| 20 6c 69 73 74 09 2a 2f | 0a 23 65 6e 64 69 66 0a | list.*/|.#endif.|
|000048a0| 23 64 65 66 69 6e 65 20 | 46 53 28 73 74 72 29 20 |#define |FS(str) |
|000048b0| 28 76 6f 69 64 29 20 66 | 70 72 69 6e 74 66 28 73 |(void) f|printf(s|
|000048c0| 74 64 65 72 72 2c 73 74 | 72 29 0a 58 0a 68 65 6c |tderr,st|r).X.hel|
|000048d0| 70 28 29 0a 7b 0a 58 09 | 09 09 09 09 66 70 72 69 |p().{.X.|....fpri|
|000048e0| 6e 74 66 28 73 74 64 65 | 72 72 2c 0a 23 69 66 64 |ntf(stde|rr,.#ifd|
|000048f0| 65 66 09 53 54 41 54 53 | 0a 58 09 09 22 55 73 61 |ef.STATS|.X.."Usa|
|00004900| 67 65 3a 20 78 64 74 72 | 65 65 20 5b 2d 61 44 66 |ge: xdtr|ee [-aDf|
|00004910| 67 68 48 6c 4e 70 73 74 | 76 78 5d 20 5b 2d 63 20 |ghHlNpst|vx] [-c |
|00004920| 6c 69 6e 65 6c 65 6e 67 | 74 68 5d 20 5b 64 69 72 |lineleng|th] [dir|
|00004930| 65 63 74 6f 72 79 20 2e | 2e 2e 20 5d 5c 6e 22 0a |ectory .|.. ]\n".|
|00004940| 23 65 6c 73 65 09 2f 2a | 20 53 54 41 54 53 20 2a |#else./*| STATS *|
|00004950| 2f 0a 58 09 09 22 55 73 | 61 67 65 3a 20 78 64 74 |/.X.."Us|age: xdt|
|00004960| 72 65 65 20 5b 2d 61 44 | 66 68 48 4e 70 74 76 78 |ree [-aD|fhHNptvx|
|00004970| 5d 20 5b 2d 63 20 6c 69 | 6e 65 6c 65 6e 67 74 68 |] [-c li|nelength|
|00004980| 5d 20 5b 64 69 72 65 63 | 74 6f 72 79 20 2e 2e 2e |] [direc|tory ...|
|00004990| 20 5d 5c 6e 22 0a 23 65 | 6e 64 69 66 09 2f 2a 20 | ]\n".#e|ndif./* |
|000049a0| 53 54 41 54 53 20 2a 2f | 0a 58 09 09 09 09 09 09 |STATS */|.X......|
|000049b0| 29 3b 0a 46 53 28 22 20 | 20 20 6f 70 74 69 6f 6e |);.FS(" | option|
|000049c0| 73 20 20 2d 61 29 20 69 | 6e 63 6c 75 64 65 20 6e |s -a) i|nclude n|
|000049d0| 6f 6e 2d 64 69 72 65 63 | 74 6f 72 79 20 65 6e 74 |on-direc|tory ent|
|000049e0| 72 69 65 73 20 69 6e 20 | 6c 69 73 74 69 6e 67 5c |ries in |listing\|
|000049f0| 6e 22 29 3b 0a 46 53 28 | 22 20 20 20 20 20 20 20 |n");.FS(|" |
|00004a00| 20 20 20 20 20 2d 44 29 | 20 73 6f 72 74 20 74 72 | -D)| sort tr|
|00004a10| 65 65 20 77 69 74 68 20 | 64 69 72 65 63 74 6f 72 |ee with |director|
|00004a20| 69 65 73 20 61 74 20 74 | 68 65 20 74 6f 70 5c 6e |ies at t|he top\n|
|00004a30| 22 29 3b 0a 46 53 28 22 | 20 20 20 20 20 20 20 20 |");.FS("| |
|00004a40| 20 20 20 20 2d 66 29 20 | 73 6f 72 74 20 74 72 65 | -f) |sort tre|
|00004a50| 65 20 77 69 74 68 20 66 | 69 6c 65 73 20 61 74 20 |e with f|iles at |
|00004a60| 74 68 65 20 74 6f 70 5c | 6e 22 29 3b 0a 46 53 28 |the top\|n");.FS(|
|00004a70| 22 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 68 29 |" | -h)|
|00004a80| 20 68 65 6c 70 20 2d 20 | 70 72 69 6e 74 73 20 74 | help - |prints t|
|00004a90| 68 69 73 20 6d 65 73 73 | 61 67 65 5c 6e 22 29 3b |his mess|age\n");|
|00004aa0| 0a 46 53 28 22 20 20 20 | 20 20 20 20 20 20 20 20 |.FS(" | |
|00004ab0| 20 2d 48 29 20 64 69 73 | 70 6c 61 79 20 61 20 68 | -H) dis|play a h|
|00004ac0| 65 61 64 65 72 20 61 74 | 20 74 6f 70 5c 6e 22 29 |eader at| top\n")|
|00004ad0| 3b 0a 46 53 28 22 20 20 | 20 20 20 20 20 20 20 20 |;.FS(" | |
|00004ae0| 20 20 2d 78 29 20 64 6f | 20 6e 6f 74 20 63 72 6f | -x) do| not cro|
|00004af0| 73 73 20 6d 6f 75 6e 74 | 65 64 20 66 69 6c 65 20 |ss mount|ed file |
|00004b00| 73 79 73 74 65 6d 73 2e | 5c 6e 22 29 3b 0a 46 53 |systems.|\n");.FS|
|00004b10| 28 22 20 20 20 20 20 20 | 20 20 20 20 20 20 2d 70 |(" | -p|
|00004b20| 29 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 73 20 |) includ|e files |
|00004b30| 73 74 61 72 74 69 6e 67 | 20 77 69 74 68 20 61 20 |starting| with a |
|00004b40| 2e 20 28 65 78 63 65 70 | 74 20 2e 20 61 6e 64 20 |. (excep|t . and |
|00004b50| 2e 2e 29 5c 6e 22 29 3b | 0a 46 53 28 22 20 20 20 |..)\n");|.FS(" |
|00004b60| 20 20 20 20 20 20 20 20 | 20 2d 4e 29 20 64 6f 20 | | -N) do |
|00004b70| 6e 6f 74 20 73 6f 72 74 | 20 74 68 65 20 74 72 65 |not sort| the tre|
|00004b80| 65 5c 6e 22 29 3b 0a 46 | 53 28 22 20 20 20 20 20 |e\n");.F|S(" |
|00004b90| 20 20 20 20 20 20 20 2d | 74 29 20 55 73 65 20 74 | -|t) Use t|
|00004ba0| 65 72 6d 69 6e 61 6c 20 | 6d 6f 64 65 2c 20 64 6f |erminal |mode, do|
|00004bb0| 6e 27 74 20 64 69 73 70 | 6c 61 79 20 6f 6e 20 61 |n't disp|lay on a|
|00004bc0| 6e 20 58 20 77 69 6e 64 | 6f 77 5c 6e 5c 6e 22 29 |n X wind|ow\n\n")|
|00004bd0| 3b 0a 46 53 28 22 20 20 | 20 20 20 20 20 20 20 20 |;.FS(" | |
|00004be0| 20 20 2d 6c 20 6c 65 76 | 65 6c 29 20 53 65 61 72 | -l lev|el) Sear|
|00004bf0| 63 68 20 6f 6e 6c 79 20 | 75 70 20 74 6f 20 74 68 |ch only |up to th|
|00004c00| 65 20 73 70 65 63 69 66 | 69 65 64 20 6c 65 76 65 |e specif|ied leve|
|00004c10| 6c 20 5c 6e 5c 6e 22 29 | 3b 0a 46 53 28 22 20 20 |l \n\n")|;.FS(" |
|00004c20| 20 20 20 20 20 20 20 20 | 20 20 56 61 6c 69 64 20 | | Valid |
|00004c30| 6f 6e 6c 79 20 69 66 20 | 2d 74 20 69 73 20 75 73 |only if |-t is us|
|00004c40| 65 64 2e 20 55 6e 64 65 | 72 20 64 65 66 61 75 6c |ed. Unde|r defaul|
|00004c50| 74 20 6d 6f 64 65 2c 20 | 61 20 63 6c 69 63 6b 20 |t mode, |a click |
|00004c60| 6f 6e 20 61 20 5c 6e 22 | 29 3b 0a 46 53 28 22 20 |on a \n"|);.FS(" |
|00004c70| 20 20 20 20 20 20 20 20 | 20 20 20 6e 6f 64 65 20 | | node |
|00004c80| 70 6f 70 73 20 75 70 20 | 61 20 6d 65 6e 75 20 77 |pops up |a menu w|
|00004c90| 69 74 68 20 6d 6f 64 65 | 2c 20 75 73 65 72 20 61 |ith mode|, user a|
|00004ca0| 6e 64 20 67 72 6f 75 70 | 20 69 64 73 2e 5c 6e 5c |nd group| ids.\n\|
|00004cb0| 6e 22 29 3b 0a 46 53 28 | 22 20 20 20 20 20 20 20 |n");.FS(|" |
|00004cc0| 20 20 20 20 20 2d 53 29 | 20 70 72 69 6e 74 20 73 | -S)| print s|
|00004cd0| 74 61 74 73 20 77 69 74 | 68 20 65 61 63 68 20 6c |tats wit|h each l|
|00004ce0| 69 73 74 69 6e 67 5c 6e | 22 29 3b 0a 46 53 28 22 |isting\n|");.FS("|
|00004cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d00| 69 66 20 62 6f 74 68 20 | 67 20 26 20 53 20 66 6c |if both |g & S fl|
|00004d10| 61 67 73 20 61 72 65 20 | 67 69 76 65 6e 2c 20 62 |ags are |given, b|
|00004d20| 6f 74 68 20 6f 77 6e 65 | 72 20 61 6e 64 5c 6e 22 |oth owne|r and\n"|
|00004d30| 29 3b 0a 46 53 28 22 20 | 20 20 20 20 20 20 20 20 |);.FS(" | |
|00004d40| 20 20 20 20 20 20 20 67 | 72 6f 75 70 20 77 69 6c | g|roup wil|
|00004d50| 6c 20 62 65 20 70 72 69 | 6e 74 65 64 5c 6e 22 29 |l be pri|nted\n")|
|00004d60| 3b 0a 46 53 28 22 20 20 | 20 20 20 20 20 20 20 20 |;.FS(" | |
|00004d70| 20 20 2d 67 29 20 73 61 | 6d 65 20 61 73 20 53 2c | -g) sa|me as S,|
|00004d80| 20 62 75 74 20 75 73 65 | 20 67 72 6f 75 70 20 6e | but use| group n|
|00004d90| 61 6d 65 20 69 6e 73 74 | 65 61 64 20 6f 66 20 75 |ame inst|ead of u|
|00004da0| 73 65 72 20 6e 61 6d 65 | 20 5c 6e 22 29 3b 0a 46 |ser name| \n");.F|
|00004db0| 53 28 22 20 20 20 20 20 | 20 20 20 20 20 20 20 2d |S(" | -|
|00004dc0| 73 29 20 75 73 65 20 73 | 68 6f 72 74 65 72 20 73 |s) use s|horter s|
|00004dd0| 74 61 74 73 2e 20 49 6d | 70 6c 69 65 73 20 2d 53 |tats. Im|plies -S|
|00004de0| 20 69 66 20 2d 67 20 69 | 73 6e 27 74 20 67 69 76 | if -g i|sn't giv|
|00004df0| 65 6e 2e 5c 6e 22 29 3b | 0a 46 53 28 22 20 20 20 |en.\n");|.FS(" |
|00004e00| 20 20 20 20 20 20 20 20 | 20 2d 76 29 20 76 61 72 | | -v) var|
|00004e10| 69 61 62 6c 65 20 6c 65 | 6e 67 74 68 20 63 6f 6c |iable le|ngth col|
|00004e20| 75 6d 6e 73 20 5c 6e 22 | 29 3b 0a 46 53 28 22 20 |umns \n"|);.FS(" |
|00004e30| 20 20 20 20 20 20 20 20 | 20 20 20 2d 63 20 6c 65 | | -c le|
|00004e40| 6e 67 74 68 29 20 73 65 | 74 20 6d 61 78 20 63 6f |ngth) se|t max co|
|00004e50| 6c 75 6d 6e 20 6c 65 6e | 67 74 68 20 74 6f 20 2d |lumn len|gth to -|
|00004e60| 6c 65 6e 67 74 68 2d 5c | 6e 22 29 3b 0a 46 53 28 |length-\|n");.FS(|
|00004e70| 22 20 20 58 2d 57 69 6e | 64 6f 77 20 76 65 72 73 |" X-Win|dow vers|
|00004e80| 69 6f 6e 20 32 2e 30 20 | 34 2f 33 30 2f 39 32 20 |ion 2.0 |4/30/92 |
|00004e90| 5c 6e 22 29 3b 0a 7d 0a | 69 6e 74 20 6e 65 77 6c |\n");.}.|int newl|
|00004ea0| 65 76 65 6c 20 3d 20 44 | 45 50 54 48 3b 0a 57 69 |evel = D|EPTH;.Wi|
|00004eb0| 64 67 65 74 20 62 6f 78 | 65 73 5b 31 32 5d 2c 20 |dget box|es[12], |
|00004ec0| 6f 70 74 69 6f 6e 73 3b | 0a 57 69 64 67 65 74 20 |options;|.Widget |
|00004ed0| 73 75 62 6d 65 6e 75 5f | 66 69 6c 65 2c 20 73 75 |submenu_|file, su|
|00004ee0| 62 6d 65 6e 75 5f 64 69 | 72 2c 66 69 6c 65 5f 6d |bmenu_di|r,file_m|
|00004ef0| 65 6e 75 2c 20 64 69 72 | 5f 6d 65 6e 75 3b 0a 73 |enu, dir|_menu;.s|
|00004f00| 74 72 75 63 74 20 65 6e | 74 72 79 20 2a 66 69 6c |truct en|try *fil|
|00004f10| 65 5f 70 6f 69 6e 74 65 | 72 3b 0a 69 6e 74 20 53 |e_pointe|r;.int S|
|00004f20| 5f 66 6c 61 67 20 3d 20 | 46 41 4c 53 45 3b 0a 69 |_flag = |FALSE;.i|
|00004f30| 6e 74 20 48 5f 66 6c 61 | 67 3d 46 41 4c 53 45 3b |nt H_fla|g=FALSE;|
|00004f40| 0a 69 6e 74 20 67 5f 66 | 6c 61 67 3d 46 41 4c 53 |.int g_f|lag=FALS|
|00004f50| 45 3b 0a 58 0a 58 0a 6d | 61 69 6e 28 61 72 67 63 |E;.X.X.m|ain(argc|
|00004f60| 2c 20 61 72 67 76 29 0a | 63 68 61 72 09 2a 2a 61 |, argv).|char.**a|
|00004f70| 72 67 76 3b 0a 69 6e 74 | 09 61 72 67 63 3b 0a 7b |rgv;.int|.argc;.{|
|00004f80| 0a 58 09 65 78 74 65 72 | 6e 20 69 6e 74 20 6f 70 |.X.exter|n int op|
|00004f90| 74 69 6e 64 3b 0a 58 09 | 65 78 74 65 72 6e 20 63 |tind;.X.|extern c|
|00004fa0| 68 61 72 20 2a 6f 70 74 | 61 72 67 3b 0a 58 09 72 |har *opt|arg;.X.r|
|00004fb0| 65 67 69 73 74 65 72 20 | 69 6e 74 20 69 3b 0a 58 |egister |int i;.X|
|00004fc0| 09 63 68 61 72 09 74 6f | 70 5b 4d 41 58 50 41 54 |.char.to|p[MAXPAT|
|00004fd0| 48 4c 45 4e 20 2b 20 31 | 5d 3b 09 2f 2a 20 61 72 |HLEN + 1|];./* ar|
|00004fe0| 72 61 79 20 66 6f 72 20 | 74 72 65 65 74 6f 70 20 |ray for |treetop |
|00004ff0| 6e 61 6d 65 20 2a 2f 0a | 58 09 63 68 61 72 09 68 |name */.|X.char.h|
|00005000| 6f 6d 65 5b 4d 41 58 50 | 41 54 48 4c 45 4e 20 2b |ome[MAXP|ATHLEN +|
|00005010| 20 31 5d 3b 09 2f 2a 20 | 73 74 61 72 74 69 6e 67 | 1];./* |starting|
|00005020| 20 64 69 72 20 66 6f 72 | 20 6d 75 6c 74 69 70 6c | dir for| multipl|
|00005030| 65 20 74 72 65 65 73 20 | 2a 2f 0a 58 09 63 68 61 |e trees |*/.X.cha|
|00005040| 72 09 2a 70 74 72 3b 0a | 58 0a 58 09 57 69 64 67 |r.*ptr;.|X.X.Widg|
|00005050| 65 74 20 74 6f 70 6c 65 | 76 65 6c 3b 0a 58 09 57 |et tople|vel;.X.W|
|00005060| 69 64 67 65 74 20 73 77 | 2c 20 74 72 65 65 2c 20 |idget sw|, tree, |
|00005070| 71 5f 62 75 74 74 6f 6e | 2c 20 77 5f 62 75 74 74 |q_button|, w_butt|
|00005080| 6f 6e 3b 0a 58 09 57 69 | 64 67 65 74 20 6d 65 6e |on;.X.Wi|dget men|
|00005090| 75 5f 62 61 72 2c 20 66 | 72 61 6d 65 2c 20 6d 61 |u_bar, f|rame, ma|
|000050a0| 69 6e 5f 77 2c 20 74 69 | 74 6c 65 3b 0a 58 09 41 |in_w, ti|tle;.X.A|
|000050b0| 72 67 20 20 20 20 77 61 | 72 67 73 5b 31 30 5d 2c |rg wa|rgs[10],|
|000050c0| 61 72 67 5b 31 35 5d 3b | 0a 58 09 69 6e 74 20 20 |arg[15];|.X.int |
|000050d0| 20 20 66 6c 61 67 58 3d | 31 3b 09 09 09 2f 2a 20 | flagX=|1;.../* |
|000050e0| 75 73 65 20 58 20 77 69 | 6e 64 6f 77 73 20 61 73 |use X wi|ndows as|
|000050f0| 20 64 65 66 61 75 6c 74 | 20 2a 2f 0a 58 09 57 69 | default| */.X.Wi|
|00005100| 64 67 65 74 20 71 75 69 | 74 5f 6d 65 6e 75 2c 20 |dget qui|t_menu, |
|00005110| 65 78 69 74 5f 62 2c 20 | 72 65 6f 72 69 65 6e 74 |exit_b, |reorient|
|00005120| 3b 0a 58 09 69 6e 74 20 | 72 65 61 6c 6c 79 5f 71 |;.X.int |really_q|
|00005130| 75 69 74 2c 20 6e 3b 0a | 58 0a 58 09 73 65 74 62 |uit, n;.|X.X.setb|
|00005140| 75 66 28 73 74 64 6f 75 | 74 2c 20 42 75 66 31 29 |uf(stdou|t, Buf1)|
|00005150| 3b 0a 58 0a 58 09 77 68 | 69 6c 65 20 28 28 69 20 |;.X.X.wh|ile ((i |
|00005160| 3d 20 67 65 74 6f 70 74 | 20 28 61 72 67 63 2c 20 |= getopt| (argc, |
|00005170| 61 72 67 76 2c 0a 23 69 | 66 64 65 66 20 53 54 41 |argv,.#i|fdef STA|
|00005180| 54 53 0a 58 09 09 09 20 | 20 20 20 22 68 61 44 66 |TS.X... | "haDf|
|00005190| 67 48 6c 3a 4e 70 73 53 | 76 78 74 63 3a 22 0a 23 |gHl:NpsS|vxtc:".#|
|000051a0| 65 6c 73 65 0a 58 09 09 | 09 20 20 20 20 22 68 61 |else.X..|. "ha|
|000051b0| 44 66 48 6c 3a 4e 70 76 | 78 74 63 3a 22 0a 23 65 |DfHl:Npv|xtc:".#e|
|000051c0| 6e 64 69 66 20 2f 2a 20 | 53 54 41 54 53 20 2a 2f |ndif /* |STATS */|
|000051d0| 0a 58 09 09 09 20 20 20 | 20 29 29 20 21 3d 20 45 |.X... | )) != E|
|000051e0| 4f 46 29 20 7b 0a 58 09 | 09 73 77 69 74 63 68 20 |OF) {.X.|.switch |
|000051f0| 28 69 29 20 7b 0a 58 09 | 09 09 09 63 61 73 65 20 |(i) {.X.|...case |
|00005200| 27 61 27 3a 0a 58 09 09 | 09 09 09 41 6c 6c 20 3d |'a':.X..|...All =|
|00005210| 20 31 3b 0a 58 09 09 09 | 09 09 62 72 65 61 6b 3b | 1;.X...|..break;|
|00005220| 0a 58 09 09 09 09 63 61 | 73 65 20 27 63 27 3a 0a |.X....ca|se 'c':.|
|00005230| 58 09 09 09 09 09 43 4c | 65 6e 67 74 68 20 3d 20 |X.....CL|ength = |
|00005240| 61 74 6f 69 28 6f 70 74 | 61 72 67 29 3b 0a 58 09 |atoi(opt|arg);.X.|
|00005250| 09 09 09 09 69 66 20 28 | 43 4c 65 6e 67 74 68 20 |....if (|CLength |
|00005260| 3e 20 4d 41 58 4e 41 4d | 4c 45 4e 29 0a 58 09 09 |> MAXNAM|LEN).X..|
|00005270| 09 09 09 09 43 4c 65 6e | 67 74 68 20 3d 20 4d 41 |....CLen|gth = MA|
|00005280| 58 4e 41 4d 4c 45 4e 3b | 0a 58 09 09 09 09 09 65 |XNAMLEN;|.X.....e|
|00005290| 6c 73 65 20 69 66 20 28 | 43 4c 65 6e 67 74 68 20 |lse if (|CLength |
|000052a0| 3c 20 31 29 0a 58 09 09 | 09 09 09 09 43 4c 65 6e |< 1).X..|....CLen|
|000052b0| 67 74 68 20 3d 20 44 45 | 46 43 4f 4c 57 49 44 3b |gth = DE|FCOLWID;|
|000052c0| 0a 58 09 09 09 09 09 62 | 72 65 61 6b 3b 0a 58 09 |.X.....b|reak;.X.|
|000052d0| 09 09 09 63 61 73 65 20 | 27 6c 27 3a 0a 58 09 09 |...case |'l':.X..|
|000052e0| 09 09 09 6e 65 77 6c 65 | 76 65 6c 20 3d 20 61 74 |...newle|vel = at|
|000052f0| 6f 69 28 6f 70 74 61 72 | 67 29 3b 0a 58 09 09 09 |oi(optar|g);.X...|
|00005300| 09 09 69 66 28 6e 65 77 | 6c 65 76 65 6c 20 3e 20 |..if(new|level > |
|00005310| 44 45 50 54 48 29 20 7b | 0a 58 09 09 09 09 09 6e |DEPTH) {|.X.....n|
|00005320| 65 77 6c 65 76 65 6c 20 | 3d 20 44 45 50 54 48 3b |ewlevel |= DEPTH;|
|00005330| 0a 58 09 09 09 09 09 66 | 70 72 69 6e 74 66 28 73 |.X.....f|printf(s|
|00005340| 74 64 65 72 72 2c 22 57 | 61 72 6e 69 6e 67 3a 20 |tderr,"W|arning: |
|00005350| 44 65 70 74 68 20 69 73 | 20 6c 69 6d 69 74 65 64 |Depth is| limited|
|00005360| 20 62 79 20 44 45 50 54 | 48 3d 25 64 5c 6e 22 2c | by DEPT|H=%d\n",|
|00005370| 6e 65 77 6c 65 76 65 6c | 29 3b 0a 58 09 09 09 09 |newlevel|);.X....|
|00005380| 09 7d 0a 58 09 09 09 09 | 09 62 72 65 61 6b 3b 0a |.}.X....|.break;.|
|00005390| 58 09 09 09 09 63 61 73 | 65 20 27 44 27 3a 0a 58 |X....cas|e 'D':.X|
|000053a0| 09 09 09 09 09 46 69 6c | 65 5f 64 69 72 20 3d 20 |.....Fil|e_dir = |
|000053b0| 44 46 49 52 53 54 3b 0a | 58 09 09 09 09 09 62 72 |DFIRST;.|X.....br|
|000053c0| 65 61 6b 3b 0a 58 09 09 | 09 09 63 61 73 65 20 27 |eak;.X..|..case '|
|000053d0| 66 27 3a 0a 58 09 09 09 | 09 09 46 69 6c 65 5f 64 |f':.X...|..File_d|
|000053e0| 69 72 20 3d 20 46 46 49 | 52 53 54 3b 0a 58 09 09 |ir = FFI|RST;.X..|
|000053f0| 09 09 09 62 72 65 61 6b | 3b 0a 58 09 09 09 09 63 |...break|;.X....c|
|00005400| 61 73 65 20 27 48 27 3a | 0a 58 09 09 09 09 09 48 |ase 'H':|.X.....H|
|00005410| 65 61 64 65 72 20 3d 20 | 31 3b 0a 58 09 09 09 09 |eader = |1;.X....|
|00005420| 09 62 72 65 61 6b 3b 0a | 58 09 09 09 09 63 61 73 |.break;.|X....cas|
|00005430| 65 20 27 4e 27 3a 0a 58 | 09 09 09 09 09 53 6f 72 |e 'N':.X|.....Sor|
|00005440| 74 20 3d 20 30 3b 0a 58 | 09 09 09 09 09 62 72 65 |t = 0;.X|.....bre|
|00005450| 61 6b 3b 0a 58 09 09 09 | 09 63 61 73 65 20 27 70 |ak;.X...|.case 'p|
|00005460| 27 3a 0a 58 09 09 09 09 | 09 50 6f 69 6e 74 20 3d |':.X....|.Point =|
|00005470| 20 30 3b 0a 58 09 09 09 | 09 09 62 72 65 61 6b 3b | 0;.X...|..break;|
|00005480| 0a 58 09 09 09 09 63 61 | 73 65 20 27 76 27 3a 0a |.X....ca|se 'v':.|
|00005490| 58 09 09 09 09 09 56 61 | 72 73 70 61 63 65 73 20 |X.....Va|rspaces |
|000054a0| 3d 20 30 3b 0a 58 09 09 | 09 09 09 62 72 65 61 6b |= 0;.X..|...break|
|000054b0| 3b 0a 58 09 09 09 09 63 | 61 73 65 20 27 78 27 3a |;.X....c|ase 'x':|
|000054c0| 0a 58 09 09 09 09 09 58 | 64 65 76 20 3d 20 30 3b |.X.....X|dev = 0;|
|000054d0| 0a 58 09 09 09 09 09 62 | 72 65 61 6b 3b 0a 58 09 |.X.....b|reak;.X.|
|000054e0| 09 09 09 63 61 73 65 20 | 27 74 27 3a 0a 58 09 09 |...case |'t':.X..|
|000054f0| 09 09 09 66 6c 61 67 58 | 20 3d 20 30 3b 0a 58 09 |...flagX| = 0;.X.|
|00005500| 09 09 09 09 62 72 65 61 | 6b 3b 0a 58 0a 58 09 09 |....brea|k;.X.X..|
|00005510| 09 09 63 61 73 65 20 27 | 68 27 3a 0a 58 09 09 09 |..case '|h':.X...|
|00005520| 09 09 68 65 6c 70 28 29 | 3b 0a 58 09 09 09 09 09 |..help()|;.X.....|
|00005530| 65 78 69 74 28 30 29 3b | 0a 23 69 66 64 65 66 09 |exit(0);|.#ifdef.|
|00005540| 53 54 41 54 53 0a 58 09 | 09 09 09 63 61 73 65 20 |STATS.X.|...case |
|00005550| 27 67 27 3a 0a 58 09 09 | 09 09 09 47 66 6c 61 67 |'g':.X..|...Gflag|
|00005560| 20 3d 20 31 3b 0a 58 09 | 09 09 09 09 62 72 65 61 | = 1;.X.|....brea|
|00005570| 6b 3b 0a 58 09 09 09 09 | 63 61 73 65 20 27 53 27 |k;.X....|case 'S'|
|00005580| 3a 0a 58 09 09 09 09 09 | 4c 6f 6e 67 66 6c 67 20 |:.X.....|Longflg |
|00005590| 3d 20 31 3b 0a 58 09 09 | 09 09 09 62 72 65 61 6b |= 1;.X..|...break|
|000055a0| 3b 0a 58 09 09 09 09 63 | 61 73 65 20 27 73 27 3a |;.X....c|ase 's':|
|000055b0| 0a 58 09 09 09 09 09 43 | 6f 6d 70 61 63 74 20 3d |.X.....C|ompact =|
|000055c0| 20 31 3b 0a 58 09 09 09 | 09 09 62 72 65 61 6b 3b | 1;.X...|..break;|
|000055d0| 0a 23 65 6e 64 69 66 09 | 2f 2a 20 53 54 41 54 53 |.#endif.|/* STATS|
|000055e0| 20 2a 2f 0a 58 09 09 09 | 09 64 65 66 61 75 6c 74 | */.X...|.default|
|000055f0| 3a 0a 58 09 09 09 09 09 | 68 65 6c 70 28 29 3b 0a |:.X.....|help();.|
|00005600| 58 09 09 09 09 09 65 78 | 69 74 28 46 41 49 4c 29 |X.....ex|it(FAIL)|
|00005610| 3b 0a 58 09 09 09 09 7d | 0a 58 09 7d 0a 23 69 66 |;.X....}|.X.}.#if|
|00005620| 64 65 66 09 53 54 41 54 | 53 0a 58 09 69 66 20 28 |def.STAT|S.X.if (|
|00005630| 43 6f 6d 70 61 63 74 20 | 26 26 20 21 47 66 6c 61 |Compact |&& !Gfla|
|00005640| 67 29 0a 58 09 09 4c 6f | 6e 67 66 6c 67 20 3d 20 |g).X..Lo|ngflg = |
|00005650| 31 3b 0a 23 65 6e 64 69 | 66 09 2f 2a 20 53 54 41 |1;.#endi|f./* STA|
|00005660| 54 53 20 2a 2f 0a 58 09 | 69 66 20 28 43 4c 65 6e |TS */.X.|if (CLen|
|00005670| 67 74 68 20 3d 3d 20 30 | 29 0a 58 09 09 43 4c 65 |gth == 0|).X..CLe|
|00005680| 6e 67 74 68 20 3d 20 56 | 61 72 73 70 61 63 65 73 |ngth = V|arspaces|
|00005690| 20 3f 20 4d 41 58 4e 41 | 4d 4c 45 4e 20 3a 20 44 | ? MAXNA|MLEN : D|
|000056a0| 45 46 43 4f 4c 57 49 44 | 3b 0a 58 0a 58 09 2f 2a |EFCOLWID|;.X.X./*|
|000056b0| 20 45 73 74 61 62 6c 69 | 73 68 20 77 68 65 72 65 | Establi|sh where|
|000056c0| 20 77 65 20 61 72 65 20 | 28 6f 75 72 20 68 6f 6d | we are |(our hom|
|000056d0| 65 20 62 61 73 65 2e 2e | 2e 29 20 2a 2f 0a 58 09 |e base..|.) */.X.|
|000056e0| 69 66 20 28 67 65 74 77 | 64 28 68 6f 6d 65 29 20 |if (getw|d(home) |
|000056f0| 3d 3d 20 30 29 20 7b 0a | 58 09 09 66 70 72 69 6e |== 0) {.|X..fprin|
|00005700| 74 66 28 73 74 64 65 72 | 72 2c 0a 58 09 09 09 22 |tf(stder|r,.X..."|
|00005710| 78 64 74 72 65 65 3a 20 | 43 61 6e 6e 6f 74 20 67 |xdtree: |Cannot g|
|00005720| 65 74 20 69 6e 69 74 69 | 61 6c 20 64 69 72 65 63 |et initi|al direc|
|00005730| 74 6f 72 79 3a 20 25 73 | 5c 6e 22 2c 20 68 6f 6d |tory: %s|\n", hom|
|00005740| 65 29 3b 0a 58 09 09 65 | 78 69 74 28 31 29 3b 0a |e);.X..e|xit(1);.|
|00005750| 58 09 7d 0a 58 0a 58 09 | 53 70 61 63 65 73 20 3d |X.}.X.X.|Spaces =|
|00005760| 20 78 6d 61 6c 6c 6f 63 | 28 4d 41 58 4e 41 4d 4c | xmalloc|(MAXNAML|
|00005770| 45 4e 2b 32 29 3b 0a 58 | 09 66 6f 72 28 69 20 3d |EN+2);.X|.for(i =|
|00005780| 20 30 3b 20 69 20 3c 3d | 20 4d 41 58 4e 41 4d 4c | 0; i <=| MAXNAML|
|00005790| 45 4e 3b 20 69 2b 2b 29 | 0a 58 09 09 53 70 61 63 |EN; i++)|.X..Spac|
|000057a0| 65 73 5b 69 5d 20 3d 20 | 27 20 27 3b 0a 58 09 53 |es[i] = |' ';.X.S|
|000057b0| 70 61 63 65 73 5b 69 5d | 20 3d 20 27 5c 30 27 3b |paces[i]| = '\0';|
|000057c0| 0a 58 0a 58 09 2f 2a 20 | 47 65 74 20 69 6e 69 74 |.X.X./* |Get init|
|000057d0| 69 61 6c 20 53 74 6f 72 | 61 67 65 20 73 70 61 63 |ial Stor|age spac|
|000057e0| 65 20 2a 2f 0a 58 09 53 | 69 7a 65 20 3d 20 73 69 |e */.X.S|ize = si|
|000057f0| 7a 65 6f 66 28 73 74 72 | 75 63 74 20 65 6e 74 72 |zeof(str|uct entr|
|00005800| 79 29 20 2a 20 49 4e 49 | 54 49 41 4c 5f 45 4c 45 |y) * INI|TIAL_ELE|
|00005810| 4d 3b 0a 58 09 53 61 76 | 65 4c 69 73 74 20 3d 20 |M;.X.Sav|eList = |
|00005820| 28 73 74 72 75 63 74 20 | 65 6e 74 72 79 20 2a 29 |(struct |entry *)|
|00005830| 78 6d 61 6c 6c 6f 63 28 | 53 69 7a 65 29 3b 0a 58 |xmalloc(|Size);.X|
|00005840| 0a 58 09 2f 2a 20 61 64 | 6a 75 73 74 20 66 6f 72 |.X./* ad|just for|
|00005850| 20 6e 6f 20 73 70 65 63 | 69 66 69 65 64 20 64 69 | no spec|ified di|
|00005860| 72 65 63 74 6f 72 79 20 | 2a 2f 0a 58 09 69 66 20 |rectory |*/.X.if |
|00005870| 28 6f 70 74 69 6e 64 20 | 3d 3d 20 61 72 67 63 20 |(optind |== argc |
|00005880| 29 0a 58 09 09 69 66 28 | 6f 70 74 69 6e 64 20 3e |).X..if(|optind >|
|00005890| 20 31 29 20 61 72 67 76 | 5b 2d 2d 6f 70 74 69 6e | 1) argv|[--optin|
|000058a0| 64 5d 20 3d 20 22 2e 22 | 3b 0a 58 09 09 65 6c 73 |d] = "."|;.X..els|
|000058b0| 65 20 7b 20 61 72 67 76 | 5b 31 5d 20 3d 20 22 2e |e { argv|[1] = ".|
|000058c0| 22 2c 20 6f 70 74 69 6e | 64 20 3d 20 31 3b 20 61 |", optin|d = 1; a|
|000058d0| 72 67 63 20 3d 20 32 3b | 7d 0a 58 0a 58 09 69 66 |rgc = 2;|}.X.X.if|
|000058e0| 20 28 48 65 61 64 65 72 | 29 0a 58 09 09 70 72 69 | (Header|).X..pri|
|000058f0| 6e 74 5f 64 61 74 65 28 | 29 3b 0a 58 0a 58 09 2f |nt_date(|);.X.X./|
|00005900| 2a 20 77 61 6c 6b 20 64 | 6f 77 6e 20 74 68 65 20 |* walk d|own the |
|00005910| 72 65 73 74 20 6f 66 20 | 74 68 65 20 61 72 67 73 |rest of |the args|
|00005920| 2c 20 74 72 65 65 69 6e | 67 20 74 68 65 6d 20 6f |, treein|g them o|
|00005930| 6e 65 20 61 74 20 61 74 | 20 74 69 6d 65 20 2a 2f |ne at at| time */|
|00005940| 0a 58 09 66 6f 72 20 28 | 3b 20 6f 70 74 69 6e 64 |.X.for (|; optind|
|00005950| 20 3c 20 61 72 67 63 3b | 20 6f 70 74 69 6e 64 2b | < argc;| optind+|
|00005960| 2b 29 20 7b 0a 58 09 09 | 69 66 20 28 63 68 64 69 |+) {.X..|if (chdi|
|00005970| 72 28 68 6f 6d 65 29 20 | 3d 3d 20 2d 31 29 20 7b |r(home) |== -1) {|
|00005980| 0a 58 09 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |.X...fpr|intf(std|
|00005990| 65 72 72 2c 20 22 78 64 | 74 72 65 65 3a 20 43 61 |err, "xd|tree: Ca|
|000059a0| 6e 6e 6f 74 20 63 68 61 | 6e 67 65 20 74 6f 20 69 |nnot cha|nge to i|
|000059b0| 6e 69 74 69 61 6c 20 64 | 69 72 65 63 74 6f 72 79 |nitial d|irectory|
|000059c0| 20 22 29 3b 0a 58 09 09 | 09 70 65 72 72 6f 72 28 | ");.X..|.perror(|
|000059d0| 68 6f 6d 65 29 3b 0a 58 | 09 09 09 65 78 69 74 28 |home);.X|...exit(|
|000059e0| 31 29 3b 0a 58 09 09 7d | 0a 58 09 09 73 74 72 6e |1);.X..}|.X..strn|
|000059f0| 63 70 79 20 28 74 6f 70 | 2c 20 61 72 67 76 5b 6f |cpy (top|, argv[o|
|00005a00| 70 74 69 6e 64 5d 2c 20 | 4d 41 58 50 41 54 48 4c |ptind], |MAXPATHL|
|00005a10| 45 4e 29 3b 0a 58 0a 58 | 09 09 69 66 20 28 63 68 |EN);.X.X|..if (ch|
|00005a20| 64 69 72 28 74 6f 70 29 | 20 3d 3d 20 46 41 49 4c |dir(top)| == FAIL|
|00005a30| 29 20 7b 0a 58 09 09 09 | 66 70 72 69 6e 74 66 28 |) {.X...|fprintf(|
|00005a40| 73 74 64 65 72 72 2c 20 | 22 78 64 74 72 65 65 3a |stderr, |"xdtree:|
|00005a50| 20 43 61 6e 6e 6f 74 20 | 63 68 61 6e 67 65 20 74 | Cannot |change t|
|00005a60| 6f 20 74 6f 70 20 64 69 | 72 65 63 74 6f 72 79 20 |o top di|rectory |
|00005a70| 22 29 3b 0a 58 09 09 09 | 70 65 72 72 6f 72 28 74 |");.X...|perror(t|
|00005a80| 6f 70 29 3b 0a 58 09 09 | 09 63 6f 6e 74 69 6e 75 |op);.X..|.continu|
|00005a90| 65 3b 0a 58 09 09 7d 20 | 65 6c 73 65 20 69 66 20 |e;.X..} |else if |
|00005aa0| 28 67 65 74 77 64 28 74 | 6f 70 29 20 3d 3d 20 30 |(getwd(t|op) == 0|
|00005ab0| 29 20 7b 0a 58 09 09 09 | 66 70 72 69 6e 74 66 28 |) {.X...|fprintf(|
|00005ac0| 73 74 64 65 72 72 2c 22 | 78 64 74 72 65 65 3a 20 |stderr,"|xdtree: |
|00005ad0| 43 61 6e 6e 6f 74 20 67 | 65 74 20 63 75 72 72 65 |Cannot g|et curre|
|00005ae0| 6e 74 20 64 69 72 65 63 | 74 6f 72 79 3a 20 25 73 |nt direc|tory: %s|
|00005af0| 5c 6e 22 2c 20 74 6f 70 | 29 3b 0a 58 09 09 09 63 |\n", top|);.X...c|
|00005b00| 6f 6e 74 69 6e 75 65 3b | 0a 58 09 09 7d 0a 58 0a |ontinue;|.X..}.X.|
|00005b10| 58 09 09 4c 69 73 74 20 | 3d 20 53 61 76 65 4c 69 |X..List |= SaveLi|
|00005b20| 73 74 3b 20 49 6e 64 65 | 78 20 3d 20 30 3b 0a 58 |st; Inde|x = 0;.X|
|00005b30| 09 09 67 65 74 77 64 28 | 4c 69 73 74 5b 30 5d 2e |..getwd(|List[0].|
|00005b40| 70 61 74 68 5f 6e 61 6d | 65 29 3b 0a 58 09 09 70 |path_nam|e);.X..p|
|00005b50| 74 72 20 3d 20 72 69 6e | 64 65 78 28 74 6f 70 2c |tr = rin|dex(top,|
|00005b60| 20 27 2f 27 29 3b 0a 58 | 0a 58 09 09 69 66 20 28 | '/');.X|.X..if (|
|00005b70| 21 70 74 72 20 7c 7c 20 | 2a 2b 2b 70 74 72 20 3d |!ptr || |*++ptr =|
|00005b80| 3d 20 27 5c 30 27 29 0a | 58 09 09 09 73 74 72 6e |= '\0').|X...strn|
|00005b90| 63 70 79 28 4c 69 73 74 | 5b 49 6e 64 65 78 5d 2e |cpy(List|[Index].|
|00005ba0| 65 5f 6e 61 6d 65 2c 20 | 74 6f 70 2c 20 4d 41 58 |e_name, |top, MAX|
|00005bb0| 4e 41 4d 4c 45 4e 29 3b | 0a 58 09 09 65 6c 73 65 |NAMLEN);|.X..else|
|00005bc0| 0a 58 09 09 09 73 74 72 | 6e 63 70 79 28 4c 69 73 |.X...str|ncpy(Lis|
|00005bd0| 74 5b 49 6e 64 65 78 5d | 2e 65 5f 6e 61 6d 65 2c |t[Index]|.e_name,|
|00005be0| 20 70 74 72 2c 20 4d 41 | 58 4e 41 4d 4c 45 4e 29 | ptr, MA|XNAMLEN)|
|00005bf0| 3b 0a 58 0a 58 09 09 69 | 66 28 73 74 61 74 28 74 |;.X.X..i|f(stat(t|
|00005c00| 6f 70 2c 20 26 53 74 61 | 74 75 73 29 20 3d 3d 20 |op, &Sta|tus) == |
|00005c10| 46 41 49 4c 29 20 7b 0a | 58 09 09 09 66 70 72 69 |FAIL) {.|X...fpri|
|00005c20| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 78 64 74 |ntf(stde|rr, "xdt|
|00005c30| 72 65 65 3a 20 43 61 6e | 6e 6f 74 20 73 74 61 74 |ree: Can|not stat|
|00005c40| 20 64 69 72 65 63 74 6f | 72 79 20 22 29 3b 0a 58 | directo|ry ");.X|
|00005c50| 09 09 09 70 65 72 72 6f | 72 28 74 6f 70 29 3b 0a |...perro|r(top);.|
|00005c60| 58 09 09 09 63 6f 6e 74 | 69 6e 75 65 3b 0a 58 09 |X...cont|inue;.X.|
|00005c70| 09 7d 0a 58 09 09 44 65 | 76 69 63 65 20 3d 20 53 |.}.X..De|vice = S|
|00005c80| 74 61 74 75 73 2e 73 74 | 5f 64 65 76 3b 0a 58 09 |tatus.st|_dev;.X.|
|00005c90| 09 4c 69 73 74 5b 30 5d | 2e 64 69 72 20 3d 20 31 |.List[0]|.dir = 1|
|00005ca0| 3b 0a 58 09 09 4c 69 73 | 74 5b 30 5d 2e 6c 61 73 |;.X..Lis|t[0].las|
|00005cb0| 74 20 3d 20 31 3b 0a 58 | 09 09 4c 69 73 74 5b 30 |t = 1;.X|..List[0|
|00005cc0| 5d 2e 6e 65 78 74 20 3d | 20 31 3b 0a 23 69 66 64 |].next =| 1;.#ifd|
|00005cd0| 65 66 09 53 54 41 54 53 | 0a 58 09 09 4c 69 73 74 |ef.STATS|.X..List|
|00005ce0| 5b 30 5d 2e 65 5f 6d 6f | 64 65 20 3d 20 53 74 61 |[0].e_mo|de = Sta|
|00005cf0| 74 75 73 2e 73 74 5f 6d | 6f 64 65 3b 0a 58 09 09 |tus.st_m|ode;.X..|
|00005d00| 4c 69 73 74 5b 30 5d 2e | 65 5f 75 69 64 20 3d 20 |List[0].|e_uid = |
|00005d10| 53 74 61 74 75 73 2e 73 | 74 5f 75 69 64 3b 0a 58 |Status.s|t_uid;.X|
|00005d20| 09 09 4c 69 73 74 5b 30 | 5d 2e 65 5f 67 69 64 20 |..List[0|].e_gid |
|00005d30| 3d 20 53 74 61 74 75 73 | 2e 73 74 5f 67 69 64 3b |= Status|.st_gid;|
|00005d40| 0a 58 09 09 4c 69 73 74 | 5b 30 5d 2e 65 5f 73 69 |.X..List|[0].e_si|
|00005d50| 7a 65 20 3d 20 53 74 61 | 74 75 73 2e 73 74 5f 73 |ze = Sta|tus.st_s|
|00005d60| 69 7a 65 3b 0a 23 65 6e | 64 69 66 09 2f 2a 20 53 |ize;.#en|dif./* S|
|00005d70| 54 41 54 53 20 2a 2f 0a | 58 09 09 49 6e 64 65 78 |TATS */.|X..Index|
|00005d80| 20 3d 20 31 3b 0a 58 09 | 09 66 6f 72 20 28 69 20 | = 1;.X.|.for (i |
|00005d90| 3d 20 31 3b 20 69 20 3c | 20 44 45 50 54 48 3b 20 |= 1; i <| DEPTH; |
|00005da0| 69 2b 2b 29 0a 58 09 09 | 09 4d 61 78 65 73 5b 69 |i++).X..|.Maxes[i|
|00005db0| 5d 20 3d 20 30 3b 0a 58 | 09 09 4d 61 78 65 73 5b |] = 0;.X|..Maxes[|
|00005dc0| 30 5d 20 3d 20 73 74 6c | 6e 28 4c 69 73 74 5b 30 |0] = stl|n(List[0|
|00005dd0| 5d 2e 65 5f 6e 61 6d 65 | 29 3b 0a 58 09 09 4c 65 |].e_name|);.X..Le|
|00005de0| 76 65 6c 20 3d 20 31 3b | 0a 58 0a 58 09 09 2f 2a |vel = 1;|.X.X../*|
|00005df0| 20 44 6f 6e 27 74 20 77 | 61 73 74 65 20 74 69 6d | Don't w|aste tim|
|00005e00| 65 20 69 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f |e if the|re is no|
|00005e10| 20 64 69 73 70 6c 61 79 | 20 2a 2f 0a 58 09 09 69 | display| */.X..i|
|00005e20| 66 28 66 6c 61 67 58 20 | 3d 3d 20 31 29 0a 58 09 |f(flagX |== 1).X.|
|00005e30| 09 74 6f 70 6c 65 76 65 | 6c 20 3d 20 58 74 49 6e |.topleve|l = XtIn|
|00005e40| 69 74 69 61 6c 69 7a 65 | 28 61 72 67 76 5b 30 5d |itialize|(argv[0]|
|00005e50| 2c 20 22 58 44 74 72 65 | 65 22 2c 20 4e 55 4c 4c |, "XDtre|e", NULL|
|00005e60| 2c 20 30 2c 20 26 61 72 | 67 63 2c 20 61 72 67 76 |, 0, &ar|gc, argv|
|00005e70| 29 3b 0a 58 0a 58 09 09 | 66 70 72 69 6e 74 66 28 |);.X.X..|fprintf(|
|00005e80| 73 74 64 65 72 72 2c 22 | 53 74 61 72 74 65 64 20 |stderr,"|Started |
|00005e90| 73 65 61 72 63 68 69 6e | 67 2e 2e 2e 2e 50 6c 65 |searchin|g....Ple|
|00005ea0| 61 73 65 20 77 61 69 74 | 20 5c 6e 22 29 3b 0a 58 |ase wait| \n");.X|
|00005eb0| 09 09 2f 2a 20 73 65 61 | 72 63 68 20 74 68 65 20 |../* sea|rch the |
|00005ec0| 74 72 65 65 20 2a 2f 0a | 58 09 09 4c 69 73 74 5b |tree */.|X..List[|
|00005ed0| 30 5d 2e 65 6e 64 20 3d | 20 74 5f 73 65 61 72 63 |0].end =| t_searc|
|00005ee0| 68 28 74 6f 70 2c 20 26 | 4c 69 73 74 5b 30 5d 29 |h(top, &|List[0])|
|00005ef0| 3b 0a 58 0a 58 09 09 69 | 66 20 28 49 6e 64 65 78 |;.X.X..i|f (Index|
|00005f00| 20 3d 3d 20 31 29 09 09 | 09 09 2f 2a 20 65 6d 70 | == 1)..|../* emp|
|00005f10| 74 79 20 74 72 65 65 20 | 2a 2f 0a 58 09 09 09 4c |ty tree |*/.X...L|
|00005f20| 69 73 74 5b 30 5d 2e 6e | 65 78 74 20 3d 20 30 3b |ist[0].n|ext = 0;|
|00005f30| 0a 58 0a 58 09 09 69 66 | 20 28 48 65 61 64 65 72 |.X.X..if| (Header|
|00005f40| 29 20 7b 0a 58 09 09 69 | 66 20 28 41 6c 6c 29 0a |) {.X..i|f (All).|
|00005f50| 58 09 09 20 20 20 20 70 | 72 69 6e 74 66 28 22 5c |X.. p|rintf("\|
|00005f60| 6e 44 69 72 65 63 74 6f | 72 79 20 73 74 72 75 63 |nDirecto|ry struc|
|00005f70| 74 75 72 65 20 61 6e 64 | 20 63 6f 6e 74 65 6e 74 |ture and| content|
|00005f80| 73 20 6f 66 20 25 73 5c | 6e 22 2c 20 74 6f 70 29 |s of %s\|n", top)|
|00005f90| 3b 0a 58 09 09 65 6c 73 | 65 0a 58 09 09 20 20 20 |;.X..els|e.X.. |
|00005fa0| 20 70 72 69 6e 74 66 28 | 22 5c 6e 44 69 72 65 63 | printf(|"\nDirec|
|00005fb0| 74 6f 72 79 20 73 74 72 | 75 63 74 75 72 65 20 6f |tory str|ucture o|
|00005fc0| 66 20 25 73 5c 6e 22 2c | 20 74 6f 70 29 3b 0a 58 |f %s\n",| top);.X|
|00005fd0| 09 09 69 66 20 28 50 6f | 69 6e 74 29 0a 58 09 09 |..if (Po|int).X..|
|00005fe0| 09 70 72 69 6e 74 66 28 | 22 28 65 78 63 6c 75 64 |.printf(|"(exclud|
|00005ff0| 69 6e 67 20 65 6e 74 72 | 69 65 73 20 74 68 61 74 |ing entr|ies that|
|00006000| 20 62 65 67 69 6e 20 77 | 69 74 68 20 27 2e 27 29 | begin w|ith '.')|
|00006010| 5c 6e 22 29 3b 0a 58 09 | 09 7d 0a 58 0a 58 09 09 |\n");.X.|.}.X.X..|
|00006020| 69 66 28 66 6c 61 67 58 | 20 3d 3d 20 30 29 20 70 |if(flagX| == 0) p|
|00006030| 74 5f 74 72 65 65 28 29 | 3b 0a 58 09 09 65 6c 73 |t_tree()|;.X..els|
|00006040| 65 20 7b 0a 58 0a 58 09 | 2f 2a 20 43 72 65 61 74 |e {.X.X.|/* Creat|
|00006050| 65 20 61 20 46 6f 72 6d | 2c 20 77 69 74 68 20 62 |e a Form|, with b|
|00006060| 75 74 74 6f 6e 20 6f 70 | 74 69 6f 6e 73 20 61 6e |utton op|tions an|
|00006070| 64 20 61 20 46 72 61 6d | 65 20 77 69 6e 64 6f 77 |d a Fram|e window|
|00006080| 0a 58 09 20 20 20 50 75 | 74 20 6f 6e 20 74 68 65 |.X. Pu|t on the|
|00006090| 20 46 72 61 6d 65 2c 20 | 61 20 53 63 72 6f 6c 6c | Frame, |a Scroll|
|000060a0| 65 64 57 69 6e 64 6f 77 | 20 61 6e 64 20 74 68 65 |edWindow| and the|
|000060b0| 20 54 72 65 65 20 77 69 | 6e 64 6f 77 0a 58 09 20 | Tree wi|ndow.X. |
|000060c0| 20 20 54 68 65 20 54 6f | 70 20 68 61 73 20 61 20 | The To|p has a |
|000060d0| 71 75 69 74 20 62 75 74 | 74 6f 6e 20 61 6e 64 20 |quit but|ton and |
|000060e0| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 4e 61 |the dire|ctory Na|
|000060f0| 6d 65 0a 58 09 2a 2f 0a | 58 09 09 09 66 70 72 69 |me.X.*/.|X...fpri|
|00006100| 6e 74 66 28 73 74 64 65 | 72 72 2c 22 4f 70 65 6e |ntf(stde|rr,"Open|
|00006110| 69 6e 67 20 64 69 73 70 | 6c 61 79 20 6e 6f 77 2e |ing disp|lay now.|
|00006120| 2e 2e 50 6c 65 61 73 65 | 20 77 61 69 74 5c 6e 22 |..Please| wait\n"|
|00006130| 29 3b 0a 58 0a 58 09 09 | 09 2f 2a 20 6d 61 69 6e |);.X.X..|./* main|
|00006140| 20 77 69 6e 64 6f 77 20 | 2a 2f 0a 58 09 09 09 6e | window |*/.X...n|
|00006150| 3d 30 3b 0a 58 09 09 09 | 6d 61 69 6e 5f 77 20 3d |=0;.X...|main_w =|
|00006160| 20 58 74 43 72 65 61 74 | 65 4d 61 6e 61 67 65 64 | XtCreat|eManaged|
|00006170| 57 69 64 67 65 74 28 4e | 55 4c 4c 2c 20 78 6d 46 |Widget(N|ULL, xmF|
|00006180| 6f 72 6d 57 69 64 67 65 | 74 43 6c 61 73 73 2c 0a |ormWidge|tClass,.|
|00006190| 58 09 09 09 09 09 20 20 | 20 20 20 20 20 74 6f 70 |X..... | top|
|000061a0| 6c 65 76 65 6c 2c 20 77 | 61 72 67 73 2c 20 6e 29 |level, w|args, n)|
|000061b0| 3b 0a 58 0a 58 09 09 20 | 20 20 20 20 6e 3d 30 3b |;.X.X.. | n=0;|
|000061c0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|000061d0| 20 20 20 20 20 20 20 20 | 20 58 74 53 65 74 41 72 | | XtSetAr|
|000061e0| 67 28 61 72 67 5b 6e 5d | 2c 20 58 6d 4e 6c 65 66 |g(arg[n]|, XmNlef|
|000061f0| 74 41 74 74 61 63 68 6d | 65 6e 74 2c 20 58 6d 41 |tAttachm|ent, XmA|
|00006200| 54 54 41 43 48 5f 46 4f | 52 4d 29 3b 20 6e 2b 2b |TTACH_FO|RM); n++|
|00006210| 3b 0a 58 09 09 20 20 20 | 20 20 20 20 58 74 53 65 |;.X.. | XtSe|
|00006220| 74 41 72 67 28 61 72 67 | 5b 6e 5d 2c 20 58 6d 4e |tArg(arg|[n], XmN|
|00006230| 74 6f 70 41 74 74 61 63 | 68 6d 65 6e 74 2c 20 58 |topAttac|hment, X|
|00006240| 6d 41 54 54 41 43 48 5f | 46 4f 52 4d 29 3b 20 6e |mATTACH_|FORM); n|
|00006250| 2b 2b 3b 0a 58 09 09 20 | 20 20 20 20 20 20 58 74 |++;.X.. | Xt|
|00006260| 53 65 74 41 72 67 28 61 | 72 67 5b 6e 5d 2c 20 58 |SetArg(a|rg[n], X|
|00006270| 6d 4e 72 69 67 68 74 41 | 74 74 61 63 68 6d 65 6e |mNrightA|ttachmen|
|00006280| 74 2c 20 58 6d 41 54 54 | 41 43 48 5f 46 4f 52 4d |t, XmATT|ACH_FORM|
|00006290| 29 3b 20 6e 2b 2b 3b 0a | 58 09 09 20 20 20 20 20 |); n++;.|X.. |
|000062a0| 6d 65 6e 75 5f 62 61 72 | 20 3d 20 58 6d 43 72 65 |menu_bar| = XmCre|
|000062b0| 61 74 65 4d 65 6e 75 42 | 61 72 28 6d 61 69 6e 5f |ateMenuB|ar(main_|
|000062c0| 77 2c 22 6d 65 6e 75 22 | 2c 61 72 67 2c 6e 29 3b |w,"menu"|,arg,n);|
|000062d0| 20 0a 58 09 09 20 20 20 | 20 20 58 74 4d 61 6e 61 | .X.. | XtMana|
|000062e0| 67 65 43 68 69 6c 64 28 | 6d 65 6e 75 5f 62 61 72 |geChild(|menu_bar|
|000062f0| 29 3b 0a 58 0a 58 0a 58 | 09 09 09 2f 2a 20 71 75 |);.X.X.X|.../* qu|
|00006300| 69 74 20 62 75 74 74 6f | 6e 20 2a 2f 0a 58 0a 58 |it butto|n */.X.X|
|00006310| 09 09 09 71 75 69 74 5f | 6d 65 6e 75 20 3d 20 58 |...quit_|menu = X|
|00006320| 6d 43 72 65 61 74 65 50 | 75 6c 6c 64 6f 77 6e 4d |mCreateP|ulldownM|
|00006330| 65 6e 75 28 6d 65 6e 75 | 5f 62 61 72 2c 0a 58 09 |enu(menu|_bar,.X.|
|00006340| 09 09 09 20 20 20 20 22 | 71 75 69 74 5f 6d 65 6e |... "|quit_men|
|00006350| 75 22 2c 4e 55 4c 4c 2c | 30 29 3b 0a 58 09 09 09 |u",NULL,|0);.X...|
|00006360| 58 74 53 65 74 41 72 67 | 28 77 61 72 67 73 5b 30 |XtSetArg|(wargs[0|
|00006370| 5d 2c 20 58 6d 4e 73 75 | 62 4d 65 6e 75 49 64 2c |], XmNsu|bMenuId,|
|00006380| 71 75 69 74 5f 6d 65 6e | 75 29 3b 0a 58 09 09 09 |quit_men|u);.X...|
|00006390| 71 5f 62 75 74 74 6f 6e | 20 3d 20 58 6d 43 72 65 |q_button| = XmCre|
|000063a0| 61 74 65 43 61 73 63 61 | 64 65 42 75 74 74 6f 6e |ateCasca|deButton|
|000063b0| 28 6d 65 6e 75 5f 62 61 | 72 2c 20 0a 58 09 09 09 |(menu_ba|r, .X...|
|000063c0| 09 09 09 20 20 20 22 71 | 75 69 74 22 2c 77 61 72 |... "q|uit",war|
|000063d0| 67 73 2c 31 29 3b 0a 58 | 09 09 09 58 74 4d 61 6e |gs,1);.X|...XtMan|
|000063e0| 61 67 65 43 68 69 6c 64 | 28 71 5f 62 75 74 74 6f |ageChild|(q_butto|
|000063f0| 6e 29 3b 0a 58 0a 58 09 | 09 20 20 20 20 20 20 20 |n);.X.X.|. |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.