home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / sys / tests / nfs / mac-tests / Mac-Cthon.tar < prev    next >
Tape Archive  |  1989-12-15  |  120.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file Mac-Cthon/, mode 775 , uid 162 , gid 12 , size 0 , seconds 4542261416 default
98% file data default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4d 61 63 2d 43 74 68 6f | 6e 2f 00 00 00 00 00 00 |Mac-Ctho|n/......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 37 35 20 00 20 20 20 31 |.... 7|75 . 1|
|00000070| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 35 34 32 32 36 31 | 0 | 4542261|
|00000090| 34 31 36 20 20 20 35 35 | 37 33 00 20 00 00 00 00 |416 55|73. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 4d 61 63 2d 43 74 68 6f | 6e 2f 62 61 73 69 63 2d |Mac-Ctho|n/basic-|
|00000210| 74 65 73 74 2d 30 2e 32 | 34 00 00 00 00 00 00 00 |test-0.2|4.......|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00000270| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 34 35 34 32 32 36 31 | 0 | 4542261|
|00000290| 30 35 33 20 20 31 30 31 | 32 35 00 20 00 00 00 00 |053 101|25. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 4d 61 63 2d 43 74 68 6f | 6e 2f 6c 6f 67 20 66 69 |Mac-Ctho|n/log fi|
|00000410| 6c 65 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |le......|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00000470| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00000480| 20 20 20 20 31 31 34 20 | 20 34 35 34 32 32 36 31 | 114 | 4542261|
|00000490| 30 35 35 20 20 20 37 32 | 33 37 00 20 00 00 00 00 |055 72|37. ....|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 4d 61 63 69 6e 74 6f 73 | 68 20 4e 46 53 20 52 65 |Macintos|h NFS Re|
|00000610| 76 69 73 69 6f 6e 20 32 | 20 42 41 53 49 43 20 74 |vision 2| BASIC t|
|00000620| 65 73 74 20 73 75 69 74 | 65 20 28 56 30 2e 32 34 |est suit|e (V0.24|
|00000630| 29 09 46 72 69 20 44 65 | 63 20 31 35 20 31 36 3a |).Fri De|c 15 16:|
|00000640| 32 33 3a 31 31 20 31 39 | 38 39 0d 0d 6c 6f 67 2e |23:11 19|89..log.|
|00000650| 63 00 00 04 00 00 9a 14 | 00 10 00 06 6d 61 69 6e |c.......|....main|
|00000660| 2e 63 00 04 00 00 9a 15 | 00 14 00 08 4d 61 6b 65 |.c......|....Make|
|00000670| 66 69 6c 65 00 72 61 64 | 00 00 9a 16 00 10 00 07 |file.rad|........|
|00000680| 52 45 41 44 4d 45 21 00 | 00 00 9a 17 00 14 00 08 |README!.|........|
|00000690| 72 75 6e 74 65 73 74 73 | 00 65 00 5f 00 00 9a 18 |runtests|.e._....|
|000006a0| 00 14 00 0a 73 74 64 69 | 6f 2e 66 75 6c 6c 00 0b |....stdi|o.full..|
|000006b0| 00 00 9a 19 00 10 00 06 | 73 75 62 72 2e 63 00 0b |........|subr.c..|
|000006c0| 00 00 9a 1a 00 10 00 04 | 74 65 6d 70 00 00 c0 0c |........|temp....|
|000006d0| 00 00 9a 1b 00 10 00 04 | 74 65 73 74 00 10 00 07 |........|test....|
|000006e0| 00 00 9a 1c 00 14 00 09 | 74 65 73 74 2e 72 73 72 |........|test.rsr|
|000006f0| 63 00 72 6f 00 00 9a 1d | 00 10 00 07 74 65 73 74 |c.ro....|....test|
|00000700| 31 2e 63 00 00 00 9a 1e | 00 10 00 07 74 65 73 74 |1.c.....|....test|
|00000710| 32 2e 63 00 00 00 9a 1f | 00 10 00 07 74 65 73 74 |2.c.....|....test|
|00000720| 33 2e 63 00 00 00 9a 20 | 00 10 00 07 74 65 73 74 |3.c.... |....test|
|00000730| 34 2e 63 00 00 00 9a 21 | 00 14 00 08 74 65 73 74 |4.c....!|....test|
|00000740| 34 61 2e 63 00 00 b8 13 | 00 00 9a 22 00 10 00 07 |4a.c....|..."....|
|00000750| 74 65 73 74 35 2e 63 00 | 00 00 9a 23 00 14 00 08 |test5.c.|...#....|
|00000760| 74 65 73 74 35 61 2e 63 | 00 10 00 04 00 00 9a 24 |test5a.c|.......$|
|00000770| 00 14 00 08 74 65 73 74 | 35 62 2e 63 00 61 63 6c |....test|5b.c.acl|
|00000780| 00 00 9a 25 00 10 00 07 | 74 65 73 74 36 2e 63 00 |...%....|test6.c.|
|00000790| 00 00 9a 26 00 10 00 07 | 74 65 73 74 37 2e 63 00 |...&....|test7.c.|
|000007a0| 00 00 9a 27 00 14 00 08 | 74 65 73 74 37 61 2e 63 |...'....|test7a.c|
|000007b0| 00 69 6c 73 00 00 9a 28 | 00 14 00 08 74 65 73 74 |.ils...(|....test|
|000007c0| 37 62 2e 63 00 00 a0 22 | 00 00 9a 29 00 10 00 07 |7b.c..."|...)....|
|000007d0| 74 65 73 74 38 2e 63 00 | 00 00 9a 2a 00 10 00 07 |test8.c.|...*....|
|000007e0| 74 65 73 74 39 2e 63 00 | 00 00 9a 2b 00 10 00 07 |test9.c.|...+....|
|000007f0| 74 65 73 74 73 2e 68 00 | 00 00 a2 75 00 10 00 04 |tests.h.|...u....|
|00000800| 4d 61 63 2d 43 74 68 6f | 6e 2f 6c 6f 67 2e 63 00 |Mac-Ctho|n/log.c.|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00000870| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00000880| 20 20 20 31 35 31 30 20 | 20 34 35 34 32 32 36 31 | 1510 | 4542261|
|00000890| 30 35 37 20 20 20 36 36 | 30 33 00 20 00 00 00 00 |057 66|03. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 73 74 61 74 69 63 20 69 | 6e 74 20 63 6f 75 6e 74 |static i|nt count|
|00000a10| 20 3d 20 30 3b 0d 73 74 | 61 74 69 63 20 63 68 61 | = 0;.st|atic cha|
|00000a20| 72 20 6c 69 6e 65 5b 31 | 30 32 34 5d 3b 0d 73 74 |r line[1|024];.st|
|00000a30| 61 74 69 63 20 69 6e 74 | 20 6c 6f 67 5f 66 64 20 |atic int| log_fd |
|00000a40| 3d 20 30 3b 0d 0d 65 78 | 74 65 72 6e 20 76 6f 69 |= 0;..ex|tern voi|
|00000a50| 64 20 28 2a 5f 65 63 68 | 6f 5f 74 6f 5f 70 72 69 |d (*_ech|o_to_pri|
|00000a60| 6e 74 65 72 5f 29 28 29 | 3b 09 2f 2a 20 67 6c 6f |nter_)()|;./* glo|
|00000a70| 62 61 6c 20 45 63 68 6f | 20 63 61 6c 6c 20 76 61 |bal Echo| call va|
|00000a80| 72 69 61 62 6c 65 20 66 | 6f 72 20 70 72 69 6e 74 |riable f|or print|
|00000a90| 65 72 20 2a 2f 0d 0d 2f | 2a 0d 09 54 68 69 73 20 |er */../|*..This |
|00000aa0| 72 6f 75 74 69 6e 65 20 | 69 73 20 63 61 6c 6c 65 |routine |is calle|
|00000ab0| 64 20 62 79 20 74 68 65 | 20 4c 53 43 20 22 70 72 |d by the| LSC "pr|
|00000ac0| 69 6e 74 66 22 20 74 6f | 20 65 63 68 6f 20 63 68 |intf" to| echo ch|
|00000ad0| 61 72 73 0d 09 74 6f 20 | 61 20 70 72 69 6e 74 65 |ars..to |a printe|
|00000ae0| 72 2e 20 57 65 20 72 65 | 64 69 72 65 63 74 20 74 |r. We re|direct t|
|00000af0| 68 65 6d 20 74 6f 20 61 | 20 66 69 6c 65 20 66 6f |hem to a| file fo|
|00000b00| 72 20 6c 6f 67 67 69 6e | 67 2e 0d 09 0d 09 77 65 |r loggin|g.....we|
|00000b10| 20 61 6c 73 6f 20 63 68 | 65 63 6b 20 74 68 65 20 | also ch|eck the |
|00000b20| 67 61 74 6f 72 62 6f 78 | 20 66 6f 72 20 6c 6f 67 |gatorbox| for log|
|00000b30| 20 69 6e 66 6f 20 61 66 | 74 65 72 20 65 61 63 68 | info af|ter each|
|00000b40| 20 6c 69 6e 65 2e 0d 2a | 2f 0d 0d 65 63 68 6f 5f | line..*|/..echo_|
|00000b50| 74 6f 5f 66 69 6c 65 28 | 63 68 29 0d 72 65 67 69 |to_file(|ch).regi|
|00000b60| 73 74 65 72 20 63 68 61 | 72 20 63 68 3b 0d 7b 0d |ster cha|r ch;.{.|
|00000b70| 09 69 66 20 28 6c 6f 67 | 5f 66 64 20 3d 3d 20 30 |.if (log|_fd == 0|
|00000b80| 29 0d 09 09 7b 0d 09 09 | 6c 6f 67 5f 66 64 20 3d |)...{...|log_fd =|
|00000b90| 20 63 72 65 61 74 28 22 | 6c 6f 67 20 66 69 6c 65 | creat("|log file|
|00000ba0| 22 2c 20 30 36 36 36 29 | 3b 0d 09 09 7d 0d 09 0d |", 0666)|;...}...|
|00000bb0| 09 69 66 20 28 6c 6f 67 | 5f 66 64 20 3c 20 30 29 |.if (log|_fd < 0)|
|00000bc0| 0d 09 09 72 65 74 75 72 | 6e 3b 0d 0d 09 69 66 20 |...retur|n;...if |
|00000bd0| 28 63 6f 75 6e 74 20 3d | 3d 20 30 29 0d 09 09 7b |(count =|= 0)...{|
|00000be0| 0d 09 09 5f 65 63 68 6f | 5f 74 6f 5f 70 72 69 6e |..._echo|_to_prin|
|00000bf0| 74 65 72 5f 20 3d 20 28 | 76 6f 69 64 20 2a 29 30 |ter_ = (|void *)0|
|00000c00| 3b 0d 09 09 5f 65 63 68 | 6f 5f 74 6f 5f 70 72 69 |;..._ech|o_to_pri|
|00000c10| 6e 74 65 72 5f 20 3d 20 | 28 76 6f 69 64 20 2a 29 |nter_ = |(void *)|
|00000c20| 65 63 68 6f 5f 74 6f 5f | 66 69 6c 65 3b 0d 09 09 |echo_to_|file;...|
|00000c30| 7d 0d 0d 09 69 66 20 28 | 63 68 20 21 3d 20 27 5c |}...if (|ch != '\|
|00000c40| 6e 27 29 0d 09 09 7b 0d | 09 09 6c 69 6e 65 5b 20 |n')...{.|..line[ |
|00000c50| 63 6f 75 6e 74 2b 2b 20 | 5d 20 3d 20 63 68 3b 0d |count++ |] = ch;.|
|00000c60| 09 09 72 65 74 75 72 6e | 3b 0d 09 09 7d 0d 09 0d |..return|;...}...|
|00000c70| 09 6c 69 6e 65 5b 20 63 | 6f 75 6e 74 2b 2b 20 5d |.line[ c|ount++ ]|
|00000c80| 20 3d 20 27 5c 72 27 3b | 0d 09 77 72 69 74 65 28 | = '\r';|..write(|
|00000c90| 6c 6f 67 5f 66 64 2c 20 | 6c 69 6e 65 2c 20 63 6f |log_fd, |line, co|
|00000ca0| 75 6e 74 29 3b 0d 09 63 | 6f 75 6e 74 20 3d 20 30 |unt);..c|ount = 0|
|00000cb0| 3b 0d 7d 0d 0d 65 63 68 | 6f 5f 6c 69 6e 65 5f 74 |;.}..ech|o_line_t|
|00000cc0| 6f 5f 66 69 6c 65 28 6c | 69 6e 65 29 0d 63 68 61 |o_file(l|ine).cha|
|00000cd0| 72 20 2a 6c 69 6e 65 3b | 0d 7b 0d 09 77 72 69 74 |r *line;|.{..writ|
|00000ce0| 65 28 6c 6f 67 5f 66 64 | 2c 20 6c 69 6e 65 2c 20 |e(log_fd|, line, |
|00000cf0| 73 74 72 6c 65 6e 28 6c | 69 6e 65 29 29 3b 0d 7d |strlen(l|ine));.}|
|00000d00| 0d 0d 65 63 68 6f 5f 74 | 6f 5f 66 69 6c 65 5f 64 |..echo_t|o_file_d|
|00000d10| 6f 6e 65 28 29 0d 7b 0d | 09 69 66 20 28 6c 6f 67 |one().{.|.if (log|
|00000d20| 5f 66 64 29 0d 09 09 63 | 6c 6f 73 65 28 6c 6f 67 |_fd)...c|lose(log|
|00000d30| 5f 66 64 29 3b 0d 09 09 | 0d 09 6c 6f 67 5f 66 64 |_fd);...|..log_fd|
|00000d40| 20 3d 20 30 3b 0d 7d 0d | 00 00 00 00 00 00 00 00 | = 0;.}.|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 4d 61 63 2d 43 74 68 6f | 6e 2f 6d 61 69 6e 2e 63 |Mac-Ctho|n/main.c|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00000e70| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00000e80| 20 20 20 34 36 30 35 20 | 20 34 35 34 32 32 36 31 | 4605 | 4542261|
|00000e90| 30 36 30 20 20 20 36 37 | 35 30 00 20 00 00 00 00 |060 67|50. ....|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 23 69 6e 63 6c 75 64 65 | 20 22 74 65 73 74 73 2e |#include| "tests.|
|00001010| 68 22 0d 0d 69 6e 74 20 | 74 72 61 63 65 20 3d 20 |h"..int |trace = |
|00001020| 30 3b 0d 69 6e 74 20 64 | 65 62 75 67 20 3d 20 30 |0;.int d|ebug = 0|
|00001030| 3b 0d 0d 69 6e 74 20 54 | 66 6c 61 67 20 3d 20 31 |;..int T|flag = 1|
|00001040| 3b 09 09 2f 2a 20 70 72 | 69 6e 74 20 74 69 6d 69 |;../* pr|int timi|
|00001050| 6e 67 20 2a 2f 0d 69 6e | 74 20 48 66 6c 61 67 20 |ng */.in|t Hflag |
|00001060| 3d 20 30 3b 09 09 2f 2a | 20 70 72 69 6e 74 20 68 |= 0;../*| print h|
|00001070| 65 6c 70 20 6d 65 73 73 | 61 67 65 20 2a 2f 0d 69 |elp mess|age */.i|
|00001080| 6e 74 20 53 66 6c 61 67 | 20 3d 20 30 3b 09 09 2f |nt Sflag| = 0;../|
|00001090| 2a 20 64 6f 6e 27 74 20 | 70 72 69 6e 74 20 6e 6f |* don't |print no|
|000010a0| 6e 2d 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 73 |n-error |messages|
|000010b0| 20 2a 2f 0d 69 6e 74 20 | 46 66 6c 61 67 20 3d 20 | */.int |Fflag = |
|000010c0| 30 3b 09 09 2f 2a 20 74 | 65 73 74 20 66 75 6e 63 |0;../* t|est func|
|000010d0| 74 69 6f 6e 20 6f 6e 6c | 79 3b 20 20 73 65 74 20 |tion onl|y; set |
|000010e0| 63 6f 75 6e 74 20 74 6f | 20 31 2c 20 6e 65 67 61 |count to| 1, nega|
|000010f0| 74 65 20 2d 74 20 2a 2f | 0d 69 6e 74 20 4e 66 6c |te -t */|.int Nfl|
|00001100| 61 67 20 3d 20 30 3b 09 | 09 2f 2a 20 53 75 70 70 |ag = 0;.|./* Supp|
|00001110| 72 65 73 73 20 64 69 72 | 65 63 74 6f 72 79 20 6f |ress dir|ectory o|
|00001120| 70 65 72 61 74 69 6f 6e | 73 20 2a 2f 0d 69 6e 74 |peration|s */.int|
|00001130| 20 49 66 6c 61 67 20 3d | 20 30 3b 09 09 2f 2a 20 | Iflag =| 0;../* |
|00001140| 49 67 6e 6f 72 65 20 6e | 6f 6e 2d 74 65 73 74 20 |Ignore n|on-test |
|00001150| 66 69 6c 65 73 20 64 69 | 72 20 65 6e 74 72 69 65 |files di|r entrie|
|00001160| 73 20 2a 2f 0d 0d 63 68 | 61 72 20 54 45 53 54 44 |s */..ch|ar TESTD|
|00001170| 49 52 5b 32 35 36 5d 3b | 0d 0d 69 6e 74 20 44 44 |IR[256];|..int DD|
|00001180| 49 52 53 20 3d 20 32 3b | 0d 69 6e 74 20 44 4c 45 |IRS = 2;|.int DLE|
|00001190| 56 53 20 3d 20 35 3b 0d | 69 6e 74 20 44 46 49 4c |VS = 5;.|int DFIL|
|000011a0| 53 20 3d 20 35 3b 0d 0d | 6c 6f 6e 67 20 44 53 49 |S = 5;..|long DSI|
|000011b0| 5a 45 20 3d 20 31 30 34 | 38 35 37 36 3b 0d 0d 23 |ZE = 104|8576;..#|
|000011c0| 64 65 66 69 6e 65 09 4f | 46 46 09 09 69 66 20 28 |define.O|FF..if (|
|000011d0| 30 29 0d 0d 65 78 74 65 | 72 6e 20 76 6f 69 64 20 |0)..exte|rn void |
|000011e0| 28 2a 5f 65 63 68 6f 5f | 74 6f 5f 70 72 69 6e 74 |(*_echo_|to_print|
|000011f0| 65 72 5f 29 28 29 3b 09 | 2f 2a 20 67 6c 6f 62 61 |er_)();.|/* globa|
|00001200| 6c 20 45 63 68 6f 20 63 | 61 6c 6c 20 76 61 72 69 |l Echo c|all vari|
|00001210| 61 62 6c 65 20 66 6f 72 | 20 70 72 69 6e 74 65 72 |able for| printer|
|00001220| 20 2a 2f 0d 0d 63 68 61 | 72 20 2a 2a 61 72 67 76 | */..cha|r **argv|
|00001230| 28 61 72 67 29 0d 69 6e | 74 20 61 72 67 3b 0d 7b |(arg).in|t arg;.{|
|00001240| 0d 09 73 74 61 74 69 63 | 20 63 68 61 72 20 2a 76 |..static| char *v|
|00001250| 65 63 74 6f 72 5b 33 32 | 5d 3b 0d 09 63 68 61 72 |ector[32|];..char|
|00001260| 20 2a 2a 70 2c 20 2a 2a | 66 72 6f 6d 3b 0d 09 0d | **p, **|from;...|
|00001270| 09 70 20 3d 20 76 65 63 | 74 6f 72 3b 0d 09 66 72 |.p = vec|tor;..fr|
|00001280| 6f 6d 20 3d 20 28 63 68 | 61 72 20 2a 2a 29 26 61 |om = (ch|ar **)&a|
|00001290| 72 67 3b 0d 09 77 68 69 | 6c 65 20 28 2a 70 2b 2b |rg;..whi|le (*p++|
|000012a0| 20 3d 20 2a 66 72 6f 6d | 2b 2b 29 3b 0d 0d 09 2a | = *from|++);...*|
|000012b0| 70 2b 2b 20 3d 20 28 63 | 68 61 72 20 2a 29 30 3b |p++ = (c|har *)0;|
|000012c0| 0d 09 72 65 74 75 72 6e | 20 76 65 63 74 6f 72 3b |..return| vector;|
|000012d0| 0d 7d 0d 0d 6d 61 69 6e | 28 29 0d 7b 0d 09 69 6e |.}..main|().{..in|
|000012e0| 74 20 73 74 61 72 74 20 | 3d 20 30 3b 0d 09 69 6e |t start |= 0;..in|
|000012f0| 74 20 6d 6f 72 65 20 3d | 20 54 52 55 45 3b 0d 0d |t more =| TRUE;..|
|00001300| 09 65 78 74 65 72 6e 20 | 65 63 68 6f 5f 74 6f 5f |.extern |echo_to_|
|00001310| 66 69 6c 65 28 29 3b 0d | 09 65 78 74 65 72 6e 20 |file();.|.extern |
|00001320| 63 68 61 72 20 2a 63 74 | 69 6d 65 28 29 3b 0d 0d |char *ct|ime();..|
|00001330| 09 65 78 74 65 72 6e 20 | 69 6e 74 20 64 65 66 61 |.extern |int defa|
|00001340| 75 6c 74 5f 76 72 65 66 | 6e 75 6d 3b 0d 0d 09 5f |ult_vref|num;..._|
|00001350| 65 63 68 6f 5f 74 6f 5f | 70 72 69 6e 74 65 72 5f |echo_to_|printer_|
|00001360| 20 3d 20 28 76 6f 69 64 | 20 2a 29 65 63 68 6f 5f | = (void| *)echo_|
|00001370| 74 6f 5f 66 69 6c 65 3b | 0d 0d 09 70 72 69 6e 74 |to_file;|...print|
|00001380| 66 28 22 4d 61 63 69 6e | 74 6f 73 68 20 4e 46 53 |f("Macin|tosh NFS|
|00001390| 20 52 65 76 69 73 69 6f | 6e 20 32 20 42 41 53 49 | Revisio|n 2 BASI|
|000013a0| 43 20 74 65 73 74 20 73 | 75 69 74 65 20 28 56 30 |C test s|uite (V0|
|000013b0| 2e 32 34 29 5c 74 25 73 | 5c 6e 22 2c 20 63 74 69 |.24)\t%s|\n", cti|
|000013c0| 6d 65 28 30 4c 29 29 3b | 0d 0d 09 2f 2a 20 61 73 |me(0L));|.../* as|
|000013d0| 6b 20 77 65 72 65 20 77 | 65 20 73 68 6f 75 6c 64 |k were w|e should|
|000013e0| 20 74 65 73 74 20 2a 2f | 0d 09 69 66 20 28 21 61 | test */|..if (!a|
|000013f0| 73 6b 66 6f 72 64 69 72 | 28 54 45 53 54 44 49 52 |skfordir|(TESTDIR|
|00001400| 2c 20 26 64 65 66 61 75 | 6c 74 5f 76 72 65 66 6e |, &defau|lt_vrefn|
|00001410| 75 6d 29 29 0d 09 09 72 | 65 74 75 72 6e 3b 0d 0d |um))...r|eturn;..|
|00001420| 09 69 66 20 28 64 65 62 | 75 67 29 0d 09 09 7b 0d |.if (deb|ug)...{.|
|00001430| 09 09 44 44 49 52 53 20 | 3d 20 31 3b 0d 09 09 44 |..DDIRS |= 1;...D|
|00001440| 4c 45 56 53 20 3d 20 32 | 3b 0d 09 09 44 46 49 4c |LEVS = 2|;...DFIL|
|00001450| 53 20 3d 20 31 3b 0d 0d | 09 09 44 53 49 5a 45 20 |S = 1;..|..DSIZE |
|00001460| 3d 20 38 31 39 32 3b 0d | 09 09 7d 0d 0d 09 69 66 |= 8192;.|..}...if|
|00001470| 20 28 30 29 0d 09 09 7b | 0d 09 09 72 6d 64 69 72 | (0)...{|...rmdir|
|00001480| 5f 72 65 63 75 72 73 65 | 28 54 45 53 54 44 49 52 |_recurse|(TESTDIR|
|00001490| 29 3b 0d 09 09 72 65 74 | 75 72 6e 3b 0d 09 09 7d |);...ret|urn;...}|
|000014a0| 0d 0d 23 69 66 64 65 66 | 20 44 45 42 55 47 0d 09 |..#ifdef| DEBUG..|
|000014b0| 73 74 61 72 74 20 3d 20 | 31 3b 0d 09 6d 6f 72 65 |start = |1;..more|
|000014c0| 20 3d 20 54 52 55 45 3b | 0d 09 70 72 69 6e 74 66 | = TRUE;|..printf|
|000014d0| 28 22 2a 2a 44 45 42 55 | 47 20 56 45 52 53 49 4f |("**DEBU|G VERSIO|
|000014e0| 4e 2a 2a 5c 6e 22 29 3b | 0d 23 65 6e 64 69 66 0d |N**\n");|.#endif.|
|000014f0| 0d 23 64 65 66 69 6e 65 | 09 46 4c 41 47 53 09 22 |.#define|.FLAGS."|
|00001500| 2d 6e 22 2c 0d 0d 09 69 | 66 20 28 73 74 61 72 74 |-n",...i|f (start|
|00001510| 20 3c 3d 20 31 29 0d 09 | 09 7b 0d 09 09 74 65 73 | <= 1)..|.{...tes|
|00001520| 74 31 28 31 2c 20 61 72 | 67 76 28 22 74 65 73 74 |t1(1, ar|gv("test|
|00001530| 31 22 2c 20 46 4c 41 47 | 53 20 28 63 68 61 72 20 |1", FLAG|S (char |
|00001540| 2a 29 30 29 29 3b 0d 09 | 09 69 66 20 28 21 6d 6f |*)0));..|.if (!mo|
|00001550| 72 65 29 20 67 6f 74 6f | 20 64 6f 6e 65 3b 0d 09 |re) goto| done;..|
|00001560| 09 7d 0d 09 69 66 20 28 | 73 74 61 72 74 20 3c 3d |.}..if (|start <=|
|00001570| 20 32 29 0d 09 09 7b 0d | 09 09 74 65 73 74 32 28 | 2)...{.|..test2(|
|00001580| 31 2c 20 61 72 67 76 28 | 22 74 65 73 74 32 22 2c |1, argv(|"test2",|
|00001590| 20 46 4c 41 47 53 20 28 | 63 68 61 72 20 2a 29 30 | FLAGS (|char *)0|
|000015a0| 29 29 3b 0d 09 09 69 66 | 20 28 21 6d 6f 72 65 29 |));...if| (!more)|
|000015b0| 20 67 6f 74 6f 20 64 6f | 6e 65 3b 0d 09 09 7d 0d | goto do|ne;...}.|
|000015c0| 09 69 66 20 28 73 74 61 | 72 74 20 3c 3d 20 33 29 |.if (sta|rt <= 3)|
|000015d0| 0d 09 09 7b 0d 09 09 74 | 65 73 74 33 28 31 2c 20 |...{...t|est3(1, |
|000015e0| 61 72 67 76 28 22 74 65 | 73 74 33 22 2c 20 46 4c |argv("te|st3", FL|
|000015f0| 41 47 53 20 28 63 68 61 | 72 20 2a 29 30 29 29 3b |AGS (cha|r *)0));|
|00001600| 0d 09 09 69 66 20 28 21 | 6d 6f 72 65 29 20 67 6f |...if (!|more) go|
|00001610| 74 6f 20 64 6f 6e 65 3b | 0d 09 09 7d 0d 09 69 66 |to done;|...}..if|
|00001620| 20 28 73 74 61 72 74 20 | 3c 3d 20 34 29 0d 09 09 | (start |<= 4)...|
|00001630| 7b 0d 09 09 74 65 73 74 | 34 28 31 2c 20 61 72 67 |{...test|4(1, arg|
|00001640| 76 28 22 74 65 73 74 34 | 22 2c 20 28 63 68 61 72 |v("test4|", (char|
|00001650| 20 2a 29 30 29 29 3b 0d | 4f 46 46 09 09 74 65 73 | *)0));.|OFF..tes|
|00001660| 74 34 61 28 31 2c 20 61 | 72 67 76 28 22 74 65 73 |t4a(1, a|rgv("tes|
|00001670| 74 34 61 22 2c 20 28 63 | 68 61 72 20 2a 29 30 29 |t4a", (c|har *)0)|
|00001680| 29 3b 0d 09 09 69 66 20 | 28 21 6d 6f 72 65 29 20 |);...if |(!more) |
|00001690| 67 6f 74 6f 20 64 6f 6e | 65 3b 0d 09 09 7d 0d 09 |goto don|e;...}..|
|000016a0| 09 0d 09 69 66 20 28 73 | 74 61 72 74 20 3c 3d 20 |...if (s|tart <= |
|000016b0| 35 29 0d 09 09 7b 0d 09 | 09 74 65 73 74 35 28 31 |5)...{..|.test5(1|
|000016c0| 2c 20 61 72 67 76 28 22 | 74 65 73 74 35 22 2c 20 |, argv("|test5", |
|000016d0| 46 4c 41 47 53 20 28 63 | 68 61 72 20 2a 29 30 29 |FLAGS (c|har *)0)|
|000016e0| 29 3b 0d 4f 46 46 09 09 | 74 65 73 74 35 61 28 31 |);.OFF..|test5a(1|
|000016f0| 2c 20 61 72 67 76 28 22 | 74 65 73 74 35 61 22 2c |, argv("|test5a",|
|00001700| 20 28 63 68 61 72 20 2a | 29 30 29 29 3b 0d 4f 46 | (char *|)0));.OF|
|00001710| 46 09 09 74 65 73 74 35 | 62 28 31 2c 20 61 72 67 |F..test5|b(1, arg|
|00001720| 76 28 22 74 65 73 74 35 | 62 22 2c 20 28 63 68 61 |v("test5|b", (cha|
|00001730| 72 20 2a 29 30 29 29 3b | 0d 09 09 69 66 20 28 21 |r *)0));|...if (!|
|00001740| 6d 6f 72 65 29 20 67 6f | 74 6f 20 64 6f 6e 65 3b |more) go|to done;|
|00001750| 0d 09 09 7d 0d 0d 09 69 | 66 20 28 73 74 61 72 74 |...}...i|f (start|
|00001760| 20 3c 3d 20 36 29 0d 09 | 09 7b 0d 09 09 74 65 73 | <= 6)..|.{...tes|
|00001770| 74 36 28 31 2c 20 61 72 | 67 76 28 22 74 65 73 74 |t6(1, ar|gv("test|
|00001780| 36 22 2c 20 46 4c 41 47 | 53 20 28 63 68 61 72 20 |6", FLAG|S (char |
|00001790| 2a 29 30 29 29 3b 0d 09 | 09 69 66 20 28 21 6d 6f |*)0));..|.if (!mo|
|000017a0| 72 65 29 20 67 6f 74 6f | 20 64 6f 6e 65 3b 0d 09 |re) goto| done;..|
|000017b0| 09 7d 0d 0d 09 69 66 20 | 28 73 74 61 72 74 20 3c |.}...if |(start <|
|000017c0| 3d 20 37 29 0d 09 09 7b | 0d 09 09 74 65 73 74 37 |= 7)...{|...test7|
|000017d0| 28 31 2c 20 61 72 67 76 | 28 22 74 65 73 74 37 22 |(1, argv|("test7"|
|000017e0| 2c 20 46 4c 41 47 53 20 | 28 63 68 61 72 20 2a 29 |, FLAGS |(char *)|
|000017f0| 30 29 29 3b 0d 4f 46 46 | 09 09 74 65 73 74 37 61 |0));.OFF|..test7a|
|00001800| 28 31 2c 20 61 72 67 76 | 28 22 74 65 73 74 37 61 |(1, argv|("test7a|
|00001810| 22 2c 20 28 63 68 61 72 | 20 2a 29 30 29 29 3b 0d |", (char| *)0));.|
|00001820| 4f 46 46 09 09 74 65 73 | 74 37 62 28 31 2c 20 61 |OFF..tes|t7b(1, a|
|00001830| 72 67 76 28 22 74 65 73 | 74 37 62 22 2c 20 28 63 |rgv("tes|t7b", (c|
|00001840| 68 61 72 20 2a 29 30 29 | 29 3b 0d 09 09 69 66 20 |har *)0)|);...if |
|00001850| 28 21 6d 6f 72 65 29 20 | 67 6f 74 6f 20 64 6f 6e |(!more) |goto don|
|00001860| 65 3b 0d 09 09 7d 0d 09 | 09 0d 09 69 66 20 28 73 |e;...}..|...if (s|
|00001870| 74 61 72 74 20 3c 3d 20 | 38 29 0d 09 09 7b 0d 09 |tart <= |8)...{..|
|00001880| 09 74 65 73 74 38 28 31 | 2c 20 61 72 67 76 28 22 |.test8(1|, argv("|
|00001890| 74 65 73 74 38 22 2c 20 | 46 4c 41 47 53 20 28 63 |test8", |FLAGS (c|
|000018a0| 68 61 72 20 2a 29 30 29 | 29 3b 0d 09 09 69 66 20 |har *)0)|);...if |
|000018b0| 28 21 6d 6f 72 65 29 20 | 67 6f 74 6f 20 64 6f 6e |(!more) |goto don|
|000018c0| 65 3b 0d 09 09 7d 0d 0d | 09 69 66 20 28 73 74 61 |e;...}..|.if (sta|
|000018d0| 72 74 20 3c 3d 20 39 29 | 0d 09 09 7b 0d 09 09 74 |rt <= 9)|...{...t|
|000018e0| 65 73 74 39 28 31 2c 20 | 61 72 67 76 28 22 74 65 |est9(1, |argv("te|
|000018f0| 73 74 39 22 2c 20 46 4c | 41 47 53 20 28 63 68 61 |st9", FL|AGS (cha|
|00001900| 72 20 2a 29 30 29 29 3b | 0d 09 09 69 66 20 28 21 |r *)0));|...if (!|
|00001910| 6d 6f 72 65 29 20 67 6f | 74 6f 20 64 6f 6e 65 3b |more) go|to done;|
|00001920| 0d 09 09 7d 0d 0d 64 6f | 6e 65 3a 0d 09 70 72 69 |...}..do|ne:..pri|
|00001930| 6e 74 66 28 22 41 6c 6c | 20 74 65 73 74 73 20 63 |ntf("All| tests c|
|00001940| 6f 6d 70 6c 65 74 65 64 | 2e 5c 74 25 73 5c 6e 22 |ompleted|.\t%s\n"|
|00001950| 2c 20 63 74 69 6d 65 28 | 30 4c 29 29 3b 0d 0d 09 |, ctime(|0L));...|
|00001960| 65 63 68 6f 5f 74 6f 5f | 66 69 6c 65 5f 64 6f 6e |echo_to_|file_don|
|00001970| 65 28 29 3b 0d 7d 0d 0d | 75 73 61 67 65 28 29 0d |e();.}..|usage().|
|00001980| 7b 0d 7d 0d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |{.}.....|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 4d 61 63 2d 43 74 68 6f | 6e 2f 4d 61 6b 65 66 69 |Mac-Ctho|n/Makefi|
|00001a10| 6c 65 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |le......|........|
|00001a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00001a70| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00001a80| 20 20 20 32 37 33 33 20 | 20 34 35 34 32 32 36 31 | 2733 | 4542261|
|00001a90| 30 36 32 20 20 20 37 33 | 32 32 00 20 00 00 00 00 |062 73|22. ....|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 23 0d 23 20 20 20 20 20 | 20 20 40 28 23 29 4d 61 |#.# | @(#)Ma|
|00001c10| 6b 65 66 69 6c 65 09 31 | 2e 34 20 38 39 2f 30 31 |kefile.1|.4 89/01|
|00001c20| 2f 31 33 20 4e 46 53 20 | 52 65 76 20 32 20 54 65 |/13 NFS |Rev 2 Te|
|00001c30| 73 74 73 75 69 74 65 0d | 23 0d 23 20 74 6f 20 6d |stsuite.|#.# to m|
|00001c40| 61 6b 65 20 74 65 73 74 | 73 2c 20 75 73 65 20 27 |ake test|s, use '|
|00001c50| 6d 61 6b 65 27 0d 23 20 | 74 6f 20 63 6f 70 79 20 |make'.# |to copy |
|00001c60| 74 65 73 74 73 20 74 6f | 20 61 6e 6f 74 68 65 72 |tests to| another|
|00001c70| 20 64 69 72 65 63 74 6f | 72 79 2c 20 75 73 65 20 | directo|ry, use |
|00001c80| 27 6d 61 6b 65 20 63 6f | 70 79 20 44 45 53 54 44 |'make co|py DESTD|
|00001c90| 49 52 3d 64 69 72 27 0d | 23 20 74 6f 20 63 6f 70 |IR=dir'.|# to cop|
|00001ca0| 79 20 73 6f 75 72 63 65 | 20 74 6f 20 61 6e 6f 74 |y source| to anot|
|00001cb0| 68 65 72 20 64 69 72 65 | 63 74 6f 72 79 2c 20 75 |her dire|ctory, u|
|00001cc0| 73 65 20 27 6d 61 6b 65 | 20 64 69 73 74 20 44 45 |se 'make| dist DE|
|00001cd0| 53 54 44 49 52 3d 64 69 | 72 27 0d 0d 54 45 53 54 |STDIR=di|r'..TEST|
|00001ce0| 53 20 3d 20 74 65 73 74 | 31 20 74 65 73 74 32 20 |S = test|1 test2 |
|00001cf0| 74 65 73 74 33 20 74 65 | 73 74 34 20 74 65 73 74 |test3 te|st4 test|
|00001d00| 35 20 74 65 73 74 36 20 | 74 65 73 74 37 20 74 65 |5 test6 |test7 te|
|00001d10| 73 74 38 20 74 65 73 74 | 39 0d 41 55 58 54 45 53 |st8 test|9.AUXTES|
|00001d20| 54 53 20 3d 20 74 65 73 | 74 34 61 20 74 65 73 74 |TS = tes|t4a test|
|00001d30| 35 61 20 74 65 73 74 35 | 62 20 74 65 73 74 37 61 |5a test5|b test7a|
|00001d40| 20 74 65 73 74 37 62 0d | 44 45 53 54 44 49 52 20 | test7b.|DESTDIR |
|00001d50| 3d 20 2f 6e 6f 2f 73 75 | 63 68 2f 70 61 74 68 0d |= /no/su|ch/path.|
|00001d60| 23 20 20 44 65 66 69 6e | 65 20 4e 46 53 33 5f 32 |# Defin|e NFS3_2|
|00001d70| 20 66 6f 72 20 4e 46 53 | 20 33 2e 32 20 63 6f 6d | for NFS| 3.2 com|
|00001d80| 70 61 74 69 62 69 6c 69 | 74 79 20 2d 20 43 6f 6d |patibili|ty - Com|
|00001d90| 6d 65 6e 74 20 6f 75 74 | 20 69 66 20 6e 6f 74 20 |ment out| if not |
|00001da0| 4e 46 53 20 33 2e 32 0d | 23 43 4f 4d 50 41 54 20 |NFS 3.2.|#COMPAT |
|00001db0| 3d 20 2d 44 4e 46 53 33 | 5f 32 0d 43 46 4c 41 47 |= -DNFS3|_2.CFLAG|
|00001dc0| 53 20 3d 20 24 28 43 4f | 4d 50 41 54 29 0d 0d 61 |S = $(CO|MPAT)..a|
|00001dd0| 6c 6c 3a 20 6f 72 69 67 | 74 65 73 74 73 20 61 75 |ll: orig|tests au|
|00001de0| 78 74 65 73 74 73 0d 0d | 6f 72 69 67 74 65 73 74 |xtests..|origtest|
|00001df0| 73 3a 20 24 28 54 45 53 | 54 53 29 0d 61 75 78 74 |s: $(TES|TS).auxt|
|00001e00| 65 73 74 73 3a 20 24 28 | 41 55 58 54 45 53 54 53 |ests: $(|AUXTESTS|
|00001e10| 29 0d 0d 74 65 73 74 31 | 3a 20 74 65 73 74 31 2e |)..test1|: test1.|
|00001e20| 63 20 73 75 62 72 2e 6f | 0d 09 24 28 43 43 29 20 |c subr.o|..$(CC) |
|00001e30| 24 28 43 46 4c 41 47 53 | 29 20 2d 6f 20 24 40 20 |$(CFLAGS|) -o $@ |
|00001e40| 24 40 2e 63 20 73 75 62 | 72 2e 6f 0d 0d 74 65 73 |$@.c sub|r.o..tes|
|00001e50| 74 32 3a 20 74 65 73 74 | 32 2e 63 20 73 75 62 72 |t2: test|2.c subr|
|00001e60| 2e 6f 0d 09 24 28 43 43 | 29 20 24 28 43 46 4c 41 |.o..$(CC|) $(CFLA|
|00001e70| 47 53 29 20 2d 6f 20 24 | 40 20 24 40 2e 63 20 73 |GS) -o $|@ $@.c s|
|00001e80| 75 62 72 2e 6f 0d 0d 74 | 65 73 74 33 3a 20 74 65 |ubr.o..t|est3: te|
|00001e90| 73 74 33 2e 63 20 73 75 | 62 72 2e 6f 0d 09 24 28 |st3.c su|br.o..$(|
|00001ea0| 43 43 29 20 24 28 43 46 | 4c 41 47 53 29 20 2d 6f |CC) $(CF|LAGS) -o|
|00001eb0| 20 24 40 20 24 40 2e 63 | 20 73 75 62 72 2e 6f 0d | $@ $@.c| subr.o.|
|00001ec0| 0d 74 65 73 74 34 3a 20 | 74 65 73 74 34 2e 63 20 |.test4: |test4.c |
|00001ed0| 73 75 62 72 2e 6f 0d 09 | 24 28 43 43 29 20 24 28 |subr.o..|$(CC) $(|
|00001ee0| 43 46 4c 41 47 53 29 20 | 2d 6f 20 24 40 20 24 40 |CFLAGS) |-o $@ $@|
|00001ef0| 2e 63 20 73 75 62 72 2e | 6f 0d 0d 74 65 73 74 34 |.c subr.|o..test4|
|00001f00| 61 3a 20 74 65 73 74 34 | 61 2e 63 20 73 75 62 72 |a: test4|a.c subr|
|00001f10| 2e 6f 0d 09 24 28 43 43 | 29 20 24 28 43 46 4c 41 |.o..$(CC|) $(CFLA|
|00001f20| 47 53 29 20 2d 6f 20 24 | 40 20 24 40 2e 63 20 73 |GS) -o $|@ $@.c s|
|00001f30| 75 62 72 2e 6f 0d 0d 74 | 65 73 74 35 3a 20 74 65 |ubr.o..t|est5: te|
|00001f40| 73 74 35 2e 63 20 73 75 | 62 72 2e 6f 0d 09 24 28 |st5.c su|br.o..$(|
|00001f50| 43 43 29 20 24 28 43 46 | 4c 41 47 53 29 20 2d 6f |CC) $(CF|LAGS) -o|
|00001f60| 20 24 40 20 24 40 2e 63 | 20 73 75 62 72 2e 6f 0d | $@ $@.c| subr.o.|
|00001f70| 0d 74 65 73 74 35 61 3a | 20 74 65 73 74 35 61 2e |.test5a:| test5a.|
|00001f80| 63 20 73 75 62 72 2e 6f | 0d 09 24 28 43 43 29 20 |c subr.o|..$(CC) |
|00001f90| 24 28 43 46 4c 41 47 53 | 29 20 2d 6f 20 24 40 20 |$(CFLAGS|) -o $@ |
|00001fa0| 24 40 2e 63 20 73 75 62 | 72 2e 6f 0d 0d 74 65 73 |$@.c sub|r.o..tes|
|00001fb0| 74 35 62 3a 20 74 65 73 | 74 35 62 2e 63 20 73 75 |t5b: tes|t5b.c su|
|00001fc0| 62 72 2e 6f 0d 09 24 28 | 43 43 29 20 24 28 43 46 |br.o..$(|CC) $(CF|
|00001fd0| 4c 41 47 53 29 20 2d 6f | 20 24 40 20 24 40 2e 63 |LAGS) -o| $@ $@.c|
|00001fe0| 20 73 75 62 72 2e 6f 0d | 0d 74 65 73 74 36 3a 20 | subr.o.|.test6: |
|00001ff0| 74 65 73 74 36 2e 63 20 | 73 75 62 72 2e 6f 0d 09 |test6.c |subr.o..|
|00002000| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|00002010| 2d 6f 20 24 40 20 24 40 | 2e 63 20 73 75 62 72 2e |-o $@ $@|.c subr.|
|00002020| 6f 0d 0d 74 65 73 74 37 | 3a 20 74 65 73 74 37 2e |o..test7|: test7.|
|00002030| 63 20 73 75 62 72 2e 6f | 0d 09 24 28 43 43 29 20 |c subr.o|..$(CC) |
|00002040| 24 28 43 46 4c 41 47 53 | 29 20 2d 6f 20 24 40 20 |$(CFLAGS|) -o $@ |
|00002050| 24 40 2e 63 20 73 75 62 | 72 2e 6f 0d 0d 74 65 73 |$@.c sub|r.o..tes|
|00002060| 74 37 61 3a 20 74 65 73 | 74 37 61 2e 63 20 73 75 |t7a: tes|t7a.c su|
|00002070| 62 72 2e 6f 0d 09 24 28 | 43 43 29 20 24 28 43 46 |br.o..$(|CC) $(CF|
|00002080| 4c 41 47 53 29 20 2d 6f | 20 24 40 20 24 40 2e 63 |LAGS) -o| $@ $@.c|
|00002090| 20 73 75 62 72 2e 6f 0d | 0d 74 65 73 74 37 62 3a | subr.o.|.test7b:|
|000020a0| 20 74 65 73 74 37 62 2e | 63 20 73 75 62 72 2e 6f | test7b.|c subr.o|
|000020b0| 0d 09 24 28 43 43 29 20 | 24 28 43 46 4c 41 47 53 |..$(CC) |$(CFLAGS|
|000020c0| 29 20 2d 6f 20 24 40 20 | 24 40 2e 63 20 73 75 62 |) -o $@ |$@.c sub|
|000020d0| 72 2e 6f 0d 0d 74 65 73 | 74 38 3a 20 74 65 73 74 |r.o..tes|t8: test|
|000020e0| 38 2e 63 20 73 75 62 72 | 2e 6f 0d 09 24 28 43 43 |8.c subr|.o..$(CC|
|000020f0| 29 20 24 28 43 46 4c 41 | 47 53 29 20 2d 6f 20 24 |) $(CFLA|GS) -o $|
|00002100| 40 20 24 40 2e 63 20 73 | 75 62 72 2e 6f 0d 0d 74 |@ $@.c s|ubr.o..t|
|00002110| 65 73 74 39 3a 20 74 65 | 73 74 39 2e 63 20 73 75 |est9: te|st9.c su|
|00002120| 62 72 2e 6f 0d 09 24 28 | 43 43 29 20 24 28 43 46 |br.o..$(|CC) $(CF|
|00002130| 4c 41 47 53 29 20 2d 6f | 20 24 40 20 24 40 2e 63 |LAGS) -o| $@ $@.c|
|00002140| 20 73 75 62 72 2e 6f 0d | 0d 63 6c 65 61 6e 3a 0d | subr.o.|.clean:.|
|00002150| 09 2d 72 6d 20 2a 2e 6f | 20 24 28 54 45 53 54 53 |.-rm *.o| $(TESTS|
|00002160| 29 20 24 28 41 55 58 54 | 45 53 54 53 29 0d 0d 63 |) $(AUXT|ESTS)..c|
|00002170| 6f 70 79 3a 20 24 28 54 | 45 53 54 53 29 0d 09 63 |opy: $(T|ESTS)..c|
|00002180| 70 20 72 75 6e 74 65 73 | 74 73 20 24 28 54 45 53 |p runtes|ts $(TES|
|00002190| 54 53 29 20 24 28 41 55 | 58 54 45 53 54 53 29 20 |TS) $(AU|XTESTS) |
|000021a0| 24 28 44 45 53 54 44 49 | 52 29 0d 0d 64 69 73 74 |$(DESTDI|R)..dist|
|000021b0| 3a 0d 09 63 70 20 72 75 | 6e 74 65 73 74 73 20 4d |:..cp ru|ntests M|
|000021c0| 61 6b 65 66 69 6c 65 20 | 2a 2e 63 20 2a 2e 68 20 |akefile |*.c *.h |
|000021d0| 24 28 44 45 53 54 44 49 | 52 29 0d 74 73 20 61 75 |$(DESTDI|R).ts au|
|000021e0| 78 74 65 73 74 73 0d 0d | 6f 72 69 67 74 65 73 74 |xtests..|origtest|
|000021f0| 73 3a 20 24 28 54 45 53 | 54 53 29 0d 61 75 78 74 |s: $(TES|TS).auxt|
|00002200| 4d 61 63 2d 43 74 68 6f | 6e 2f 52 45 41 44 4d 45 |Mac-Ctho|n/README|
|00002210| 21 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |!.......|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00002270| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00002280| 20 20 20 20 34 33 31 20 | 20 34 35 34 32 32 36 31 | 431 | 4542261|
|00002290| 30 36 34 20 20 20 36 35 | 35 36 00 20 00 00 00 00 |064 65|56. ....|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 0d 54 68 69 73 20 69 73 | 20 61 20 73 69 6d 70 6c |.This is| a simpl|
|00002410| 65 20 70 6f 72 74 20 6f | 66 20 74 68 65 20 22 62 |e port o|f the "b|
|00002420| 61 73 69 63 20 74 65 73 | 74 73 22 20 63 6f 64 65 |asic tes|ts" code|
|00002430| 20 66 72 6f 6d 20 74 68 | 65 20 63 6f 6e 6e 65 63 | from th|e connec|
|00002440| 74 2d 61 2d 74 68 6f 6e | 20 27 38 39 0d 74 6f 20 |t-a-thon| '89.to |
|00002450| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 2e 20 49 |the Maci|ntosh. I|
|00002460| 74 20 63 6f 6d 70 69 6c | 65 73 20 75 6e 64 65 72 |t compil|es under|
|00002470| 20 4c 69 67 68 74 53 70 | 65 65 64 20 43 20 33 2e | LightSp|eed C 3.|
|00002480| 30 20 28 69 74 20 2a 64 | 6f 65 73 20 6e 6f 74 2a |0 (it *d|oes not*|
|00002490| 20 63 6f 6d 70 69 6c 65 | 0d 75 6e 64 65 72 20 34 | compile|.under 4|
|000024a0| 2e 30 3b 20 73 6f 72 72 | 79 29 0d 0d 46 65 65 6c |.0; sorr|y)..Feel|
|000024b0| 20 66 72 65 65 20 74 6f | 20 63 61 6c 6c 20 6d 65 | free to| call me|
|000024c0| 20 6f 72 20 73 65 6e 64 | 20 65 2d 6d 61 69 6c 20 | or send| e-mail |
|000024d0| 69 66 20 79 6f 75 20 68 | 61 76 65 20 71 75 65 73 |if you h|ave ques|
|000024e0| 74 69 6f 6e 73 2e 0d 0d | 42 72 61 64 20 50 61 72 |tions...|Brad Par|
|000024f0| 6b 65 72 0d 62 72 61 64 | 40 63 61 79 6d 61 6e 2e |ker.brad|@cayman.|
|00002500| 63 6f 6d 0d 28 36 31 37 | 29 20 34 39 34 2d 31 39 |com.(617|) 494-19|
|00002510| 39 39 0d 31 32 2f 38 39 | 0d 10 00 07 74 65 73 74 |99.12/89|....test|
|00002520| 33 2e 63 00 00 00 9a 20 | 00 10 00 07 74 65 73 74 |3.c.... |....test|
|00002530| 34 2e 63 00 00 00 9a 21 | 00 14 00 08 74 65 73 74 |4.c....!|....test|
|00002540| 34 61 2e 63 00 00 b8 13 | 00 00 9a 22 00 10 00 07 |4a.c....|..."....|
|00002550| 74 65 73 74 35 2e 63 00 | 00 00 9a 23 00 14 00 08 |test5.c.|...#....|
|00002560| 74 65 73 74 35 61 2e 63 | 00 10 00 04 00 00 9a 24 |test5a.c|.......$|
|00002570| 00 14 00 08 74 65 73 74 | 35 62 2e 63 00 61 63 6c |....test|5b.c.acl|
|00002580| 00 00 9a 25 00 10 00 07 | 74 65 73 74 36 2e 63 00 |...%....|test6.c.|
|00002590| 00 00 9a 26 00 10 00 07 | 74 65 73 74 37 2e 63 00 |...&....|test7.c.|
|000025a0| 00 00 9a 27 00 14 00 08 | 74 65 73 74 37 61 2e 63 |...'....|test7a.c|
|000025b0| 00 69 6c 73 00 00 9a 28 | 00 14 00 08 74 65 73 74 |.ils...(|....test|
|000025c0| 37 62 2e 63 00 00 a0 22 | 00 00 9a 29 00 10 00 07 |7b.c..."|...)....|
|000025d0| 74 65 73 74 38 2e 63 00 | 00 00 9a 2a 00 10 00 07 |test8.c.|...*....|
|000025e0| 74 65 73 74 39 2e 63 00 | 00 00 9a 2b 00 10 00 07 |test9.c.|...+....|
|000025f0| 74 65 73 74 73 2e 68 00 | 00 00 a2 75 00 10 00 04 |tests.h.|...u....|
|00002600| 4d 61 63 2d 43 74 68 6f | 6e 2f 72 75 6e 74 65 73 |Mac-Ctho|n/runtes|
|00002610| 74 73 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ts......|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00002670| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00002680| 20 20 20 32 31 33 34 20 | 20 34 35 34 32 32 36 31 | 2134 | 4542261|
|00002690| 30 36 36 20 20 20 37 34 | 37 33 00 20 00 00 00 00 |066 74|73. ....|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 23 21 2f 62 69 6e 2f 73 | 68 0d 23 0d 23 20 20 20 |#!/bin/s|h.#.# |
|00002810| 20 20 20 20 40 28 23 29 | 72 75 6e 74 65 73 74 73 | @(#)|runtests|
|00002820| 09 31 2e 32 20 38 39 2f | 30 31 2f 30 38 20 4e 46 |.1.2 89/|01/08 NF|
|00002830| 53 20 52 65 76 20 32 20 | 74 65 73 74 73 75 69 74 |S Rev 2 |testsuit|
|00002840| 65 0d 23 0d 2e 20 2e 2e | 2f 73 74 61 72 74 75 70 |e.#.. ..|/startup|
|00002850| 2e 73 68 0d 0d 23 20 20 | 73 65 65 20 2e 2e 2f 73 |.sh..# |see ../s|
|00002860| 74 61 72 74 75 70 2e 73 | 68 20 66 6f 72 20 75 73 |tartup.s|h for us|
|00002870| 61 67 65 20 69 6e 66 6f | 0d 23 20 27 41 52 47 53 |age info|.# 'ARGS|
|00002880| 3d 2d 66 27 20 66 6f 72 | 20 62 61 73 69 63 20 66 |=-f' for| basic f|
|00002890| 75 6e 74 69 6f 6e 61 6c | 69 74 79 20 74 65 73 74 |untional|ity test|
|000028a0| 73 20 28 6f 6e 65 20 70 | 61 73 73 20 6f 66 20 65 |s (one p|ass of e|
|000028b0| 61 63 68 20 74 65 73 74 | 29 0d 23 20 27 41 52 47 |ach test|).# 'ARG|
|000028c0| 53 3d 20 20 27 20 66 6f | 72 20 6c 6f 6e 67 65 72 |S= ' fo|r longer|
|000028d0| 20 74 65 73 74 73 20 77 | 69 74 68 6f 75 74 20 74 | tests w|ithout t|
|000028e0| 69 6d 69 6e 67 20 28 31 | 2d 33 20 6d 69 6e 75 74 |iming (1|-3 minut|
|000028f0| 65 73 20 70 65 72 20 74 | 65 73 74 29 0d 23 20 27 |es per t|est).# '|
|00002900| 41 52 47 53 3d 2d 74 27 | 20 66 6f 72 20 6c 6f 6e |ARGS=-t'| for lon|
|00002910| 67 65 72 20 74 65 73 74 | 73 20 77 69 74 68 20 74 |ger test|s with t|
|00002920| 69 6d 69 6e 67 0d 0d 65 | 63 68 6f 20 22 53 74 61 |iming..e|cho "Sta|
|00002930| 72 74 69 6e 67 20 42 41 | 53 49 43 20 74 65 73 74 |rting BA|SIC test|
|00002940| 73 3a 20 74 65 73 74 20 | 64 69 72 65 63 74 6f 72 |s: test |director|
|00002950| 79 20 24 4e 46 53 54 45 | 53 54 44 49 52 20 28 61 |y $NFSTE|STDIR (a|
|00002960| 72 67 3a 20 24 41 52 47 | 53 29 22 0d 0d 23 20 46 |rg: $ARG|S)"..# F|
|00002970| 69 6c 65 20 61 6e 64 20 | 44 69 72 65 63 74 6f 72 |ile and |Director|
|00002980| 79 20 74 72 65 65 20 63 | 72 65 61 74 69 6f 6e 20 |y tree c|reation |
|00002990| 74 65 73 74 0d 65 63 68 | 6f 20 22 22 0d 74 65 73 |test.ech|o "".tes|
|000029a0| 74 31 20 24 41 52 47 53 | 0d 23 20 46 69 6c 65 20 |t1 $ARGS|.# File |
|000029b0| 61 6e 64 20 44 69 72 65 | 63 74 6f 72 79 20 74 72 |and Dire|ctory tr|
|000029c0| 65 65 20 72 65 6d 6f 76 | 61 6c 20 74 65 73 74 0d |ee remov|al test.|
|000029d0| 65 63 68 6f 20 22 22 0d | 74 65 73 74 32 20 24 41 |echo "".|test2 $A|
|000029e0| 52 47 53 0d 23 20 4c 6f | 6f 6b 75 70 20 61 63 72 |RGS.# Lo|okup acr|
|000029f0| 6f 73 73 20 6d 6f 75 6e | 74 20 70 6f 69 6e 74 0d |oss moun|t point.|
|00002a00| 65 63 68 6f 20 22 22 0d | 74 65 73 74 33 20 24 41 |echo "".|test3 $A|
|00002a10| 52 47 53 0d 23 20 53 65 | 74 61 74 74 72 2c 20 67 |RGS.# Se|tattr, g|
|00002a20| 65 74 61 74 74 72 20 61 | 6e 64 20 6c 6f 6f 6b 75 |etattr a|nd looku|
|00002a30| 70 20 74 65 73 74 73 0d | 65 63 68 6f 20 22 22 0d |p tests.|echo "".|
|00002a40| 74 65 73 74 34 20 24 41 | 52 47 53 0d 23 20 47 65 |test4 $A|RGS.# Ge|
|00002a50| 74 61 74 74 72 20 61 6e | 64 20 6c 6f 6f 6b 75 70 |tattr an|d lookup|
|00002a60| 20 74 65 73 74 73 0d 23 | 20 65 63 68 6f 20 22 22 | tests.#| echo ""|
|00002a70| 0d 23 20 74 65 73 74 34 | 61 20 24 41 52 47 53 0d |.# test4|a $ARGS.|
|00002a80| 23 20 57 72 69 74 65 20 | 61 6e 64 20 72 65 61 64 |# Write |and read|
|00002a90| 20 74 65 73 74 73 0d 65 | 63 68 6f 20 22 22 0d 74 | tests.e|cho "".t|
|00002aa0| 65 73 74 35 20 24 41 52 | 47 53 0d 23 20 54 65 73 |est5 $AR|GS.# Tes|
|00002ab0| 74 20 35 61 20 61 6e 64 | 20 35 62 20 73 65 70 61 |t 5a and| 5b sepa|
|00002ac0| 72 61 74 65 20 6f 75 74 | 20 74 68 65 20 72 65 61 |rate out| the rea|
|00002ad0| 64 20 61 6e 64 20 77 72 | 69 74 65 20 74 65 73 74 |d and wr|ite test|
|00002ae0| 73 20 69 6e 74 6f 20 73 | 69 6d 70 6c 65 72 20 63 |s into s|impler c|
|00002af0| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 0d 23 20 65 63 68 |omponent|s..# ech|
|00002b00| 6f 20 22 22 0d 23 20 74 | 65 73 74 35 61 20 24 41 |o "".# t|est5a $A|
|00002b10| 52 47 53 0d 23 20 65 63 | 68 6f 20 22 22 0d 23 20 |RGS.# ec|ho "".# |
|00002b20| 74 65 73 74 35 62 20 24 | 41 52 47 53 0d 23 20 52 |test5b $|ARGS.# R|
|00002b30| 65 61 64 20 44 69 72 65 | 63 74 6f 72 79 20 74 65 |ead Dire|ctory te|
|00002b40| 73 74 0d 65 63 68 6f 20 | 22 22 0d 74 65 73 74 36 |st.echo |"".test6|
|00002b50| 20 24 41 52 47 53 0d 23 | 20 52 65 6e 61 6d 65 20 | $ARGS.#| Rename |
|00002b60| 61 6e 64 20 4c 69 6e 6b | 20 54 65 73 74 0d 65 63 |and Link| Test.ec|
|00002b70| 68 6f 20 22 22 0d 74 65 | 73 74 37 20 24 41 52 47 |ho "".te|st7 $ARG|
|00002b80| 53 0d 23 20 52 65 6e 61 | 6d 65 20 54 65 73 74 0d |S.# Rena|me Test.|
|00002b90| 23 20 65 63 68 6f 20 22 | 22 0d 23 20 74 65 73 74 |# echo "|".# test|
|00002ba0| 37 61 20 24 41 52 47 53 | 0d 23 20 4c 69 6e 6b 20 |7a $ARGS|.# Link |
|00002bb0| 54 65 73 74 0d 23 20 65 | 63 68 6f 20 22 22 0d 23 |Test.# e|cho "".#|
|00002bc0| 20 74 65 73 74 37 62 20 | 24 41 52 47 53 0d 23 20 | test7b |$ARGS.# |
|00002bd0| 53 79 6d 6c 69 6e 6b 20 | 61 6e 64 20 72 65 61 64 |Symlink |and read|
|00002be0| 6c 69 6e 6b 20 74 65 73 | 74 0d 65 63 68 6f 20 22 |link tes|t.echo "|
|00002bf0| 22 0d 74 65 73 74 38 20 | 24 41 52 47 53 0d 23 20 |".test8 |$ARGS.# |
|00002c00| 47 65 74 66 73 20 74 65 | 73 74 0d 65 63 68 6f 20 |Getfs te|st.echo |
|00002c10| 22 22 0d 74 65 73 74 39 | 20 24 41 52 47 53 0d 65 |"".test9| $ARGS.e|
|00002c20| 63 68 6f 20 22 22 0d 0d | 65 63 68 6f 20 22 43 6f |cho ""..|echo "Co|
|00002c30| 6e 67 72 61 74 75 6c 61 | 74 69 6f 6e 73 2c 20 79 |ngratula|tions, y|
|00002c40| 6f 75 20 70 61 73 73 65 | 64 20 74 68 65 20 62 61 |ou passe|d the ba|
|00002c50| 73 69 63 20 74 65 73 74 | 73 21 22 0d 49 5a 45 20 |sic test|s!".IZE |
|00002c60| 3d 20 38 31 39 32 3b 0d | 09 09 7d 0d 0d 09 69 66 |= 8192;.|..}...if|
|00002c70| 20 28 30 29 0d 09 09 7b | 0d 09 09 72 6d 64 69 72 | (0)...{|...rmdir|
|00002c80| 5f 72 65 63 75 72 73 65 | 28 54 45 53 54 44 49 52 |_recurse|(TESTDIR|
|00002c90| 29 3b 0d 09 09 72 65 74 | 75 72 6e 3b 0d 09 09 7d |);...ret|urn;...}|
|00002ca0| 0d 0d 23 69 66 64 65 66 | 20 44 45 42 55 47 0d 09 |..#ifdef| DEBUG..|
|00002cb0| 73 74 61 72 74 20 3d 20 | 31 3b 0d 09 6d 6f 72 65 |start = |1;..more|
|00002cc0| 20 3d 20 54 52 55 45 3b | 0d 09 70 72 69 6e 74 66 | = TRUE;|..printf|
|00002cd0| 28 22 2a 2a 44 45 42 55 | 47 20 56 45 52 53 49 4f |("**DEBU|G VERSIO|
|00002ce0| 4e 2a 2a 5c 6e 22 29 3b | 0d 23 65 6e 64 69 66 0d |N**\n");|.#endif.|
|00002cf0| 0d 23 64 65 66 69 6e 65 | 09 46 4c 41 47 53 09 22 |.#define|.FLAGS."|
|00002d00| 2d 6e 22 2c 0d 0d 09 69 | 66 20 28 73 74 61 72 74 |-n",...i|f (start|
|00002d10| 20 3c 3d 20 31 29 0d 09 | 09 7b 0d 09 09 74 65 73 | <= 1)..|.{...tes|
|00002d20| 74 31 28 31 2c 20 61 72 | 67 76 28 22 74 65 73 74 |t1(1, ar|gv("test|
|00002d30| 31 22 2c 20 46 4c 41 47 | 53 20 28 63 68 61 72 20 |1", FLAG|S (char |
|00002d40| 2a 29 30 29 29 3b 0d 09 | 09 69 66 20 28 21 6d 6f |*)0));..|.if (!mo|
|00002d50| 72 65 29 20 67 6f 74 6f | 20 64 6f 6e 65 3b 0d 09 |re) goto| done;..|
|00002d60| 09 7d 0d 09 69 66 20 28 | 73 74 61 72 74 20 3c 3d |.}..if (|start <=|
|00002d70| 20 32 29 0d 09 09 7b 0d | 09 09 74 65 73 74 32 28 | 2)...{.|..test2(|
|00002d80| 31 2c 20 61 72 67 76 28 | 22 74 65 73 74 32 22 2c |1, argv(|"test2",|
|00002d90| 20 46 4c 41 47 53 20 28 | 63 68 61 72 20 2a 29 30 | FLAGS (|char *)0|
|00002da0| 29 29 3b 0d 09 09 69 66 | 20 28 21 6d 6f 72 65 29 |));...if| (!more)|
|00002db0| 20 67 6f 74 6f 20 64 6f | 6e 65 3b 0d 09 09 7d 0d | goto do|ne;...}.|
|00002dc0| 09 69 66 20 28 73 74 61 | 72 74 20 3c 3d 20 33 29 |.if (sta|rt <= 3)|
|00002dd0| 0d 09 09 7b 0d 09 09 74 | 65 73 74 33 28 31 2c 20 |...{...t|est3(1, |
|00002de0| 61 72 67 76 28 22 74 65 | 73 74 33 22 2c 20 46 4c |argv("te|st3", FL|
|00002df0| 41 47 53 20 28 63 68 61 | 72 20 2a 29 30 29 29 3b |AGS (cha|r *)0));|
|00002e00| 4d 61 63 2d 43 74 68 6f | 6e 2f 73 74 64 69 6f 2e |Mac-Ctho|n/stdio.|
|00002e10| 66 75 6c 6c 00 00 00 00 | 00 00 00 00 00 00 00 00 |full....|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00002e70| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00002e80| 20 20 20 20 20 20 30 20 | 20 34 35 34 32 32 36 31 | 0 | 4542261|
|00002e90| 30 37 30 20 20 20 37 35 | 37 30 00 20 00 00 00 00 |070 75|70. ....|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 4d 61 63 2d 43 74 68 6f | 6e 2f 73 75 62 72 2e 63 |Mac-Ctho|n/subr.c|
|00003010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00003070| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00003080| 20 20 31 32 32 35 34 20 | 20 34 35 34 32 32 36 31 | 12254 | 4542261|
|00003090| 30 37 32 20 20 20 37 30 | 32 31 00 20 00 00 00 00 |072 70|21. ....|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 2f 2a 09 40 28 23 29 73 | 75 62 72 2e 63 09 31 2e |/*.@(#)s|ubr.c.1.|
|00003210| 32 20 38 39 2f 30 31 2f | 30 38 20 4e 46 53 20 52 |2 89/01/|08 NFS R|
|00003220| 65 76 20 32 20 54 65 73 | 74 73 75 69 74 65 09 2a |ev 2 Tes|tsuite.*|
|00003230| 2f 0d 2f 2a 0d 20 2a 20 | 55 73 65 66 75 6c 20 73 |/./*. * |Useful s|
|00003240| 75 62 72 6f 75 74 69 6e | 65 73 20 73 68 61 72 65 |ubroutin|es share|
|00003250| 64 20 62 79 20 61 6c 6c | 20 74 65 73 74 73 0d 20 |d by all| tests. |
|00003260| 2a 2f 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 73 79 |*/..#inc|lude "sy|
|00003270| 73 5f 70 61 72 61 6d 2e | 68 22 0d 23 69 66 6e 64 |s_param.|h".#ifnd|
|00003280| 65 66 20 6d 61 6a 6f 72 | 0d 23 69 6e 63 6c 75 64 |ef major|.#includ|
|00003290| 65 20 22 73 79 73 5f 74 | 79 70 65 73 2e 68 22 0d |e "sys_t|ypes.h".|
|000032a0| 23 65 6e 64 69 66 0d 23 | 69 6e 63 6c 75 64 65 20 |#endif.#|include |
|000032b0| 22 73 79 73 5f 74 69 6d | 65 2e 68 22 0d 23 69 6e |"sys_tim|e.h".#in|
|000032c0| 63 6c 75 64 65 20 22 73 | 79 73 5f 73 74 61 74 2e |clude "s|ys_stat.|
|000032d0| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h".#incl|ude <std|
|000032e0| 69 6f 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 22 |io.h>.#i|nclude "|
|000032f0| 74 65 73 74 73 2e 68 22 | 0d 0d 63 68 61 72 20 2a |tests.h"|..char *|
|00003300| 4d 79 6e 61 6d 65 3b 0d | 0d 2f 2a 0d 20 2a 20 42 |Myname;.|./*. * B|
|00003310| 75 69 6c 64 20 61 20 64 | 69 72 65 63 74 6f 72 79 |uild a d|irectory|
|00003320| 20 74 72 65 65 20 22 6c | 65 76 22 20 6c 65 76 65 | tree "l|ev" leve|
|00003330| 6c 73 20 64 65 65 70 0d | 20 2a 20 77 69 74 68 20 |ls deep.| * with |
|00003340| 22 66 69 6c 65 73 22 20 | 6e 75 6d 62 65 72 20 6f |"files" |number o|
|00003350| 66 20 66 69 6c 65 73 20 | 69 6e 20 65 61 63 68 20 |f files |in each |
|00003360| 64 69 72 65 63 74 6f 72 | 79 0d 20 2a 20 61 6e 64 |director|y. * and|
|00003370| 20 22 64 69 72 73 22 20 | 66 61 6e 20 6f 75 74 2e | "dirs" |fan out.|
|00003380| 20 20 53 74 61 72 74 73 | 20 61 74 20 74 68 65 20 | Starts| at the |
|00003390| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|000033a0| 79 2e 0d 20 2a 20 22 66 | 6e 61 6d 65 22 20 61 6e |y.. * "f|name" an|
|000033b0| 64 20 22 64 6e 61 6d 65 | 22 20 61 72 65 20 74 68 |d "dname|" are th|
|000033c0| 65 20 62 61 73 65 20 6f | 66 20 74 68 65 20 6e 61 |e base o|f the na|
|000033d0| 6d 65 73 20 75 73 65 64 | 20 66 6f 72 0d 20 2a 20 |mes used| for. * |
|000033e0| 66 69 6c 65 73 20 61 6e | 64 20 64 69 72 65 63 74 |files an|d direct|
|000033f0| 6f 72 69 65 73 2e 0d 20 | 2a 2f 0d 64 69 72 74 72 |ories.. |*/.dirtr|
|00003400| 65 65 28 6c 65 76 2c 20 | 66 69 6c 65 73 2c 20 64 |ee(lev, |files, d|
|00003410| 69 72 73 2c 20 66 6e 61 | 6d 65 2c 20 64 6e 61 6d |irs, fna|me, dnam|
|00003420| 65 2c 20 74 6f 74 66 69 | 6c 65 73 2c 20 74 6f 74 |e, totfi|les, tot|
|00003430| 64 69 72 73 29 0d 09 69 | 6e 74 20 6c 65 76 3b 0d |dirs)..i|nt lev;.|
|00003440| 09 69 6e 74 20 66 69 6c | 65 73 3b 0d 09 69 6e 74 |.int fil|es;..int|
|00003450| 20 64 69 72 73 3b 0d 09 | 63 68 61 72 20 2a 66 6e | dirs;..|char *fn|
|00003460| 61 6d 65 3b 0d 09 63 68 | 61 72 20 2a 64 6e 61 6d |ame;..ch|ar *dnam|
|00003470| 65 3b 0d 09 69 6e 74 20 | 2a 74 6f 74 66 69 6c 65 |e;..int |*totfile|
|00003480| 73 3b 0d 09 69 6e 74 20 | 2a 74 6f 74 64 69 72 73 |s;..int |*totdirs|
|00003490| 3b 0d 7b 0d 09 69 6e 74 | 20 66 64 3b 0d 09 69 6e |;.{..int| fd;..in|
|000034a0| 74 20 66 2c 20 64 3b 0d | 09 63 68 61 72 20 6e 61 |t f, d;.|.char na|
|000034b0| 6d 65 5b 4d 41 58 50 41 | 54 48 4c 45 4e 5d 3b 0d |me[MAXPA|THLEN];.|
|000034c0| 0d 09 69 66 20 28 6c 65 | 76 2d 2d 20 3d 3d 20 30 |..if (le|v-- == 0|
|000034d0| 29 20 7b 0d 09 09 72 65 | 74 75 72 6e 3b 0d 09 7d |) {...re|turn;..}|
|000034e0| 0d 0d 7b 0d 65 78 74 65 | 72 6e 20 69 6e 74 20 74 |..{.exte|rn int t|
|000034f0| 72 61 63 65 3b 0d 69 66 | 20 28 74 72 61 63 65 20 |race;.if| (trace |
|00003500| 3e 20 31 29 0d 70 72 69 | 6e 74 66 28 22 5b 64 69 |> 1).pri|ntf("[di|
|00003510| 72 74 72 65 65 5d 20 6c | 65 76 65 6c 20 25 64 2c |rtree] l|evel %d,|
|00003520| 20 74 6f 74 61 6c 20 66 | 69 6c 65 73 20 25 64 2c | total f|iles %d,|
|00003530| 20 74 6f 74 61 6c 20 64 | 69 72 73 20 25 64 5c 6e | total d|irs %d\n|
|00003540| 22 2c 20 6c 65 76 2c 20 | 2a 74 6f 74 66 69 6c 65 |", lev, |*totfile|
|00003550| 73 2c 20 2a 74 6f 74 64 | 69 72 73 29 3b 0d 7d 0d |s, *totd|irs);.}.|
|00003560| 0d 09 66 6f 72 20 28 20 | 66 20 3d 20 30 3b 20 66 |..for ( |f = 0; f|
|00003570| 20 3c 20 66 69 6c 65 73 | 3b 20 66 2b 2b 29 20 7b | < files|; f++) {|
|00003580| 0d 09 09 73 70 72 69 6e | 74 66 28 6e 61 6d 65 2c |...sprin|tf(name,|
|00003590| 20 22 25 73 25 64 22 2c | 20 66 6e 61 6d 65 2c 20 | "%s%d",| fname, |
|000035a0| 66 29 3b 0d 09 09 69 66 | 20 28 28 66 64 20 3d 20 |f);...if| ((fd = |
|000035b0| 63 72 65 61 74 28 6e 61 | 6d 65 2c 20 30 36 36 36 |creat(na|me, 0666|
|000035c0| 29 29 20 3c 20 30 29 20 | 7b 0d 09 09 09 65 72 72 |)) < 0) |{....err|
|000035d0| 6f 72 28 22 63 72 65 61 | 74 20 25 73 20 66 61 69 |or("crea|t %s fai|
|000035e0| 6c 65 64 22 2c 20 6e 61 | 6d 65 29 3b 0d 09 09 09 |led", na|me);....|
|000035f0| 65 78 69 74 28 31 29 3b | 0d 09 09 7d 0d 09 09 28 |exit(1);|...}...(|
|00003600| 2a 74 6f 74 66 69 6c 65 | 73 29 2b 2b 3b 0d 09 09 |*totfile|s)++;...|
|00003610| 69 66 20 28 63 6c 6f 73 | 65 28 66 64 29 20 3c 20 |if (clos|e(fd) < |
|00003620| 30 29 20 7b 0d 09 09 09 | 65 72 72 6f 72 28 22 63 |0) {....|error("c|
|00003630| 6c 6f 73 65 20 25 64 20 | 66 61 69 6c 65 64 22 2c |lose %d |failed",|
|00003640| 20 66 64 29 3b 0d 09 09 | 09 65 78 69 74 28 31 29 | fd);...|.exit(1)|
|00003650| 3b 0d 09 09 7d 0d 09 7d | 0d 09 66 6f 72 20 28 20 |;...}..}|..for ( |
|00003660| 64 20 3d 20 30 3b 20 64 | 20 3c 20 64 69 72 73 3b |d = 0; d| < dirs;|
|00003670| 20 64 2b 2b 29 20 7b 0d | 09 09 73 70 72 69 6e 74 | d++) {.|..sprint|
|00003680| 66 28 6e 61 6d 65 2c 20 | 22 25 73 25 64 2e 6c 25 |f(name, |"%s%d.l%|
|00003690| 64 22 2c 20 64 6e 61 6d | 65 2c 20 64 2c 6c 65 76 |d", dnam|e, d,lev|
|000036a0| 29 3b 0d 09 09 69 66 20 | 28 6d 6b 64 69 72 28 6e |);...if |(mkdir(n|
|000036b0| 61 6d 65 2c 20 30 37 37 | 37 29 20 3c 20 30 29 20 |ame, 077|7) < 0) |
|000036c0| 7b 0d 09 09 09 65 72 72 | 6f 72 28 22 6d 6b 64 69 |{....err|or("mkdi|
|000036d0| 72 20 25 73 20 66 61 69 | 6c 65 64 22 2c 20 6e 61 |r %s fai|led", na|
|000036e0| 6d 65 29 3b 0d 09 09 09 | 65 78 69 74 28 31 29 3b |me);....|exit(1);|
|000036f0| 0d 09 09 7d 0d 09 09 28 | 2a 74 6f 74 64 69 72 73 |...}...(|*totdirs|
|00003700| 29 2b 2b 3b 0d 09 09 69 | 66 20 28 63 68 64 69 72 |)++;...i|f (chdir|
|00003710| 28 6e 61 6d 65 29 20 3c | 20 30 29 20 7b 0d 09 09 |(name) <| 0) {...|
|00003720| 09 65 72 72 6f 72 28 22 | 63 68 64 69 72 20 25 73 |.error("|chdir %s|
|00003730| 20 66 61 69 6c 65 64 22 | 2c 20 6e 61 6d 65 29 3b | failed"|, name);|
|00003740| 0d 09 09 09 65 78 69 74 | 28 31 29 3b 0d 09 09 7d |....exit|(1);...}|
|00003750| 0d 09 09 64 69 72 74 72 | 65 65 28 6c 65 76 2c 20 |...dirtr|ee(lev, |
|00003760| 66 69 6c 65 73 2c 20 64 | 69 72 73 2c 20 66 6e 61 |files, d|irs, fna|
|00003770| 6d 65 2c 20 64 6e 61 6d | 65 2c 20 74 6f 74 66 69 |me, dnam|e, totfi|
|00003780| 6c 65 73 2c 20 74 6f 74 | 64 69 72 73 29 3b 0d 09 |les, tot|dirs);..|
|00003790| 09 69 66 20 28 63 68 64 | 69 72 28 22 2e 2e 22 29 |.if (chd|ir("..")|
|000037a0| 20 3c 20 30 29 20 7b 0d | 09 09 09 65 72 72 6f 72 | < 0) {.|...error|
|000037b0| 28 22 63 68 64 69 72 20 | 2e 2e 20 66 61 69 6c 65 |("chdir |.. faile|
|000037c0| 64 22 29 3b 0d 09 09 09 | 65 78 69 74 28 31 29 3b |d");....|exit(1);|
|000037d0| 0d 09 09 7d 0d 09 7d 0d | 7d 0d 0d 2f 2a 0d 20 2a |...}..}.|}../*. *|
|000037e0| 20 52 65 6d 6f 76 65 20 | 61 20 64 69 72 65 63 74 | Remove |a direct|
|000037f0| 6f 72 79 20 74 72 65 65 | 20 73 74 61 72 74 69 6e |ory tree| startin|
|00003800| 67 20 61 74 20 74 68 65 | 20 63 75 72 72 65 6e 74 |g at the| current|
|00003810| 20 64 69 72 65 63 74 6f | 72 79 2e 0d 20 2a 20 22 | directo|ry.. * "|
|00003820| 66 6e 61 6d 65 22 20 61 | 6e 64 20 22 64 6e 61 6d |fname" a|nd "dnam|
|00003830| 65 22 20 61 72 65 20 74 | 68 65 20 62 61 73 65 20 |e" are t|he base |
|00003840| 6f 66 20 74 68 65 20 6e | 61 6d 65 73 20 75 73 65 |of the n|ames use|
|00003850| 64 20 66 6f 72 0d 20 2a | 20 66 69 6c 65 73 20 61 |d for. *| files a|
|00003860| 6e 64 20 64 69 72 65 63 | 74 6f 72 69 65 73 20 74 |nd direc|tories t|
|00003870| 6f 20 62 65 20 72 65 6d | 6f 76 65 64 20 2d 20 64 |o be rem|oved - d|
|00003880| 6f 6e 27 74 20 72 65 6d | 6f 76 65 20 61 6e 79 74 |on't rem|ove anyt|
|00003890| 68 69 6e 67 20 65 6c 73 | 65 21 0d 20 2a 20 22 66 |hing els|e!. * "f|
|000038a0| 69 6c 65 73 22 20 61 6e | 64 20 22 64 69 72 73 22 |iles" an|d "dirs"|
|000038b0| 20 61 72 65 20 75 73 65 | 64 20 77 69 74 68 20 66 | are use|d with f|
|000038c0| 6e 61 6d 65 20 61 6e 64 | 20 64 6e 61 6d 65 20 74 |name and| dname t|
|000038d0| 6f 20 67 65 6e 65 72 61 | 74 65 0d 20 2a 20 74 68 |o genera|te. * th|
|000038e0| 65 20 66 69 6c 65 20 6e | 61 6d 65 73 20 74 6f 20 |e file n|ames to |
|000038f0| 72 65 6d 6f 76 65 2e 0d | 20 2a 0d 20 2a 20 54 68 |remove..| *. * Th|
|00003900| 69 73 20 72 6f 75 74 69 | 6e 65 20 77 69 6c 6c 20 |is routi|ne will |
|00003910| 66 61 69 6c 20 69 66 2c | 20 73 61 79 20 61 66 74 |fail if,| say aft|
|00003920| 65 72 20 72 65 6d 6f 76 | 69 6e 67 20 6b 6e 6f 77 |er remov|ing know|
|00003930| 6e 20 66 69 6c 65 73 2c | 0d 20 2a 20 74 68 65 20 |n files,|. * the |
|00003940| 64 69 72 65 63 74 6f 72 | 79 20 69 73 20 6e 6f 74 |director|y is not|
|00003950| 20 65 6d 70 74 79 2e 0d | 20 2a 0d 20 2a 20 54 68 | empty..| *. * Th|
|00003960| 69 73 20 69 73 20 75 73 | 65 64 20 74 6f 20 74 65 |is is us|ed to te|
|00003970| 73 74 20 74 68 65 20 75 | 6e 6c 69 6e 6b 20 66 75 |st the u|nlink fu|
|00003980| 6e 63 74 69 6f 6e 20 61 | 6e 64 20 74 6f 20 63 6c |nction a|nd to cl|
|00003990| 65 61 6e 20 75 70 20 61 | 66 74 65 72 20 74 65 73 |ean up a|fter tes|
|000039a0| 74 73 2e 0d 20 2a 2f 0d | 72 6d 64 69 72 74 72 65 |ts.. */.|rmdirtre|
|000039b0| 65 28 6c 65 76 2c 20 66 | 69 6c 65 73 2c 20 64 69 |e(lev, f|iles, di|
|000039c0| 72 73 2c 20 66 6e 61 6d | 65 2c 20 64 6e 61 6d 65 |rs, fnam|e, dname|
|000039d0| 2c 20 74 6f 74 66 69 6c | 65 73 2c 20 74 6f 74 64 |, totfil|es, totd|
|000039e0| 69 72 73 2c 20 69 67 6e | 6f 72 65 29 0d 09 69 6e |irs, ign|ore)..in|
|000039f0| 74 20 6c 65 76 3b 0d 09 | 69 6e 74 20 66 69 6c 65 |t lev;..|int file|
|00003a00| 73 3b 0d 09 69 6e 74 20 | 64 69 72 73 3b 0d 09 63 |s;..int |dirs;..c|
|00003a10| 68 61 72 20 2a 66 6e 61 | 6d 65 3b 0d 09 63 68 61 |har *fna|me;..cha|
|00003a20| 72 20 2a 64 6e 61 6d 65 | 3b 0d 09 69 6e 74 20 2a |r *dname|;..int *|
|00003a30| 74 6f 74 66 69 6c 65 73 | 3b 09 09 2f 2a 20 74 6f |totfiles|;../* to|
|00003a40| 74 61 6c 20 72 65 6d 6f | 76 65 64 20 2a 2f 0d 09 |tal remo|ved */..|
|00003a50| 69 6e 74 20 2a 74 6f 74 | 64 69 72 73 3b 09 09 2f |int *tot|dirs;../|
|00003a60| 2a 20 74 6f 74 61 6c 20 | 72 65 6d 6f 76 65 64 20 |* total |removed |
|00003a70| 2a 2f 0d 09 69 6e 74 20 | 69 67 6e 6f 72 65 3b 0d |*/..int |ignore;.|
|00003a80| 7b 0d 09 69 6e 74 20 66 | 2c 20 64 3b 0d 09 63 68 |{..int f|, d;..ch|
|00003a90| 61 72 20 6e 61 6d 65 5b | 4d 41 58 50 41 54 48 4c |ar name[|MAXPATHL|
|00003aa0| 45 4e 5d 3b 0d 0d 09 69 | 66 20 28 6c 65 76 2d 2d |EN];...i|f (lev--|
|00003ab0| 20 3d 3d 20 30 29 20 7b | 0d 09 09 72 65 74 75 72 | == 0) {|...retur|
|00003ac0| 6e 3b 0d 09 7d 0d 09 66 | 6f 72 20 28 20 66 20 3d |n;..}..f|or ( f =|
|00003ad0| 20 30 3b 20 66 20 3c 20 | 66 69 6c 65 73 3b 20 66 | 0; f < |files; f|
|00003ae0| 2b 2b 29 20 7b 0d 09 09 | 73 70 72 69 6e 74 66 28 |++) {...|sprintf(|
|00003af0| 6e 61 6d 65 2c 20 22 25 | 73 25 64 22 2c 20 66 6e |name, "%|s%d", fn|
|00003b00| 61 6d 65 2c 20 66 29 3b | 0d 09 09 69 66 20 28 75 |ame, f);|...if (u|
|00003b10| 6e 6c 69 6e 6b 28 6e 61 | 6d 65 29 20 3c 20 30 20 |nlink(na|me) < 0 |
|00003b20| 26 26 20 21 69 67 6e 6f | 72 65 29 20 7b 0d 09 09 |&& !igno|re) {...|
|00003b30| 09 65 72 72 6f 72 28 22 | 75 6e 6c 69 6e 6b 20 25 |.error("|unlink %|
|00003b40| 73 20 66 61 69 6c 65 64 | 22 2c 20 6e 61 6d 65 29 |s failed|", name)|
|00003b50| 3b 0d 09 09 09 65 78 69 | 74 28 31 29 3b 0d 09 09 |;....exi|t(1);...|
|00003b60| 7d 0d 09 09 28 2a 74 6f | 74 66 69 6c 65 73 29 2b |}...(*to|tfiles)+|
|00003b70| 2b 3b 0d 09 7d 0d 09 66 | 6f 72 20 28 20 64 20 3d |+;..}..f|or ( d =|
|00003b80| 20 30 3b 20 64 20 3c 20 | 64 69 72 73 3b 20 64 2b | 0; d < |dirs; d+|
|00003b90| 2b 29 20 7b 0d 09 09 73 | 70 72 69 6e 74 66 28 6e |+) {...s|printf(n|
|00003ba0| 61 6d 65 2c 20 22 25 73 | 25 64 2e 6c 25 64 22 2c |ame, "%s|%d.l%d",|
|00003bb0| 20 64 6e 61 6d 65 2c 20 | 64 2c 20 6c 65 76 29 3b | dname, |d, lev);|
|00003bc0| 0d 09 09 69 66 20 28 63 | 68 64 69 72 28 6e 61 6d |...if (c|hdir(nam|
|00003bd0| 65 29 20 3c 20 30 29 20 | 7b 0d 09 09 09 69 66 20 |e) < 0) |{....if |
|00003be0| 28 69 67 6e 6f 72 65 29 | 0d 09 09 09 09 63 6f 6e |(ignore)|.....con|
|00003bf0| 74 69 6e 75 65 3b 0d 09 | 09 09 65 72 72 6f 72 28 |tinue;..|..error(|
|00003c00| 22 63 68 64 69 72 20 25 | 73 20 66 61 69 6c 65 64 |"chdir %|s failed|
|00003c10| 22 2c 20 6e 61 6d 65 29 | 3b 0d 09 09 09 65 78 69 |", name)|;....exi|
|00003c20| 74 28 31 29 3b 0d 09 09 | 7d 0d 09 09 72 6d 64 69 |t(1);...|}...rmdi|
|00003c30| 72 74 72 65 65 28 6c 65 | 76 2c 20 66 69 6c 65 73 |rtree(le|v, files|
|00003c40| 2c 20 64 69 72 73 2c 20 | 66 6e 61 6d 65 2c 20 64 |, dirs, |fname, d|
|00003c50| 6e 61 6d 65 2c 20 74 6f | 74 66 69 6c 65 73 2c 20 |name, to|tfiles, |
|00003c60| 74 6f 74 64 69 72 73 2c | 20 69 67 6e 6f 72 65 29 |totdirs,| ignore)|
|00003c70| 3b 0d 09 09 69 66 20 28 | 63 68 64 69 72 28 22 2e |;...if (|chdir(".|
|00003c80| 2e 22 29 20 3c 20 30 29 | 20 7b 0d 09 09 09 65 72 |.") < 0)| {....er|
|00003c90| 72 6f 72 28 22 63 68 64 | 69 72 20 2e 2e 20 66 61 |ror("chd|ir .. fa|
|00003ca0| 69 6c 65 64 22 29 3b 0d | 09 09 09 65 78 69 74 28 |iled");.|...exit(|
|00003cb0| 31 29 3b 0d 09 09 7d 0d | 09 09 69 66 20 28 72 6d |1);...}.|..if (rm|
|00003cc0| 64 69 72 28 6e 61 6d 65 | 29 20 3c 20 30 29 20 7b |dir(name|) < 0) {|
|00003cd0| 0d 09 09 09 65 72 72 6f | 72 28 22 72 6d 64 69 72 |....erro|r("rmdir|
|00003ce0| 20 25 73 20 66 61 69 6c | 65 64 22 2c 20 6e 61 6d | %s fail|ed", nam|
|00003cf0| 65 29 3b 0d 09 09 09 65 | 78 69 74 28 31 29 3b 0d |e);....e|xit(1);.|
|00003d00| 09 09 7d 0d 09 09 28 2a | 74 6f 74 64 69 72 73 29 |..}...(*|totdirs)|
|00003d10| 2b 2b 3b 0d 09 7d 0d 7d | 0d 0d 2f 2a 20 56 41 52 |++;..}.}|../* VAR|
|00003d20| 41 52 47 53 20 2a 2f 0d | 65 72 72 6f 72 28 73 74 |ARGS */.|error(st|
|00003d30| 72 2c 20 61 72 31 2c 20 | 61 72 32 2c 20 61 72 33 |r, ar1, |ar2, ar3|
|00003d40| 2c 20 61 72 34 2c 20 61 | 72 35 2c 20 61 72 36 2c |, ar4, a|r5, ar6,|
|00003d50| 20 61 72 37 2c 20 61 72 | 38 2c 20 61 72 39 29 0d | ar7, ar|8, ar9).|
|00003d60| 09 63 68 61 72 20 2a 73 | 74 72 3b 0d 7b 0d 09 63 |.char *s|tr;.{..c|
|00003d70| 68 61 72 20 2a 72 65 74 | 2c 20 2a 67 65 74 77 64 |har *ret|, *getwd|
|00003d80| 28 29 2c 20 70 61 74 68 | 5b 4d 41 58 50 41 54 48 |(), path|[MAXPATH|
|00003d90| 4c 45 4e 5d 3b 0d 0d 09 | 69 66 20 28 28 72 65 74 |LEN];...|if ((ret|
|00003da0| 20 3d 20 67 65 74 77 64 | 28 70 61 74 68 29 29 20 | = getwd|(path)) |
|00003db0| 3d 3d 20 4e 55 4c 4c 29 | 0d 09 09 66 70 72 69 6e |== NULL)|...fprin|
|00003dc0| 74 66 28 73 74 64 65 72 | 72 2c 20 22 25 73 3a 20 |tf(stder|r, "%s: |
|00003dd0| 67 65 74 77 64 20 66 61 | 69 6c 65 64 5c 6e 22 2c |getwd fa|iled\n",|
|00003de0| 20 4d 79 6e 61 6d 65 29 | 3b 0d 09 65 6c 73 65 0d | Myname)|;..else.|
|00003df0| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00003e00| 2c 20 22 5c 74 25 73 3a | 20 28 25 73 29 20 22 2c |, "\t%s:| (%s) ",|
|00003e10| 20 4d 79 6e 61 6d 65 2c | 20 70 61 74 68 29 3b 0d | Myname,| path);.|
|00003e20| 0d 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00003e30| 2c 20 73 74 72 2c 20 61 | 72 31 2c 20 61 72 32 2c |, str, a|r1, ar2,|
|00003e40| 20 61 72 33 2c 20 61 72 | 34 2c 20 61 72 35 2c 20 | ar3, ar|4, ar5, |
|00003e50| 61 72 36 2c 20 61 72 37 | 2c 20 61 72 38 2c 20 61 |ar6, ar7|, ar8, a|
|00003e60| 72 39 29 3b 0d 09 69 66 | 20 28 65 72 72 6e 6f 29 |r9);..if| (errno)|
|00003e70| 0d 09 09 70 65 72 72 6f | 72 28 22 20 22 29 3b 0d |...perro|r(" ");.|
|00003e80| 09 65 6c 73 65 0d 09 09 | 66 70 72 69 6e 74 66 28 |.else...|fprintf(|
|00003e90| 73 74 64 65 72 72 2c 20 | 22 5c 6e 22 29 3b 0d 09 |stderr, |"\n");..|
|00003ea0| 66 66 6c 75 73 68 28 73 | 74 64 65 72 72 29 3b 0d |fflush(s|tderr);.|
|00003eb0| 09 69 66 20 28 72 65 74 | 20 3d 3d 20 4e 55 4c 4c |.if (ret| == NULL|
|00003ec0| 29 0d 09 09 65 78 69 74 | 28 31 29 3b 0d 7d 0d 0d |)...exit|(1);.}..|
|00003ed0| 73 74 61 74 69 63 20 73 | 74 72 75 63 74 20 74 69 |static s|truct ti|
|00003ee0| 6d 65 76 61 6c 20 74 73 | 2c 20 74 65 3b 0d 0d 2f |meval ts|, te;../|
|00003ef0| 2a 0d 20 2a 20 73 61 76 | 65 20 63 75 72 72 65 6e |*. * sav|e curren|
|00003f00| 74 20 74 69 6d 65 20 69 | 6e 20 73 74 72 75 63 74 |t time i|n struct|
|00003f10| 20 74 73 0d 20 2a 2f 0d | 73 74 61 72 74 74 69 6d | ts. */.|starttim|
|00003f20| 65 28 29 0d 7b 0d 09 67 | 65 74 74 69 6d 65 6f 66 |e().{..g|ettimeof|
|00003f30| 64 61 79 28 26 74 73 2c | 20 28 73 74 72 75 63 74 |day(&ts,| (struct|
|00003f40| 20 74 69 6d 65 7a 6f 6e | 65 20 2a 29 30 29 3b 0d | timezon|e *)0);.|
|00003f50| 7d 0d 0d 2f 2a 0d 20 2a | 20 73 65 74 73 20 74 68 |}../*. *| sets th|
|00003f60| 65 20 73 74 72 75 63 74 | 20 74 76 20 74 6f 20 74 |e struct| tv to t|
|00003f70| 68 65 20 64 69 66 66 65 | 72 65 6e 63 65 20 69 6e |he diffe|rence in|
|00003f80| 20 74 69 6d 65 20 62 65 | 74 77 65 65 6e 0d 20 2a | time be|tween. *|
|00003f90| 20 63 75 72 72 65 6e 74 | 20 74 69 6d 65 20 61 6e | current| time an|
|00003fa0| 64 20 74 68 65 20 74 69 | 6d 65 20 69 6e 20 73 74 |d the ti|me in st|
|00003fb0| 72 75 63 74 20 74 73 2e | 0d 20 2a 2f 0d 65 6e 64 |ruct ts.|. */.end|
|00003fc0| 74 69 6d 65 28 74 76 29 | 0d 09 73 74 72 75 63 74 |time(tv)|..struct|
|00003fd0| 20 74 69 6d 65 76 61 6c | 20 2a 74 76 3b 0d 7b 0d | timeval| *tv;.{.|
|00003fe0| 0d 09 67 65 74 74 69 6d | 65 6f 66 64 61 79 28 26 |..gettim|eofday(&|
|00003ff0| 74 65 2c 20 28 73 74 72 | 75 63 74 20 74 69 6d 65 |te, (str|uct time|
|00004000| 7a 6f 6e 65 20 2a 29 30 | 29 3b 0d 09 69 66 20 28 |zone *)0|);..if (|
|00004010| 74 65 2e 74 76 5f 75 73 | 65 63 20 3c 20 74 73 2e |te.tv_us|ec < ts.|
|00004020| 74 76 5f 75 73 65 63 29 | 20 7b 0d 09 09 74 65 2e |tv_usec)| {...te.|
|00004030| 74 76 5f 73 65 63 2d 2d | 3b 0d 09 09 74 65 2e 74 |tv_sec--|;...te.t|
|00004040| 76 5f 75 73 65 63 20 2b | 3d 20 31 30 30 30 30 30 |v_usec +|= 100000|
|00004050| 30 3b 0d 09 7d 0d 09 74 | 76 2d 3e 74 76 5f 75 73 |0;..}..t|v->tv_us|
|00004060| 65 63 20 3d 20 74 65 2e | 74 76 5f 75 73 65 63 20 |ec = te.|tv_usec |
|00004070| 2d 20 74 73 2e 74 76 5f | 75 73 65 63 3b 0d 09 74 |- ts.tv_|usec;..t|
|00004080| 76 2d 3e 74 76 5f 73 65 | 63 20 3d 20 74 65 2e 74 |v->tv_se|c = te.t|
|00004090| 76 5f 73 65 63 20 2d 20 | 74 73 2e 74 76 5f 73 65 |v_sec - |ts.tv_se|
|000040a0| 63 3b 0d 7d 0d 0d 2f 2a | 0d 20 2a 20 53 65 74 20 |c;.}../*|. * Set |
|000040b0| 75 70 20 61 6e 64 20 6d | 6f 76 65 20 74 6f 20 61 |up and m|ove to a|
|000040c0| 20 74 65 73 74 20 64 69 | 72 65 63 74 6f 72 79 0d | test di|rectory.|
|000040d0| 20 2a 2f 0d 74 65 73 74 | 64 69 72 28 64 69 72 29 | */.test|dir(dir)|
|000040e0| 0d 63 68 61 72 20 2a 64 | 69 72 3b 0d 7b 0d 09 73 |.char *d|ir;.{..s|
|000040f0| 74 72 75 63 74 20 73 74 | 61 74 20 73 74 61 74 62 |truct st|at statb|
|00004100| 3b 0d 09 63 68 61 72 20 | 2a 67 65 74 65 6e 76 28 |;..char |*getenv(|
|00004110| 29 3b 0d 0d 09 2f 2a 0d | 09 20 2a 20 20 49 66 20 |);.../*.|. * If |
|00004120| 64 69 72 20 69 73 20 6e | 6f 6e 2d 4e 55 4c 4c 2c |dir is n|on-NULL,|
|00004130| 20 75 73 65 20 74 68 61 | 74 20 64 69 72 2e 20 20 | use tha|t dir. |
|00004140| 49 66 20 4e 55 4c 4c 2c | 20 66 69 72 73 74 0d 09 |If NULL,| first..|
|00004150| 20 2a 20 20 63 68 65 63 | 6b 20 66 6f 72 20 65 6e | * chec|k for en|
|00004160| 76 20 76 61 72 69 61 62 | 6c 65 20 4e 46 53 54 45 |v variab|le NFSTE|
|00004170| 53 54 44 49 52 2e 20 20 | 49 66 20 74 68 61 74 20 |STDIR. |If that |
|00004180| 69 73 20 6e 6f 74 0d 09 | 20 2a 20 20 73 65 74 2c |is not..| * set,|
|00004190| 20 75 73 65 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 | use the| compile|
|000041a0| 64 2d 69 6e 20 54 45 53 | 54 44 49 52 2e 0d 09 20 |d-in TES|TDIR... |
|000041b0| 2a 2f 0d 09 69 66 20 28 | 64 69 72 20 3d 3d 20 4e |*/..if (|dir == N|
|000041c0| 55 4c 4c 29 0d 09 09 69 | 66 20 28 28 64 69 72 20 |ULL)...i|f ((dir |
|000041d0| 3d 20 67 65 74 65 6e 76 | 28 22 4e 46 53 54 45 53 |= getenv|("NFSTES|
|000041e0| 54 44 49 52 22 29 29 20 | 3d 3d 20 4e 55 4c 4c 29 |TDIR")) |== NULL)|
|000041f0| 0d 09 09 09 64 69 72 20 | 3d 20 54 45 53 54 44 49 |....dir |= TESTDI|
|00004200| 52 3b 0d 0d 09 69 66 20 | 28 73 74 61 74 28 64 69 |R;...if |(stat(di|
|00004210| 72 2c 20 26 73 74 61 74 | 62 29 20 3d 3d 20 30 29 |r, &stat|b) == 0)|
|00004220| 20 7b 0d 09 09 69 66 20 | 28 72 6d 64 69 72 5f 72 | {...if |(rmdir_r|
|00004230| 65 63 75 72 73 65 28 64 | 69 72 29 20 21 3d 20 30 |ecurse(d|ir) != 0|
|00004240| 29 20 7b 0d 09 09 09 65 | 72 72 6f 72 28 22 63 61 |) {....e|rror("ca|
|00004250| 6e 27 74 20 72 65 6d 6f | 76 65 20 6f 6c 64 20 74 |n't remo|ve old t|
|00004260| 65 73 74 20 64 69 72 65 | 63 74 6f 72 79 20 25 73 |est dire|ctory %s|
|00004270| 22 2c 20 64 69 72 29 3b | 0d 09 09 09 65 78 69 74 |", dir);|....exit|
|00004280| 28 31 29 3b 0d 09 09 7d | 0d 09 7d 0d 0d 09 69 66 |(1);...}|..}...if|
|00004290| 20 28 6d 6b 64 69 72 28 | 64 69 72 2c 20 30 37 37 | (mkdir(|dir, 077|
|000042a0| 37 29 20 3c 20 30 29 20 | 7b 0d 09 09 65 72 72 6f |7) < 0) |{...erro|
|000042b0| 72 28 22 63 61 6e 27 74 | 20 63 72 65 61 74 65 20 |r("can't| create |
|000042c0| 74 65 73 74 20 64 69 72 | 65 63 74 6f 72 79 20 25 |test dir|ectory %|
|000042d0| 73 22 2c 20 64 69 72 29 | 3b 0d 09 09 65 78 69 74 |s", dir)|;...exit|
|000042e0| 28 31 29 3b 0d 09 7d 0d | 09 69 66 20 28 63 68 64 |(1);..}.|.if (chd|
|000042f0| 69 72 28 64 69 72 29 20 | 3c 20 30 29 20 7b 0d 09 |ir(dir) |< 0) {..|
|00004300| 09 65 72 72 6f 72 28 22 | 63 61 6e 27 74 20 63 68 |.error("|can't ch|
|00004310| 64 69 72 20 74 6f 20 74 | 65 73 74 20 64 69 72 65 |dir to t|est dire|
|00004320| 63 74 6f 72 79 20 25 73 | 22 2c 20 64 69 72 29 3b |ctory %s|", dir);|
|00004330| 0d 09 09 65 78 69 74 28 | 31 29 3b 0d 09 7d 0d 7d |...exit(|1);..}.}|
|00004340| 0d 0d 2f 2a 0d 20 2a 20 | 4d 6f 76 65 20 74 6f 20 |../*. * |Move to |
|00004350| 61 20 74 65 73 74 20 64 | 69 72 65 63 74 6f 72 79 |a test d|irectory|
|00004360| 0d 20 2a 2f 0d 6d 74 65 | 73 74 64 69 72 28 64 69 |. */.mte|stdir(di|
|00004370| 72 29 0d 63 68 61 72 20 | 2a 64 69 72 3b 0d 7b 0d |r).char |*dir;.{.|
|00004380| 09 73 74 72 75 63 74 20 | 73 74 61 74 20 73 74 61 |.struct |stat sta|
|00004390| 74 62 3b 0d 09 63 68 61 | 72 20 73 74 72 5b 4d 41 |tb;..cha|r str[MA|
|000043a0| 58 50 41 54 48 4c 45 4e | 5d 3b 0d 09 63 68 61 72 |XPATHLEN|];..char|
|000043b0| 20 2a 67 65 74 65 6e 76 | 28 29 3b 0d 0d 09 2f 2a | *getenv|();.../*|
|000043c0| 0d 09 20 2a 20 20 49 66 | 20 64 69 72 20 69 73 20 |.. * If| dir is |
|000043d0| 6e 6f 6e 2d 4e 55 4c 4c | 2c 20 75 73 65 20 74 68 |non-NULL|, use th|
|000043e0| 61 74 20 64 69 72 2e 20 | 20 49 66 20 4e 55 4c 4c |at dir. | If NULL|
|000043f0| 2c 20 66 69 72 73 74 0d | 09 20 2a 20 20 63 68 65 |, first.|. * che|
|00004400| 63 6b 20 66 6f 72 20 65 | 6e 76 20 76 61 72 69 61 |ck for e|nv varia|
|00004410| 62 6c 65 20 4e 46 53 54 | 45 53 54 44 49 52 2e 20 |ble NFST|ESTDIR. |
|00004420| 20 49 66 20 74 68 61 74 | 20 69 73 20 6e 6f 74 0d | If that| is not.|
|00004430| 09 20 2a 20 20 73 65 74 | 2c 20 75 73 65 20 74 68 |. * set|, use th|
|00004440| 65 20 63 6f 6d 70 69 6c | 65 64 2d 69 6e 20 54 45 |e compil|ed-in TE|
|00004450| 53 54 44 49 52 2e 0d 09 | 20 2a 2f 0d 09 69 66 20 |STDIR...| */..if |
|00004460| 28 64 69 72 20 3d 3d 20 | 4e 55 4c 4c 29 0d 09 09 |(dir == |NULL)...|
|00004470| 69 66 20 28 28 64 69 72 | 20 3d 20 67 65 74 65 6e |if ((dir| = geten|
|00004480| 76 28 22 4e 46 53 54 45 | 53 54 44 49 52 22 29 29 |v("NFSTE|STDIR"))|
|00004490| 20 3d 3d 20 4e 55 4c 4c | 29 0d 09 09 09 64 69 72 | == NULL|)....dir|
|000044a0| 20 3d 20 54 45 53 54 44 | 49 52 3b 0d 0d 09 69 66 | = TESTD|IR;...if|
|000044b0| 20 28 63 68 64 69 72 28 | 64 69 72 29 20 3c 20 30 | (chdir(|dir) < 0|
|000044c0| 29 20 7b 0d 09 09 65 72 | 72 6f 72 28 22 63 61 6e |) {...er|ror("can|
|000044d0| 27 74 20 63 68 64 69 72 | 20 74 6f 20 74 65 73 74 |'t chdir| to test|
|000044e0| 20 64 69 72 65 63 74 6f | 72 79 20 25 73 22 2c 20 | directo|ry %s", |
|000044f0| 64 69 72 29 3b 0d 09 09 | 72 65 74 75 72 6e 20 2d |dir);...|return -|
|00004500| 31 3b 0d 09 7d 0d 09 72 | 65 74 75 72 6e 20 30 3b |1;..}..r|eturn 0;|
|00004510| 0d 7d 0d 0d 2f 2a 0d 20 | 2a 20 20 67 65 74 20 70 |.}../*. |* get p|
|00004520| 61 72 61 6d 65 74 65 72 | 20 61 74 20 70 61 72 6d |arameter| at parm|
|00004530| 2c 20 63 6f 6e 76 65 72 | 74 20 74 6f 20 69 6e 74 |, conver|t to int|
|00004540| 2c 20 61 6e 64 20 6d 61 | 6b 65 20 73 75 72 65 20 |, and ma|ke sure |
|00004550| 74 68 61 74 0d 20 2a 20 | 20 69 74 20 69 73 20 61 |that. * | it is a|
|00004560| 74 20 6c 65 61 73 74 20 | 6d 69 6e 2e 0d 20 2a 2f |t least |min.. */|
|00004570| 0d 67 65 74 70 61 72 6d | 28 70 61 72 6d 2c 20 6d |.getparm|(parm, m|
|00004580| 69 6e 2c 20 6c 61 62 65 | 6c 29 0d 63 68 61 72 20 |in, labe|l).char |
|00004590| 2a 70 61 72 6d 2c 20 2a | 6c 61 62 65 6c 3b 0d 69 |*parm, *|label;.i|
|000045a0| 6e 74 20 6d 69 6e 3b 0d | 7b 0d 09 69 6e 74 20 76 |nt min;.|{..int v|
|000045b0| 61 6c 20 3d 20 61 74 6f | 69 28 70 61 72 6d 29 3b |al = ato|i(parm);|
|000045c0| 0d 09 69 66 20 28 76 61 | 6c 20 3c 20 6d 69 6e 29 |..if (va|l < min)|
|000045d0| 20 7b 0d 09 09 65 72 72 | 6f 72 28 22 49 6c 6c 65 | {...err|or("Ille|
|000045e0| 67 61 6c 20 25 73 20 70 | 61 72 61 6d 65 74 65 72 |gal %s p|arameter|
|000045f0| 20 25 64 2c 20 6d 75 73 | 74 20 62 65 20 61 74 20 | %d, mus|t be at |
|00004600| 6c 65 61 73 74 20 25 64 | 22 2c 0d 09 09 20 20 20 |least %d|",... |
|00004610| 20 6c 61 62 65 6c 2c 20 | 76 61 6c 2c 20 6d 69 6e | label, |val, min|
|00004620| 29 3b 0d 09 09 65 78 69 | 74 28 31 29 3b 0d 09 7d |);...exi|t(1);..}|
|00004630| 0d 09 72 65 74 75 72 6e | 20 76 61 6c 3b 0d 7d 0d |..return| val;.}.|
|00004640| 0d 2f 2a 0d 20 2a 20 20 | 65 78 69 74 20 70 6f 69 |./*. * |exit poi|
|00004650| 6e 74 20 66 6f 72 20 73 | 75 63 63 65 73 73 66 75 |nt for s|uccessfu|
|00004660| 6c 20 74 65 73 74 0d 20 | 2a 2f 0d 63 6f 6d 70 6c |l test. |*/.compl|
|00004670| 65 74 65 28 29 0d 7b 0d | 09 66 70 72 69 6e 74 66 |ete().{.|.fprintf|
|00004680| 28 73 74 64 6f 75 74 2c | 20 22 5c 74 25 73 20 6f |(stdout,| "\t%s o|
|00004690| 6b 2e 5c 6e 22 2c 20 4d | 79 6e 61 6d 65 29 3b 0d |k.\n", M|yname);.|
|000046a0| 09 65 78 69 74 28 30 29 | 3b 0d 7d 0d 69 72 73 22 |.exit(0)|;.}.irs"|
|000046b0| 20 61 72 65 20 75 73 65 | 64 20 77 69 74 68 20 66 | are use|d with f|
|000046c0| 6e 61 6d 65 20 61 6e 64 | 20 64 6e 61 6d 65 20 74 |name and| dname t|
|000046d0| 6f 20 67 65 6e 65 72 61 | 74 65 0d 20 2a 20 74 68 |o genera|te. * th|
|000046e0| 65 20 66 69 6c 65 20 6e | 61 6d 65 73 20 74 6f 20 |e file n|ames to |
|000046f0| 72 65 6d 6f 76 65 2e 0d | 20 2a 0d 20 2a 20 54 68 |remove..| *. * Th|
|00004700| 69 73 20 72 6f 75 74 69 | 6e 65 20 77 69 6c 6c 20 |is routi|ne will |
|00004710| 66 61 69 6c 20 69 66 2c | 20 73 61 79 20 61 66 74 |fail if,| say aft|
|00004720| 65 72 20 72 65 6d 6f 76 | 69 6e 67 20 6b 6e 6f 77 |er remov|ing know|
|00004730| 6e 20 66 69 6c 65 73 2c | 0d 20 2a 20 74 68 65 20 |n files,|. * the |
|00004740| 64 69 72 65 63 74 6f 72 | 79 20 69 73 20 6e 6f 74 |director|y is not|
|00004750| 20 65 6d 70 74 79 2e 0d | 20 2a 0d 20 2a 20 54 68 | empty..| *. * Th|
|00004760| 69 73 20 69 73 20 75 73 | 65 64 20 74 6f 20 74 65 |is is us|ed to te|
|00004770| 73 74 20 74 68 65 20 75 | 6e 6c 69 6e 6b 20 66 75 |st the u|nlink fu|
|00004780| 6e 63 74 69 6f 6e 20 61 | 6e 64 20 74 6f 20 63 6c |nction a|nd to cl|
|00004790| 65 61 6e 20 75 70 20 61 | 66 74 65 72 20 74 65 73 |ean up a|fter tes|
|000047a0| 74 73 2e 0d 20 2a 2f 0d | 72 6d 64 69 72 74 72 65 |ts.. */.|rmdirtre|
|000047b0| 65 28 6c 65 76 2c 20 66 | 69 6c 65 73 2c 20 64 69 |e(lev, f|iles, di|
|000047c0| 72 73 2c 20 66 6e 61 6d | 65 2c 20 64 6e 61 6d 65 |rs, fnam|e, dname|
|000047d0| 2c 20 74 6f 74 66 69 6c | 65 73 2c 20 74 6f 74 64 |, totfil|es, totd|
|000047e0| 69 72 73 2c 20 69 67 6e | 6f 72 65 29 0d 09 69 6e |irs, ign|ore)..in|
|000047f0| 74 20 6c 65 76 3b 0d 09 | 69 6e 74 20 66 69 6c 65 |t lev;..|int file|
|00004800| 4d 61 63 2d 43 74 68 6f | 6e 2f 74 65 6d 70 00 00 |Mac-Ctho|n/temp..|
|00004810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00004870| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00004880| 20 20 20 32 32 33 32 20 | 20 34 35 34 32 32 36 31 | 2232 | 4542261|
|00004890| 30 37 34 20 20 20 36 35 | 34 37 00 20 00 00 00 00 |074 65|47. ....|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 69 66 20 28 30 29 0d 7b | 0d 63 68 61 72 20 70 5b |if (0).{|.char p[|
|00004a10| 32 35 36 5d 3b 0d 70 5b | 30 5d 20 3d 20 27 3a 27 |256];.p[|0] = ':'|
|00004a20| 3b 0d 73 74 72 63 70 79 | 28 70 2b 31 2c 20 70 61 |;.strcpy|(p+1, pa|
|00004a30| 74 68 29 3b 0d 69 66 20 | 28 70 5b 20 73 74 72 6c |th);.if |(p[ strl|
|00004a40| 65 6e 28 70 29 2d 31 20 | 5d 20 21 3d 20 27 3a 27 |en(p)-1 |] != ':'|
|00004a50| 29 0d 09 73 74 72 63 61 | 74 28 70 2c 20 22 3a 22 |)..strca|t(p, ":"|
|00004a60| 29 3b 0d 73 74 72 63 70 | 79 28 70 61 74 68 2c 20 |);.strcp|y(path, |
|00004a70| 70 29 3b 0d 7d 0d 0d 7b | 0d 63 68 61 72 20 70 5b |p);.}..{|.char p[|
|00004a80| 32 35 36 5d 3b 0d 70 5b | 30 5d 20 3d 20 27 3a 27 |256];.p[|0] = ':'|
|00004a90| 3b 0d 73 74 72 63 70 79 | 28 70 2b 31 2c 20 70 61 |;.strcpy|(p+1, pa|
|00004aa0| 74 68 29 3b 0d 73 74 72 | 63 70 79 28 70 61 74 68 |th);.str|cpy(path|
|00004ab0| 2c 20 70 29 3b 0d 7d 0d | 0d 69 66 20 28 30 29 0d |, p);.}.|.if (0).|
|00004ac0| 70 72 69 6e 74 66 28 22 | 5b 72 6d 64 69 72 5d 20 |printf("|[rmdir] |
|00004ad0| 64 65 66 61 75 6c 74 5f | 64 69 72 5f 69 64 20 25 |default_|dir_id %|
|00004ae0| 6c 78 5c 6e 22 2c 20 64 | 65 66 61 75 6c 74 5f 64 |lx\n", d|efault_d|
|00004af0| 69 72 5f 69 64 29 3b 0d | 0d 2f 2a 20 72 65 6d 6f |ir_id);.|./* remo|
|00004b00| 76 65 20 61 6e 79 20 77 | 6f 72 6b 69 6e 67 20 64 |ve any w|orking d|
|00004b10| 69 72 20 69 6e 66 6f 20 | 2a 2f 0d 69 66 20 28 30 |ir info |*/.if (0|
|00004b20| 29 0d 7b 0d 09 6c 6f 6e | 67 20 64 69 72 69 64 3b |).{..lon|g dirid;|
|00004b30| 0d 09 43 49 6e 66 6f 50 | 42 52 65 63 20 69 6f 70 |..CInfoP|BRec iop|
|00004b40| 62 3b 0d 09 69 6e 74 20 | 69 6e 64 65 78 3b 0d 09 |b;..int |index;..|
|00004b50| 0d 09 2f 2a 20 66 69 72 | 73 74 20 67 65 74 20 64 |../* fir|st get d|
|00004b60| 69 72 20 69 64 20 2a 2f | 0d 09 69 6f 70 62 2e 68 |ir id */|..iopb.h|
|00004b70| 46 69 6c 65 49 6e 66 6f | 2e 69 6f 4e 61 6d 65 50 |FileInfo|.ioNameP|
|00004b80| 74 72 20 3d 20 70 6e 61 | 6d 65 28 70 61 74 68 29 |tr = pna|me(path)|
|00004b90| 3b 0d 09 69 6f 70 62 2e | 68 46 69 6c 65 49 6e 66 |;..iopb.|hFileInf|
|00004ba0| 6f 2e 69 6f 56 52 65 66 | 4e 75 6d 20 3d 20 64 65 |o.ioVRef|Num = de|
|00004bb0| 66 61 75 6c 74 5f 76 72 | 65 66 6e 75 6d 3b 0d 09 |fault_vr|efnum;..|
|00004bc0| 69 6f 70 62 2e 68 46 69 | 6c 65 49 6e 66 6f 2e 69 |iopb.hFi|leInfo.i|
|00004bd0| 6f 44 69 72 49 44 20 3d | 20 64 65 66 61 75 6c 74 |oDirID =| default|
|00004be0| 5f 64 69 72 5f 69 64 3b | 0d 09 0d 09 69 6f 70 62 |_dir_id;|....iopb|
|00004bf0| 2e 68 46 69 6c 65 49 6e | 66 6f 2e 69 6f 46 44 69 |.hFileIn|fo.ioFDi|
|00004c00| 72 49 6e 64 65 78 20 3d | 20 30 3b 0d 09 72 65 73 |rIndex =| 0;..res|
|00004c10| 75 6c 74 20 3d 20 50 42 | 47 65 74 43 61 74 49 6e |ult = PB|GetCatIn|
|00004c20| 66 6f 28 26 69 6f 70 62 | 2c 20 46 41 4c 53 45 29 |fo(&iopb|, FALSE)|
|00004c30| 3b 0d 09 0d 09 69 66 20 | 28 72 65 73 75 6c 74 20 |;....if |(result |
|00004c40| 21 3d 20 6e 6f 45 72 72 | 29 0d 09 09 72 65 74 75 |!= noErr|)...retu|
|00004c50| 72 6e 20 72 65 73 75 6c | 74 3b 0d 0d 09 64 69 72 |rn resul|t;...dir|
|00004c60| 69 64 20 3d 20 69 6f 70 | 62 2e 68 46 69 6c 65 49 |id = iop|b.hFileI|
|00004c70| 6e 66 6f 2e 69 6f 44 69 | 72 49 44 3b 0d 0d 09 2f |nfo.ioDi|rID;.../|
|00004c80| 2a 20 74 68 65 6e 20 73 | 63 61 6e 20 77 64 27 73 |* then s|can wd's|
|00004c90| 20 2a 2f 0d 09 66 6f 72 | 20 28 69 6e 64 65 78 20 | */..for| (index |
|00004ca0| 3d 20 31 3b 3b 20 69 6e | 64 65 78 2b 2b 29 0d 09 |= 1;; in|dex++)..|
|00004cb0| 09 7b 0d 09 09 57 44 50 | 42 52 65 63 20 77 64 5f |.{...WDP|BRec wd_|
|00004cc0| 69 6f 70 62 3b 0d 0d 09 | 09 77 64 5f 69 6f 70 62 |iopb;...|.wd_iopb|
|00004cd0| 2e 69 6f 56 52 65 66 4e | 75 6d 20 3d 20 64 65 66 |.ioVRefN|um = def|
|00004ce0| 61 75 6c 74 5f 76 72 65 | 66 6e 75 6d 3b 0d 09 09 |ault_vre|fnum;...|
|00004cf0| 77 64 5f 69 6f 70 62 2e | 69 6f 4e 61 6d 65 50 74 |wd_iopb.|ioNamePt|
|00004d00| 72 20 3d 20 28 53 74 72 | 69 6e 67 50 74 72 29 30 |r = (Str|ingPtr)0|
|00004d10| 3b 0d 09 09 77 64 5f 69 | 6f 70 62 2e 69 6f 57 44 |;...wd_i|opb.ioWD|
|00004d20| 50 72 6f 63 49 44 20 3d | 20 30 3b 0d 09 09 77 64 |ProcID =| 0;...wd|
|00004d30| 5f 69 6f 70 62 2e 69 6f | 57 44 56 52 65 66 4e 75 |_iopb.io|WDVRefNu|
|00004d40| 6d 20 3d 20 30 3b 0d 09 | 09 77 64 5f 69 6f 70 62 |m = 0;..|.wd_iopb|
|00004d50| 2e 69 6f 57 44 49 6e 64 | 65 78 20 3d 20 69 6e 64 |.ioWDInd|ex = ind|
|00004d60| 65 78 3b 0d 09 09 72 65 | 73 75 6c 74 20 3d 20 50 |ex;...re|sult = P|
|00004d70| 42 47 65 74 57 44 49 6e | 66 6f 28 26 77 64 5f 69 |BGetWDIn|fo(&wd_i|
|00004d80| 6f 70 62 2c 20 46 41 4c | 53 45 29 3b 0d 70 72 69 |opb, FAL|SE);.pri|
|00004d90| 6e 74 66 28 22 5b 72 6d | 64 69 72 5d 20 69 6e 64 |ntf("[rm|dir] ind|
|00004da0| 65 78 20 25 64 2c 20 72 | 65 73 75 6c 74 20 25 64 |ex %d, r|esult %d|
|00004db0| 2c 20 67 6f 74 20 64 69 | 72 69 64 20 25 6c 78 2c |, got di|rid %lx,|
|00004dc0| 20 77 61 6e 74 20 25 6c | 78 5c 6e 22 2c 0d 69 6e | want %l|x\n",.in|
|00004dd0| 64 65 78 2c 20 72 65 73 | 75 6c 74 2c 20 77 64 5f |dex, res|ult, wd_|
|00004de0| 69 6f 70 62 2e 69 6f 57 | 44 44 69 72 49 44 2c 20 |iopb.ioW|DDirID, |
|00004df0| 64 69 72 69 64 29 3b 0d | 09 09 69 66 20 28 72 65 |dirid);.|..if (re|
|00004e00| 73 75 6c 74 20 21 3d 20 | 6e 6f 45 72 72 29 0d 09 |sult != |noErr)..|
|00004e10| 09 09 62 72 65 61 6b 3b | 0d 09 09 0d 09 09 69 66 |..break;|......if|
|00004e20| 20 28 77 64 5f 69 6f 70 | 62 2e 69 6f 57 44 44 69 | (wd_iop|b.ioWDDi|
|00004e30| 72 49 44 20 3d 3d 20 64 | 69 72 69 64 29 0d 09 09 |rID == d|irid)...|
|00004e40| 09 7b 0d 70 72 69 6e 74 | 66 28 22 5b 72 6d 64 69 |.{.print|f("[rmdi|
|00004e50| 72 5d 20 67 6f 74 20 77 | 64 2c 20 69 6e 64 65 78 |r] got w|d, index|
|00004e60| 20 25 64 5c 6e 22 2c 20 | 69 6e 64 65 78 29 3b 0d | %d\n", |index);.|
|00004e70| 09 09 09 50 42 43 6c 6f | 73 65 57 44 28 26 77 64 |...PBClo|seWD(&wd|
|00004e80| 5f 69 6f 70 62 2c 20 46 | 41 4c 53 45 29 3b 0d 09 |_iopb, F|ALSE);..|
|00004e90| 09 09 7d 0d 09 09 7d 0d | 7d 0d 09 09 09 64 69 72 |..}...}.|}....dir|
|00004ea0| 20 3d 20 54 45 53 54 44 | 49 52 3b 0d 0d 09 69 66 | = TESTD|IR;...if|
|00004eb0| 20 28 63 68 64 69 72 28 | 64 69 72 29 20 3c 20 30 | (chdir(|dir) < 0|
|00004ec0| 29 20 7b 0d 09 09 65 72 | 72 6f 72 28 22 63 61 6e |) {...er|ror("can|
|00004ed0| 27 74 20 63 68 64 69 72 | 20 74 6f 20 74 65 73 74 |'t chdir| to test|
|00004ee0| 20 64 69 72 65 63 74 6f | 72 79 20 25 73 22 2c 20 | directo|ry %s", |
|00004ef0| 64 69 72 29 3b 0d 09 09 | 72 65 74 75 72 6e 20 2d |dir);...|return -|
|00004f00| 31 3b 0d 09 7d 0d 09 72 | 65 74 75 72 6e 20 30 3b |1;..}..r|eturn 0;|
|00004f10| 0d 7d 0d 0d 2f 2a 0d 20 | 2a 20 20 67 65 74 20 70 |.}../*. |* get p|
|00004f20| 61 72 61 6d 65 74 65 72 | 20 61 74 20 70 61 72 6d |arameter| at parm|
|00004f30| 2c 20 63 6f 6e 76 65 72 | 74 20 74 6f 20 69 6e 74 |, conver|t to int|
|00004f40| 2c 20 61 6e 64 20 6d 61 | 6b 65 20 73 75 72 65 20 |, and ma|ke sure |
|00004f50| 74 68 61 74 0d 20 2a 20 | 20 69 74 20 69 73 20 61 |that. * | it is a|
|00004f60| 74 20 6c 65 61 73 74 20 | 6d 69 6e 2e 0d 20 2a 2f |t least |min.. */|
|00004f70| 0d 67 65 74 70 61 72 6d | 28 70 61 72 6d 2c 20 6d |.getparm|(parm, m|
|00004f80| 69 6e 2c 20 6c 61 62 65 | 6c 29 0d 63 68 61 72 20 |in, labe|l).char |
|00004f90| 2a 70 61 72 6d 2c 20 2a | 6c 61 62 65 6c 3b 0d 69 |*parm, *|label;.i|
|00004fa0| 6e 74 20 6d 69 6e 3b 0d | 7b 0d 09 69 6e 74 20 76 |nt min;.|{..int v|
|00004fb0| 61 6c 20 3d 20 61 74 6f | 69 28 70 61 72 6d 29 3b |al = ato|i(parm);|
|00004fc0| 0d 09 69 66 20 28 76 61 | 6c 20 3c 20 6d 69 6e 29 |..if (va|l < min)|
|00004fd0| 20 7b 0d 09 09 65 72 72 | 6f 72 28 22 49 6c 6c 65 | {...err|or("Ille|
|00004fe0| 67 61 6c 20 25 73 20 70 | 61 72 61 6d 65 74 65 72 |gal %s p|arameter|
|00004ff0| 20 25 64 2c 20 6d 75 73 | 74 20 62 65 20 61 74 20 | %d, mus|t be at |
|00005000| 4d 61 63 2d 43 74 68 6f | 6e 2f 74 65 73 74 00 00 |Mac-Ctho|n/test..|
|00005010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005060| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00005070| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00005080| 20 20 20 20 20 20 30 20 | 20 34 35 34 32 32 36 31 | 0 | 4542261|
|00005090| 30 37 35 20 20 20 36 34 | 37 31 00 20 00 00 00 00 |075 64|71. ....|
|000050a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005200| 4d 61 63 2d 43 74 68 6f | 6e 2f 74 65 73 74 2e 72 |Mac-Ctho|n/test.r|
|00005210| 73 72 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |src.....|........|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00005270| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00005280| 20 20 20 20 20 20 30 20 | 20 34 35 34 32 32 36 31 | 0 | 4542261|
|00005290| 30 37 37 20 20 20 37 34 | 34 33 00 20 00 00 00 00 |077 74|43. ....|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 4d 61 63 2d 43 74 68 6f | 6e 2f 74 65 73 74 31 2e |Mac-Ctho|n/test1.|
|00005410| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00005420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005460| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00005470| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00005480| 20 20 20 34 37 31 35 20 | 20 34 35 34 32 32 36 31 | 4715 | 4542261|
|00005490| 31 30 31 20 20 20 37 30 | 36 32 00 20 00 00 00 00 |101 70|62. ....|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 2f 2a 09 40 28 23 29 74 | 65 73 74 31 2e 63 09 31 |/*.@(#)t|est1.c.1|
|00005610| 2e 33 20 38 39 2f 30 31 | 2f 31 30 20 4e 46 53 20 |.3 89/01|/10 NFS |
|00005620| 52 65 76 20 32 20 54 65 | 73 74 73 75 69 74 65 09 |Rev 2 Te|stsuite.|
|00005630| 2a 2f 0d 2f 2a 0d 20 2a | 20 54 65 73 74 20 66 69 |*/./*. *| Test fi|
|00005640| 6c 65 20 61 6e 64 20 64 | 69 72 65 63 74 6f 72 79 |le and d|irectory|
|00005650| 20 63 72 65 61 74 69 6f | 6e 2e 0d 20 2a 20 42 75 | creatio|n.. * Bu|
|00005660| 69 6c 64 73 20 61 20 74 | 72 65 65 20 6f 6e 20 74 |ilds a t|ree on t|
|00005670| 68 65 20 73 65 72 76 65 | 72 2e 0d 20 2a 0d 20 2a |he serve|r.. *. *|
|00005680| 20 55 73 65 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | Uses th|e follow|
|00005690| 69 6e 67 20 69 6d 70 6f | 72 74 61 6e 74 20 73 79 |ing impo|rtant sy|
|000056a0| 73 74 65 6d 20 63 61 6c | 6c 73 20 61 67 61 69 6e |stem cal|ls again|
|000056b0| 73 74 20 74 68 65 20 73 | 65 72 76 65 72 3a 0d 20 |st the s|erver:. |
|000056c0| 2a 0d 20 2a 09 63 68 64 | 69 72 28 29 0d 20 2a 09 |*. *.chd|ir(). *.|
|000056d0| 6d 6b 64 69 72 28 29 09 | 09 28 69 66 20 63 72 65 |mkdir().|.(if cre|
|000056e0| 61 74 69 6e 67 20 64 69 | 72 65 63 74 6f 72 69 65 |ating di|rectorie|
|000056f0| 73 2c 20 6c 65 76 65 6c | 20 3e 20 31 29 0d 20 2a |s, level| > 1). *|
|00005700| 09 63 72 65 61 74 28 29 | 0d 20 2a 2f 0d 0d 23 69 |.creat()|. */..#i|
|00005710| 6e 63 6c 75 64 65 20 22 | 73 79 73 5f 70 61 72 61 |nclude "|sys_para|
|00005720| 6d 2e 68 22 0d 23 69 66 | 6e 64 65 66 20 6d 61 6a |m.h".#if|ndef maj|
|00005730| 6f 72 0d 23 69 6e 63 6c | 75 64 65 20 22 73 79 73 |or.#incl|ude "sys|
|00005740| 5f 74 79 70 65 73 2e 68 | 22 0d 23 65 6e 64 69 66 |_types.h|".#endif|
|00005750| 0d 23 69 6e 63 6c 75 64 | 65 20 22 73 79 73 5f 73 |.#includ|e "sys_s|
|00005760| 74 61 74 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |tat.h".#|include |
|00005770| 22 73 79 73 5f 74 69 6d | 65 2e 68 22 0d 23 69 6e |"sys_tim|e.h".#in|
|00005780| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0d |clude <s|tdio.h>.|
|00005790| 23 69 6e 63 6c 75 64 65 | 20 22 74 65 73 74 73 2e |#include| "tests.|
|000057a0| 68 22 0d 0d 74 65 73 74 | 31 28 61 72 67 63 2c 20 |h"..test|1(argc, |
|000057b0| 61 72 67 76 29 0d 09 69 | 6e 74 20 61 72 67 63 3b |argv)..i|nt argc;|
|000057c0| 0d 09 63 68 61 72 20 2a | 61 72 67 76 5b 5d 3b 0d |..char *|argv[];.|
|000057d0| 7b 0d 09 69 6e 74 20 66 | 69 6c 65 73 20 3d 20 44 |{..int f|iles = D|
|000057e0| 46 49 4c 53 3b 09 2f 2a | 20 6e 75 6d 62 65 72 20 |FILS;./*| number |
|000057f0| 6f 66 20 66 69 6c 65 73 | 20 69 6e 20 65 61 63 68 |of files| in each|
|00005800| 20 64 69 72 20 2a 2f 0d | 09 69 6e 74 20 74 6f 74 | dir */.|.int tot|
|00005810| 66 69 6c 65 73 20 3d 20 | 30 3b 0d 09 69 6e 74 20 |files = |0;..int |
|00005820| 64 69 72 73 20 3d 20 44 | 44 49 52 53 3b 09 2f 2a |dirs = D|DIRS;./*|
|00005830| 20 64 69 72 65 63 74 6f | 72 69 65 73 20 69 6e 20 | directo|ries in |
|00005840| 65 61 63 68 20 64 69 72 | 20 2a 2f 0d 09 69 6e 74 |each dir| */..int|
|00005850| 20 74 6f 74 64 69 72 73 | 20 3d 20 30 3b 0d 09 69 | totdirs| = 0;..i|
|00005860| 6e 74 20 6c 65 76 65 6c | 73 20 3d 20 44 4c 45 56 |nt level|s = DLEV|
|00005870| 53 3b 09 2f 2a 20 6c 65 | 76 65 6c 73 20 64 65 65 |S;./* le|vels dee|
|00005880| 70 20 2a 2f 0d 09 63 68 | 61 72 20 2a 66 6e 61 6d |p */..ch|ar *fnam|
|00005890| 65 20 3d 20 46 4e 41 4d | 45 3b 0d 09 63 68 61 72 |e = FNAM|E;..char|
|000058a0| 20 2a 64 6e 61 6d 65 20 | 3d 20 44 4e 41 4d 45 3b | *dname |= DNAME;|
|000058b0| 0d 09 73 74 72 75 63 74 | 20 74 69 6d 65 76 61 6c |..struct| timeval|
|000058c0| 20 74 69 6d 65 3b 0d 09 | 63 68 61 72 20 63 6f 6d | time;..|char com|
|000058d0| 6d 61 6e 64 5b 4d 41 58 | 50 41 54 48 4c 45 4e 5d |mand[MAX|PATHLEN]|
|000058e0| 3b 0d 09 73 74 72 75 63 | 74 20 73 74 61 74 20 73 |;..struc|t stat s|
|000058f0| 74 61 74 62 3b 0d 09 63 | 68 61 72 20 2a 6f 70 74 |tatb;..c|har *opt|
|00005900| 73 3b 0d 0d 09 73 65 74 | 62 75 66 28 73 74 64 6f |s;...set|buf(stdo|
|00005910| 75 74 2c 20 4e 55 4c 4c | 29 3b 0d 09 4d 79 6e 61 |ut, NULL|);..Myna|
|00005920| 6d 65 20 3d 20 2a 61 72 | 67 76 2b 2b 3b 0d 09 61 |me = *ar|gv++;..a|
|00005930| 72 67 63 2d 2d 3b 0d 09 | 77 68 69 6c 65 20 28 61 |rgc--;..|while (a|
|00005940| 72 67 63 20 26 26 20 2a | 2a 61 72 67 76 20 3d 3d |rgc && *|*argv ==|
|00005950| 20 27 2d 27 29 20 7b 0d | 09 09 66 6f 72 20 28 6f | '-') {.|..for (o|
|00005960| 70 74 73 20 3d 20 26 61 | 72 67 76 5b 30 5d 5b 31 |pts = &a|rgv[0][1|
|00005970| 5d 3b 20 2a 6f 70 74 73 | 3b 20 6f 70 74 73 2b 2b |]; *opts|; opts++|
|00005980| 29 20 7b 0d 09 09 09 73 | 77 69 74 63 68 20 28 2a |) {....s|witch (*|
|00005990| 6f 70 74 73 29 20 7b 0d | 09 09 09 09 63 61 73 65 |opts) {.|....case|
|000059a0| 20 27 68 27 3a 09 2f 2a | 20 68 65 6c 70 20 2a 2f | 'h':./*| help */|
|000059b0| 0d 09 09 09 09 09 75 73 | 61 67 65 28 29 3b 0d 09 |......us|age();..|
|000059c0| 09 09 09 09 65 78 69 74 | 28 31 29 3b 0d 0d 09 09 |....exit|(1);....|
|000059d0| 09 09 63 61 73 65 20 27 | 73 27 3a 09 2f 2a 20 73 |..case '|s':./* s|
|000059e0| 69 6c 65 6e 74 20 2a 2f | 0d 09 09 09 09 09 53 66 |ilent */|......Sf|
|000059f0| 6c 61 67 2b 2b 3b 0d 09 | 09 09 09 09 62 72 65 61 |lag++;..|....brea|
|00005a00| 6b 3b 0d 0d 09 09 09 09 | 63 61 73 65 20 27 74 27 |k;......|case 't'|
|00005a10| 3a 09 2f 2a 20 74 69 6d | 65 20 2a 2f 0d 09 09 09 |:./* tim|e */....|
|00005a20| 09 09 54 66 6c 61 67 2b | 2b 3b 0d 09 09 09 09 09 |..Tflag+|+;......|
|00005a30| 62 72 65 61 6b 3b 0d 0d | 09 09 09 09 63 61 73 65 |break;..|....case|
|00005a40| 20 27 66 27 3a 09 2f 2a | 20 66 75 6e 74 69 6f 6e | 'f':./*| funtion|
|00005a50| 61 6c 69 74 79 20 2a 2f | 0d 09 09 09 09 09 46 66 |ality */|......Ff|
|00005a60| 6c 61 67 2b 2b 3b 0d 09 | 09 09 09 09 62 72 65 61 |lag++;..|....brea|
|00005a70| 6b 3b 0d 0d 09 09 09 09 | 63 61 73 65 20 27 6e 27 |k;......|case 'n'|
|00005a80| 3a 09 2f 2a 20 4e 6f 20 | 54 65 73 74 20 44 69 72 |:./* No |Test Dir|
|00005a90| 65 63 74 6f 72 79 20 63 | 72 65 61 74 65 20 2a 2f |ectory c|reate */|
|00005aa0| 0d 09 09 09 09 09 4e 66 | 6c 61 67 2b 2b 3b 0d 09 |......Nf|lag++;..|
|00005ab0| 09 09 09 09 62 72 65 61 | 6b 3b 0d 0d 09 09 09 09 |....brea|k;......|
|00005ac0| 64 65 66 61 75 6c 74 3a | 0d 09 09 09 09 09 65 72 |default:|......er|
|00005ad0| 72 6f 72 28 22 75 6e 6b | 6e 6f 77 6e 20 6f 70 74 |ror("unk|nown opt|
|00005ae0| 69 6f 6e 20 27 25 63 27 | 22 2c 20 2a 6f 70 74 73 |ion '%c'|", *opts|
|00005af0| 29 3b 0d 09 09 09 09 09 | 75 73 61 67 65 28 29 3b |);......|usage();|
|00005b00| 0d 09 09 09 09 09 65 78 | 69 74 28 31 29 3b 0d 09 |......ex|it(1);..|
|00005b10| 09 09 7d 0d 09 09 7d 0d | 09 09 61 72 67 63 2d 2d |..}...}.|..argc--|
|00005b20| 3b 0d 09 09 61 72 67 76 | 2b 2b 3b 0d 09 7d 0d 0d |;...argv|++;..}..|
|00005b30| 09 69 66 20 28 61 72 67 | 63 29 20 7b 0d 09 09 6c |.if (arg|c) {...l|
|00005b40| 65 76 65 6c 73 20 3d 20 | 67 65 74 70 61 72 6d 28 |evels = |getparm(|
|00005b50| 2a 61 72 67 76 2c 20 31 | 2c 20 22 6c 65 76 65 6c |*argv, 1|, "level|
|00005b60| 73 22 29 3b 0d 09 09 61 | 72 67 76 2b 2b 3b 0d 09 |s");...a|rgv++;..|
|00005b70| 09 61 72 67 63 2d 2d 3b | 0d 09 7d 0d 09 69 66 20 |.argc--;|..}..if |
|00005b80| 28 61 72 67 63 29 20 7b | 0d 09 09 66 69 6c 65 73 |(argc) {|...files|
|00005b90| 20 3d 20 67 65 74 70 61 | 72 6d 28 2a 61 72 67 76 | = getpa|rm(*argv|
|00005ba0| 2c 20 30 2c 20 22 66 69 | 6c 65 73 22 29 3b 0d 09 |, 0, "fi|les");..|
|00005bb0| 09 61 72 67 76 2b 2b 3b | 0d 09 09 61 72 67 63 2d |.argv++;|...argc-|
|00005bc0| 2d 3b 0d 09 7d 0d 09 69 | 66 20 28 61 72 67 63 29 |-;..}..i|f (argc)|
|00005bd0| 20 7b 0d 09 09 64 69 72 | 73 20 3d 20 67 65 74 70 | {...dir|s = getp|
|00005be0| 61 72 6d 28 2a 61 72 67 | 76 2c 20 30 2c 20 22 64 |arm(*arg|v, 0, "d|
|00005bf0| 69 72 73 22 29 3b 0d 09 | 09 69 66 20 28 64 69 72 |irs");..|.if (dir|
|00005c00| 73 20 3d 3d 20 30 20 26 | 26 20 6c 65 76 65 6c 73 |s == 0 &|& levels|
|00005c10| 20 21 3d 20 31 29 20 7b | 0d 09 09 09 65 72 72 6f | != 1) {|....erro|
|00005c20| 72 28 22 49 6c 6c 65 67 | 61 6c 20 64 69 72 73 20 |r("Illeg|al dirs |
|00005c30| 70 61 72 61 6d 65 74 65 | 72 2c 20 6d 75 73 74 20 |paramete|r, must |
|00005c40| 62 65 20 61 74 20 6c 65 | 61 73 74 20 31 22 29 3b |be at le|ast 1");|
|00005c50| 0d 09 09 09 65 78 69 74 | 28 31 29 3b 0d 09 09 7d |....exit|(1);...}|
|00005c60| 0d 09 09 61 72 67 76 2b | 2b 3b 0d 09 09 61 72 67 |...argv+|+;...arg|
|00005c70| 63 2d 2d 3b 0d 09 7d 0d | 09 69 66 20 28 61 72 67 |c--;..}.|.if (arg|
|00005c80| 63 29 20 7b 0d 09 09 66 | 6e 61 6d 65 20 3d 20 2a |c) {...f|name = *|
|00005c90| 61 72 67 76 3b 0d 09 09 | 61 72 67 63 2d 2d 3b 0d |argv;...|argc--;.|
|00005ca0| 09 09 61 72 67 76 2b 2b | 3b 0d 09 7d 0d 09 69 66 |..argv++|;..}..if|
|00005cb0| 20 28 61 72 67 63 29 20 | 7b 0d 09 09 64 6e 61 6d | (argc) |{...dnam|
|00005cc0| 65 20 3d 20 2a 61 72 67 | 76 3b 0d 09 09 61 72 67 |e = *arg|v;...arg|
|00005cd0| 63 2d 2d 3b 0d 09 09 61 | 72 67 76 2b 2b 3b 0d 09 |c--;...a|rgv++;..|
|00005ce0| 7d 0d 09 69 66 20 28 61 | 72 67 63 20 21 3d 20 30 |}..if (a|rgc != 0|
|00005cf0| 29 20 7b 0d 09 09 65 72 | 72 6f 72 28 22 74 6f 6f |) {...er|ror("too|
|00005d00| 20 6d 61 6e 79 20 70 61 | 72 61 6d 65 74 65 72 73 | many pa|rameters|
|00005d10| 22 29 3b 0d 09 09 75 73 | 61 67 65 28 29 3b 0d 09 |");...us|age();..|
|00005d20| 09 65 78 69 74 28 31 29 | 3b 0d 09 7d 0d 0d 09 69 |.exit(1)|;..}...i|
|00005d30| 66 20 28 46 66 6c 61 67 | 29 20 7b 0d 09 09 54 66 |f (Fflag|) {...Tf|
|00005d40| 6c 61 67 20 3d 20 30 3b | 0d 09 09 6c 65 76 65 6c |lag = 0;|...level|
|00005d50| 73 20 3d 20 32 3b 0d 09 | 09 66 69 6c 65 73 20 3d |s = 2;..|.files =|
|00005d60| 20 32 3b 0d 09 09 64 69 | 72 73 20 3d 20 32 3b 0d | 2;...di|rs = 2;.|
|00005d70| 09 7d 0d 0d 09 69 66 20 | 28 21 53 66 6c 61 67 29 |.}...if |(!Sflag)|
|00005d80| 20 7b 0d 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 | {...fpr|intf(std|
|00005d90| 6f 75 74 2c 20 22 25 73 | 3a 20 46 69 6c 65 20 61 |out, "%s|: File a|
|00005da0| 6e 64 20 64 69 72 65 63 | 74 6f 72 79 20 63 72 65 |nd direc|tory cre|
|00005db0| 61 74 69 6f 6e 20 74 65 | 73 74 5c 6e 22 2c 0d 09 |ation te|st\n",..|
|00005dc0| 09 20 20 20 20 4d 79 6e | 61 6d 65 29 3b 0d 09 7d |. Myn|ame);..}|
|00005dd0| 0d 0d 09 69 66 20 28 21 | 4e 66 6c 61 67 29 0d 09 |...if (!|Nflag)..|
|00005de0| 09 74 65 73 74 64 69 72 | 28 4e 55 4c 4c 29 3b 0d |.testdir|(NULL);.|
|00005df0| 09 65 6c 73 65 0d 09 09 | 6d 74 65 73 74 64 69 72 |.else...|mtestdir|
|00005e00| 28 4e 55 4c 4c 29 3b 0d | 0d 09 69 66 20 28 54 66 |(NULL);.|..if (Tf|
|00005e10| 6c 61 67 20 26 26 20 21 | 53 66 6c 61 67 29 20 7b |lag && !|Sflag) {|
|00005e20| 0d 09 09 73 74 61 72 74 | 74 69 6d 65 28 29 3b 0d |...start|time();.|
|00005e30| 09 7d 0d 09 64 69 72 74 | 72 65 65 28 6c 65 76 65 |.}..dirt|ree(leve|
|00005e40| 6c 73 2c 20 66 69 6c 65 | 73 2c 20 64 69 72 73 2c |ls, file|s, dirs,|
|00005e50| 20 66 6e 61 6d 65 2c 20 | 64 6e 61 6d 65 2c 20 26 | fname, |dname, &|
|00005e60| 74 6f 74 66 69 6c 65 73 | 2c 20 26 74 6f 74 64 69 |totfiles|, &totdi|
|00005e70| 72 73 29 3b 0d 09 69 66 | 20 28 54 66 6c 61 67 20 |rs);..if| (Tflag |
|00005e80| 26 26 20 21 53 66 6c 61 | 67 29 20 7b 0d 09 09 65 |&& !Sfla|g) {...e|
|00005e90| 6e 64 74 69 6d 65 28 26 | 74 69 6d 65 29 3b 0d 09 |ndtime(&|time);..|
|00005ea0| 7d 0d 09 69 66 20 28 21 | 53 66 6c 61 67 29 20 7b |}..if (!|Sflag) {|
|00005eb0| 0d 09 09 66 70 72 69 6e | 74 66 28 73 74 64 6f 75 |...fprin|tf(stdou|
|00005ec0| 74 2c 0d 09 09 20 20 20 | 20 22 5c 74 63 72 65 61 |t,... | "\tcrea|
|00005ed0| 74 65 64 20 25 64 20 66 | 69 6c 65 73 20 25 64 20 |ted %d f|iles %d |
|00005ee0| 64 69 72 65 63 74 6f 72 | 69 65 73 20 25 64 20 6c |director|ies %d l|
|00005ef0| 65 76 65 6c 73 20 64 65 | 65 70 22 2c 0d 09 09 20 |evels de|ep",... |
|00005f00| 20 20 20 74 6f 74 66 69 | 6c 65 73 2c 20 74 6f 74 | totfi|les, tot|
|00005f10| 64 69 72 73 2c 20 6c 65 | 76 65 6c 73 29 3b 0d 09 |dirs, le|vels);..|
|00005f20| 7d 0d 09 69 66 20 28 54 | 66 6c 61 67 20 26 26 20 |}..if (T|flag && |
|00005f30| 21 53 66 6c 61 67 29 20 | 7b 0d 09 09 66 70 72 69 |!Sflag) |{...fpri|
|00005f40| 6e 74 66 28 73 74 64 6f | 75 74 2c 20 22 20 69 6e |ntf(stdo|ut, " in|
|00005f50| 20 25 6c 64 2e 25 2d 32 | 6c 5d 64 20 73 65 63 6f | %ld.%-2|l]d seco|
|00005f60| 6e 64 73 22 2c 0d 09 09 | 20 20 20 20 74 69 6d 65 |nds",...| time|
|00005f70| 2e 74 76 5f 73 65 63 2c | 20 74 69 6d 65 2e 74 76 |.tv_sec,| time.tv|
|00005f80| 5f 75 73 65 63 20 2f 20 | 31 30 30 30 30 29 3b 0d |_usec / |10000);.|
|00005f90| 09 7d 0d 09 69 66 20 28 | 21 53 66 6c 61 67 29 20 |.}..if (|!Sflag) |
|00005fa0| 7b 0d 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 6f |{...fpri|ntf(stdo|
|00005fb0| 75 74 2c 20 22 5c 6e 22 | 29 3b 0d 09 7d 0d 09 63 |ut, "\n"|);..}..c|
|00005fc0| 6f 6d 70 6c 65 74 65 28 | 29 3b 0d 7d 0d 6e 61 6d |omplete(|);.}.nam|
|00005fd0| 65 29 20 3c 20 30 29 20 | 7b 0d 09 09 09 69 66 20 |e) < 0) |{....if |
|00005fe0| 28 69 67 6e 6f 72 65 29 | 0d 09 09 09 09 63 6f 6e |(ignore)|.....con|
|00005ff0| 74 69 6e 75 65 3b 0d 09 | 09 09 65 72 72 6f 72 28 |tinue;..|..error(|
|00006000| 4d 61 63 2d 43 74 68 6f | 6e 2f 74 65 73 74 32 2e |Mac-Ctho|n/test2.|
|00006010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00006020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006060| 00 00 00 00 20 20 20 36 | 36 34 20 00 20 20 20 31 |.... 6|64 . 1|
|00006070| 36 32 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |62 . |12 . |
|00006080| 20 20 20 35 31 31 32 20 | 20 34 35 34 32 32 36 31 | 5112 | 4542261|
|00006090| 31 30 33 20 20 20 37 30 | 35 35 00 20 00 00 00 00 |103 70|55. ....|
|000060a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006200| 2f 2a 09 40 28 23 29 74 | 65 73 74 32 2e 63 09 31 |/*.@(#)t|est2.c.1|
|00006210| 2e 33 20 38 39 2f 30 31 | 2f 31 30 20 4e 46 53 20 |.3 89/01|/10 NFS |
|00006220| 52 65 76 20 32 20 54 65 | 73 74 73 75 69 74 65 09 |Rev 2 Te|stsuite.|
|00006230| 2a 2f 0d 2f 2a 0d 20 2a | 20 54 65 73 74 20 66 69 |*/./*. *| Test fi|
|00006240| 6c 65 20 61 6e 64 20 64 | 69 72 65 63 74 6f 72 79 |le and d|irectory|
|00006250| 20 72 65 6d 6f 76 61 6c | 2e 0d 20 2a 20 42 75 69 | removal|.. * Bui|
|00006260| 6c 64 73 20 61 20 74 72 | 65 65 20 6f 6e 20 74 68 |lds a tr|ee on th|
|00006270| 65 20 73 65 72 76 65 72 | 2e 0d 20 2a 0d 20 2a 20 |e server|.. *. * |
|00006280| 55 73 65 73 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |Uses the| followi|
|00006290| 6e 67 20 69 6d 70 6f 72 | 74 61 6e 74 20 73 79 73 |ng impor|tant sys|
|000062a0| 74 65 6d 20 63 61 6c 6c | 73 20 61 67 61 69 6e 73 |tem call|s agains|
|000062b0| 74 20 74 68 65 20 73 65 | 72 76 65 72 3a 0d 20 2a |t the se|rver:. *|
|000062c0| 0d 20 2a 09 63 68 64 69 | 72 28 29 0d 20 2a 09 72 |. *.chdi|r(). *.r|
|000062d0| 6d 64 69 72 28 29 09 09 | 28 69 66 20 72 65 6d 6f |mdir()..|(if remo|
|000062e0| 76 69 6e 67 20 64 69 72 | 65 63 74 6f 72 69 65 73 |ving dir|ectories|
|000062f0| 2c 20 6c 65 76 65 6c 20 | 3e 20 31 29 0d 20 2a 09 |, level |> 1). *.|
|00006300| 75 6e 6c 69 6e 6b 28 29 | 0d 20 2a 2f 0d 0d 23 69 |unlink()|. */..#i|
|00006310| 6e 63 6c 75 64 65 20 22 | 73 79 73 5f 70 61 72 61 |nclude "|sys_para|
|00006320| 6d 2e 68 22 0d 23 69 66 | 6e 64 65 66 20 6d 61 6a |m.h".#if|ndef maj|
|00006330| 6f 72 0d 23 69 6e 63 6c | 75 64 65 20 22 73 79 73 |or.#incl|ude "sys|
|00006340| 5f 74 79 70 65 73 2e 68 | 22 0d 23 65 6e 64 69 66 |_types.h|".#endif|
|00006350| 0d 23 69 6e 63 6c 75 64 | 65 20 22 73 79 73 5f 74 |.#includ|e "sys_t|
|00006360| 69 6d 65 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |ime.h".#|include |
|00006370| 22 73 79 73 5f 73 74 61 | 74 2e 68 22 0d 23 69 6e |"sys_sta|t.h".#in|
|00006380| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0d |clude <s|tdio.h>.|
|00006390| 23 69 6e 63 6c 75 64 65 | 20 22 74 65 73 74 73 2e |#include| "tests.|
|000063a0| 68 22 0d 0d 74 65 73 74 | 32 28 61 72 67 63 2c 20 |h"..test|2(argc, |
|000063b0| 61 72 67 76 29 0d 09 69 | 6e 74 20 61 72 67 63 3b |argv)..i|nt argc;|
|000063c0| 0d 09 63 68 61 72 20 2a | 61 72 67 76 5b 5d 3b 0d |..char *|argv[];.|
|000063d0| 7b 0d 09 69 6e 74 20 66 | 69 6c 65 73 20 3d 20 44 |{..int f|iles = D|
|000063e0| 46 49 4c 53 3b 09 2f 2a | 20 6e 75 6d 62 65 72 20 |FILS;./*| number |
|000063f0| 6f 66 20 66 69 6c 65 73 | 20 69 6e 20 65 61 63 68 |of files| in each|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.