home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 76 32 35 69 30 32 34 |Subject:| v25i024|
|00000010| 3a 20 41 20 72 65 61 6c | 2d 74 69 6d 65 2c 20 6d |: A real|-time, m|
|00000020| 75 6c 74 69 74 68 72 65 | 61 64 65 64 20 49 6e 74 |ultithre|aded Int|
|00000030| 65 72 6e 65 74 20 61 72 | 63 68 69 76 65 20 73 65 |ernet ar|chive se|
|00000040| 72 76 65 72 2c 20 50 61 | 72 74 30 31 2f 30 33 0a |rver, Pa|rt01/03.|
|00000050| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000060| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 0a 41 70 |.sources|.unix.Ap|
|00000070| 70 72 6f 76 65 64 3a 20 | 76 69 78 69 65 40 70 61 |proved: |vixie@pa|
|00000080| 2e 64 65 63 2e 63 6f 6d | 0a 0a 53 75 62 6d 69 74 |.dec.com|..Submit|
|00000090| 74 65 64 2d 42 79 3a 20 | 77 65 6e 2d 6b 69 6e 67 |ted-By: |wen-king|
|000000a0| 40 76 6c 73 69 2e 63 73 | 2e 63 61 6c 74 65 63 68 |@vlsi.cs|.caltech|
|000000b0| 2e 65 64 75 0a 50 6f 73 | 74 69 6e 67 2d 4e 75 6d |.edu.Pos|ting-Num|
|000000c0| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 32 35 2c 20 |ber: Vol|ume 25, |
|000000d0| 49 73 73 75 65 20 32 34 | 0a 41 72 63 68 69 76 65 |Issue 24|.Archive|
|000000e0| 2d 4e 61 6d 65 3a 20 66 | 73 70 2f 70 61 72 74 30 |-Name: f|sp/part0|
|000000f0| 31 0a 0a 23 21 20 2f 62 | 69 6e 2f 73 68 0a 23 20 |1..#! /b|in/sh.# |
|00000100| 54 68 69 73 20 69 73 20 | 61 20 73 68 65 6c 6c 20 |This is |a shell |
|00000110| 61 72 63 68 69 76 65 2e | 20 20 52 65 6d 6f 76 65 |archive.| Remove|
|00000120| 20 61 6e 79 74 68 69 6e | 67 20 62 65 66 6f 72 65 | anythin|g before|
|00000130| 20 74 68 69 73 20 6c 69 | 6e 65 2c 20 74 68 65 6e | this li|ne, then|
|00000140| 20 75 6e 70 61 63 6b 0a | 23 20 69 74 20 62 79 20 | unpack.|# it by |
|00000150| 73 61 76 69 6e 67 20 69 | 74 20 69 6e 74 6f 20 61 |saving i|t into a|
|00000160| 20 66 69 6c 65 20 61 6e | 64 20 74 79 70 69 6e 67 | file an|d typing|
|00000170| 20 22 73 68 20 66 69 6c | 65 22 2e 20 20 54 6f 20 | "sh fil|e". To |
|00000180| 6f 76 65 72 77 72 69 74 | 65 20 65 78 69 73 74 69 |overwrit|e existi|
|00000190| 6e 67 0a 23 20 66 69 6c | 65 73 2c 20 74 79 70 65 |ng.# fil|es, type|
|000001a0| 20 22 73 68 20 66 69 6c | 65 20 2d 63 22 2e 20 20 | "sh fil|e -c". |
|000001b0| 59 6f 75 20 63 61 6e 20 | 61 6c 73 6f 20 66 65 65 |You can |also fee|
|000001c0| 64 20 74 68 69 73 20 61 | 73 20 73 74 61 6e 64 61 |d this a|s standa|
|000001d0| 72 64 20 69 6e 70 75 74 | 20 76 69 61 0a 23 20 75 |rd input| via.# u|
|000001e0| 6e 73 68 61 72 2c 20 6f | 72 20 62 79 20 74 79 70 |nshar, o|r by typ|
|000001f0| 69 6e 67 20 22 73 68 20 | 3c 66 69 6c 65 22 2c 20 |ing "sh |<file", |
|00000200| 65 2e 67 2e 2e 20 20 49 | 66 20 74 68 69 73 20 61 |e.g.. I|f this a|
|00000210| 72 63 68 69 76 65 20 69 | 73 20 63 6f 6d 70 6c 65 |rchive i|s comple|
|00000220| 74 65 2c 20 79 6f 75 0a | 23 20 77 69 6c 6c 20 73 |te, you.|# will s|
|00000230| 65 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ee the f|ollowing|
|00000240| 20 6d 65 73 73 61 67 65 | 20 61 74 20 74 68 65 20 | message| at the |
|00000250| 65 6e 64 3a 0a 23 09 09 | 22 45 6e 64 20 6f 66 20 |end:.#..|"End of |
|00000260| 61 72 63 68 69 76 65 20 | 31 20 28 6f 66 20 33 29 |archive |1 (of 3)|
|00000270| 2e 22 0a 23 20 43 6f 6e | 74 65 6e 74 73 3a 20 20 |.".# Con|tents: |
|00000280| 4d 41 4e 49 46 45 53 54 | 20 52 45 41 44 4d 45 20 |MANIFEST| README |
|00000290| 62 73 64 5f 73 72 63 20 | 62 73 64 5f 73 72 63 2f |bsd_src |bsd_src/|
|000002a0| 4d 61 6b 65 66 69 6c 65 | 20 62 73 64 5f 73 72 63 |Makefile| bsd_src|
|000002b0| 2f 63 6d 70 2e 63 0a 23 | 20 20 20 62 73 64 5f 73 |/cmp.c.#| bsd_s|
|000002c0| 72 63 2f 6c 73 2e 68 20 | 62 73 64 5f 73 72 63 2f |rc/ls.h |bsd_src/|
|000002d0| 74 77 65 61 6b 2e 68 20 | 62 73 64 5f 73 72 63 2f |tweak.h |bsd_src/|
|000002e0| 75 74 69 6c 2e 63 20 63 | 6c 69 65 6e 74 5f 64 65 |util.c c|lient_de|
|000002f0| 66 2e 68 0a 23 20 20 20 | 63 6c 69 65 6e 74 5f 6c |f.h.# |client_l|
|00000300| 69 62 2e 63 20 66 63 61 | 74 63 6d 64 2e 31 20 66 |ib.c fca|tcmd.1 f|
|00000310| 63 61 74 63 6d 64 2e 63 | 20 66 63 64 63 6d 64 2e |catcmd.c| fcdcmd.|
|00000320| 31 20 66 63 64 63 6d 64 | 2e 63 20 66 67 65 74 63 |1 fcdcmd|.c fgetc|
|00000330| 6d 64 2e 31 0a 23 20 20 | 20 66 67 65 74 63 6d 64 |md.1.# | fgetcmd|
|00000340| 2e 63 20 66 6c 73 63 6d | 64 2e 31 20 66 6c 73 63 |.c flscm|d.1 flsc|
|00000350| 6d 64 2e 63 20 66 6d 6b | 64 69 72 2e 31 20 66 6d |md.c fmk|dir.1 fm|
|00000360| 6b 64 69 72 2e 63 20 66 | 70 72 6f 63 6d 64 2e 31 |kdir.c f|procmd.1|
|00000370| 20 66 70 72 6f 63 6d 64 | 2e 63 0a 23 20 20 20 66 | fprocmd|.c.# f|
|00000380| 70 75 74 2e 31 20 66 70 | 75 74 2e 63 20 66 72 6d |put.1 fp|ut.c frm|
|00000390| 63 6d 64 2e 31 20 66 72 | 6d 63 6d 64 2e 63 20 66 |cmd.1 fr|mcmd.c f|
|000003a0| 72 6d 64 69 72 63 6d 64 | 2e 31 20 66 72 6d 64 69 |rmdircmd|.1 frmdi|
|000003b0| 72 63 6d 64 2e 63 20 66 | 73 70 64 2e 31 0a 23 20 |rcmd.c f|spd.1.# |
|000003c0| 20 20 66 76 65 72 2e 31 | 20 66 76 65 72 2e 63 20 | fver.1| fver.c |
|000003d0| 73 65 72 76 65 72 5f 64 | 65 66 2e 68 20 73 65 74 |server_d|ef.h set|
|000003e0| 75 70 0a 23 20 57 72 61 | 70 70 65 64 20 62 79 20 |up.# Wra|pped by |
|000003f0| 76 69 78 69 65 40 63 6f | 67 6e 69 74 69 6f 6e 2e |vixie@co|gnition.|
|00000400| 70 61 2e 64 65 63 2e 63 | 6f 6d 20 6f 6e 20 46 72 |pa.dec.c|om on Fr|
|00000410| 69 20 44 65 63 20 31 33 | 20 31 37 3a 35 33 3a 31 |i Dec 13| 17:53:1|
|00000420| 31 20 31 39 39 31 0a 50 | 41 54 48 3d 2f 62 69 6e |1 1991.P|ATH=/bin|
|00000430| 3a 2f 75 73 72 2f 62 69 | 6e 3a 2f 75 73 72 2f 75 |:/usr/bi|n:/usr/u|
|00000440| 63 62 20 3b 20 65 78 70 | 6f 72 74 20 50 41 54 48 |cb ; exp|ort PATH|
|00000450| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 4d 41 4e |.if test| -f 'MAN|
|00000460| 49 46 45 53 54 27 20 2d | 61 20 22 24 7b 31 7d 22 |IFEST' -|a "${1}"|
|00000470| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00000480| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00000490| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|000004a0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|000004b0| 4d 41 4e 49 46 45 53 54 | 27 5c 22 0a 65 6c 73 65 |MANIFEST|'\".else|
|000004c0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|000004d0| 61 63 74 69 6e 67 20 5c | 22 27 4d 41 4e 49 46 45 |acting \|"'MANIFE|
|000004e0| 53 54 27 5c 22 20 5c 28 | 31 34 39 31 20 63 68 61 |ST'\" \(|1491 cha|
|000004f0| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00000500| 2f 5e 58 2f 2f 22 20 3e | 27 4d 41 4e 49 46 45 53 |/^X//" >|'MANIFES|
|00000510| 54 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |T' <<'EN|D_OF_FIL|
|00000520| 45 27 0a 58 20 20 20 46 | 69 6c 65 20 4e 61 6d 65 |E'.X F|ile Name|
|00000530| 09 09 41 72 63 68 69 76 | 65 20 23 09 44 65 73 63 |..Archiv|e #.Desc|
|00000540| 72 69 70 74 69 6f 6e 0a | 58 2d 2d 2d 2d 2d 2d 2d |ription.|X-------|
|00000550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000570| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000580| 2d 2d 2d 2d 0a 58 20 4d | 41 4e 49 46 45 53 54 20 |----.X M|ANIFEST |
|00000590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005a0| 20 20 31 09 0a 58 20 4d | 61 6b 65 66 69 6c 65 20 | 1..X M|akefile |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005c0| 20 20 32 09 0a 58 20 52 | 45 41 44 4d 45 20 20 20 | 2..X R|EADME |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005e0| 20 20 31 09 0a 58 20 62 | 73 64 5f 73 72 63 20 20 | 1..X b|sd_src |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000600| 20 20 31 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 4d | 1..X b|sd_src/M|
|00000610| 61 6b 65 66 69 6c 65 20 | 20 20 20 20 20 20 20 20 |akefile | |
|00000620| 20 20 31 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 63 | 1..X b|sd_src/c|
|00000630| 6d 70 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |mp.c | |
|00000640| 20 20 31 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 67 | 1..X b|sd_src/g|
|00000650| 6c 6f 62 2e 63 20 20 20 | 20 20 20 20 20 20 20 20 |lob.c | |
|00000660| 20 20 32 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 6c | 2..X b|sd_src/l|
|00000670| 73 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s.c | |
|00000680| 20 20 33 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 6c | 3..X b|sd_src/l|
|00000690| 73 2e 68 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s.h | |
|000006a0| 20 20 31 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 70 | 1..X b|sd_src/p|
|000006b0| 72 69 6e 74 2e 63 20 20 | 20 20 20 20 20 20 20 20 |rint.c | |
|000006c0| 20 20 32 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 72 | 2..X b|sd_src/r|
|000006d0| 61 6e 64 6f 6d 2e 63 20 | 20 20 20 20 20 20 20 20 |andom.c | |
|000006e0| 20 20 33 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 74 | 3..X b|sd_src/t|
|000006f0| 77 65 61 6b 2e 68 20 20 | 20 20 20 20 20 20 20 20 |weak.h | |
|00000700| 20 20 31 09 0a 58 20 62 | 73 64 5f 73 72 63 2f 75 | 1..X b|sd_src/u|
|00000710| 74 69 6c 2e 63 20 20 20 | 20 20 20 20 20 20 20 20 |til.c | |
|00000720| 20 20 31 09 0a 58 20 63 | 6c 69 65 6e 74 5f 64 65 | 1..X c|lient_de|
|00000730| 66 2e 68 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |f.h | |
|00000740| 20 20 31 09 0a 58 20 63 | 6c 69 65 6e 74 5f 6c 69 | 1..X c|lient_li|
|00000750| 62 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |b.c | |
|00000760| 20 20 31 09 0a 58 20 63 | 6c 69 65 6e 74 5f 75 74 | 1..X c|lient_ut|
|00000770| 69 6c 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |il.c | |
|00000780| 20 20 32 09 0a 58 20 63 | 6f 6d 6d 6f 6e 5f 64 65 | 2..X c|ommon_de|
|00000790| 66 2e 68 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |f.h | |
|000007a0| 20 20 32 09 0a 58 20 66 | 63 61 74 63 6d 64 2e 31 | 2..X f|catcmd.1|
|000007b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007c0| 20 20 31 09 0a 58 20 66 | 63 61 74 63 6d 64 2e 63 | 1..X f|catcmd.c|
|000007d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007e0| 20 20 31 09 0a 58 20 66 | 63 64 63 6d 64 2e 31 20 | 1..X f|cdcmd.1 |
|000007f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000800| 20 20 31 09 0a 58 20 66 | 63 64 63 6d 64 2e 63 20 | 1..X f|cdcmd.c |
|00000810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000820| 20 20 31 09 0a 58 20 66 | 67 65 74 63 6d 64 2e 31 | 1..X f|getcmd.1|
|00000830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000840| 20 20 31 09 0a 58 20 66 | 67 65 74 63 6d 64 2e 63 | 1..X f|getcmd.c|
|00000850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000860| 20 20 31 09 0a 58 20 66 | 6c 73 63 6d 64 2e 31 20 | 1..X f|lscmd.1 |
|00000870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000880| 20 20 31 09 0a 58 20 66 | 6c 73 63 6d 64 2e 63 20 | 1..X f|lscmd.c |
|00000890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008a0| 20 20 31 09 0a 58 20 66 | 6d 6b 64 69 72 2e 31 20 | 1..X f|mkdir.1 |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008c0| 20 20 31 09 0a 58 20 66 | 6d 6b 64 69 72 2e 63 20 | 1..X f|mkdir.c |
|000008d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008e0| 20 20 31 09 0a 58 20 66 | 70 72 6f 63 6d 64 2e 31 | 1..X f|procmd.1|
|000008f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000900| 20 20 31 09 0a 58 20 66 | 70 72 6f 63 6d 64 2e 63 | 1..X f|procmd.c|
|00000910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000920| 20 20 31 09 0a 58 20 66 | 70 75 74 2e 31 20 20 20 | 1..X f|put.1 |
|00000930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000940| 20 20 31 09 0a 58 20 66 | 70 75 74 2e 63 20 20 20 | 1..X f|put.c |
|00000950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000960| 20 20 31 09 0a 58 20 66 | 72 6d 63 6d 64 2e 31 20 | 1..X f|rmcmd.1 |
|00000970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000980| 20 20 31 09 0a 58 20 66 | 72 6d 63 6d 64 2e 63 20 | 1..X f|rmcmd.c |
|00000990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009a0| 20 20 31 09 0a 58 20 66 | 72 6d 64 69 72 63 6d 64 | 1..X f|rmdircmd|
|000009b0| 2e 31 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.1 | |
|000009c0| 20 20 31 09 0a 58 20 66 | 72 6d 64 69 72 63 6d 64 | 1..X f|rmdircmd|
|000009d0| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|000009e0| 20 20 31 09 0a 58 20 66 | 73 70 64 2e 31 20 20 20 | 1..X f|spd.1 |
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a00| 20 20 31 09 0a 58 20 66 | 76 65 72 2e 31 20 20 20 | 1..X f|ver.1 |
|00000a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a20| 20 20 31 09 0a 58 20 66 | 76 65 72 2e 63 20 20 20 | 1..X f|ver.c |
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a40| 20 20 31 09 0a 58 20 73 | 65 72 76 65 72 5f 64 65 | 1..X s|erver_de|
|00000a50| 66 2e 68 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |f.h | |
|00000a60| 20 20 31 09 0a 58 20 73 | 65 72 76 65 72 5f 66 69 | 1..X s|erver_fi|
|00000a70| 6c 65 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |le.c | |
|00000a80| 20 20 33 09 0a 58 20 73 | 65 72 76 65 72 5f 68 6f | 3..X s|erver_ho|
|00000a90| 73 74 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |st.c | |
|00000aa0| 20 20 32 09 0a 58 20 73 | 65 72 76 65 72 5f 6c 69 | 2..X s|erver_li|
|00000ab0| 62 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |b.c | |
|00000ac0| 20 20 32 09 0a 58 20 73 | 65 72 76 65 72 5f 6d 61 | 2..X s|erver_ma|
|00000ad0| 69 6e 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |in.c | |
|00000ae0| 20 20 32 09 0a 58 20 73 | 65 74 75 70 20 20 20 20 | 2..X s|etup |
|00000af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b00| 20 20 31 09 0a 58 20 75 | 64 70 5f 69 6f 2e 63 20 | 1..X u|dp_io.c |
|00000b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b20| 20 20 32 09 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 | 2..END|_OF_FILE|
|00000b30| 0a 69 66 20 74 65 73 74 | 20 31 34 39 31 20 2d 6e |.if test| 1491 -n|
|00000b40| 65 20 60 77 63 20 2d 63 | 20 3c 27 4d 41 4e 49 46 |e `wc -c| <'MANIF|
|00000b50| 45 53 54 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |EST'`; t|hen. |
|00000b60| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 4d 41 |echo sha|r: \"'MA|
|00000b70| 4e 49 46 45 53 54 27 5c | 22 20 75 6e 70 61 63 6b |NIFEST'\|" unpack|
|00000b80| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00000b90| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00000ba0| 27 4d 41 4e 49 46 45 53 | 54 27 0a 66 69 0a 69 66 |'MANIFES|T'.fi.if|
|00000bb0| 20 74 65 73 74 20 2d 66 | 20 27 52 45 41 44 4d 45 | test -f| 'README|
|00000bc0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00000bd0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00000be0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00000bf0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00000c00| 6e 67 20 66 69 6c 65 20 | 5c 22 27 52 45 41 44 4d |ng file |\"'READM|
|00000c10| 45 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |E'\".els|e.echo s|
|00000c20| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00000c30| 5c 22 27 52 45 41 44 4d | 45 27 5c 22 20 5c 28 31 |\"'READM|E'\" \(1|
|00000c40| 33 30 38 30 20 63 68 61 | 72 61 63 74 65 72 73 5c |3080 cha|racters\|
|00000c50| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00000c60| 27 52 45 41 44 4d 45 27 | 20 3c 3c 27 45 4e 44 5f |'README'| <<'END_|
|00000c70| 4f 46 5f 46 49 4c 45 27 | 0a 58 09 09 09 09 09 09 |OF_FILE'|.X......|
|00000c80| 49 6e 74 65 72 65 73 74 | 65 64 20 70 61 72 74 79 |Interest|ed party|
|00000c90| 20 70 6c 65 61 73 65 20 | 65 6d 61 69 6c 0a 58 09 | please |email.X.|
|00000ca0| 09 09 09 09 09 77 65 6e | 2d 6b 69 6e 67 40 76 6c |.....wen|-king@vl|
|00000cb0| 73 69 2e 63 73 2e 63 61 | 6c 74 65 63 68 2e 65 64 |si.cs.ca|ltech.ed|
|00000cc0| 75 0a 58 20 20 20 20 57 | 68 61 74 20 69 73 20 74 |u.X W|hat is t|
|00000cd0| 68 65 20 70 75 72 70 6f | 73 65 20 6f 66 20 46 53 |he purpo|se of FS|
|00000ce0| 50 3a 0a 58 0a 58 09 46 | 53 50 20 69 73 20 61 20 |P:.X.X.F|SP is a |
|00000cf0| 73 65 74 20 6f 66 20 70 | 72 6f 67 72 61 6d 73 20 |set of p|rograms |
|00000d00| 74 68 61 74 20 69 6d 70 | 6c 65 6d 65 6e 74 73 20 |that imp|lements |
|00000d10| 61 20 70 75 62 6c 69 63 | 2d 61 63 63 65 73 73 20 |a public|-access |
|00000d20| 61 72 63 68 69 76 65 0a | 58 09 73 69 6d 69 6c 61 |archive.|X.simila|
|00000d30| 72 20 74 6f 20 61 6e 20 | 61 6e 6f 6e 79 6d 6f 75 |r to an |anonymou|
|00000d40| 73 2d 46 54 50 20 61 72 | 63 68 69 76 65 2e 20 20 |s-FTP ar|chive. |
|00000d50| 49 74 20 69 73 20 6e 6f | 74 20 6d 65 61 6e 74 20 |It is no|t meant |
|00000d60| 74 6f 20 62 65 20 61 0a | 58 09 72 65 70 6c 61 63 |to be a.|X.replac|
|00000d70| 65 6d 65 6e 74 20 66 6f | 72 20 66 74 70 3b 20 69 |ement fo|r ftp; i|
|00000d80| 74 20 69 73 20 6f 6e 6c | 79 20 6d 65 61 6e 74 20 |t is onl|y meant |
|00000d90| 74 6f 20 64 6f 20 77 68 | 61 74 20 61 6e 6f 6e 79 |to do wh|at anony|
|00000da0| 6d 6f 75 73 2d 66 74 70 | 0a 58 09 64 6f 65 73 2c |mous-ftp|.X.does,|
|00000db0| 20 62 75 74 20 69 6e 20 | 61 20 6d 61 6e 6e 65 72 | but in |a manner|
|00000dc0| 20 6d 6f 72 65 20 61 63 | 63 65 70 74 69 62 6c 65 | more ac|ceptible|
|00000dd0| 20 74 6f 20 74 68 65 20 | 70 72 6f 76 69 64 65 72 | to the |provider|
|00000de0| 20 6f 66 20 74 68 65 0a | 58 09 73 65 72 76 69 63 | of the.|X.servic|
|00000df0| 65 20 61 6e 64 20 6d 6f | 72 65 20 66 72 69 65 6e |e and mo|re frien|
|00000e00| 64 6c 79 20 74 6f 20 74 | 68 65 20 63 6c 69 65 6e |dly to t|he clien|
|00000e10| 74 73 2e 20 0a 58 0a 58 | 09 50 72 6f 76 69 64 69 |ts. .X.X|.Providi|
|00000e20| 6e 67 20 61 6e 6f 6e 79 | 6d 6f 75 73 2d 46 54 50 |ng anony|mous-FTP|
|00000e30| 20 73 65 72 76 69 63 65 | 20 63 61 6e 20 62 65 20 | service| can be |
|00000e40| 63 6f 73 74 6c 79 20 2d | 2d 2d 20 65 61 63 68 20 |costly -|-- each |
|00000e50| 61 63 74 69 76 65 0a 58 | 09 73 65 73 73 69 6f 6e |active.X|.session|
|00000e60| 20 63 6f 6e 73 75 6d 65 | 73 20 6f 6e 65 20 70 72 | consume|s one pr|
|00000e70| 6f 63 65 73 73 20 73 6c | 6f 74 20 69 6e 20 74 68 |ocess sl|ot in th|
|00000e80| 65 20 4f 53 20 61 6e 64 | 20 6f 6e 65 20 73 74 72 |e OS and| one str|
|00000e90| 65 61 6d 20 73 6f 63 6b | 65 74 0a 58 09 65 6e 74 |eam sock|et.X.ent|
|00000ea0| 72 79 20 69 6e 20 74 68 | 65 20 6e 65 74 77 6f 72 |ry in th|e networ|
|00000eb0| 6b 20 73 75 62 2d 73 79 | 73 74 65 6d 2e 20 20 54 |k sub-sy|stem. T|
|00000ec0| 68 65 20 73 65 72 76 65 | 72 73 20 63 61 6e 20 61 |he serve|rs can a|
|00000ed0| 6c 73 6f 20 72 75 6e 0a | 58 09 63 6f 6e 63 75 72 |lso run.|X.concur|
|00000ee0| 72 65 6e 74 6c 79 2c 20 | 61 64 64 69 6e 67 20 74 |rently, |adding t|
|00000ef0| 6f 20 74 68 65 20 73 79 | 73 74 65 6d 20 6c 6f 61 |o the sy|stem loa|
|00000f00| 64 2e 20 20 41 20 70 6f | 70 75 6c 61 72 20 61 72 |d. A po|pular ar|
|00000f10| 63 68 69 76 65 20 73 69 | 74 65 0a 58 09 63 61 6e |chive si|te.X.can|
|00000f20| 20 65 61 73 69 6c 79 20 | 62 65 20 6f 76 65 72 77 | easily |be overw|
|00000f30| 68 65 6c 6d 65 64 20 61 | 73 20 61 20 72 65 73 75 |helmed a|s a resu|
|00000f40| 6c 74 2e 20 20 53 6f 6d | 65 20 77 65 72 65 20 66 |lt. Som|e were f|
|00000f50| 6f 72 63 65 64 20 74 6f | 0a 58 09 73 68 75 74 64 |orced to|.X.shutd|
|00000f60| 6f 77 6e 20 6f 72 20 61 | 6e 64 20 73 6f 6d 65 20 |own or a|nd some |
|00000f70| 69 6d 70 6f 73 65 20 69 | 6e 63 6f 6e 76 69 65 6e |impose i|nconvien|
|00000f80| 65 6e 74 20 61 63 63 65 | 73 73 20 72 65 73 74 72 |ent acce|ss restr|
|00000f90| 69 63 74 69 6f 6e 73 2e | 20 0a 58 0a 58 09 55 6e |ictions.| .X.X.Un|
|00000fa0| 6c 69 6b 65 20 46 54 50 | 2c 20 46 53 50 20 69 73 |like FTP|, FSP is|
|00000fb0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 2d 6c 65 73 73 | connect|ion-less|
|00000fc0| 20 61 6e 64 20 76 69 72 | 74 75 61 6c 6c 79 20 73 | and vir|tually s|
|00000fd0| 74 61 74 65 2d 6c 65 73 | 73 2e 20 20 4f 6e 65 0a |tate-les|s. One.|
|00000fe0| 58 09 73 65 72 76 65 72 | 20 68 61 6e 64 6c 65 73 |X.server| handles|
|00000ff0| 20 72 65 71 75 65 73 74 | 73 20 66 72 6f 6d 20 61 | request|s from a|
|00001000| 6c 6c 20 63 6c 69 65 6e | 74 73 20 6d 61 63 68 69 |ll clien|ts machi|
|00001010| 6e 65 73 2e 20 20 45 61 | 63 68 20 61 63 74 69 76 |nes. Ea|ch activ|
|00001020| 65 0a 58 09 63 6c 69 65 | 6e 74 20 6d 61 63 68 69 |e.X.clie|nt machi|
|00001030| 6e 65 20 74 61 6b 65 73 | 20 75 70 20 31 36 2d 62 |ne takes| up 16-b|
|00001040| 79 74 65 73 20 69 6e 20 | 61 20 64 79 6e 61 6d 69 |ytes in |a dynami|
|00001050| 63 61 6c 6c 79 20 65 78 | 74 65 6e 73 69 62 6c 65 |cally ex|tensible|
|00001060| 0a 58 09 74 61 62 6c 65 | 2e 20 20 53 69 6e 63 65 |.X.table|. Since|
|00001070| 20 6f 6e 6c 79 20 6f 6e | 65 20 73 65 72 76 65 72 | only on|e server|
|00001080| 20 72 75 6e 73 20 61 74 | 20 61 6e 79 20 74 69 6d | runs at| any tim|
|00001090| 65 2c 20 74 68 65 20 6c | 6f 61 64 20 61 64 64 65 |e, the l|oad adde|
|000010a0| 64 0a 58 09 74 6f 20 74 | 68 65 20 73 65 72 76 65 |d.X.to t|he serve|
|000010b0| 72 20 6d 61 63 68 69 6e | 65 20 69 73 20 6c 65 73 |r machin|e is les|
|000010c0| 73 20 74 68 61 6e 20 6f | 6e 65 2e 0a 58 0a 58 09 |s than o|ne..X.X.|
|000010d0| 49 6e 20 65 78 63 68 61 | 6e 67 65 20 66 6f 72 20 |In excha|nge for |
|000010e0| 61 6c 6c 6f 77 69 6e 67 | 20 73 69 74 65 20 6f 70 |allowing| site op|
|000010f0| 65 72 61 74 6f 72 73 20 | 74 6f 20 6b 65 65 70 20 |erators |to keep |
|00001100| 74 68 65 69 72 20 73 69 | 74 65 73 20 6f 70 65 6e |their si|tes open|
|00001110| 0a 58 09 61 6e 64 20 64 | 6f 20 61 77 61 79 20 77 |.X.and d|o away w|
|00001120| 69 74 68 20 63 75 6d 62 | 65 72 73 6f 6d 65 20 61 |ith cumb|ersome a|
|00001130| 63 63 65 73 73 20 72 65 | 73 74 72 69 63 74 69 6f |ccess re|strictio|
|00001140| 6e 73 2c 20 74 68 69 73 | 20 69 73 20 77 68 61 74 |ns, this| is what|
|00001150| 20 74 68 65 0a 58 09 63 | 6c 69 65 6e 74 73 20 61 | the.X.c|lients a|
|00001160| 63 63 65 70 74 20 77 69 | 74 68 20 46 53 50 3a 20 |ccept wi|th FSP: |
|00001170| 0a 58 0a 58 09 20 31 29 | 20 4c 6f 77 65 72 20 74 |.X.X. 1)| Lower t|
|00001180| 72 61 6e 73 66 65 72 20 | 72 61 74 65 2e 20 20 54 |ransfer |rate. T|
|00001190| 68 65 20 6d 61 78 69 6d | 75 6d 20 72 61 74 65 20 |he maxim|um rate |
|000011a0| 69 73 20 31 20 6b 62 79 | 74 65 20 70 65 72 20 55 |is 1 kby|te per U|
|000011b0| 44 50 0a 58 09 20 20 20 | 20 6d 65 73 73 61 67 65 |DP.X. | message|
|000011c0| 20 72 6f 75 6e 64 2d 74 | 72 69 70 20 74 69 6d 65 | round-t|rip time|
|000011d0| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 63 6c 69 | between| the cli|
|000011e0| 65 6e 74 20 61 6e 64 20 | 74 68 65 20 73 65 72 76 |ent and |the serv|
|000011f0| 65 72 2e 0a 58 09 0a 58 | 09 20 32 29 20 4f 6e 6c |er..X..X|. 2) Onl|
|00001200| 79 20 6f 6e 65 20 61 63 | 74 69 76 65 20 74 72 61 |y one ac|tive tra|
|00001210| 6e 73 66 65 72 20 70 65 | 72 20 63 6c 69 65 6e 74 |nsfer pe|r client|
|00001220| 20 6d 61 63 68 69 6e 65 | 2e 20 20 54 68 69 73 20 | machine|. This |
|00001230| 69 73 20 64 6f 6e 65 0a | 58 09 20 20 20 20 74 6f |is done.|X. to|
|00001240| 20 6d 69 6e 69 6d 69 7a | 65 20 74 68 65 20 61 6d | minimiz|e the am|
|00001250| 6f 75 6e 74 20 6f 66 20 | 64 61 74 61 20 74 68 65 |ount of |data the|
|00001260| 20 73 65 72 76 65 72 20 | 68 61 73 20 74 6f 20 6b | server |has to k|
|00001270| 65 65 70 2e 0a 58 0a 58 | 09 49 6e 20 61 64 64 69 |eep..X.X|.In addi|
|00001280| 74 69 6f 6e 20 74 6f 20 | 74 68 65 20 70 6f 74 65 |tion to |the pote|
|00001290| 6e 74 69 61 6c 20 66 6f | 72 20 6d 6f 72 65 20 61 |ntial fo|r more a|
|000012a0| 62 75 6e 64 61 6e 74 20 | 73 69 74 65 73 20 61 6e |bundant |sites an|
|000012b0| 64 20 6d 6f 72 65 0a 58 | 09 61 63 63 65 73 73 69 |d more.X|.accessi|
|000012c0| 62 6c 65 20 73 69 74 65 | 73 2c 20 74 68 69 73 20 |ble site|s, this |
|000012d0| 69 73 20 77 68 61 74 20 | 74 68 65 20 63 6c 69 65 |is what |the clie|
|000012e0| 6e 74 73 20 67 61 69 6e | 20 77 69 74 68 20 46 53 |nts gain| with FS|
|000012f0| 50 3a 0a 58 0a 58 09 20 | 31 29 20 52 6f 62 75 73 |P:.X.X. |1) Robus|
|00001300| 74 6e 65 73 73 2e 20 20 | 53 69 6e 63 65 20 46 53 |tness. |Since FS|
|00001310| 50 20 69 73 20 63 6f 6e | 6e 65 63 74 69 6f 6e 6c |P is con|nectionl|
|00001320| 65 73 73 2c 20 66 6c 75 | 63 74 75 72 61 74 69 6f |ess, flu|cturatio|
|00001330| 6e 73 20 69 6e 0a 58 09 | 20 20 20 20 74 68 65 20 |ns in.X.| the |
|00001340| 6e 65 74 77 6f 72 6b 20 | 77 69 6c 6c 20 6e 6f 74 |network |will not|
|00001350| 20 61 62 6f 72 74 20 61 | 20 46 53 50 20 74 72 61 | abort a| FSP tra|
|00001360| 6e 73 61 63 74 69 6f 6e | 2e 20 20 46 75 72 74 68 |nsaction|. Furth|
|00001370| 65 72 6d 6f 72 65 2c 0a | 58 09 20 20 20 20 74 68 |ermore,.|X. th|
|00001380| 65 20 31 36 2d 62 79 74 | 65 73 20 6f 66 20 64 61 |e 16-byt|es of da|
|00001390| 74 61 20 66 6f 72 20 65 | 61 63 68 20 63 6c 69 65 |ta for e|ach clie|
|000013a0| 6e 74 20 63 61 6e 20 62 | 65 20 72 65 67 65 6e 65 |nt can b|e regene|
|000013b0| 72 61 74 65 64 20 61 74 | 0a 58 09 20 20 20 20 61 |rated at|.X. a|
|000013c0| 6e 79 20 70 6f 69 6e 74 | 20 64 75 72 69 6e 67 20 |ny point| during |
|000013d0| 61 6e 79 20 74 72 61 6e | 73 61 63 74 69 6f 6e 2e |any tran|saction.|
|000013e0| 20 20 54 68 75 73 2c 20 | 69 66 20 74 68 65 20 73 | Thus, |if the s|
|000013f0| 65 72 76 65 72 20 67 6f | 65 73 0a 58 09 20 20 20 |erver go|es.X. |
|00001400| 20 64 6f 77 6e 20 61 74 | 20 61 6e 79 20 70 6f 69 | down at| any poi|
|00001410| 6e 74 20 64 75 72 69 6e | 67 20 61 20 74 72 61 6e |nt durin|g a tran|
|00001420| 73 61 63 74 69 6f 6e 2c | 20 74 68 65 20 74 72 61 |saction,| the tra|
|00001430| 6e 73 61 63 74 69 6f 6e | 20 77 69 6c 6c 0a 58 09 |nsaction| will.X.|
|00001440| 20 20 20 20 72 65 73 75 | 6d 65 20 77 68 65 6e 20 | resu|me when |
|00001450| 74 68 65 20 73 65 72 76 | 65 72 20 69 73 20 72 65 |the serv|er is re|
|00001460| 73 74 61 72 74 65 64 2e | 20 20 28 6c 69 6b 65 20 |started.| (like |
|00001470| 4e 46 53 29 20 0a 58 0a | 58 09 20 32 29 20 46 72 |NFS) .X.|X. 2) Fr|
|00001480| 69 65 6e 64 6c 69 65 72 | 20 75 73 65 72 20 69 6e |iendlier| user in|
|00001490| 74 65 72 66 61 63 65 2e | 20 20 46 53 50 20 64 6f |terface.| FSP do|
|000014a0| 65 73 20 6e 6f 74 20 68 | 61 76 65 20 69 74 73 20 |es not h|ave its |
|000014b0| 6f 77 6e 20 63 6f 6d 6d | 61 6e 64 0a 58 09 20 20 |own comm|and.X. |
|000014c0| 20 20 69 6e 74 65 72 70 | 72 65 74 6f 72 20 6c 69 | interp|retor li|
|000014d0| 6b 65 20 46 54 50 2e 20 | 20 53 69 6e 63 65 20 69 |ke FTP. | Since i|
|000014e0| 74 20 69 73 20 63 6f 6e | 6e 65 63 74 69 6f 6e 6c |t is con|nectionl|
|000014f0| 65 73 73 2c 20 74 68 65 | 72 65 20 69 73 0a 58 09 |ess, the|re is.X.|
|00001500| 20 20 20 20 6e 6f 20 72 | 65 61 73 6f 6e 20 74 6f | no r|eason to|
|00001510| 20 63 61 72 72 79 20 6d | 75 63 68 20 69 6e 66 6f | carry m|uch info|
|00001520| 72 6d 61 74 69 6f 6e 20 | 66 72 6f 6d 20 6f 6e 65 |rmation |from one|
|00001530| 20 63 6f 6d 6d 61 6e 64 | 20 74 6f 20 74 68 65 0a | command| to the.|
|00001540| 58 09 20 20 20 20 6e 65 | 78 74 2c 20 61 6e 64 20 |X. ne|xt, and |
|00001550| 74 68 65 20 63 6f 6d 6d | 61 6e 64 73 20 63 61 6e |the comm|ands can|
|00001560| 20 61 6c 6c 20 62 65 20 | 6d 61 64 65 20 69 6e 74 | all be |made int|
|00001570| 6f 20 69 6e 64 69 76 69 | 64 75 61 6c 20 75 6e 69 |o indivi|dual uni|
|00001580| 78 0a 58 09 20 20 20 20 | 70 72 6f 67 72 61 6d 73 |x.X. |programs|
|00001590| 2e 20 20 46 6f 72 20 69 | 6e 73 74 61 6e 63 65 2c |. For i|nstance,|
|000015a0| 20 74 68 65 72 65 20 69 | 73 20 6f 6e 65 20 70 72 | there i|s one pr|
|000015b0| 6f 67 72 61 6d 20 79 6f | 75 20 72 75 6e 20 74 6f |ogram yo|u run to|
|000015c0| 20 6c 69 73 74 0a 58 09 | 20 20 20 20 74 68 65 20 | list.X.| the |
|000015d0| 64 69 72 65 63 74 6f 72 | 79 20 61 6e 64 20 61 6e |director|y and an|
|000015e0| 6f 74 68 65 72 20 79 6f | 75 20 72 75 6e 20 74 6f |other yo|u run to|
|000015f0| 20 64 6f 77 6e 6c 6f 61 | 64 20 61 20 66 69 6c 65 | downloa|d a file|
|00001600| 2e 20 0a 58 0a 58 09 20 | 33 29 20 43 6c 69 65 6e |. .X.X. |3) Clien|
|00001610| 74 20 70 72 6f 74 65 63 | 74 69 6f 6e 2e 20 20 46 |t protec|tion. F|
|00001620| 53 50 20 6f 76 65 72 73 | 65 65 73 20 61 20 64 69 |SP overs|ees a di|
|00001630| 72 65 63 74 6f 72 79 20 | 73 74 72 75 63 74 75 72 |rectory |structur|
|00001640| 65 20 73 69 6d 69 6c 61 | 72 0a 58 09 20 20 20 20 |e simila|r.X. |
|00001650| 74 6f 20 74 68 61 74 20 | 6f 66 20 61 6e 20 61 6e |to that |of an an|
|00001660| 6f 6e 79 6d 6f 75 73 2d | 46 54 50 2e 20 20 48 6f |onymous-|FTP. Ho|
|00001670| 77 65 76 65 72 2c 20 61 | 20 64 69 72 65 63 74 6f |wever, a| directo|
|00001680| 72 79 20 63 72 65 61 74 | 65 64 0a 58 09 20 20 20 |ry creat|ed.X. |
|00001690| 20 76 69 61 20 46 53 50 | 20 74 72 61 6e 73 61 63 | via FSP| transac|
|000016a0| 74 69 6f 6e 20 69 73 20 | 6f 77 6e 65 64 20 62 79 |tion is |owned by|
|000016b0| 20 74 68 65 20 63 6c 69 | 65 6e 74 20 6d 61 63 68 | the cli|ent mach|
|000016c0| 69 6e 65 20 74 68 61 74 | 20 69 73 73 75 65 64 0a |ine that| issued.|
|000016d0| 58 09 20 20 20 20 74 68 | 65 20 63 72 65 61 74 69 |X. th|e creati|
|000016e0| 6f 6e 20 72 65 71 75 65 | 73 74 2e 20 20 54 68 65 |on reque|st. The|
|000016f0| 20 63 6c 69 65 6e 74 20 | 63 61 6e 20 63 72 65 61 | client |can crea|
|00001700| 74 65 20 61 6e 64 20 64 | 65 6c 65 74 65 20 66 69 |te and d|elete fi|
|00001710| 6c 65 73 0a 58 09 20 20 | 20 20 61 6e 64 20 73 75 |les.X. | and su|
|00001720| 62 64 69 72 65 63 74 6f | 72 69 65 73 20 69 6e 20 |bdirecto|ries in |
|00001730| 74 68 61 74 20 64 69 72 | 65 63 74 6f 72 79 2e 20 |that dir|ectory. |
|00001740| 20 49 6e 20 61 64 64 69 | 74 69 6f 6e 2c 20 74 68 | In addi|tion, th|
|00001750| 65 20 63 6c 69 65 6e 74 | 0a 58 09 20 20 20 20 63 |e client|.X. c|
|00001760| 61 6e 20 65 6e 61 62 6c | 65 20 61 6e 79 20 6f 66 |an enabl|e any of|
|00001770| 20 74 68 65 20 74 77 6f | 20 61 74 74 72 69 62 75 | the two| attribu|
|00001780| 74 65 73 20 66 6f 72 20 | 74 68 61 74 20 64 69 72 |tes for |that dir|
|00001790| 65 63 74 6f 72 79 3a 20 | 0a 58 0a 58 09 09 41 29 |ectory: |.X.X..A)|
|000017a0| 20 47 69 76 65 20 61 6c | 6c 20 6f 74 68 65 72 20 | Give al|l other |
|000017b0| 63 6c 69 65 6e 74 73 20 | 74 68 65 20 70 65 72 6d |clients |the perm|
|000017c0| 69 73 73 69 6f 6e 20 74 | 6f 20 63 72 65 61 74 65 |ission t|o create|
|000017d0| 20 66 69 6c 65 73 0a 58 | 09 09 20 20 20 61 6e 64 | files.X|.. and|
|000017e0| 20 73 75 62 64 69 72 65 | 63 74 72 69 65 73 2e 0a | subdire|ctries..|
|000017f0| 58 0a 58 09 09 42 29 20 | 47 69 76 65 20 61 6c 6c |X.X..B) |Give all|
|00001800| 20 6f 74 68 65 72 20 63 | 6c 69 65 6e 74 73 20 74 | other c|lients t|
|00001810| 68 65 20 70 65 72 6d 69 | 73 73 69 6f 6e 20 74 6f |he permi|ssion to|
|00001820| 20 64 65 6c 65 74 65 20 | 66 69 6c 65 73 0a 58 09 | delete |files.X.|
|00001830| 09 20 20 20 61 6e 64 20 | 73 75 62 64 69 72 65 63 |. and |subdirec|
|00001840| 74 6f 72 69 65 73 2e 0a | 58 0a 58 09 20 20 20 20 |tories..|X.X. |
|00001850| 4e 6f 74 65 3a 20 41 20 | 73 75 62 64 69 72 65 63 |Note: A |subdirec|
|00001860| 74 6f 72 79 20 63 61 6e | 20 62 65 20 64 65 6c 65 |tory can| be dele|
|00001870| 74 65 64 20 6f 6e 6c 79 | 20 69 66 20 69 74 20 69 |ted only| if it i|
|00001880| 73 20 65 6d 70 74 79 2c | 0a 58 09 09 20 20 74 68 |s empty,|.X.. th|
|00001890| 65 20 63 6c 69 65 6e 74 | 20 6f 77 6e 73 20 74 68 |e client| owns th|
|000018a0| 65 20 73 75 62 64 69 72 | 65 63 74 6f 72 79 2c 20 |e subdir|ectory, |
|000018b0| 61 6e 64 20 74 68 65 20 | 63 6c 69 65 6e 74 20 68 |and the |client h|
|000018c0| 61 73 0a 58 09 09 20 20 | 64 65 6c 65 74 65 20 70 |as.X.. |delete p|
|000018d0| 65 72 6d 69 73 73 69 6f | 6e 20 66 6f 72 20 74 68 |ermissio|n for th|
|000018e0| 65 20 70 61 72 65 6e 74 | 20 64 69 72 65 63 74 6f |e parent| directo|
|000018f0| 72 79 20 63 6f 6e 74 61 | 69 6e 69 6e 67 0a 58 09 |ry conta|ining.X.|
|00001900| 09 20 20 74 68 65 20 73 | 75 62 64 69 72 65 63 74 |. the s|ubdirect|
|00001910| 6f 72 79 2e 20 0a 58 0a | 58 09 20 34 29 20 53 65 |ory. .X.|X. 4) Se|
|00001920| 72 76 65 72 20 70 72 6f | 74 65 63 74 69 6f 6e 2e |rver pro|tection.|
|00001930| 20 20 46 53 50 20 73 65 | 72 76 65 72 20 64 6f 65 | FSP se|rver doe|
|00001940| 73 20 6e 6f 74 20 73 70 | 61 77 6e 20 73 75 62 2d |s not sp|awn sub-|
|00001950| 70 72 6f 67 72 61 6d 73 | 2e 0a 58 09 20 20 20 20 |programs|..X. |
|00001960| 49 74 20 77 69 6c 6c 20 | 61 63 63 65 70 74 20 6f |It will |accept o|
|00001970| 6e 6c 79 20 70 61 74 68 | 73 20 74 68 61 74 20 61 |nly path|s that a|
|00001980| 72 65 20 64 6f 77 6e 77 | 61 72 64 20 72 65 6c 61 |re downw|ard rela|
|00001990| 74 69 76 65 20 74 6f 20 | 69 74 73 0a 58 09 20 20 |tive to |its.X. |
|000019a0| 20 20 64 65 73 69 67 6e | 61 74 65 64 20 77 6f 72 | design|ated wor|
|000019b0| 6b 69 6e 67 20 64 69 72 | 65 63 74 6f 72 79 2e 20 |king dir|ectory. |
|000019c0| 20 4f 6e 20 73 79 73 74 | 65 6d 73 20 77 69 74 68 | On syst|ems with|
|000019d0| 20 73 79 6d 62 6f 6c 69 | 63 20 6c 69 6e 6b 73 2c | symboli|c links,|
|000019e0| 0a 58 09 20 20 20 20 74 | 68 65 20 73 65 72 76 65 |.X. t|he serve|
|000019f0| 72 20 77 69 6c 6c 20 66 | 6f 6c 6c 6f 77 20 73 79 |r will f|ollow sy|
|00001a00| 6d 62 6f 6c 69 63 20 6c | 69 6e 6b 73 2c 20 62 75 |mbolic l|inks, bu|
|00001a10| 74 20 69 74 20 64 6f 65 | 73 20 6e 6f 74 20 66 6f |t it doe|s not fo|
|00001a20| 6c 6c 6f 77 0a 58 09 20 | 20 20 20 75 70 6c 69 6e |llow.X. | uplin|
|00001a30| 6b 73 20 28 22 2e 2e 22 | 29 2e 20 20 43 6c 69 65 |ks (".."|). Clie|
|00001a40| 6e 74 73 20 63 61 6e 6e | 6f 74 20 63 72 65 61 74 |nts cann|ot creat|
|00001a50| 65 20 73 79 6d 62 6f 6c | 69 63 20 6c 69 6e 6b 73 |e symbol|ic links|
|00001a60| 20 61 6e 64 0a 58 09 20 | 20 20 20 63 61 72 65 20 | and.X. | care |
|00001a70| 73 68 6f 75 6c 64 20 62 | 65 20 74 61 6b 65 6e 20 |should b|e taken |
|00001a80| 73 6f 20 74 68 61 74 20 | 6f 74 68 65 72 20 75 73 |so that |other us|
|00001a90| 65 72 73 20 6f 6e 20 74 | 68 65 20 73 65 72 76 65 |ers on t|he serve|
|00001aa0| 72 20 6d 61 63 68 69 6e | 65 0a 58 09 20 20 20 20 |r machin|e.X. |
|00001ab0| 63 61 6e 6e 6f 74 20 63 | 72 65 61 74 65 20 73 79 |cannot c|reate sy|
|00001ac0| 6d 62 6f 6c 69 63 20 6c | 69 6e 6b 73 20 69 6e 20 |mbolic l|inks in |
|00001ad0| 74 68 65 20 73 65 72 76 | 65 72 27 73 20 77 6f 72 |the serv|er's wor|
|00001ae0| 6b 20 73 70 61 63 65 2e | 20 0a 58 0a 58 09 20 20 |k space.| .X.X. |
|00001af0| 20 20 49 74 20 69 73 20 | 61 6c 73 6f 20 66 61 69 | It is |also fai|
|00001b00| 72 6c 79 20 64 69 66 66 | 69 63 75 6c 74 20 74 6f |rly diff|icult to|
|00001b10| 20 66 6f 72 6d 75 61 74 | 65 20 61 6e 20 61 74 74 | formuat|e an att|
|00001b20| 61 63 6b 20 74 6f 20 66 | 6f 72 63 65 20 61 0a 58 |ack to f|orce a.X|
|00001b30| 09 20 20 20 20 73 68 75 | 74 64 6f 77 6e 20 6f 66 |. shu|tdown of|
|00001b40| 20 61 20 46 53 50 20 73 | 69 74 65 20 62 79 20 61 | a FSP s|ite by a|
|00001b50| 63 74 69 6f 6e 73 20 6f | 66 20 61 20 72 6f 67 75 |ctions o|f a rogu|
|00001b60| 65 20 73 69 74 65 2e 20 | 20 41 62 6f 75 74 20 74 |e site. | About t|
|00001b70| 68 65 0a 58 09 20 20 20 | 20 6f 6e 6c 79 20 77 61 |he.X. | only wa|
|00001b80| 79 20 74 6f 20 64 69 73 | 74 72 75 70 74 20 61 20 |y to dis|trupt a |
|00001b90| 46 53 50 20 73 65 72 76 | 69 63 65 20 69 73 20 74 |FSP serv|ice is t|
|00001ba0| 6f 20 66 6c 6f 6f 64 20 | 74 68 65 20 46 53 50 20 |o flood |the FSP |
|00001bb0| 73 69 74 65 0a 58 09 20 | 20 20 20 77 69 74 68 20 |site.X. | with |
|00001bc0| 6e 65 74 77 6f 72 6b 20 | 70 61 63 6b 65 74 73 2e |network |packets.|
|00001bd0| 20 20 46 53 50 20 73 65 | 72 76 65 72 20 70 72 65 | FSP se|rver pre|
|00001be0| 76 65 6e 74 73 20 69 74 | 73 65 6c 66 20 66 72 6f |vents it|self fro|
|00001bf0| 6d 0a 58 09 20 20 20 20 | 27 63 6f 75 6e 74 65 72 |m.X. |'counter|
|00001c00| 2d 66 6c 6f 6f 64 69 6e | 67 27 20 62 79 20 66 69 |-floodin|g' by fi|
|00001c10| 6c 74 65 72 69 6e 67 20 | 66 6f 72 20 6c 65 67 69 |ltering |for legi|
|00001c20| 74 69 6d 61 74 65 20 72 | 65 71 75 65 73 74 73 20 |timate r|equests |
|00001c30| 75 73 69 6e 67 0a 58 09 | 20 20 20 20 74 68 65 20 |using.X.| the |
|00001c40| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 74 68 6f 64 |followin|g method|
|00001c50| 3a 0a 58 0a 58 09 09 41 | 29 20 45 61 63 68 20 72 |:.X.X..A|) Each r|
|00001c60| 65 71 75 65 73 74 20 6d | 65 73 73 61 67 65 20 63 |equest m|essage c|
|00001c70| 6f 6e 74 61 69 6e 73 20 | 61 20 6b 65 79 2e 20 20 |ontains |a key. |
|00001c80| 46 6f 72 20 65 61 63 68 | 20 63 6c 69 65 6e 74 2c |For each| client,|
|00001c90| 0a 58 09 09 20 20 20 73 | 65 72 76 65 72 20 64 61 |.X.. s|erver da|
|00001ca0| 74 61 62 61 73 65 20 63 | 6f 6e 74 61 69 6e 73 20 |tabase c|ontains |
|00001cb0| 74 68 65 20 6b 65 79 73 | 20 74 6f 20 62 65 20 75 |the keys| to be u|
|00001cc0| 73 65 64 20 66 6f 72 20 | 74 68 65 0a 58 09 09 20 |sed for |the.X.. |
|00001cd0| 20 20 6e 65 78 74 20 63 | 6c 69 65 6e 74 20 72 65 | next c|lient re|
|00001ce0| 71 75 65 73 74 20 61 6e | 64 20 66 6f 72 20 74 68 |quest an|d for th|
|00001cf0| 65 20 70 72 65 76 69 6f | 75 73 20 63 6c 69 65 6e |e previo|us clien|
|00001d00| 74 20 72 65 71 75 65 73 | 74 2e 0a 58 0a 58 09 09 |t reques|t..X.X..|
|00001d10| 42 29 20 49 66 20 74 68 | 65 20 6e 65 78 74 20 72 |B) If th|e next r|
|00001d20| 65 71 75 65 73 74 20 64 | 6f 65 73 20 6e 6f 74 20 |equest d|oes not |
|00001d30| 63 6f 6e 74 61 69 6e 20 | 61 20 6b 65 79 20 74 68 |contain |a key th|
|00001d40| 61 74 20 6d 61 74 63 68 | 65 73 0a 58 09 09 20 20 |at match|es.X.. |
|00001d50| 20 65 69 74 68 65 72 20 | 6f 66 20 74 68 65 20 74 | either |of the t|
|00001d60| 77 6f 20 6b 65 79 73 2c | 20 69 74 20 69 73 20 61 |wo keys,| it is a|
|00001d70| 63 63 65 70 74 65 64 20 | 6f 6e 6c 79 20 69 66 20 |ccepted |only if |
|00001d80| 61 74 20 6c 65 61 73 74 | 0a 58 09 09 20 20 20 6f |at least|.X.. o|
|00001d90| 6e 65 20 6d 69 6e 75 74 | 65 20 68 61 73 20 65 6c |ne minut|e has el|
|00001da0| 61 70 73 65 64 20 73 69 | 6e 63 65 20 74 68 65 20 |apsed si|nce the |
|00001db0| 6c 61 73 74 20 74 69 6d | 65 20 61 20 72 65 71 75 |last tim|e a requ|
|00001dc0| 65 73 74 0a 58 09 09 20 | 20 20 69 73 20 61 63 63 |est.X.. | is acc|
|00001dd0| 65 70 74 65 64 2e 20 20 | 49 66 20 74 68 65 20 6b |epted. |If the k|
|00001de0| 65 79 20 64 6f 65 73 20 | 6d 61 74 63 68 20 74 68 |ey does |match th|
|00001df0| 65 20 6f 6c 64 20 6b 65 | 79 0a 58 09 09 20 20 20 |e old ke|y.X.. |
|00001e00| 28 72 65 74 72 61 6e 73 | 6d 69 74 29 20 69 74 20 |(retrans|mit) it |
|00001e10| 69 73 20 61 63 63 65 70 | 74 65 64 20 69 66 20 74 |is accep|ted if t|
|00001e20| 68 65 20 65 6c 61 70 73 | 65 20 74 69 6d 65 20 69 |he elaps|e time i|
|00001e30| 73 0a 58 09 09 20 20 20 | 67 72 65 61 74 65 72 20 |s.X.. |greater |
|00001e40| 74 68 61 6e 20 33 20 73 | 65 63 6f 6e 64 73 2e 0a |than 3 s|econds..|
|00001e50| 58 0a 58 09 09 43 29 20 | 45 76 65 72 79 20 72 65 |X.X..C) |Every re|
|00001e60| 71 75 65 73 74 20 6d 65 | 73 73 61 67 65 20 61 63 |quest me|ssage ac|
|00001e70| 63 65 70 74 65 64 20 69 | 73 20 61 63 6b 6e 6f 77 |cepted i|s acknow|
|00001e80| 6c 65 64 67 65 64 20 77 | 69 74 68 0a 58 09 09 20 |ledged w|ith.X.. |
|00001e90| 20 20 6f 6e 65 20 72 65 | 70 6c 79 20 6d 65 73 73 | one re|ply mess|
|00001ea0| 61 67 65 2e 20 20 54 68 | 65 20 72 65 70 6c 79 20 |age. Th|e reply |
|00001eb0| 6d 65 73 73 61 67 65 20 | 63 6f 6e 74 61 69 6e 73 |message |contains|
|00001ec0| 20 61 20 6e 65 77 0a 58 | 09 09 20 20 20 6b 65 79 | a new.X|.. key|
|00001ed0| 20 74 6f 20 75 73 65 64 | 20 66 6f 72 20 74 68 65 | to used| for the|
|00001ee0| 20 6e 65 78 74 20 72 65 | 71 75 65 73 74 2e 20 20 | next re|quest. |
|00001ef0| 54 68 65 20 6e 65 77 20 | 6b 65 79 20 69 73 0a 58 |The new |key is.X|
|00001f00| 09 09 20 20 20 63 6f 6d | 70 75 74 65 64 20 62 79 |.. com|puted by|
|00001f10| 20 74 68 65 20 73 65 72 | 76 65 72 20 77 69 74 68 | the ser|ver with|
|00001f20| 20 61 20 70 73 65 75 64 | 6f 2d 72 61 6e 64 6f 6d | a pseud|o-random|
|00001f30| 20 6e 75 6d 62 65 72 0a | 58 09 09 20 20 20 67 65 | number.|X.. ge|
|00001f40| 6e 65 72 61 74 6f 72 2e | 20 0a 58 0a 58 09 20 20 |nerator.| .X.X. |
|00001f50| 20 20 46 6c 6f 6f 64 69 | 6e 67 20 69 73 20 61 20 | Floodi|ng is a |
|00001f60| 62 61 6c 6c 61 6e 74 20 | 76 69 6f 6c 61 74 69 6f |ballant |violatio|
|00001f70| 6e 20 6f 66 20 6e 65 74 | 77 6f 72 6b 20 65 74 69 |n of net|work eti|
|00001f80| 71 75 65 74 74 65 20 62 | 65 63 61 75 73 65 0a 58 |quette b|ecause.X|
|00001f90| 09 20 20 20 20 61 20 73 | 69 74 65 20 63 61 6e 20 |. a s|ite can |
|00001fa0| 62 65 20 73 75 62 6a 65 | 63 74 65 64 20 74 6f 20 |be subje|cted to |
|00001fb0| 66 6c 6f 6f 64 69 6e 67 | 20 61 74 74 61 63 6b 20 |flooding| attack |
|00001fc0| 77 68 65 74 68 65 72 20 | 69 74 20 68 61 73 20 46 |whether |it has F|
|00001fd0| 53 50 0a 58 09 20 20 20 | 20 72 75 6e 6e 69 6e 67 |SP.X. | running|
|00001fe0| 20 6f 72 20 6e 6f 74 2c | 20 61 6e 64 20 66 6c 6f | or not,| and flo|
|00001ff0| 6f 64 69 6e 67 20 63 6f | 6e 67 65 73 74 73 20 65 |oding co|ngests e|
|00002000| 76 65 72 79 20 6c 69 6e | 6b 20 61 6e 64 20 67 61 |very lin|k and ga|
|00002010| 74 65 77 61 79 0a 58 09 | 20 20 20 20 62 65 74 77 |teway.X.| betw|
|00002020| 65 65 6e 20 74 68 65 20 | 72 6f 67 75 65 20 63 6c |een the |rogue cl|
|00002030| 69 65 6e 74 20 61 6e 64 | 20 74 68 65 20 73 65 72 |ient and| the ser|
|00002040| 76 65 72 2e 20 20 41 73 | 20 61 20 66 75 72 74 68 |ver. As| a furth|
|00002050| 65 72 20 6d 65 61 73 75 | 72 65 0a 58 09 20 20 20 |er measu|re.X. |
|00002060| 20 6f 66 20 70 72 6f 74 | 65 63 74 69 6f 6e 2c 20 | of prot|ection, |
|00002070| 74 68 65 20 73 65 72 76 | 65 72 20 6c 6f 61 64 73 |the serv|er loads|
|00002080| 20 61 20 74 61 62 6c 65 | 20 6f 66 20 72 6f 67 75 | a table| of rogu|
|00002090| 65 20 63 6c 69 65 6e 74 | 73 20 6f 6e 0a 58 09 20 |e client|s on.X. |
|000020a0| 20 20 20 73 74 61 72 74 | 75 70 2e 20 20 54 68 65 | start|up. The|
|000020b0| 20 73 65 72 76 65 72 20 | 77 69 6c 6c 20 6e 6f 74 | server |will not|
|000020c0| 20 72 65 73 70 6f 6e 64 | 20 74 6f 20 72 65 71 75 | respond| to requ|
|000020d0| 65 73 74 73 20 66 72 6f | 6d 20 61 6e 79 20 6f 66 |ests fro|m any of|
|000020e0| 0a 58 09 20 20 20 20 74 | 68 6f 73 65 20 63 6c 69 |.X. t|hose cli|
|000020f0| 65 6e 74 73 2e 0a 58 0a | 58 20 20 20 20 54 68 65 |ents..X.|X The|
|00002100| 20 73 6f 66 74 77 61 72 | 65 20 73 65 74 3a 0a 58 | softwar|e set:.X|
|00002110| 0a 58 09 63 6f 6d 6d 6f | 6e 5f 64 65 66 2e 68 09 |.X.commo|n_def.h.|
|00002120| 54 68 69 73 20 43 20 68 | 65 61 64 65 72 20 66 69 |This C h|eader fi|
|00002130| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 64 65 66 69 |le conta|ins defi|
|00002140| 6e 69 74 69 6f 6e 73 20 | 63 6f 6d 6d 6f 6e 20 74 |nitions |common t|
|00002150| 6f 0a 58 09 09 09 62 6f | 74 68 20 74 68 65 20 73 |o.X...bo|th the s|
|00002160| 65 72 76 65 72 20 63 6f | 64 65 20 61 6e 64 20 74 |erver co|de and t|
|00002170| 68 65 20 63 6c 69 65 6e | 74 20 63 6f 64 65 2e 0a |he clien|t code..|
|00002180| 58 0a 58 09 63 6c 69 65 | 6e 74 5f 64 65 66 2e 68 |X.X.clie|nt_def.h|
|00002190| 09 54 68 69 73 20 43 20 | 68 65 61 64 65 72 20 66 |.This C |header f|
|000021a0| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 73 20 64 65 66 |ile cont|ains def|
|000021b0| 69 6e 69 74 69 6f 6e 73 | 20 66 6f 72 20 74 68 65 |initions| for the|
|000021c0| 0a 58 09 09 09 63 6c 69 | 65 6e 74 20 63 6f 64 65 |.X...cli|ent code|
|000021d0| 2e 0a 58 0a 58 09 73 65 | 72 76 65 72 5f 64 65 66 |..X.X.se|rver_def|
|000021e0| 2e 68 09 54 68 69 73 20 | 43 20 68 65 61 64 65 72 |.h.This |C header|
|000021f0| 20 66 69 6c 65 20 63 6f | 6e 74 61 69 6e 73 20 64 | file co|ntains d|
|00002200| 65 66 69 6e 69 74 69 6f | 6e 73 20 66 6f 72 20 74 |efinitio|ns for t|
|00002210| 68 65 0a 58 09 09 09 73 | 65 72 76 65 72 20 63 6f |he.X...s|erver co|
|00002220| 64 65 2e 0a 58 0a 58 09 | 75 64 70 5f 69 6f 2e 63 |de..X.X.|udp_io.c|
|00002230| 09 54 68 69 73 20 66 69 | 6c 65 20 63 6f 6e 74 61 |.This fi|le conta|
|00002240| 69 6e 73 20 74 68 65 20 | 6c 6f 77 65 73 74 20 6c |ins the |lowest l|
|00002250| 65 76 65 6c 20 72 6f 75 | 74 69 6e 65 73 20 74 68 |evel rou|tines th|
|00002260| 61 74 0a 58 09 09 09 64 | 65 61 6c 20 77 69 74 68 |at.X...d|eal with|
|00002270| 20 74 68 65 20 75 6e 69 | 78 20 69 6e 65 74 20 73 | the uni|x inet s|
|00002280| 6f 63 6b 65 74 73 2e 20 | 20 54 68 69 73 20 66 69 |ockets. | This fi|
|00002290| 6c 65 20 69 73 0a 58 09 | 09 09 75 73 65 64 20 62 |le is.X.|..used b|
|000022a0| 79 20 62 6f 74 68 20 74 | 68 65 20 73 65 72 76 65 |y both t|he serve|
|000022b0| 72 20 63 6f 64 65 20 61 | 6e 64 20 74 68 65 20 63 |r code a|nd the c|
|000022c0| 6c 69 65 6e 74 20 63 6f | 64 65 2e 0a 58 0a 58 09 |lient co|de..X.X.|
|000022d0| 73 65 72 76 65 72 5f 6d | 61 69 6e 2e 63 09 4d 61 |server_m|ain.c.Ma|
|000022e0| 69 6e 20 72 6f 75 74 69 | 6e 65 20 61 6e 64 20 64 |in routi|ne and d|
|000022f0| 69 73 70 61 74 63 68 20 | 6c 6f 6f 70 20 66 6f 72 |ispatch |loop for|
|00002300| 20 74 68 65 20 73 65 72 | 76 65 72 2e 0a 58 09 73 | the ser|ver..X.s|
|00002310| 65 72 76 65 72 5f 68 6f | 73 74 2e 63 09 52 6f 75 |erver_ho|st.c.Rou|
|00002320| 74 69 6e 65 73 20 66 6f | 72 20 6d 61 69 6e 74 61 |tines fo|r mainta|
|00002330| 69 6e 69 6e 67 20 63 6c | 69 65 6e 74 20 64 61 74 |ining cl|ient dat|
|00002340| 61 62 61 73 65 2e 0a 58 | 09 73 65 72 76 65 72 5f |abase..X|.server_|
|00002350| 66 69 6c 65 2e 63 09 52 | 6f 75 74 69 6e 65 73 20 |file.c.R|outines |
|00002360| 66 6f 72 20 66 69 6c 65 | 20 69 2f 6f 2e 0a 58 09 |for file| i/o..X.|
|00002370| 73 65 72 76 65 72 5f 6c | 69 62 2e 63 09 52 6f 75 |server_l|ib.c.Rou|
|00002380| 74 69 6e 65 73 20 66 6f | 72 20 69 6e 65 74 20 73 |tines fo|r inet s|
|00002390| 6f 63 6b 65 74 20 69 2f | 6f 2e 0a 58 0a 58 09 63 |ocket i/|o..X.X.c|
|000023a0| 6c 69 65 6e 74 5f 6c 69 | 62 2e 63 09 43 6f 72 65 |lient_li|b.c.Core|
|000023b0| 20 72 6f 75 74 69 6e 65 | 73 20 6f 66 20 74 68 65 | routine|s of the|
|000023c0| 20 63 6c 69 65 6e 74 20 | 6c 69 62 72 61 72 79 2e | client |library.|
|000023d0| 0a 58 09 63 6c 69 65 6e | 74 5f 75 74 69 6c 2e 63 |.X.clien|t_util.c|
|000023e0| 09 53 75 70 70 6c 65 6d | 65 6e 74 72 79 20 72 6f |.Supplem|entry ro|
|000023f0| 75 74 69 6e 65 73 20 6f | 66 20 74 68 65 20 63 6c |utines o|f the cl|
|00002400| 69 65 6e 74 20 6c 69 62 | 72 61 72 79 2e 0a 58 0a |ient lib|rary..X.|
|00002410| 58 09 62 73 64 5f 73 72 | 63 2f 09 44 69 72 65 63 |X.bsd_sr|c/.Direc|
|00002420| 74 6f 72 79 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |tory con|taining |
|00002430| 61 64 64 69 74 69 6f 6e | 61 6c 20 73 6f 75 72 63 |addition|al sourc|
|00002440| 65 73 20 64 65 72 69 76 | 65 64 0a 58 09 09 09 66 |es deriv|ed.X...f|
|00002450| 72 6f 6d 20 74 68 6f 73 | 65 20 69 6e 20 70 75 62 |rom thos|e in pub|
|00002460| 6c 69 63 20 61 72 63 68 | 69 76 65 20 6f 6e 20 75 |lic arch|ive on u|
|00002470| 75 6e 65 74 2e 75 75 2e | 6e 65 74 2e 20 20 49 74 |unet.uu.|net. It|
|00002480| 0a 58 09 09 09 63 6f 6e | 74 61 69 6e 73 20 61 20 |.X...con|tains a |
|00002490| 42 53 44 20 72 61 6e 64 | 6f 6d 2f 73 72 61 6e 64 |BSD rand|om/srand|
|000024a0| 6f 6d 20 72 6f 75 74 69 | 6e 65 2c 20 61 20 6d 6f |om routi|ne, a mo|
|000024b0| 64 69 66 69 65 64 0a 58 | 09 09 09 42 53 44 20 67 |dified.X|...BSD g|
|000024c0| 6c 6f 62 62 69 6e 67 20 | 72 6f 75 74 69 6e 65 2c |lobbing |routine,|
|000024d0| 20 61 20 6d 6f 64 69 66 | 69 65 64 20 22 6c 73 22 | a modif|ied "ls"|
|000024e0| 20 73 6f 75 72 63 65 2e | 0a 58 0a 58 09 66 63 64 | source.|.X.X.fcd|
|000024f0| 63 6d 64 2e 63 09 54 68 | 65 73 65 20 63 6f 6d 70 |cmd.c.Th|ese comp|
|00002500| 69 6c 65 73 20 69 6e 74 | 6f 20 69 6e 64 69 76 69 |iles int|o indivi|
|00002510| 64 75 61 6c 20 63 6c 69 | 65 6e 74 20 75 74 69 6c |dual cli|ent util|
|00002520| 69 74 69 65 73 2e 0a 58 | 09 66 67 65 74 63 6d 64 |ities..X|.fgetcmd|
|00002530| 2e 63 09 54 68 6f 73 65 | 20 77 69 74 68 20 61 20 |.c.Those| with a |
|00002540| 22 63 6d 64 22 20 69 6e | 20 74 68 65 69 72 20 6e |"cmd" in| their n|
|00002550| 61 6d 65 20 77 69 6c 6c | 20 64 6f 20 74 68 65 69 |ame will| do thei|
|00002560| 72 0a 58 09 66 6c 73 63 | 6d 64 2e 63 09 6f 77 6e |r.X.flsc|md.c.own|
|00002570| 20 67 6c 6f 62 62 69 6e | 67 20 6f 6e 20 74 68 65 | globbin|g on the|
|00002580| 69 72 20 61 72 67 76 20 | 62 61 73 65 20 6f 6e 20 |ir argv |base on |
|00002590| 64 69 72 65 63 74 6f 72 | 79 0a 58 09 66 70 72 6f |director|y.X.fpro|
|000025a0| 63 6d 64 2e 63 09 69 6e | 66 6f 72 6d 61 74 69 6f |cmd.c.in|formatio|
|000025b0| 6e 20 6f 62 74 61 69 6e | 65 64 20 66 72 6f 6d 20 |n obtain|ed from |
|000025c0| 74 68 65 20 73 65 72 76 | 65 72 2e 0a 58 09 66 72 |the serv|er..X.fr|
|000025d0| 6d 63 6d 64 2e 63 0a 58 | 09 66 72 6d 64 69 72 63 |mcmd.c.X|.frmdirc|
|000025e0| 6d 64 2e 63 0a 58 09 66 | 63 61 74 63 6d 64 2e 63 |md.c.X.f|catcmd.c|
|000025f0| 0a 58 09 66 6d 6b 64 69 | 72 2e 63 0a 58 09 66 70 |.X.fmkdi|r.c.X.fp|
|00002600| 75 74 2e 63 0a 58 09 66 | 76 65 72 2e 63 0a 58 0a |ut.c.X.f|ver.c.X.|
|00002610| 58 20 20 20 20 43 6f 6d | 70 69 6c 61 74 69 6f 6e |X Com|pilation|
|00002620| 3a 0a 58 0a 58 09 46 53 | 50 20 68 61 73 20 62 65 |:.X.X.FS|P has be|
|00002630| 65 6e 20 63 6f 6d 70 69 | 6c 65 64 20 61 6e 64 20 |en compi|led and |
|00002640| 74 65 73 74 65 64 20 6f | 6e 20 61 20 53 53 2d 32 |tested o|n a SS-2|
|00002650| 20 72 75 6e 6e 69 6e 67 | 20 53 75 6e 4f 73 20 34 | running| SunOs 4|
|00002660| 2e 31 2e 31 2c 0a 58 09 | 61 20 48 50 2d 39 30 30 |.1.1,.X.|a HP-900|
|00002670| 30 20 72 75 6e 6e 69 6e | 67 20 48 50 20 55 4e 49 |0 runnin|g HP UNI|
|00002680| 58 2c 20 61 20 56 41 58 | 2d 37 38 30 20 72 75 6e |X, a VAX|-780 run|
|00002690| 6e 69 6e 67 20 34 2e 33 | 2d 74 61 68 6f 65 2c 20 |ning 4.3|-tahoe, |
|000026a0| 61 6e 64 20 61 20 33 38 | 36 0a 58 09 62 6f 78 20 |and a 38|6.X.box |
|000026b0| 72 75 6e 6e 69 6e 67 20 | 73 79 73 74 65 6d 2d 56 |running |system-V|
|000026c0| 20 55 4e 49 58 20 77 69 | 74 68 20 6f 6c 64 20 45 | UNIX wi|th old E|
|000026d0| 78 63 65 6c 61 6e 20 65 | 74 68 65 72 6e 65 74 20 |xcelan e|thernet |
|000026e0| 69 6e 74 65 72 66 61 63 | 65 2e 20 0a 58 0a 58 09 |interfac|e. .X.X.|
|000026f0| 54 6f 20 63 6f 6d 70 69 | 6c 65 20 74 68 65 20 73 |To compi|le the s|
|00002700| 6f 66 74 77 61 72 65 2c | 20 79 6f 75 20 6d 75 73 |oftware,| you mus|
|00002710| 74 20 66 69 72 73 74 20 | 73 75 63 63 65 73 73 66 |t first |successf|
|00002720| 75 6c 6c 79 20 63 6f 6d | 70 6c 65 74 65 20 61 0a |ully com|plete a.|
|00002730| 58 09 22 6d 61 6b 65 22 | 20 69 6e 20 74 68 65 20 |X."make"| in the |
|00002740| 62 73 64 5f 73 72 63 20 | 64 69 72 65 63 74 6f 72 |bsd_src |director|
|00002750| 79 2e 20 20 59 6f 75 20 | 6d 61 79 20 68 61 76 65 |y. You |may have|
|00002760| 20 74 6f 20 63 68 61 6e | 67 65 20 61 20 66 65 77 | to chan|ge a few|
|00002770| 0a 58 09 66 69 6c 65 73 | 2e 20 20 49 6e 20 70 61 |.X.files|. In pa|
|00002780| 72 74 69 63 75 6c 61 72 | 2c 20 79 6f 75 20 6d 61 |rticular|, you ma|
|00002790| 79 20 68 61 76 65 20 74 | 6f 20 65 64 69 74 20 22 |y have t|o edit "|
|000027a0| 4d 61 6b 65 66 69 6c 65 | 22 20 61 6e 64 20 22 74 |Makefile|" and "t|
|000027b0| 77 65 61 6b 2e 68 22 0a | 58 09 69 6e 20 62 73 64 |weak.h".|X.in bsd|
|000027c0| 5f 73 72 63 20 64 69 72 | 65 63 74 6f 72 79 2e 20 |_src dir|ectory. |
|000027d0| 0a 58 0a 58 09 57 68 65 | 6e 20 74 68 61 74 20 69 |.X.X.Whe|n that i|
|000027e0| 73 20 64 6f 6e 65 2c 20 | 79 6f 75 20 63 61 6e 20 |s done, |you can |
|000027f0| 65 64 69 74 20 74 68 65 | 20 4d 61 6b 65 66 69 6c |edit the| Makefil|
|00002800| 65 20 6f 6e 20 74 68 65 | 20 74 6f 70 20 64 69 72 |e on the| top dir|
|00002810| 65 63 74 6f 72 79 0a 58 | 09 61 6e 64 20 72 75 6e |ectory.X|.and run|
|00002820| 20 22 6d 61 6b 65 22 20 | 69 6e 20 74 68 65 20 74 | "make" |in the t|
|00002830| 6f 70 20 64 69 72 65 63 | 74 6f 72 79 2e 20 20 59 |op direc|tory. Y|
|00002840| 6f 75 20 6d 61 79 20 68 | 61 76 65 20 74 6f 20 72 |ou may h|ave to r|
|00002850| 65 61 64 20 74 68 72 6f | 75 67 68 0a 58 09 74 68 |ead thro|ugh.X.th|
|00002860| 65 20 72 65 73 74 20 6f | 66 20 74 68 69 73 20 64 |e rest o|f this d|
|00002870| 6f 63 75 6d 65 6e 74 20 | 66 69 72 73 74 20 62 65 |ocument |first be|
|00002880| 66 6f 72 65 20 6d 61 6b | 69 6e 67 20 63 68 61 6e |fore mak|ing chan|
|00002890| 67 65 73 20 74 6f 20 74 | 68 65 20 4d 61 6b 65 66 |ges to t|he Makef|
|000028a0| 69 6c 65 2e 0a 58 0a 58 | 20 20 20 20 53 65 72 76 |ile..X.X| Serv|
|000028b0| 65 72 20 41 64 6d 69 6e | 69 73 74 72 61 74 69 6f |er Admin|istratio|
|000028c0| 6e 3a 0a 58 0a 58 09 54 | 68 65 20 6f 6e 6c 79 20 |n:.X.X.T|he only |
|000028d0| 74 68 69 6e 67 73 20 79 | 6f 75 20 6e 65 65 64 20 |things y|ou need |
|000028e0| 66 6f 72 20 73 65 74 74 | 69 6e 67 20 75 70 20 61 |for sett|ing up a|
|000028f0| 20 46 53 50 20 73 65 72 | 76 65 72 20 69 73 20 61 | FSP ser|ver is a|
|00002900| 20 77 6f 72 6b 0a 58 09 | 64 69 72 65 63 74 6f 72 | work.X.|director|
|00002910| 79 20 66 6f 72 20 74 68 | 65 20 73 65 72 76 69 63 |y for th|e servic|
|00002920| 65 20 61 6e 64 20 61 6e | 64 20 74 68 65 20 46 53 |e and an|d the FS|
|00002930| 50 20 73 65 72 76 65 72 | 20 69 74 73 65 6c 66 20 |P server| itself |
|00002940| 28 66 73 70 64 29 2e 0a | 58 09 66 73 70 64 20 63 |(fspd)..|X.fspd c|
|00002950| 61 6e 20 72 75 6e 20 69 | 6e 64 65 70 65 6e 64 65 |an run i|ndepende|
|00002960| 6e 74 6c 79 20 6f 72 20 | 69 74 20 63 61 6e 20 62 |ntly or |it can b|
|00002970| 65 20 72 75 6e 20 75 6e | 64 65 72 20 69 6e 65 74 |e run un|der inet|
|00002980| 64 2e 20 20 57 68 65 6e | 0a 58 09 72 75 6e 6e 69 |d. When|.X.runni|
|00002990| 6e 67 20 69 6e 64 65 70 | 65 6e 64 65 6e 74 6c 79 |ng indep|endently|
|000029a0| 2c 20 66 73 70 64 20 77 | 61 69 74 73 20 66 6f 72 |, fspd w|aits for|
|000029b0| 20 6d 65 73 73 61 67 65 | 73 20 74 68 72 6f 75 67 | message|s throug|
|000029c0| 68 20 61 20 55 44 50 0a | 58 09 73 6f 63 6b 65 74 |h a UDP.|X.socket|
|000029d0| 20 77 68 6f 65 73 20 70 | 6f 72 74 20 6e 75 6d 62 | whoes p|ort numb|
|000029e0| 65 72 20 69 73 20 64 65 | 66 69 6e 65 64 20 69 6e |er is de|fined in|
|000029f0| 20 74 68 65 20 4d 61 6b | 65 66 69 6c 65 2e 20 20 | the Mak|efile. |
|00002a00| 57 68 65 6e 20 72 75 6e | 6e 69 6e 67 0a 58 09 75 |When run|ning.X.u|
|00002a10| 6e 64 65 72 20 69 6e 65 | 74 64 2c 20 66 73 70 64 |nder ine|td, fspd|
|00002a20| 20 69 73 20 69 6e 76 6f | 6c 6b 65 64 20 61 73 20 | is invo|lked as |
|00002a30| 69 6e 2e 66 73 70 64 2e | 20 20 69 6e 65 74 64 20 |in.fspd.| inetd |
|00002a40| 77 69 6c 6c 20 73 70 61 | 77 6e 20 66 73 70 64 0a |will spa|wn fspd.|
|00002a50| 58 09 77 68 65 6e 20 61 | 20 6d 65 73 73 61 67 65 |X.when a| message|
|00002a60| 20 61 72 72 69 76 65 73 | 20 66 6f 72 20 74 68 65 | arrives| for the|
|00002a70| 20 46 53 50 20 73 6f 63 | 6b 65 74 2e 20 20 54 68 | FSP soc|ket. Th|
|00002a80| 65 20 66 73 70 64 20 70 | 72 6f 63 65 73 73 20 77 |e fspd p|rocess w|
|00002a90| 69 6c 6c 0a 58 09 74 61 | 6b 65 20 6f 76 65 72 20 |ill.X.ta|ke over |
|00002aa0| 61 6e 64 20 73 74 69 63 | 6b 20 61 72 6f 75 6e 64 |and stic|k around|
|00002ab0| 20 74 6f 20 77 61 69 74 | 20 6f 6e 20 61 64 64 69 | to wait| on addi|
|00002ac0| 74 69 6f 6e 61 6c 20 6d | 65 73 73 61 67 65 73 2e |tional m|essages.|
|00002ad0| 20 20 41 66 74 65 72 0a | 58 09 69 74 20 68 61 73 | After.|X.it has|
|00002ae0| 20 62 65 63 6f 6d 65 20 | 69 64 6c 65 20 66 6f 72 | become |idle for|
|00002af0| 20 32 20 6d 69 6e 75 74 | 65 73 2c 20 66 73 70 64 | 2 minut|es, fspd|
|00002b00| 20 77 69 6c 6c 20 65 78 | 69 74 20 61 6e 64 20 72 | will ex|it and r|
|00002b10| 65 74 75 72 6e 20 63 6f | 6e 74 72 6f 6c 0a 58 09 |eturn co|ntrol.X.|
|00002b20| 74 6f 20 69 6e 65 74 64 | 2e 20 0a 58 0a 58 09 53 |to inetd|. .X.X.S|
|00002b30| 61 6d 70 6c 65 20 73 65 | 74 75 70 20 66 6f 72 20 |ample se|tup for |
|00002b40| 69 6e 65 74 64 20 6f 70 | 65 72 61 74 69 6f 6e 3a |inetd op|eration:|
|00002b50| 0a 58 0a 58 09 20 20 20 | 20 49 6e 20 2f 65 74 63 |.X.X. | In /etc|
|00002b60| 2f 73 65 72 76 69 63 65 | 73 20 66 69 6c 65 3a 0a |/service|s file:.|
|00002b70| 58 0a 58 09 09 66 73 70 | 20 20 20 20 20 20 20 20 |X.X..fsp| |
|00002b80| 20 20 20 20 20 32 31 2f | 75 64 70 20 20 20 20 20 | 21/|udp |
|00002b90| 20 20 20 20 20 66 73 70 | 64 0a 58 0a 58 09 20 20 | fsp|d.X.X. |
|00002ba0| 20 20 49 6e 20 2f 65 74 | 63 2f 69 6e 65 74 64 2e | In /et|c/inetd.|
|00002bb0| 63 6f 6e 66 20 66 69 6c | 65 3a 0a 58 0a 58 09 09 |conf fil|e:.X.X..|
|00002bc0| 66 73 70 20 64 67 72 61 | 6d 20 20 20 75 64 70 20 |fsp dgra|m udp |
|00002bd0| 77 61 69 74 20 66 74 70 | 20 2f 75 73 72 2f 65 74 |wait ftp| /usr/et|
|00002be0| 63 2f 66 73 70 64 20 69 | 6e 2e 66 73 70 64 0a 58 |c/fspd i|n.fspd.X|
|00002bf0| 0a 58 09 20 20 20 20 49 | 6e 20 74 68 69 73 20 73 |.X. I|n this s|
|00002c00| 61 6d 70 6c 65 2c 20 74 | 68 65 20 73 61 6d 65 20 |ample, t|he same |
|00002c10| 70 6f 72 74 20 6e 75 6d | 62 65 72 20 66 6f 72 20 |port num|ber for |
|00002c20| 66 74 70 20 69 73 20 75 | 73 65 64 20 66 6f 72 20 |ftp is u|sed for |
|00002c30| 74 68 65 0a 58 09 20 20 | 20 20 66 73 70 20 73 6f |the.X. | fsp so|
|00002c40| 63 6b 65 74 2e 20 20 54 | 68 65 72 65 20 77 69 6c |cket. T|here wil|
|00002c50| 6c 20 6e 6f 74 20 62 65 | 20 61 20 63 6f 6e 66 6c |l not be| a confl|
|00002c60| 69 63 74 20 62 65 63 61 | 75 73 65 20 66 74 70 20 |ict beca|use ftp |
|00002c70| 75 73 65 73 0a 58 09 20 | 20 20 20 73 74 72 65 61 |uses.X. | strea|
|00002c80| 6d 20 70 72 6f 74 6f 63 | 6f 6c 2c 20 61 6e 64 20 |m protoc|ol, and |
|00002c90| 66 73 70 20 75 73 65 73 | 20 55 44 50 20 70 72 6f |fsp uses| UDP pro|
|00002ca0| 74 6f 63 6f 6c 2e 20 20 | 54 68 65 20 66 73 70 64 |tocol. |The fspd|
|00002cb0| 20 70 72 6f 67 72 61 6d | 0a 58 09 20 20 20 20 69 | program|.X. i|
|00002cc0| 6e 20 74 68 69 73 20 65 | 78 61 6d 70 6c 65 20 69 |n this e|xample i|
|00002cd0| 73 20 72 61 6e 20 75 6e | 64 65 72 20 75 73 65 72 |s ran un|der user|
|00002ce0| 20 27 66 74 70 27 2e 20 | 0a 58 0a 58 09 49 6e 20 | 'ftp'. |.X.X.In |
|00002cf0| 61 64 64 69 74 69 6f 6e | 2c 20 66 73 70 64 20 77 |addition|, fspd w|
|00002d00| 69 6c 6c 20 61 63 63 65 | 70 74 20 74 68 65 73 65 |ill acce|pt these|
|00002d10| 20 66 6c 61 67 73 3a 0a | 58 0a 58 09 20 20 20 20 | flags:.|X.X. |
|00002d20| 2d 68 20 61 62 73 6f 6c | 75 74 65 5f 70 61 74 68 |-h absol|ute_path|
|00002d30| 20 20 20 20 53 65 74 20 | 66 73 70 20 77 6f 72 6b | Set |fsp work|
|00002d40| 20 64 69 72 65 63 74 6f | 72 79 2e 20 20 4f 76 65 | directo|ry. Ove|
|00002d50| 72 72 69 64 65 73 20 74 | 68 65 0a 58 09 09 09 09 |rrides t|he.X....|
|00002d60| 63 6f 6d 70 69 6c 65 64 | 2d 69 6e 20 64 65 66 61 |compiled|-in defa|
|00002d70| 75 6c 74 2e 0a 58 0a 58 | 09 20 20 20 20 2d 70 20 |ult..X.X|. -p |
|00002d80| 75 64 70 5f 70 6f 72 74 | 5f 6e 75 6d 62 65 72 20 |udp_port|_number |
|00002d90| 20 53 65 74 20 55 44 50 | 20 70 6f 72 74 20 6e 75 | Set UDP| port nu|
|00002da0| 6d 62 65 72 2e 20 20 4f | 76 65 72 72 69 64 65 73 |mber. O|verrides|
|00002db0| 20 74 68 65 0a 58 09 09 | 09 09 63 6f 6d 70 69 6c | the.X..|..compil|
|00002dc0| 65 64 2d 69 6e 20 64 65 | 66 61 75 6c 74 2e 0a 58 |ed-in de|fault..X|
|00002dd0| 0a 58 09 20 20 20 20 2d | 75 20 75 69 64 5f 6e 75 |.X. -|u uid_nu|
|00002de0| 6d 62 65 72 20 20 20 20 | 20 20 20 41 73 73 75 6d |mber | Assum|
|00002df0| 65 20 74 68 69 73 20 75 | 69 64 20 61 66 74 65 72 |e this u|id after|
|00002e00| 20 73 74 61 72 74 75 70 | 2e 20 20 49 66 20 70 72 | startup|. If pr|
|00002e10| 65 73 65 6e 74 2c 0a 58 | 09 09 09 09 66 73 70 64 |esent,.X|....fspd|
|00002e20| 20 77 69 6c 6c 20 61 74 | 74 65 6d 70 74 20 61 20 | will at|tempt a |
|00002e30| 73 65 74 75 69 64 28 29 | 20 74 6f 20 74 68 69 73 |setuid()| to this|
|00002e40| 20 75 69 64 0a 58 09 09 | 09 09 6e 75 6d 62 65 72 | uid.X..|..number|
|00002e50| 2e 20 20 49 74 20 77 69 | 6c 6c 20 65 78 69 74 20 |. It wi|ll exit |
|00002e60| 69 66 20 73 65 74 75 69 | 64 28 29 20 66 61 69 6c |if setui|d() fail|
|00002e70| 73 2e 0a 58 0a 58 09 20 | 20 20 20 2d 64 20 20 20 |s..X.X. | -d |
|00002e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 54 | | T|
|00002e90| 75 72 6e 20 6f 6e 20 64 | 65 62 75 67 20 6d 6f 64 |urn on d|ebug mod|
|00002ea0| 65 2e 20 20 54 68 65 20 | 73 74 64 69 6f 20 66 69 |e. The |stdio fi|
|00002eb0| 6c 65 73 20 77 69 6c 6c | 0a 58 09 09 09 09 72 65 |les will|.X....re|
|00002ec0| 6d 61 69 6e 20 6f 70 65 | 6e 20 69 6e 20 64 65 62 |main ope|n in deb|
|00002ed0| 75 67 67 69 6e 67 20 6d | 6f 64 65 2e 0a 58 0a 58 |ugging m|ode..X.X|
|00002ee0| 09 57 68 65 6e 20 66 73 | 70 64 20 73 74 61 72 74 |.When fs|pd start|
|00002ef0| 73 2c 20 69 74 20 63 68 | 64 69 72 20 74 6f 20 69 |s, it ch|dir to i|
|00002f00| 74 73 20 77 6f 72 6b 20 | 64 69 72 65 63 74 6f 72 |ts work |director|
|00002f10| 79 20 77 68 65 72 65 20 | 69 74 20 6c 6f 6f 6b 73 |y where |it looks|
|00002f20| 0a 58 09 66 6f 72 20 28 | 61 6e 64 20 72 65 61 64 |.X.for (|and read|
|00002f30| 73 20 69 6e 20 69 66 20 | 66 6f 75 6e 64 29 20 61 |s in if |found) a|
|00002f40| 20 6c 69 73 74 20 6f 66 | 20 69 6e 74 65 72 6e 65 | list of| interne|
|00002f50| 74 20 6e 75 6d 62 65 72 | 73 20 69 6e 20 74 68 65 |t number|s in the|
|00002f60| 0a 58 09 73 74 61 6e 64 | 61 72 64 20 34 2d 70 61 |.X.stand|ard 4-pa|
|00002f70| 72 74 20 66 6f 72 6d 3a | 20 64 64 64 2e 64 64 64 |rt form:| ddd.ddd|
|00002f80| 2e 64 64 64 2e 64 64 64 | 20 69 6e 20 74 68 65 20 |.ddd.ddd| in the |
|00002f90| 66 69 6c 65 20 22 2e 52 | 4f 47 55 45 5f 48 4f 53 |file ".R|OGUE_HOS|
|00002fa0| 54 53 22 2e 0a 58 09 54 | 68 69 73 20 66 69 6c 65 |TS"..X.T|his file|
|00002fb0| 20 69 73 20 70 72 65 70 | 61 72 65 64 20 62 79 20 | is prep|ared by |
|00002fc0| 74 68 65 20 46 53 50 20 | 6d 61 69 6e 74 61 69 6e |the FSP |maintain|
|00002fd0| 65 72 2c 20 61 6e 64 20 | 69 73 20 75 73 65 64 20 |er, and |is used |
|00002fe0| 74 6f 0a 58 09 69 6e 64 | 69 63 61 74 65 20 74 68 |to.X.ind|icate th|
|00002ff0| 61 74 20 66 73 70 64 20 | 73 68 6f 75 6c 64 20 6e |at fspd |should n|
|00003000| 6f 74 20 72 65 73 70 6f | 6e 64 20 74 6f 20 61 6e |ot respo|nd to an|
|00003010| 79 20 72 65 71 75 65 73 | 74 73 20 66 72 6f 6d 20 |y reques|ts from |
|00003020| 74 68 65 73 65 0a 58 09 | 6d 61 63 68 69 6e 65 73 |these.X.|machines|
|00003030| 2e 20 20 20 41 66 74 65 | 72 20 74 68 61 74 2c 20 |. Afte|r that, |
|00003040| 69 74 20 62 65 67 69 6e | 73 20 74 6f 20 73 65 72 |it begin|s to ser|
|00003050| 76 69 63 65 20 61 6e 79 | 20 72 65 71 75 65 73 74 |vice any| request|
|00003060| 73 20 69 74 20 67 65 74 | 73 0a 58 09 6f 6e 20 74 |s it get|s.X.on t|
|00003070| 68 65 20 55 44 50 20 73 | 6f 63 6b 65 74 2e 0a 58 |he UDP s|ocket..X|
|00003080| 0a 58 09 49 66 20 61 20 | 66 69 6c 65 20 2e 4f 57 |.X.If a |file .OW|
|00003090| 4e 2e 58 58 58 58 58 58 | 58 58 2c 20 77 68 65 72 |N.XXXXXX|XX, wher|
|000030a0| 65 20 58 58 58 58 58 58 | 58 58 20 69 73 20 61 6e |e XXXXXX|XX is an|
|000030b0| 20 38 2d 64 69 67 69 74 | 20 68 65 78 20 6e 75 6d | 8-digit| hex num|
|000030c0| 62 65 72 2c 0a 58 09 65 | 78 69 73 74 73 20 69 6e |ber,.X.e|xists in|
|000030d0| 20 61 20 64 69 72 65 63 | 74 6f 72 79 20 69 6e 20 | a direc|tory in |
|000030e0| 66 73 70 64 27 73 20 77 | 6f 72 6b 20 73 70 61 63 |fspd's w|ork spac|
|000030f0| 65 2c 20 74 68 65 20 64 | 69 72 65 63 74 6f 72 79 |e, the d|irectory|
|00003100| 20 69 73 20 6f 77 6e 65 | 64 0a 58 09 62 79 20 74 | is owne|d.X.by t|
|00003110| 68 65 20 6d 61 63 68 69 | 6e 65 20 77 68 6f 65 73 |he machi|ne whoes|
|00003120| 20 69 6e 65 74 20 6e 75 | 6d 62 65 72 20 69 73 20 | inet nu|mber is |
|00003130| 58 58 58 58 58 58 58 58 | 2c 20 77 68 65 72 65 20 |XXXXXXXX|, where |
|00003140| 74 68 65 20 6e 75 6d 62 | 65 72 0a 58 09 69 73 20 |the numb|er.X.is |
|00003150| 70 72 69 6e 74 65 64 20 | 61 73 20 61 20 68 65 78 |printed |as a hex|
|00003160| 61 64 65 63 69 6d 61 6c | 20 6e 75 6d 62 65 72 2e |adecimal| number.|
|00003170| 20 20 49 66 20 6e 6f 20 | 73 75 63 68 20 66 69 6c | If no |such fil|
|00003180| 65 20 65 78 69 73 74 73 | 2c 20 74 68 65 0a 58 09 |e exists|, the.X.|
|00003190| 64 69 72 65 63 74 6f 72 | 79 20 68 61 73 20 6e 6f |director|y has no|
|000031a0| 20 6f 77 6e 65 72 2e 0a | 58 0a 58 09 49 66 20 74 | owner..|X.X.If t|
|000031b0| 68 65 20 66 69 6c 65 20 | 2e 46 53 50 5f 4e 4f 5f |he file |.FSP_NO_|
|000031c0| 44 45 4c 20 65 78 69 73 | 74 73 20 69 6e 20 61 20 |DEL exis|ts in a |
|000031d0| 64 69 72 65 63 74 6f 72 | 79 2c 20 6f 6e 6c 79 20 |director|y, only |
|000031e0| 74 68 65 20 6f 77 6e 65 | 72 20 69 73 0a 58 09 61 |the owne|r is.X.a|
|000031f0| 6c 6c 6f 77 65 64 20 74 | 6f 20 72 65 6d 6f 76 65 |llowed t|o remove|
|00003200| 20 69 74 65 6d 73 20 66 | 72 6f 6d 20 74 68 61 74 | items f|rom that|
|00003210| 20 64 69 72 65 63 74 6f | 72 79 2e 0a 58 0a 58 09 | directo|ry..X.X.|
|00003220| 49 66 20 74 68 65 20 66 | 69 6c 65 20 2e 46 53 50 |If the f|ile .FSP|
|00003230| 5f 4e 4f 5f 41 44 44 20 | 65 78 69 73 74 73 20 69 |_NO_ADD |exists i|
|00003240| 6e 20 61 20 64 69 72 65 | 63 74 6f 72 79 2c 20 6f |n a dire|ctory, o|
|00003250| 6e 6c 79 20 74 68 65 20 | 6f 77 6e 65 72 20 69 73 |nly the |owner is|
|00003260| 0a 58 09 61 6c 6c 6f 77 | 65 64 20 74 6f 20 61 64 |.X.allow|ed to ad|
|00003270| 64 20 69 74 65 6d 73 20 | 69 6e 74 6f 20 74 68 61 |d items |into tha|
|00003280| 74 20 64 69 72 65 63 74 | 6f 72 79 2e 0a 58 0a 58 |t direct|ory..X.X|
|00003290| 09 54 68 75 73 2c 20 79 | 6f 75 20 74 79 70 69 63 |.Thus, y|ou typic|
|000032a0| 61 6c 6c 79 20 77 61 6e | 74 20 74 6f 20 70 72 6f |ally wan|t to pro|
|000032b0| 74 65 63 74 20 74 68 65 | 20 74 6f 70 20 64 69 72 |tect the| top dir|
|000032c0| 65 63 74 6f 72 79 20 62 | 79 20 63 72 65 61 74 69 |ectory b|y creati|
|000032d0| 6e 67 0a 58 09 74 68 65 | 20 2e 46 53 50 5f 4e 4f |ng.X.the| .FSP_NO|
|000032e0| 5f 44 45 4c 20 61 6e 64 | 20 2e 46 53 50 5f 4e 4f |_DEL and| .FSP_NO|
|000032f0| 5f 41 44 44 20 66 69 6c | 65 73 2c 20 61 6e 64 20 |_ADD fil|es, and |
|00003300| 6c 65 61 76 69 6e 67 20 | 6f 75 74 20 74 68 65 0a |leaving |out the.|
|00003310| 58 09 2e 4f 57 4e 2e 58 | 58 58 58 58 58 58 58 20 |X..OWN.X|XXXXXXX |
|00003320| 66 69 6c 65 20 69 6e 20 | 74 68 65 20 74 6f 70 20 |file in |the top |
|00003330| 64 69 72 65 63 74 6f 72 | 79 2e 20 0a 58 0a 58 09 |director|y. .X.X.|
|00003340| 43 6c 69 65 6e 74 73 20 | 64 6f 65 73 20 6e 6f 74 |Clients |does not|
|00003350| 20 67 65 74 20 74 6f 20 | 72 65 61 64 20 74 68 65 | get to |read the|
|00003360| 20 64 69 72 65 63 74 6f | 72 79 20 69 6e 66 6f 72 | directo|ry infor|
|00003370| 6d 61 74 69 6f 6e 20 64 | 69 72 65 63 74 6f 72 79 |mation d|irectory|
|00003380| 2e 0a 58 09 66 73 70 64 | 20 6d 61 69 6e 74 61 69 |..X.fspd| maintai|
|00003390| 6e 73 20 61 20 64 69 72 | 65 63 74 6f 72 79 20 6c |ns a dir|ectory l|
|000033a0| 69 73 74 69 6e 67 20 69 | 6e 20 74 68 65 20 66 69 |isting i|n the fi|
|000033b0| 6c 65 20 2e 46 53 50 5f | 43 4f 4e 54 45 4e 54 20 |le .FSP_|CONTENT |
|000033c0| 69 6e 0a 58 09 65 61 63 | 68 20 64 69 72 65 63 74 |in.X.eac|h direct|
|000033d0| 6f 72 79 2e 20 20 57 68 | 65 6e 20 61 20 63 6c 69 |ory. Wh|en a cli|
|000033e0| 65 6e 74 20 72 65 71 75 | 65 73 74 73 20 69 6e 66 |ent requ|ests inf|
|000033f0| 6f 72 6d 61 74 69 6f 6e | 20 66 6f 72 20 61 20 64 |ormation| for a d|
|00003400| 69 72 65 63 74 6f 72 79 | 2c 0a 58 09 74 68 65 20 |irectory|,.X.the |
|00003410| 2e 46 53 50 5f 43 4f 4e | 54 45 4e 54 20 66 69 6c |.FSP_CON|TENT fil|
|00003420| 65 20 69 73 20 63 72 65 | 61 74 65 64 20 69 66 20 |e is cre|ated if |
|00003430| 69 74 20 64 6f 65 73 6e | 27 74 20 65 78 69 73 74 |it doesn|'t exist|
|00003440| 2c 20 61 6e 64 20 69 74 | 20 69 73 0a 58 09 72 65 |, and it| is.X.re|
|00003450| 62 75 69 6c 74 20 69 66 | 20 69 74 20 69 73 20 6f |built if| it is o|
|00003460| 75 74 20 6f 66 20 64 61 | 74 65 2e 20 20 54 68 65 |ut of da|te. The|
|00003470| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 73 20 | informa|tion is |
|00003480| 61 63 63 65 73 73 65 64 | 20 62 79 0a 58 09 68 61 |accessed| by.X.ha|
|00003490| 76 69 6e 67 20 74 68 65 | 20 63 6c 69 65 6e 74 20 |ving the| client |
|000034a0| 72 65 61 64 20 74 68 65 | 20 64 69 72 65 63 74 6f |read the| directo|
|000034b0| 72 79 20 6c 69 73 74 69 | 6e 67 20 66 69 6c 65 2e |ry listi|ng file.|
|000034c0| 20 20 43 61 72 65 20 69 | 73 20 74 61 6b 65 6e 0a | Care i|s taken.|
|000034d0| 58 09 73 6f 20 74 68 61 | 74 20 74 68 65 20 63 6c |X.so tha|t the cl|
|000034e0| 69 65 6e 74 20 77 69 6c | 6c 20 6e 6f 74 20 67 65 |ient wil|l not ge|
|000034f0| 74 20 63 6f 72 72 75 70 | 74 65 64 20 65 6e 74 72 |t corrup|ted entr|
|00003500| 69 65 73 20 77 68 65 6e | 20 74 68 65 20 64 69 72 |ies when| the dir|
|00003510| 65 63 74 6f 72 79 0a 58 | 09 69 73 20 63 68 61 6e |ectory.X|.is chan|
|00003520| 67 65 64 20 77 68 69 6c | 65 20 74 68 65 20 6c 69 |ged whil|e the li|
|00003530| 73 74 69 6e 67 20 69 73 | 20 62 65 69 6e 67 20 72 |sting is| being r|
|00003540| 65 61 64 2e 0a 58 0a 58 | 09 46 69 6c 65 73 20 62 |ead..X.X|.Files b|
|00003550| 65 69 6e 67 20 75 70 6c | 6f 61 64 65 64 20 61 72 |eing upl|oaded ar|
|00003560| 65 20 66 69 72 73 74 20 | 77 72 69 74 74 65 6e 20 |e first |written |
|00003570| 74 6f 20 61 20 74 65 6d | 70 6f 72 61 72 79 20 66 |to a tem|porary f|
|00003580| 69 6c 65 20 69 6e 20 74 | 68 65 0a 58 09 77 6f 72 |ile in t|he.X.wor|
|00003590| 6b 20 64 69 72 65 63 74 | 6f 72 79 3a 20 2e 54 4d |k direct|ory: .TM|
|000035a0| 50 2e 58 58 58 58 58 58 | 58 58 20 77 68 65 72 65 |P.XXXXXX|XX where|
|000035b0| 20 58 58 58 58 58 58 58 | 58 20 69 73 20 74 68 65 | XXXXXXX|X is the|
|000035c0| 20 69 6e 65 74 20 6e 75 | 6d 62 65 72 0a 58 09 6f | inet nu|mber.X.o|
|000035d0| 66 20 74 68 65 20 63 6c | 69 65 6e 74 2e 20 20 57 |f the cl|ient. W|
|000035e0| 68 65 6e 20 75 70 6c 6f | 61 64 20 69 73 20 63 6f |hen uplo|ad is co|
|000035f0| 6d 70 65 6c 65 74 65 2c | 20 74 68 65 20 66 69 6c |mpelete,| the fil|
|00003600| 65 20 69 73 20 6d 6f 76 | 65 64 20 69 6e 74 6f 0a |e is mov|ed into.|
|00003610| 58 09 74 68 65 20 69 6e | 74 65 6e 64 65 64 20 6c |X.the in|tended l|
|00003620| 6f 63 61 74 69 6f 6e 2e | 20 0a 58 0a 58 09 41 6e |ocation.| .X.X.An|
|00003630| 20 27 61 6c 61 72 6d 27 | 20 69 6e 74 65 72 72 75 | 'alarm'| interru|
|00003640| 70 74 20 77 69 6c 6c 20 | 63 61 75 73 65 20 66 73 |pt will |cause fs|
|00003650| 70 64 20 74 6f 20 64 75 | 6d 70 20 69 74 73 20 63 |pd to du|mp its c|
|00003660| 75 72 72 65 6e 74 20 63 | 6c 69 65 6e 74 0a 58 09 |urrent c|lient.X.|
|00003670| 64 61 74 61 62 61 73 65 | 20 69 6e 74 6f 20 74 68 |database| into th|
|00003680| 65 20 66 69 6c 65 20 2e | 48 54 41 42 5f 44 55 4d |e file .|HTAB_DUM|
|00003690| 50 20 69 6e 20 74 68 65 | 20 77 6f 72 6b 20 64 69 |P in the| work di|
|000036a0| 72 65 63 74 6f 72 79 2e | 20 20 54 68 69 73 0a 58 |rectory.| This.X|
|000036b0| 09 63 61 6e 20 62 65 20 | 75 73 65 66 75 6c 20 66 |.can be |useful f|
|000036c0| 6f 72 20 64 65 62 75 67 | 67 69 6e 67 20 61 6e 64 |or debug|ging and|
|000036d0| 20 66 6f 72 20 63 61 74 | 63 68 69 6e 67 20 72 6f | for cat|ching ro|
|000036e0| 67 75 65 20 63 6c 69 65 | 6e 74 73 2e 0a 58 0a 58 |gue clie|nts..X.X|
|000036f0| 20 20 20 20 43 6c 69 65 | 6e 74 20 75 74 69 6c 69 | Clie|nt utili|
|00003700| 74 69 65 73 3a 0a 58 0a | 58 09 41 6c 6c 20 69 6e |ties:.X.|X.All in|
|00003710| 74 65 72 2d 63 6f 6d 6d | 61 6e 64 20 73 74 61 74 |ter-comm|and stat|
|00003720| 65 73 20 61 72 65 20 6b | 65 70 74 20 69 6e 20 74 |es are k|ept in t|
|00003730| 68 65 73 65 20 66 6f 75 | 72 20 73 68 65 6c 6c 20 |hese fou|r shell |
|00003740| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 0a 58 09 76 61 |environm|ent.X.va|
|00003750| 72 69 61 62 6c 65 73 2e | 0a 58 0a 58 09 20 20 20 |riables.|.X.X. |
|00003760| 20 46 53 50 5f 50 4f 52 | 54 09 09 50 6f 72 74 20 | FSP_POR|T..Port |
|00003770| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 66 73 |number o|f the fs|
|00003780| 70 64 20 79 6f 75 20 77 | 69 73 68 20 74 6f 20 63 |pd you w|ish to c|
|00003790| 6f 6e 74 61 63 74 2e 0a | 58 09 20 20 20 20 46 53 |ontact..|X. FS|
|000037a0| 50 5f 48 4f 53 54 09 09 | 48 6f 73 74 20 6e 61 6d |P_HOST..|Host nam|
|000037b0| 65 20 6f 72 20 6e 75 6d | 62 65 72 20 6f 66 20 74 |e or num|ber of t|
|000037c0| 68 65 20 66 73 70 64 2e | 0a 58 09 20 20 20 20 46 |he fspd.|.X. F|
|000037d0| 53 50 5f 4c 4f 43 41 4c | 50 4f 52 54 09 50 6f 72 |SP_LOCAL|PORT.Por|
|000037e0| 74 20 6e 75 6d 62 65 72 | 20 74 6f 20 75 73 65 20 |t number| to use |
|000037f0| 66 6f 72 20 74 61 6c 6b | 69 6e 67 20 74 6f 20 66 |for talk|ing to f|
|00003800| 73 70 64 2e 0a 58 09 20 | 20 20 20 46 53 50 5f 44 |spd..X. | FSP_D|
|00003810| 49 52 09 09 59 6f 75 72 | 20 63 75 72 72 65 6e 74 |IR..Your| current|
|00003820| 20 77 6f 72 6b 69 6e 67 | 20 64 69 72 65 63 74 6f | working| directo|
|00003830| 72 79 20 69 6e 20 74 68 | 65 20 61 72 63 68 69 76 |ry in th|e archiv|
|00003840| 65 2e 0a 58 0a 58 09 49 | 6e 20 61 64 64 69 74 69 |e..X.X.I|n additi|
|00003850| 6f 6e 2c 20 46 53 50 5f | 54 52 41 43 45 20 63 61 |on, FSP_|TRACE ca|
|00003860| 6e 20 62 65 20 73 65 74 | 20 69 66 20 79 6f 75 20 |n be set| if you |
|00003870| 77 61 6e 74 20 73 74 61 | 74 75 73 20 72 65 70 6f |want sta|tus repo|
|00003880| 72 74 73 20 62 65 0a 58 | 09 70 72 69 6e 74 65 64 |rts be.X|.printed|
|00003890| 20 77 68 69 6c 65 20 66 | 69 6c 65 73 20 61 72 65 | while f|iles are|
|000038a0| 20 62 65 69 6e 67 20 74 | 72 61 6e 73 66 65 72 72 | being t|ransferr|
|000038b0| 65 64 2e 0a 58 0a 58 09 | 41 20 74 79 70 69 63 61 |ed..X.X.|A typica|
|000038c0| 6c 20 73 65 74 75 70 20 | 6c 6f 6f 6b 73 20 6c 69 |l setup |looks li|
|000038d0| 6b 65 20 74 68 69 73 3a | 0a 58 0a 58 09 20 20 20 |ke this:|.X.X. |
|000038e0| 20 73 65 74 65 6e 76 20 | 46 53 50 5f 50 4f 52 54 | setenv |FSP_PORT|
|000038f0| 09 20 32 31 0a 58 09 20 | 20 20 20 73 65 74 65 6e |. 21.X. | seten|
|00003900| 76 20 46 53 50 5f 48 4f | 53 54 09 20 31 33 31 2e |v FSP_HO|ST. 131.|
|00003910| 32 31 35 2e 31 33 31 2e | 39 37 0a 58 09 20 20 20 |215.131.|97.X. |
|00003920| 20 73 65 74 65 6e 76 20 | 46 53 50 5f 4c 4f 43 41 | setenv |FSP_LOCA|
|00003930| 4c 50 4f 52 54 20 34 33 | 33 34 0a 58 09 20 20 20 |LPORT 43|34.X. |
|00003940| 20 73 65 74 65 6e 76 20 | 46 53 50 5f 44 49 52 09 | setenv |FSP_DIR.|
|00003950| 20 2f 0a 58 09 20 20 20 | 20 73 65 74 65 6e 76 20 | /.X. | setenv |
|00003960| 46 53 50 5f 54 52 41 43 | 45 0a 58 0a 58 09 28 41 |FSP_TRAC|E.X.X.(A|
|00003970| 6c 6c 20 65 78 61 6d 70 | 6c 65 73 20 77 69 6c 6c |ll examp|les will|
|00003980| 20 62 65 20 69 6e 20 63 | 73 68 2e 20 20 48 6f 77 | be in c|sh. How|
|00003990| 65 76 65 72 2c 20 69 74 | 20 69 73 20 61 73 73 75 |ever, it| is assu|
|000039a0| 6d 65 64 20 74 68 61 74 | 20 73 69 6d 69 6c 61 72 |med that| similar|
|000039b0| 0a 58 09 20 74 68 69 6e | 67 73 20 63 61 6e 20 62 |.X. thin|gs can b|
|000039c0| 65 20 64 6f 6e 65 20 77 | 69 74 68 20 6f 74 68 65 |e done w|ith othe|
|000039d0| 72 20 73 68 65 6c 6c 73 | 29 0a 58 0a 58 09 54 68 |r shells|).X.X.Th|
|000039e0| 65 20 46 53 50 5f 4c 4f | 43 41 4c 50 4f 52 54 20 |e FSP_LO|CALPORT |
|000039f0| 73 68 6f 75 6c 64 20 62 | 65 20 74 68 65 20 73 61 |should b|e the sa|
|00003a00| 6d 65 20 66 6f 72 20 61 | 6c 6c 20 75 73 65 72 73 |me for a|ll users|
|00003a10| 20 6f 6e 20 74 68 65 20 | 73 61 6d 65 0a 58 09 6d | on the |same.X.m|
|00003a20| 61 63 68 69 6e 65 20 61 | 6e 64 20 74 72 79 69 6e |achine a|nd tryin|
|00003a30| 67 20 74 6f 20 61 63 63 | 65 73 73 20 74 6f 20 74 |g to acc|ess to t|
|00003a40| 68 65 20 73 61 6d 65 20 | 73 65 72 76 65 72 2e 20 |he same |server. |
|00003a50| 20 49 74 20 63 61 6e 20 | 62 65 20 75 73 65 64 0a | It can |be used.|
|00003a60| 58 09 61 73 20 61 20 77 | 61 79 20 74 6f 20 61 63 |X.as a w|ay to ac|
|00003a70| 68 69 65 76 65 20 6d 75 | 74 75 61 6c 20 65 78 63 |hieve mu|tual exc|
|00003a80| 6c 75 73 69 6f 6e 20 74 | 6f 20 65 6e 73 75 72 65 |lusion t|o ensure|
|00003a90| 20 74 68 61 74 20 6f 6e | 6c 79 20 6f 6e 65 0a 58 | that on|ly one.X|
|00003aa0| 09 74 72 61 6e 73 61 63 | 74 69 6f 6e 20 74 61 6b |.transac|tion tak|
|00003ab0| 65 73 20 70 6c 61 63 65 | 20 61 74 20 61 6e 79 20 |es place| at any |
|00003ac0| 74 69 6d 65 2e 0a 58 0a | 58 09 46 6f 72 20 63 6f |time..X.|X.For co|
|00003ad0| 6d 6d 61 6e 64 73 20 74 | 68 61 74 20 64 6f 20 67 |mmands t|hat do g|
|00003ae0| 6c 6f 62 62 69 6e 67 20 | 75 73 69 6e 67 20 72 65 |lobbing |using re|
|00003af0| 6d 6f 74 65 20 64 69 72 | 65 63 74 6f 72 79 20 69 |mote dir|ectory i|
|00003b00| 6e 66 6f 2c 20 6e 6f 72 | 6d 61 6c 0a 58 09 73 68 |nfo, nor|mal.X.sh|
|00003b10| 65 6c 6c 20 67 6c 6f 62 | 62 69 6e 67 20 6e 65 65 |ell glob|bing nee|
|00003b20| 64 73 20 74 6f 20 62 65 | 20 74 75 72 6e 65 64 20 |ds to be| turned |
|00003b30| 6f 66 66 2e 20 20 49 6e | 20 63 73 68 2c 20 69 74 |off. In| csh, it|
|00003b40| 20 63 61 6e 20 62 65 20 | 64 6f 6e 65 0a 58 09 77 | can be |done.X.w|
|00003b50| 69 74 68 20 61 20 73 65 | 74 20 6f 66 20 61 6c 69 |ith a se|t of ali|
|00003b60| 61 73 65 73 3a 20 0a 58 | 0a 58 09 20 20 20 20 61 |ases: .X|.X. a|
|00003b70| 6c 69 61 73 20 66 63 64 | 20 73 65 74 65 6e 76 20 |lias fcd| setenv |
|00003b80| 46 53 50 5f 44 49 52 20 | 5c 60 5c 28 73 65 74 20 |FSP_DIR |\`\(set |
|00003b90| 6e 6f 67 6c 6f 62 5c 3b | 20 65 78 65 63 20 66 63 |noglob\;| exec fc|
|00003ba0| 64 63 6d 64 20 5c 21 5c | 2a 5c 29 5c 60 0a 58 09 |dcmd \!\|*\)\`.X.|
|00003bb0| 20 20 20 20 61 6c 69 61 | 73 20 66 6c 73 20 20 20 | alia|s fls |
|00003bc0| 20 5c 28 73 65 74 20 6e | 6f 67 6c 6f 62 5c 3b 20 | \(set n|oglob\; |
|00003bd0| 65 78 65 63 20 66 6c 73 | 63 6d 64 20 20 20 20 5c |exec fls|cmd \|
|00003be0| 21 5c 2a 5c 29 0a 58 09 | 20 20 20 20 61 6c 69 61 |!\*\).X.| alia|
|00003bf0| 73 20 66 67 65 74 20 20 | 20 5c 28 73 65 74 20 6e |s fget | \(set n|
|00003c00| 6f 67 6c 6f 62 5c 3b 20 | 65 78 65 63 20 66 67 65 |oglob\; |exec fge|
|00003c10| 74 63 6d 64 20 20 20 5c | 21 5c 2a 5c 29 0a 58 09 |tcmd \|!\*\).X.|
|00003c20| 20 20 20 20 61 6c 69 61 | 73 20 66 63 61 74 20 20 | alia|s fcat |
|00003c30| 20 5c 28 73 65 74 20 6e | 6f 67 6c 6f 62 5c 3b 20 | \(set n|oglob\; |
|00003c40| 65 78 65 63 20 66 63 61 | 74 63 6d 64 20 20 20 5c |exec fca|tcmd \|
|00003c50| 21 5c 2a 5c 29 0a 58 09 | 20 20 20 20 61 6c 69 61 |!\*\).X.| alia|
|00003c60| 73 20 66 72 6d 20 20 20 | 20 5c 28 73 65 74 20 6e |s frm | \(set n|
|00003c70| 6f 67 6c 6f 62 5c 3b 20 | 65 78 65 63 20 66 72 6d |oglob\; |exec frm|
|00003c80| 63 6d 64 20 20 20 20 5c | 21 5c 2a 5c 29 0a 58 09 |cmd \|!\*\).X.|
|00003c90| 20 20 20 20 61 6c 69 61 | 73 20 66 72 6d 64 69 72 | alia|s frmdir|
|00003ca0| 20 5c 28 73 65 74 20 6e | 6f 67 6c 6f 62 5c 3b 20 | \(set n|oglob\; |
|00003cb0| 65 78 65 63 20 66 72 6d | 64 69 72 63 6d 64 20 5c |exec frm|dircmd \|
|00003cc0| 21 5c 2a 5c 29 0a 58 09 | 20 20 20 20 61 6c 69 61 |!\*\).X.| alia|
|00003cd0| 73 20 66 70 72 6f 20 20 | 20 5c 28 73 65 74 20 6e |s fpro | \(set n|
|00003ce0| 6f 67 6c 6f 62 5c 3b 20 | 65 78 65 63 20 66 70 72 |oglob\; |exec fpr|
|00003cf0| 6f 63 6d 64 20 20 20 5c | 21 5c 2a 5c 29 0a 58 09 |ocmd \|!\*\).X.|
|00003d00| 0a 58 09 49 6e 20 61 64 | 64 74 69 6f 6e 2c 20 74 |.X.In ad|dtion, t|
|00003d10| 68 69 73 20 61 6c 69 61 | 73 20 69 73 20 75 73 65 |his alia|s is use|
|00003d20| 66 75 6c 3a 0a 58 0a 58 | 09 20 20 20 20 61 6c 69 |ful:.X.X|. ali|
|00003d30| 61 73 20 66 70 77 64 20 | 65 63 68 6f 20 5c 24 46 |as fpwd |echo \$F|
|00003d40| 53 50 5f 44 49 52 20 6f | 6e 20 5c 24 46 53 50 5f |SP_DIR o|n \$FSP_|
|00003d50| 48 4f 53 54 20 70 6f 72 | 74 20 5c 24 46 53 50 5f |HOST por|t \$FSP_|
|00003d60| 50 4f 52 54 0a 58 0a 58 | 09 43 6f 6d 6d 61 6e 64 |PORT.X.X|.Command|
|00003d70| 73 3a 0a 58 0a 58 09 20 | 20 20 20 66 76 65 72 09 |s:.X.X. | fver.|
|00003d80| 64 69 73 70 6c 61 79 20 | 73 65 72 76 65 72 27 73 |display |server's|
|00003d90| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 2e | version| number.|
|00003da0| 0a 58 09 20 20 20 20 66 | 63 64 09 09 63 68 61 6e |.X. f|cd..chan|
|00003db0| 67 65 20 63 75 72 72 65 | 6e 74 20 72 65 6d 6f 74 |ge curre|nt remot|
|00003dc0| 65 20 64 69 72 65 63 74 | 6f 72 79 2c 20 6c 69 6b |e direct|ory, lik|
|00003dd0| 65 20 63 64 2e 0a 58 09 | 20 20 20 20 66 6c 73 09 |e cd..X.| fls.|
|00003de0| 09 6c 69 73 74 20 64 69 | 72 65 63 74 6f 72 79 2e |.list di|rectory.|
|00003df0| 20 20 77 6f 72 6b 73 20 | 6c 69 6b 65 20 6c 73 2e | works |like ls.|
|00003e00| 0a 58 09 20 20 20 20 66 | 67 65 74 09 67 65 74 20 |.X. f|get.get |
|00003e10| 74 68 65 20 6e 61 6d 65 | 64 20 66 69 6c 65 73 2e |the name|d files.|
|00003e20| 0a 58 09 20 20 20 20 66 | 70 75 74 09 70 75 74 20 |.X. f|put.put |
|00003e30| 74 68 65 20 6e 61 6d 65 | 64 20 66 69 6c 65 73 2e |the name|d files.|
|00003e40| 0a 58 09 20 20 20 20 66 | 63 61 74 09 67 65 74 20 |.X. f|cat.get |
|00003e50| 74 68 65 20 6e 61 6d 65 | 64 20 66 69 6c 65 73 20 |the name|d files |
|00003e60| 61 6e 64 20 73 65 6e 64 | 20 74 68 65 6d 20 74 6f |and send| them to|
|00003e70| 20 73 74 64 6f 75 74 2e | 0a 58 09 20 20 20 20 66 | stdout.|.X. f|
|00003e80| 6d 6b 64 69 72 09 6d 61 | 6b 65 20 6e 61 6d 65 64 |mkdir.ma|ke named|
|00003e90| 20 64 69 72 65 63 74 6f | 72 69 65 73 2e 0a 58 09 | directo|ries..X.|
|00003ea0| 20 20 20 20 66 72 6d 09 | 09 64 65 6c 65 74 65 20 | frm.|.delete |
|00003eb0| 6e 61 6d 65 64 20 66 69 | 6c 65 73 2e 0a 58 09 20 |named fi|les..X. |
|00003ec0| 20 20 20 66 72 6d 64 69 | 72 09 64 65 6c 65 74 65 | frmdi|r.delete|
|00003ed0| 20 6e 61 6d 65 64 20 64 | 69 72 65 63 74 6f 72 69 | named d|irectori|
|00003ee0| 65 73 2e 0a 58 0a 58 09 | 20 20 20 20 66 70 72 6f |es..X.X.| fpro|
|00003ef0| 09 6e 6f 20 61 72 67 3a | 20 64 69 73 70 6c 61 79 |.no arg:| display|
|00003f00| 20 64 69 72 65 63 74 6f | 72 79 20 70 72 6f 74 65 | directo|ry prote|
|00003f10| 63 74 69 6f 6e 20 6d 6f | 64 65 73 2e 0a 58 09 09 |ction mo|des..X..|
|00003f20| 09 20 20 20 20 2b 63 3a | 20 67 69 76 65 20 6f 74 |. +c:| give ot|
|00003f30| 68 65 72 73 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |hers per|mission |
|00003f40| 74 6f 20 63 72 65 61 74 | 65 20 6e 65 77 20 69 74 |to creat|e new it|
|00003f50| 65 6d 73 2e 0a 58 09 09 | 09 20 20 20 20 2d 63 3a |ems..X..|. -c:|
|00003f60| 20 64 65 6e 79 20 6f 74 | 68 65 72 73 20 70 65 72 | deny ot|hers per|
|00003f70| 6d 69 73 73 69 6f 6e 20 | 74 6f 20 63 72 65 61 74 |mission |to creat|
|00003f80| 65 20 6e 65 77 20 69 74 | 65 6d 73 2e 0a 58 09 09 |e new it|ems..X..|
|00003f90| 09 20 20 20 20 2b 64 3a | 20 67 69 76 65 20 6f 74 |. +d:| give ot|
|00003fa0| 68 65 72 73 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |hers per|mission |
|00003fb0| 74 6f 20 64 65 6c 65 74 | 65 20 6f 6c 64 20 69 74 |to delet|e old it|
|00003fc0| 65 6d 73 2e 0a 58 09 09 | 09 20 20 20 20 2d 64 3a |ems..X..|. -d:|
|00003fd0| 20 64 65 6e 79 20 6f 74 | 68 65 72 73 20 70 65 72 | deny ot|hers per|
|00003fe0| 6d 69 73 73 69 6f 6e 20 | 74 6f 20 64 65 6c 65 74 |mission |to delet|
|00003ff0| 65 20 6f 6c 64 20 69 74 | 65 6d 73 2e 0a 58 0a 58 |e old it|ems..X.X|
|00004000| 20 20 20 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | ****|********|
|00004010| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004020| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004030| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004040| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 58 0a 58 20 |********|***.X.X |
|00004050| 20 20 20 54 68 69 73 20 | 69 73 20 61 20 66 72 65 | This |is a fre|
|00004060| 65 20 73 6f 66 74 77 61 | 72 65 2e 20 20 42 65 20 |e softwa|re. Be |
|00004070| 63 72 65 61 74 69 76 65 | 3b 20 6d 61 6b 65 20 79 |creative|; make y|
|00004080| 6f 75 72 20 6f 77 6e 20 | 6d 61 63 72 6f 73 20 61 |our own |macros a|
|00004090| 6e 64 20 74 6f 6f 6c 73 | 0a 58 20 20 20 20 61 6e |nd tools|.X an|
|000040a0| 64 20 6c 65 74 20 6d 65 | 20 6b 6e 6f 77 20 6f 66 |d let me| know of|
|000040b0| 20 61 6e 79 20 62 75 67 | 73 20 61 6e 64 20 73 75 | any bug|s and su|
|000040c0| 67 67 65 73 74 69 6f 6e | 73 2e 0a 45 4e 44 5f 4f |ggestion|s..END_O|
|000040d0| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 31 |F_FILE.i|f test 1|
|000040e0| 33 30 38 30 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |3080 -ne| `wc -c |
|000040f0| 3c 27 52 45 41 44 4d 45 | 27 60 3b 20 74 68 65 6e |<'README|'`; then|
|00004100| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00004110| 5c 22 27 52 45 41 44 4d | 45 27 5c 22 20 75 6e 70 |\"'READM|E'\" unp|
|00004120| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00004130| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00004140| 6f 66 20 27 52 45 41 44 | 4d 45 27 0a 66 69 0a 69 |of 'READ|ME'.fi.i|
|00004150| 66 20 74 65 73 74 20 21 | 20 2d 64 20 27 62 73 64 |f test !| -d 'bsd|
|00004160| 5f 73 72 63 27 20 3b 20 | 74 68 65 6e 0a 20 20 20 |_src' ; |then. |
|00004170| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 43 72 65 61 | echo sh|ar: Crea|
|00004180| 74 69 6e 67 20 64 69 72 | 65 63 74 6f 72 79 20 5c |ting dir|ectory \|
|00004190| 22 27 62 73 64 5f 73 72 | 63 27 5c 22 0a 20 20 20 |"'bsd_sr|c'\". |
|000041a0| 20 6d 6b 64 69 72 20 27 | 62 73 64 5f 73 72 63 27 | mkdir '|bsd_src'|
|000041b0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|000041c0| 62 73 64 5f 73 72 63 2f | 4d 61 6b 65 66 69 6c 65 |bsd_src/|Makefile|
|000041d0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|000041e0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|000041f0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00004200| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00004210| 6e 67 20 66 69 6c 65 20 | 5c 22 27 62 73 64 5f 73 |ng file |\"'bsd_s|
|00004220| 72 63 2f 4d 61 6b 65 66 | 69 6c 65 27 5c 22 0a 65 |rc/Makef|ile'\".e|
|00004230| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00004240| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 62 73 64 |xtractin|g \"'bsd|
|00004250| 5f 73 72 63 2f 4d 61 6b | 65 66 69 6c 65 27 5c 22 |_src/Mak|efile'\"|
|00004260| 20 5c 28 35 31 36 20 63 | 68 61 72 61 63 74 65 72 | \(516 c|haracter|
|00004270| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00004280| 20 3e 27 62 73 64 5f 73 | 72 63 2f 4d 61 6b 65 66 | >'bsd_s|rc/Makef|
|00004290| 69 6c 65 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |ile' <<'|END_OF_F|
|000042a0| 49 4c 45 27 0a 58 23 20 | 54 68 69 73 20 73 75 62 |ILE'.X# |This sub|
|000042b0| 64 69 72 65 63 74 6f 72 | 79 20 63 6f 6e 74 61 69 |director|y contai|
|000042c0| 6e 73 20 6d 6f 64 69 66 | 69 65 64 20 76 65 72 73 |ns modif|ied vers|
|000042d0| 69 6f 6e 20 6f 66 20 66 | 69 6c 65 73 20 6f 62 74 |ion of f|iles obt|
|000042e0| 61 69 6e 65 64 20 66 72 | 6f 6d 20 74 68 65 0a 58 |ained fr|om the.X|
|000042f0| 23 20 75 75 6e 65 74 2e | 75 75 2e 6e 65 74 20 61 |# uunet.|uu.net a|
|00004300| 72 63 68 69 76 65 2e 20 | 20 59 6f 75 20 6e 65 65 |rchive. | You nee|
|00004310| 64 20 74 6f 20 64 6f 20 | 27 6d 61 6b 65 27 20 69 |d to do |'make' i|
|00004320| 6e 20 74 68 69 73 20 64 | 69 72 65 63 74 6f 72 79 |n this d|irectory|
|00004330| 20 66 69 72 73 74 2e 0a | 58 23 20 59 6f 75 20 6d | first..|X# You m|
|00004340| 61 79 20 68 61 76 65 20 | 74 6f 20 65 64 69 74 20 |ay have |to edit |
|00004350| 74 77 65 61 6b 2e 68 20 | 74 6f 20 67 65 74 20 74 |tweak.h |to get t|
|00004360| 68 69 6e 67 73 20 74 6f | 20 74 68 65 6d 20 74 6f |hings to| them to|
|00004370| 20 70 72 6f 70 65 72 6c | 79 20 6f 6e 20 79 6f 75 | properl|y on you|
|00004380| 72 0a 58 23 20 73 79 73 | 74 65 6d 2e 0a 58 0a 43 |r.X# sys|tem..X.C|
|00004390| 46 4c 41 47 53 3d 2d 67 | 0a 58 0a 61 6c 6c 3a 20 |FLAGS=-g|.X.all: |
|000043a0| 63 6d 70 2e 6f 20 67 6c | 6f 62 2e 6f 20 6c 73 2e |cmp.o gl|ob.o ls.|
|000043b0| 6f 20 70 72 69 6e 74 2e | 6f 20 75 74 69 6c 2e 6f |o print.|o util.o|
|000043c0| 20 72 61 6e 64 6f 6d 2e | 6f 0a 58 0a 63 6d 70 2e | random.|o.X.cmp.|
|000043d0| 6f 3a 20 63 6d 70 2e 63 | 20 6c 73 2e 68 20 74 77 |o: cmp.c| ls.h tw|
|000043e0| 65 61 6b 2e 68 0a 67 6c | 6f 62 2e 6f 3a 20 67 6c |eak.h.gl|ob.o: gl|
|000043f0| 6f 62 2e 63 20 2e 2e 2f | 63 6c 69 65 6e 74 5f 64 |ob.c ../|client_d|
|00004400| 65 66 2e 68 20 2e 2e 2f | 63 6f 6d 6d 6f 6e 5f 64 |ef.h ../|common_d|
|00004410| 65 66 2e 68 20 74 77 65 | 61 6b 2e 68 0a 6c 73 2e |ef.h twe|ak.h.ls.|
|00004420| 6f 3a 20 6c 73 2e 63 20 | 2e 2e 2f 63 6c 69 65 6e |o: ls.c |../clien|
|00004430| 74 5f 64 65 66 2e 68 20 | 2e 2e 2f 63 6f 6d 6d 6f |t_def.h |../commo|
|00004440| 6e 5f 64 65 66 2e 68 20 | 6c 73 2e 68 20 74 77 65 |n_def.h |ls.h twe|
|00004450| 61 6b 2e 68 0a 70 72 69 | 6e 74 2e 6f 3a 20 70 72 |ak.h.pri|nt.o: pr|
|00004460| 69 6e 74 2e 63 20 6c 73 | 2e 68 20 74 77 65 61 6b |int.c ls|.h tweak|
|00004470| 2e 68 0a 75 74 69 6c 2e | 6f 3a 20 75 74 69 6c 2e |.h.util.|o: util.|
|00004480| 63 20 74 77 65 61 6b 2e | 68 0a 72 61 6e 64 6f 6d |c tweak.|h.random|
|00004490| 2e 6f 3a 20 72 61 6e 64 | 6f 6d 2e 63 0a 58 0a 63 |.o: rand|om.c.X.c|
|000044a0| 6c 65 61 6e 3a 0a 58 09 | 72 6d 20 2d 66 20 2a 2e |lean:.X.|rm -f *.|
|000044b0| 6f 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |o.END_OF|_FILE.if|
|000044c0| 20 74 65 73 74 20 35 31 | 36 20 2d 6e 65 20 60 77 | test 51|6 -ne `w|
|000044d0| 63 20 2d 63 20 3c 27 62 | 73 64 5f 73 72 63 2f 4d |c -c <'b|sd_src/M|
|000044e0| 61 6b 65 66 69 6c 65 27 | 60 3b 20 74 68 65 6e 0a |akefile'|`; then.|
|000044f0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00004500| 22 27 62 73 64 5f 73 72 | 63 2f 4d 61 6b 65 66 69 |"'bsd_sr|c/Makefi|
|00004510| 6c 65 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |le'\" un|packed w|
|00004520| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00004530| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 62 73 64 |fi.# end| of 'bsd|
|00004540| 5f 73 72 63 2f 4d 61 6b | 65 66 69 6c 65 27 0a 66 |_src/Mak|efile'.f|
|00004550| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 62 73 |i.if tes|t -f 'bs|
|00004560| 64 5f 73 72 63 2f 63 6d | 70 2e 63 27 20 2d 61 20 |d_src/cm|p.c' -a |
|00004570| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00004580| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00004590| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000045a0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000045b0| 6c 65 20 5c 22 27 62 73 | 64 5f 73 72 63 2f 63 6d |le \"'bs|d_src/cm|
|000045c0| 70 2e 63 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |p.c'\".e|lse.echo|
|000045d0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000045e0| 67 20 5c 22 27 62 73 64 | 5f 73 72 63 2f 63 6d 70 |g \"'bsd|_src/cmp|
|000045f0| 2e 63 27 5c 22 20 5c 28 | 31 38 38 36 20 63 68 61 |.c'\" \(|1886 cha|
|00004600| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00004610| 2f 5e 58 2f 2f 22 20 3e | 27 62 73 64 5f 73 72 63 |/^X//" >|'bsd_src|
|00004620| 2f 63 6d 70 2e 63 27 20 | 3c 3c 27 45 4e 44 5f 4f |/cmp.c' |<<'END_O|
|00004630| 46 5f 46 49 4c 45 27 0a | 58 2f 2a 0a 58 20 2a 20 |F_FILE'.|X/*.X * |
|00004640| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 31 39 |Copyrigh|t (c) 19|
|00004650| 38 39 20 54 68 65 20 52 | 65 67 65 6e 74 73 20 6f |89 The R|egents o|
|00004660| 66 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |f the Un|iversity|
|00004670| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 0a | of Cali|fornia..|
|00004680| 58 20 2a 20 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |X * All |rights r|
|00004690| 65 73 65 72 76 65 64 2e | 0a 58 20 2a 0a 58 20 2a |eserved.|.X *.X *|
|000046a0| 20 54 68 69 73 20 63 6f | 64 65 20 69 73 20 64 65 | This co|de is de|
|000046b0| 72 69 76 65 64 20 66 72 | 6f 6d 20 73 6f 66 74 77 |rived fr|om softw|
|000046c0| 61 72 65 20 63 6f 6e 74 | 72 69 62 75 74 65 64 20 |are cont|ributed |
|000046d0| 74 6f 20 42 65 72 6b 65 | 6c 65 79 20 62 79 0a 58 |to Berke|ley by.X|
|000046e0| 20 2a 20 4d 69 63 68 61 | 65 6c 20 46 69 73 63 68 | * Micha|el Fisch|
|000046f0| 62 65 69 6e 2e 0a 58 20 | 2a 0a 58 20 2a 20 52 65 |bein..X |*.X * Re|
|00004700| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 61 6e 64 |distribu|tion and|
|00004710| 20 75 73 65 20 69 6e 20 | 73 6f 75 72 63 65 20 61 | use in |source a|
|00004720| 6e 64 20 62 69 6e 61 72 | 79 20 66 6f 72 6d 73 20 |nd binar|y forms |
|00004730| 61 72 65 20 70 65 72 6d | 69 74 74 65 64 0a 58 20 |are perm|itted.X |
|00004740| 2a 20 70 72 6f 76 69 64 | 65 64 20 74 68 61 74 3a |* provid|ed that:|
|00004750| 20 28 31 29 20 73 6f 75 | 72 63 65 20 64 69 73 74 | (1) sou|rce dist|
|00004760| 72 69 62 75 74 69 6f 6e | 73 20 72 65 74 61 69 6e |ribution|s retain|
|00004770| 20 74 68 69 73 20 65 6e | 74 69 72 65 20 63 6f 70 | this en|tire cop|
|00004780| 79 72 69 67 68 74 0a 58 | 20 2a 20 6e 6f 74 69 63 |yright.X| * notic|
|00004790| 65 20 61 6e 64 20 63 6f | 6d 6d 65 6e 74 2c 20 61 |e and co|mment, a|
|000047a0| 6e 64 20 28 32 29 20 64 | 69 73 74 72 69 62 75 74 |nd (2) d|istribut|
|000047b0| 69 6f 6e 73 20 69 6e 63 | 6c 75 64 69 6e 67 20 62 |ions inc|luding b|
|000047c0| 69 6e 61 72 69 65 73 20 | 64 69 73 70 6c 61 79 0a |inaries |display.|
|000047d0| 58 20 2a 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |X * the |followin|
|000047e0| 67 20 61 63 6b 6e 6f 77 | 6c 65 64 67 65 6d 65 6e |g acknow|ledgemen|
|000047f0| 74 3a 20 20 60 60 54 68 | 69 73 20 70 72 6f 64 75 |t: ``Th|is produ|
|00004800| 63 74 20 69 6e 63 6c 75 | 64 65 73 20 73 6f 66 74 |ct inclu|des soft|
|00004810| 77 61 72 65 0a 58 20 2a | 20 64 65 76 65 6c 6f 70 |ware.X *| develop|
|00004820| 65 64 20 62 79 20 74 68 | 65 20 55 6e 69 76 65 72 |ed by th|e Univer|
|00004830| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|00004840| 69 61 2c 20 42 65 72 6b | 65 6c 65 79 20 61 6e 64 |ia, Berk|eley and|
|00004850| 20 69 74 73 20 63 6f 6e | 74 72 69 62 75 74 6f 72 | its con|tributor|
|00004860| 73 27 27 0a 58 20 2a 20 | 69 6e 20 74 68 65 20 64 |s''.X * |in the d|
|00004870| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 72 20 |ocumenta|tion or |
|00004880| 6f 74 68 65 72 20 6d 61 | 74 65 72 69 61 6c 73 20 |other ma|terials |
|00004890| 70 72 6f 76 69 64 65 64 | 20 77 69 74 68 20 74 68 |provided| with th|
|000048a0| 65 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 0a 58 |e distri|bution.X|
|000048b0| 20 2a 20 61 6e 64 20 69 | 6e 20 61 6c 6c 20 61 64 | * and i|n all ad|
|000048c0| 76 65 72 74 69 73 69 6e | 67 20 6d 61 74 65 72 69 |vertisin|g materi|
|000048d0| 61 6c 73 20 6d 65 6e 74 | 69 6f 6e 69 6e 67 20 66 |als ment|ioning f|
|000048e0| 65 61 74 75 72 65 73 20 | 6f 72 20 75 73 65 20 6f |eatures |or use o|
|000048f0| 66 20 74 68 69 73 0a 58 | 20 2a 20 73 6f 66 74 77 |f this.X| * softw|
|00004900| 61 72 65 2e 20 4e 65 69 | 74 68 65 72 20 74 68 65 |are. Nei|ther the|
|00004910| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 55 6e 69 | name of| the Uni|
|00004920| 76 65 72 73 69 74 79 20 | 6e 6f 72 20 74 68 65 20 |versity |nor the |
|00004930| 6e 61 6d 65 73 20 6f 66 | 20 69 74 73 0a 58 20 2a |names of| its.X *|
|00004940| 20 63 6f 6e 74 72 69 62 | 75 74 6f 72 73 20 6d 61 | contrib|utors ma|
|00004950| 79 20 62 65 20 75 73 65 | 64 20 74 6f 20 65 6e 64 |y be use|d to end|
|00004960| 6f 72 73 65 20 6f 72 20 | 70 72 6f 6d 6f 74 65 20 |orse or |promote |
|00004970| 70 72 6f 64 75 63 74 73 | 20 64 65 72 69 76 65 64 |products| derived|
|00004980| 0a 58 20 2a 20 66 72 6f | 6d 20 74 68 69 73 20 73 |.X * fro|m this s|
|00004990| 6f 66 74 77 61 72 65 20 | 77 69 74 68 6f 75 74 20 |oftware |without |
|000049a0| 73 70 65 63 69 66 69 63 | 20 70 72 69 6f 72 20 77 |specific| prior w|
|000049b0| 72 69 74 74 65 6e 20 70 | 65 72 6d 69 73 73 69 6f |ritten p|ermissio|
|000049c0| 6e 2e 0a 58 20 2a 20 54 | 48 49 53 20 53 4f 46 54 |n..X * T|HIS SOFT|
|000049d0| 57 41 52 45 20 49 53 20 | 50 52 4f 56 49 44 45 44 |WARE IS |PROVIDED|
|000049e0| 20 60 60 41 53 20 49 53 | 27 27 20 41 4e 44 20 57 | ``AS IS|'' AND W|
|000049f0| 49 54 48 4f 55 54 20 41 | 4e 59 20 45 58 50 52 45 |ITHOUT A|NY EXPRE|
|00004a00| 53 53 20 4f 52 0a 58 20 | 2a 20 49 4d 50 4c 49 45 |SS OR.X |* IMPLIE|
|00004a10| 44 20 57 41 52 52 41 4e | 54 49 45 53 2c 20 49 4e |D WARRAN|TIES, IN|
|00004a20| 43 4c 55 44 49 4e 47 2c | 20 57 49 54 48 4f 55 54 |CLUDING,| WITHOUT|
|00004a30| 20 4c 49 4d 49 54 41 54 | 49 4f 4e 2c 20 54 48 45 | LIMITAT|ION, THE|
|00004a40| 20 49 4d 50 4c 49 45 44 | 0a 58 20 2a 20 57 41 52 | IMPLIED|.X * WAR|
|00004a50| 52 41 4e 54 49 45 53 20 | 4f 46 20 4d 45 52 43 48 |RANTIES |OF MERCH|
|00004a60| 41 4e 54 41 42 49 4c 49 | 54 59 20 41 4e 44 20 46 |ANTABILI|TY AND F|
|00004a70| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00004a80| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00004a90| 0a 58 20 2a 2f 0a 58 0a | 58 23 69 66 6e 64 65 66 |.X */.X.|X#ifndef|
|00004aa0| 20 6c 69 6e 74 0a 73 74 | 61 74 69 63 20 63 68 61 | lint.st|atic cha|
|00004ab0| 72 20 73 63 63 73 69 64 | 5b 5d 20 3d 20 22 40 28 |r sccsid|[] = "@(|
|00004ac0| 23 29 63 6d 70 2e 63 09 | 35 2e 32 20 28 42 65 72 |#)cmp.c.|5.2 (Ber|
|00004ad0| 6b 65 6c 65 79 29 20 34 | 2f 38 2f 39 30 22 3b 0a |keley) 4|/8/90";.|
|00004ae0| 58 23 65 6e 64 69 66 20 | 2f 2a 20 6e 6f 74 20 6c |X#endif |/* not l|
|00004af0| 69 6e 74 20 2a 2f 0a 58 | 0a 58 23 69 6e 63 6c 75 |int */.X|.X#inclu|
|00004b00| 64 65 20 3c 73 79 73 2f | 74 79 70 65 73 2e 68 3e |de <sys/|types.h>|
|00004b10| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|00004b20| 73 74 61 74 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |stat.h>.|X#includ|
|00004b30| 65 20 22 6c 73 2e 68 22 | 0a 58 23 69 6e 63 6c 75 |e "ls.h"|.X#inclu|
|00004b40| 64 65 20 22 74 77 65 61 | 6b 2e 68 22 0a 58 0a 6e |de "twea|k.h".X.n|
|00004b50| 61 6d 65 63 6d 70 28 61 | 2c 20 62 29 0a 58 09 4c |amecmp(a|, b).X.L|
|00004b60| 53 20 2a 61 2c 20 2a 62 | 3b 0a 58 7b 0a 58 09 72 |S *a, *b|;.X{.X.r|
|00004b70| 65 74 75 72 6e 28 73 74 | 72 63 6d 70 28 61 2d 3e |eturn(st|rcmp(a->|
|00004b80| 6e 61 6d 65 2c 20 62 2d | 3e 6e 61 6d 65 29 29 3b |name, b-|>name));|
|00004b90| 0a 58 7d 0a 58 0a 72 65 | 76 6e 61 6d 65 63 6d 70 |.X}.X.re|vnamecmp|
|00004ba0| 28 61 2c 20 62 29 0a 58 | 09 4c 53 20 2a 61 2c 20 |(a, b).X|.LS *a, |
|00004bb0| 2a 62 3b 0a 58 7b 0a 58 | 09 72 65 74 75 72 6e 28 |*b;.X{.X|.return(|
|00004bc0| 73 74 72 63 6d 70 28 62 | 2d 3e 6e 61 6d 65 2c 20 |strcmp(b|->name, |
|00004bd0| 61 2d 3e 6e 61 6d 65 29 | 29 3b 0a 58 7d 0a 58 0a |a->name)|);.X}.X.|
|00004be0| 6d 6f 64 63 6d 70 28 61 | 2c 20 62 29 0a 58 09 4c |modcmp(a|, b).X.L|
|00004bf0| 53 20 2a 61 2c 20 2a 62 | 3b 0a 58 7b 0a 58 09 72 |S *a, *b|;.X{.X.r|
|00004c00| 65 74 75 72 6e 28 61 2d | 3e 6c 73 74 61 74 2e 73 |eturn(a-|>lstat.s|
|00004c10| 74 5f 6d 74 69 6d 65 20 | 3c 20 62 2d 3e 6c 73 74 |t_mtime |< b->lst|
|00004c20| 61 74 2e 73 74 5f 6d 74 | 69 6d 65 29 3b 0a 58 7d |at.st_mt|ime);.X}|
|00004c30| 0a 58 0a 72 65 76 6d 6f | 64 63 6d 70 28 61 2c 20 |.X.revmo|dcmp(a, |
|00004c40| 62 29 0a 58 09 4c 53 20 | 2a 61 2c 20 2a 62 3b 0a |b).X.LS |*a, *b;.|
|00004c50| 58 7b 0a 58 09 72 65 74 | 75 72 6e 28 62 2d 3e 6c |X{.X.ret|urn(b->l|
|00004c60| 73 74 61 74 2e 73 74 5f | 6d 74 69 6d 65 20 3c 20 |stat.st_|mtime < |
|00004c70| 61 2d 3e 6c 73 74 61 74 | 2e 73 74 5f 6d 74 69 6d |a->lstat|.st_mtim|
|00004c80| 65 29 3b 0a 58 7d 0a 58 | 0a 61 63 63 63 6d 70 28 |e);.X}.X|.acccmp(|
|00004c90| 61 2c 20 62 29 0a 58 09 | 4c 53 20 2a 61 2c 20 2a |a, b).X.|LS *a, *|
|00004ca0| 62 3b 0a 58 7b 0a 58 09 | 72 65 74 75 72 6e 28 61 |b;.X{.X.|return(a|
|00004cb0| 2d 3e 6c 73 74 61 74 2e | 73 74 5f 61 74 69 6d 65 |->lstat.|st_atime|
|00004cc0| 20 3c 20 62 2d 3e 6c 73 | 74 61 74 2e 73 74 5f 61 | < b->ls|tat.st_a|
|00004cd0| 74 69 6d 65 29 3b 0a 58 | 7d 0a 58 0a 72 65 76 61 |time);.X|}.X.reva|
|00004ce0| 63 63 63 6d 70 28 61 2c | 20 62 29 0a 58 09 4c 53 |cccmp(a,| b).X.LS|
|00004cf0| 20 2a 61 2c 20 2a 62 3b | 0a 58 7b 0a 58 09 72 65 | *a, *b;|.X{.X.re|
|00004d00| 74 75 72 6e 28 62 2d 3e | 6c 73 74 61 74 2e 73 74 |turn(b->|lstat.st|
|00004d10| 5f 61 74 69 6d 65 20 3c | 20 61 2d 3e 6c 73 74 61 |_atime <| a->lsta|
|00004d20| 74 2e 73 74 5f 61 74 69 | 6d 65 29 3b 0a 58 7d 0a |t.st_ati|me);.X}.|
|00004d30| 58 0a 73 74 61 74 63 6d | 70 28 61 2c 20 62 29 0a |X.statcm|p(a, b).|
|00004d40| 58 09 4c 53 20 2a 61 2c | 20 2a 62 3b 0a 58 7b 0a |X.LS *a,| *b;.X{.|
|00004d50| 58 09 72 65 74 75 72 6e | 28 61 2d 3e 6c 73 74 61 |X.return|(a->lsta|
|00004d60| 74 2e 73 74 5f 63 74 69 | 6d 65 20 3c 20 62 2d 3e |t.st_cti|me < b->|
|00004d70| 6c 73 74 61 74 2e 73 74 | 5f 63 74 69 6d 65 29 3b |lstat.st|_ctime);|
|00004d80| 0a 58 7d 0a 58 0a 72 65 | 76 73 74 61 74 63 6d 70 |.X}.X.re|vstatcmp|
|00004d90| 28 61 2c 20 62 29 0a 58 | 09 4c 53 20 2a 61 2c 20 |(a, b).X|.LS *a, |
|00004da0| 2a 62 3b 0a 58 7b 0a 58 | 09 72 65 74 75 72 6e 28 |*b;.X{.X|.return(|
|00004db0| 62 2d 3e 6c 73 74 61 74 | 2e 73 74 5f 63 74 69 6d |b->lstat|.st_ctim|
|00004dc0| 65 20 3c 20 61 2d 3e 6c | 73 74 61 74 2e 73 74 5f |e < a->l|stat.st_|
|00004dd0| 63 74 69 6d 65 29 3b 0a | 58 7d 0a 45 4e 44 5f 4f |ctime);.|X}.END_O|
|00004de0| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 31 |F_FILE.i|f test 1|
|00004df0| 38 38 36 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |886 -ne |`wc -c <|
|00004e00| 27 62 73 64 5f 73 72 63 | 2f 63 6d 70 2e 63 27 60 |'bsd_src|/cmp.c'`|
|00004e10| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00004e20| 73 68 61 72 3a 20 5c 22 | 27 62 73 64 5f 73 72 63 |shar: \"|'bsd_src|
|00004e30| 2f 63 6d 70 2e 63 27 5c | 22 20 75 6e 70 61 63 6b |/cmp.c'\|" unpack|
|00004e40| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00004e50| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00004e60| 27 62 73 64 5f 73 72 63 | 2f 63 6d 70 2e 63 27 0a |'bsd_src|/cmp.c'.|
|00004e70| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 62 |fi.if te|st -f 'b|
|00004e80| 73 64 5f 73 72 63 2f 6c | 73 2e 68 27 20 2d 61 20 |sd_src/l|s.h' -a |
|00004e90| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00004ea0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00004eb0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00004ec0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00004ed0| 6c 65 20 5c 22 27 62 73 | 64 5f 73 72 63 2f 6c 73 |le \"'bs|d_src/ls|
|00004ee0| 2e 68 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.h'\".el|se.echo |
|00004ef0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00004f00| 20 5c 22 27 62 73 64 5f | 73 72 63 2f 6c 73 2e 68 | \"'bsd_|src/ls.h|
|00004f10| 27 5c 22 20 5c 28 32 31 | 37 35 20 63 68 61 72 61 |'\" \(21|75 chara|
|00004f20| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00004f30| 58 2f 2f 22 20 3e 27 62 | 73 64 5f 73 72 63 2f 6c |X//" >'b|sd_src/l|
|00004f40| 73 2e 68 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |s.h' <<'|END_OF_F|
|00004f50| 49 4c 45 27 0a 58 2f 2a | 0a 58 20 2a 20 43 6f 70 |ILE'.X/*|.X * Cop|
|00004f60| 79 72 69 67 68 74 20 28 | 63 29 20 31 39 38 39 20 |yright (|c) 1989 |
|00004f70| 54 68 65 20 52 65 67 65 | 6e 74 73 20 6f 66 20 74 |The Rege|nts of t|
|00004f80| 68 65 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 |he Unive|rsity of|
|00004f90| 20 43 61 6c 69 66 6f 72 | 6e 69 61 2e 0a 58 20 2a | Califor|nia..X *|
|00004fa0| 20 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 | All rig|hts rese|
|00004fb0| 72 76 65 64 2e 0a 58 20 | 2a 0a 58 20 2a 20 54 68 |rved..X |*.X * Th|
|00004fc0| 69 73 20 63 6f 64 65 20 | 69 73 20 64 65 72 69 76 |is code |is deriv|
|00004fd0| 65 64 20 66 72 6f 6d 20 | 73 6f 66 74 77 61 72 65 |ed from |software|
|00004fe0| 20 63 6f 6e 74 72 69 62 | 75 74 65 64 20 74 6f 20 | contrib|uted to |
|00004ff0| 42 65 72 6b 65 6c 65 79 | 20 62 79 0a 58 20 2a 20 |Berkeley| by.X * |
|00005000| 4d 69 63 68 61 65 6c 20 | 46 69 73 63 68 62 65 69 |Michael |Fischbei|
|00005010| 6e 2e 0a 58 20 2a 0a 58 | 20 2a 20 52 65 64 69 73 |n..X *.X| * Redis|
|00005020| 74 72 69 62 75 74 69 6f | 6e 20 61 6e 64 20 75 73 |tributio|n and us|
|00005030| 65 20 69 6e 20 73 6f 75 | 72 63 65 20 61 6e 64 20 |e in sou|rce and |
|00005040| 62 69 6e 61 72 79 20 66 | 6f 72 6d 73 20 61 72 65 |binary f|orms are|
|00005050| 20 70 65 72 6d 69 74 74 | 65 64 0a 58 20 2a 20 70 | permitt|ed.X * p|
|00005060| 72 6f 76 69 64 65 64 20 | 74 68 61 74 3a 20 28 31 |rovided |that: (1|
|00005070| 29 20 73 6f 75 72 63 65 | 20 64 69 73 74 72 69 62 |) source| distrib|
|00005080| 75 74 69 6f 6e 73 20 72 | 65 74 61 69 6e 20 74 68 |utions r|etain th|
|00005090| 69 73 20 65 6e 74 69 72 | 65 20 63 6f 70 79 72 69 |is entir|e copyri|
|000050a0| 67 68 74 0a 58 20 2a 20 | 6e 6f 74 69 63 65 20 61 |ght.X * |notice a|
|000050b0| 6e 64 20 63 6f 6d 6d 65 | 6e 74 2c 20 61 6e 64 20 |nd comme|nt, and |
|000050c0| 28 32 29 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |(2) dist|ribution|
|000050d0| 73 20 69 6e 63 6c 75 64 | 69 6e 67 20 62 69 6e 61 |s includ|ing bina|
|000050e0| 72 69 65 73 20 64 69 73 | 70 6c 61 79 0a 58 20 2a |ries dis|play.X *|
|000050f0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 61 | the fol|lowing a|
|00005100| 63 6b 6e 6f 77 6c 65 64 | 67 65 6d 65 6e 74 3a 20 |cknowled|gement: |
|00005110| 20 60 60 54 68 69 73 20 | 70 72 6f 64 75 63 74 20 | ``This |product |
|00005120| 69 6e 63 6c 75 64 65 73 | 20 73 6f 66 74 77 61 72 |includes| softwar|
|00005130| 65 0a 58 20 2a 20 64 65 | 76 65 6c 6f 70 65 64 20 |e.X * de|veloped |
|00005140| 62 79 20 74 68 65 20 55 | 6e 69 76 65 72 73 69 74 |by the U|niversit|
|00005150| 79 20 6f 66 20 43 61 6c | 69 66 6f 72 6e 69 61 2c |y of Cal|ifornia,|
|00005160| 20 42 65 72 6b 65 6c 65 | 79 20 61 6e 64 20 69 74 | Berkele|y and it|
|00005170| 73 20 63 6f 6e 74 72 69 | 62 75 74 6f 72 73 27 27 |s contri|butors''|
|00005180| 0a 58 20 2a 20 69 6e 20 | 74 68 65 20 64 6f 63 75 |.X * in |the docu|
|00005190| 6d 65 6e 74 61 74 69 6f | 6e 20 6f 72 20 6f 74 68 |mentatio|n or oth|
|000051a0| 65 72 20 6d 61 74 65 72 | 69 61 6c 73 20 70 72 6f |er mater|ials pro|
|000051b0| 76 69 64 65 64 20 77 69 | 74 68 20 74 68 65 20 64 |vided wi|th the d|
|000051c0| 69 73 74 72 69 62 75 74 | 69 6f 6e 0a 58 20 2a 20 |istribut|ion.X * |
|000051d0| 61 6e 64 20 69 6e 20 61 | 6c 6c 20 61 64 76 65 72 |and in a|ll adver|
|000051e0| 74 69 73 69 6e 67 20 6d | 61 74 65 72 69 61 6c 73 |tising m|aterials|
|000051f0| 20 6d 65 6e 74 69 6f 6e | 69 6e 67 20 66 65 61 74 | mention|ing feat|
|00005200| 75 72 65 73 20 6f 72 20 | 75 73 65 20 6f 66 20 74 |ures or |use of t|
|00005210| 68 69 73 0a 58 20 2a 20 | 73 6f 66 74 77 61 72 65 |his.X * |software|
|00005220| 2e 20 4e 65 69 74 68 65 | 72 20 74 68 65 20 6e 61 |. Neithe|r the na|
|00005230| 6d 65 20 6f 66 20 74 68 | 65 20 55 6e 69 76 65 72 |me of th|e Univer|
|00005240| 73 69 74 79 20 6e 6f 72 | 20 74 68 65 20 6e 61 6d |sity nor| the nam|
|00005250| 65 73 20 6f 66 20 69 74 | 73 0a 58 20 2a 20 63 6f |es of it|s.X * co|
|00005260| 6e 74 72 69 62 75 74 6f | 72 73 20 6d 61 79 20 62 |ntributo|rs may b|
|00005270| 65 20 75 73 65 64 20 74 | 6f 20 65 6e 64 6f 72 73 |e used t|o endors|
|00005280| 65 20 6f 72 20 70 72 6f | 6d 6f 74 65 20 70 72 6f |e or pro|mote pro|
|00005290| 64 75 63 74 73 20 64 65 | 72 69 76 65 64 0a 58 20 |ducts de|rived.X |
|000052a0| 2a 20 66 72 6f 6d 20 74 | 68 69 73 20 73 6f 66 74 |* from t|his soft|
|000052b0| 77 61 72 65 20 77 69 74 | 68 6f 75 74 20 73 70 65 |ware wit|hout spe|
|000052c0| 63 69 66 69 63 20 70 72 | 69 6f 72 20 77 72 69 74 |cific pr|ior writ|
|000052d0| 74 65 6e 20 70 65 72 6d | 69 73 73 69 6f 6e 2e 0a |ten perm|ission..|
|000052e0| 58 20 2a 20 54 48 49 53 | 20 53 4f 46 54 57 41 52 |X * THIS| SOFTWAR|
|000052f0| 45 20 49 53 20 50 52 4f | 56 49 44 45 44 20 60 60 |E IS PRO|VIDED ``|
|00005300| 41 53 20 49 53 27 27 20 | 41 4e 44 20 57 49 54 48 |AS IS'' |AND WITH|
|00005310| 4f 55 54 20 41 4e 59 20 | 45 58 50 52 45 53 53 20 |OUT ANY |EXPRESS |
|00005320| 4f 52 0a 58 20 2a 20 49 | 4d 50 4c 49 45 44 20 57 |OR.X * I|MPLIED W|
|00005330| 41 52 52 41 4e 54 49 45 | 53 2c 20 49 4e 43 4c 55 |ARRANTIE|S, INCLU|
|00005340| 44 49 4e 47 2c 20 57 49 | 54 48 4f 55 54 20 4c 49 |DING, WI|THOUT LI|
|00005350| 4d 49 54 41 54 49 4f 4e | 2c 20 54 48 45 20 49 4d |MITATION|, THE IM|
|00005360| 50 4c 49 45 44 0a 58 20 | 2a 20 57 41 52 52 41 4e |PLIED.X |* WARRAN|
|00005370| 54 49 45 53 20 4f 46 20 | 4d 45 52 43 48 41 4e 54 |TIES OF |MERCHANT|
|00005380| 41 42 49 4c 49 54 59 20 | 41 4e 44 20 46 49 54 4e |ABILITY |AND FITN|
|00005390| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|000053a0| 55 4c 41 52 20 50 55 52 | 50 4f 53 45 2e 0a 58 20 |ULAR PUR|POSE..X |
|000053b0| 2a 0a 58 20 2a 09 40 28 | 23 29 6c 73 2e 68 09 35 |*.X *.@(|#)ls.h.5|
|000053c0| 2e 31 30 20 28 42 65 72 | 6b 65 6c 65 79 29 20 34 |.10 (Ber|keley) 4|
|000053d0| 2f 38 2f 39 30 0a 58 20 | 2a 2f 0a 58 0a 74 79 70 |/8/90.X |*/.X.typ|
|000053e0| 65 64 65 66 20 73 74 72 | 75 63 74 20 5f 6c 73 73 |edef str|uct _lss|
|000053f0| 74 72 75 63 74 20 7b 0a | 58 09 63 68 61 72 20 2a |truct {.|X.char *|
|00005400| 6e 61 6d 65 3b 09 09 09 | 2f 2a 20 66 69 6c 65 20 |name;...|/* file |
|00005410| 6e 61 6d 65 20 2a 2f 0a | 58 09 69 6e 74 20 6c 65 |name */.|X.int le|
|00005420| 6e 3b 09 09 09 2f 2a 20 | 66 69 6c 65 20 6e 61 6d |n;.../* |file nam|
|00005430| 65 20 6c 65 6e 67 74 68 | 20 2a 2f 0a 58 09 73 74 |e length| */.X.st|
|00005440| 72 75 63 74 20 73 74 61 | 74 20 6c 73 74 61 74 3b |ruct sta|t lstat;|
|00005450| 09 09 2f 2a 20 6c 73 74 | 61 74 28 32 29 20 66 6f |../* lst|at(2) fo|
|00005460| 72 20 66 69 6c 65 20 2a | 2f 0a 58 7d 20 4c 53 3b |r file *|/.X} LS;|
|00005470| 0a 58 0a 58 2f 2a 0a 58 | 20 2a 20 6f 76 65 72 6c |.X.X/*.X| * overl|
|00005480| 6f 61 64 20 2d 2d 20 77 | 65 20 70 72 6f 62 61 62 |oad -- w|e probab|
|00005490| 6c 79 20 68 61 76 65 20 | 74 6f 20 73 61 76 65 20 |ly have |to save |
|000054a0| 62 6c 6f 63 6b 73 20 61 | 6e 64 2f 6f 72 20 6d 61 |blocks a|nd/or ma|
|000054b0| 78 6c 65 6e 20 77 69 74 | 68 20 74 68 65 20 6c 73 |xlen wit|h the ls|
|000054c0| 74 61 74 0a 58 20 2a 20 | 61 72 72 61 79 2c 20 73 |tat.X * |array, s|
|000054d0| 6f 20 74 61 62 64 69 72 | 28 29 20 73 74 75 66 66 |o tabdir|() stuff|
|000054e0| 73 20 69 74 20 69 6e 74 | 6f 20 75 6e 75 73 65 64 |s it int|o unused|
|000054f0| 20 66 69 65 6c 64 73 20 | 69 6e 20 74 68 65 20 66 | fields |in the f|
|00005500| 69 72 73 74 20 73 74 61 | 74 20 73 74 72 75 63 74 |irst sta|t struct|
|00005510| 75 72 65 2e 0a 58 20 2a | 20 49 66 20 74 68 65 72 |ure..X *| If ther|
|00005520| 65 27 73 20 65 76 65 72 | 20 61 20 74 79 70 65 20 |e's ever| a type |
|00005530| 6c 61 72 67 65 72 20 74 | 68 61 6e 20 75 5f 6c 6f |larger t|han u_lo|
|00005540| 6e 67 2c 20 66 69 78 20 | 74 68 69 73 2e 20 20 41 |ng, fix |this. A|
|00005550| 6e 79 20 63 61 6c 6c 73 | 20 74 6f 20 71 73 6f 72 |ny calls| to qsor|
|00005560| 74 0a 58 20 2a 20 6d 75 | 73 74 20 73 61 76 65 20 |t.X * mu|st save |
|00005570| 61 6e 64 20 72 65 73 74 | 6f 72 65 20 74 68 65 20 |and rest|ore the |
|00005580| 76 61 6c 75 65 73 2e 0a | 58 20 2a 2f 0a 58 23 64 |values..|X */.X#d|
|00005590| 65 66 69 6e 65 09 73 74 | 5f 62 74 6f 74 61 6c 09 |efine.st|_btotal.|
|000055a0| 73 74 5f 64 65 76 0a 58 | 23 64 65 66 69 6e 65 09 |st_dev.X|#define.|
|000055b0| 73 74 5f 6d 61 78 6c 65 | 6e 09 73 74 5f 72 64 65 |st_maxle|n.st_rde|
|000055c0| 76 0a 58 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 65 |v.X.exte|rn int e|
|000055d0| 72 72 6e 6f 3b 0a 58 0a | 65 78 74 65 72 6e 20 69 |rrno;.X.|extern i|
|000055e0| 6e 74 20 66 5f 61 63 63 | 65 73 73 74 69 6d 65 3b |nt f_acc|esstime;|
|000055f0| 09 2f 2a 20 75 73 65 20 | 74 69 6d 65 20 6f 66 20 |./* use |time of |
|00005600| 6c 61 73 74 20 61 63 63 | 65 73 73 20 2a 2f 0a 65 |last acc|ess */.e|
|00005610| 78 74 65 72 6e 20 69 6e | 74 20 66 5f 67 72 6f 75 |xtern in|t f_grou|
|00005620| 70 3b 09 09 2f 2a 20 73 | 68 6f 77 20 67 72 6f 75 |p;../* s|how grou|
|00005630| 70 20 6f 77 6e 65 72 73 | 68 69 70 20 6f 66 20 61 |p owners|hip of a|
|00005640| 20 66 69 6c 65 20 2a 2f | 0a 65 78 74 65 72 6e 20 | file */|.extern |
|00005650| 69 6e 74 20 66 5f 69 6e | 6f 64 65 3b 09 09 2f 2a |int f_in|ode;../*|
|00005660| 20 70 72 69 6e 74 20 69 | 6e 6f 64 65 20 2a 2f 0a | print i|node */.|
|00005670| 65 78 74 65 72 6e 20 69 | 6e 74 20 66 5f 6b 62 6c |extern i|nt f_kbl|
|00005680| 6f 63 6b 73 3b 09 09 2f | 2a 20 70 72 69 6e 74 20 |ocks;../|* print |
|00005690| 73 69 7a 65 20 69 6e 20 | 6b 69 6c 6f 62 79 74 65 |size in |kilobyte|
|000056a0| 73 20 2a 2f 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 |s */.ext|ern int |
|000056b0| 66 5f 6c 6f 6e 67 66 6f | 72 6d 3b 09 09 2f 2a 20 |f_longfo|rm;../* |
|000056c0| 6c 6f 6e 67 20 6c 69 73 | 74 69 6e 67 20 66 6f 72 |long lis|ting for|
|000056d0| 6d 61 74 20 2a 2f 0a 65 | 78 74 65 72 6e 20 69 6e |mat */.e|xtern in|
|000056e0| 74 20 66 5f 73 69 6e 67 | 6c 65 63 6f 6c 3b 09 09 |t f_sing|lecol;..|
|000056f0| 2f 2a 20 75 73 65 20 73 | 69 6e 67 6c 65 20 63 6f |/* use s|ingle co|
|00005700| 6c 75 6d 6e 20 6f 75 74 | 70 75 74 20 2a 2f 0a 65 |lumn out|put */.e|
|00005710| 78 74 65 72 6e 20 69 6e | 74 20 66 5f 73 69 7a 65 |xtern in|t f_size|
|00005720| 3b 09 09 2f 2a 20 6c 69 | 73 74 20 73 69 7a 65 20 |;../* li|st size |
|00005730| 69 6e 20 73 68 6f 72 74 | 20 6c 69 73 74 69 6e 67 |in short| listing|
|00005740| 20 2a 2f 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 66 | */.exte|rn int f|
|00005750| 5f 73 74 61 74 75 73 74 | 69 6d 65 3b 09 2f 2a 20 |_statust|ime;./* |
|00005760| 75 73 65 20 74 69 6d 65 | 20 6f 66 20 6c 61 73 74 |use time| of last|
|00005770| 20 6d 6f 64 65 20 63 68 | 61 6e 67 65 20 2a 2f 0a | mode ch|ange */.|
|00005780| 65 78 74 65 72 6e 20 69 | 6e 74 20 66 5f 74 6f 74 |extern i|nt f_tot|
|00005790| 61 6c 3b 09 09 2f 2a 20 | 69 66 20 70 72 65 63 65 |al;../* |if prece|
|000057a0| 64 65 20 77 69 74 68 20 | 22 74 6f 74 61 6c 22 20 |de with |"total" |
|000057b0| 6c 69 6e 65 20 2a 2f 0a | 65 78 74 65 72 6e 20 69 |line */.|extern i|
|000057c0| 6e 74 20 66 5f 74 79 70 | 65 3b 09 09 2f 2a 20 61 |nt f_typ|e;../* a|
|000057d0| 64 64 20 74 79 70 65 20 | 63 68 61 72 61 63 74 65 |dd type |characte|
|000057e0| 72 20 66 6f 72 20 6e 6f | 6e 2d 72 65 67 75 6c 61 |r for no|n-regula|
|000057f0| 72 20 66 69 6c 65 73 20 | 2a 2f 0a 45 4e 44 5f 4f |r files |*/.END_O|
|00005800| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 32 |F_FILE.i|f test 2|
|00005810| 31 37 35 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |175 -ne |`wc -c <|
|00005820| 27 62 73 64 5f 73 72 63 | 2f 6c 73 2e 68 27 60 3b |'bsd_src|/ls.h'`;|
|00005830| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00005840| 68 61 72 3a 20 5c 22 27 | 62 73 64 5f 73 72 63 2f |har: \"'|bsd_src/|
|00005850| 6c 73 2e 68 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ls.h'\" |unpacked|
|00005860| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00005870| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 62 |!.fi.# e|nd of 'b|
|00005880| 73 64 5f 73 72 63 2f 6c | 73 2e 68 27 0a 66 69 0a |sd_src/l|s.h'.fi.|
|00005890| 69 66 20 74 65 73 74 20 | 2d 66 20 27 62 73 64 5f |if test |-f 'bsd_|
|000058a0| 73 72 63 2f 74 77 65 61 | 6b 2e 68 27 20 2d 61 20 |src/twea|k.h' -a |
|000058b0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000058c0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000058d0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000058e0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000058f0| 6c 65 20 5c 22 27 62 73 | 64 5f 73 72 63 2f 74 77 |le \"'bs|d_src/tw|
|00005900| 65 61 6b 2e 68 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |eak.h'\"|.else.ec|
|00005910| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00005920| 69 6e 67 20 5c 22 27 62 | 73 64 5f 73 72 63 2f 74 |ing \"'b|sd_src/t|
|00005930| 77 65 61 6b 2e 68 27 5c | 22 20 5c 28 36 38 31 20 |weak.h'\|" \(681 |
|00005940| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00005950| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 62 73 64 5f | "s/^X//|" >'bsd_|
|00005960| 73 72 63 2f 74 77 65 61 | 6b 2e 68 27 20 3c 3c 27 |src/twea|k.h' <<'|
|00005970| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 20 20 |END_OF_F|ILE'.X |
|00005980| 20 20 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | /*****|********|
|00005990| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000059a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000059b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000059c0| 2a 2a 2a 2a 2a 2a 2a 2a | 5c 0a 58 20 20 20 20 2a |********|\.X *|
|000059d0| 20 20 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 | Copyri|ght (c) |
|000059e0| 31 39 39 31 20 62 79 20 | 57 65 6e 2d 4b 69 6e 67 |1991 by |Wen-King|
|000059f0| 20 53 75 20 28 77 65 6e | 2d 6b 69 6e 67 40 76 6c | Su (wen|-king@vl|
|00005a00| 73 69 2e 63 73 2e 63 61 | 6c 74 65 63 68 2e 65 64 |si.cs.ca|ltech.ed|
|00005a10| 75 29 20 20 20 2a 0a 58 | 20 20 20 20 2a 20 20 20 |u) *.X| * |
|00005a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a60| 20 20 2a 0a 58 20 20 20 | 20 2a 20 20 59 6f 75 20 | *.X | * You |
|00005a70| 6d 61 79 20 63 6f 70 79 | 20 6f 72 20 6d 6f 64 69 |may copy| or modi|
|00005a80| 66 79 20 74 68 69 73 20 | 66 69 6c 65 20 69 6e 20 |fy this |file in |
|00005a90| 61 6e 79 20 6d 61 6e 6e | 65 72 20 79 6f 75 20 77 |any mann|er you w|
|00005aa0| 69 73 68 2c 20 70 72 6f | 76 69 64 65 64 20 20 2a |ish, pro|vided *|
|00005ab0| 0a 58 20 20 20 20 2a 20 | 20 74 68 61 74 20 74 68 |.X * | that th|
|00005ac0| 69 73 20 6e 6f 74 69 63 | 65 20 69 73 20 61 6c 77 |is notic|e is alw|
|00005ad0| 61 79 73 20 69 6e 63 6c | 75 64 65 64 2c 20 61 6e |ays incl|uded, an|
|00005ae0| 64 20 74 68 61 74 20 79 | 6f 75 20 68 6f 6c 64 20 |d that y|ou hold |
|00005af0| 74 68 65 20 61 75 74 68 | 6f 72 20 20 2a 0a 58 20 |the auth|or *.X |
|00005b00| 20 20 20 2a 20 20 68 61 | 72 6d 6c 65 73 73 20 66 | * ha|rmless f|
|00005b10| 6f 72 20 61 6e 79 20 6c | 6f 73 73 20 6f 72 20 64 |or any l|oss or d|
|00005b20| 61 6d 61 67 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |amage re|sulting |
|00005b30| 66 72 6f 6d 20 74 68 65 | 20 69 6e 73 74 61 6c 6c |from the| install|
|00005b40| 61 74 69 6f 6e 20 6f 72 | 20 2a 0a 58 20 20 20 20 |ation or| *.X |
|00005b50| 2a 20 20 75 73 65 20 6f | 66 20 74 68 69 73 20 73 |* use o|f this s|
|00005b60| 6f 66 74 77 61 72 65 2e | 20 20 20 20 20 20 20 20 |oftware.| |
|00005b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b90| 20 20 20 20 20 20 2a 0a | 58 20 20 20 20 5c 2a 2a | *.|X \**|
|00005ba0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005bb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005bc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005bd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005be0| 2a 2a 2a 2f 0a 58 0a 58 | 2f 2a 20 23 64 65 66 69 |***/.X.X|/* #defi|
|00005bf0| 6e 65 20 64 5f 69 6e 6f | 20 64 5f 66 69 6c 65 6e |ne d_ino| d_filen|
|00005c00| 6f 09 09 2f 2a 20 2a 2f | 0a 58 2f 2a 20 23 64 65 |o../* */|.X/* #de|
|00005c10| 66 69 6e 65 20 6d 6f 64 | 65 5f 74 20 75 6e 73 69 |fine mod|e_t unsi|
|00005c20| 67 6e 65 64 20 73 68 6f | 72 74 09 2f 2a 20 2a 2f |gned sho|rt./* */|
|00005c30| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|00005c40| 74 65 73 74 20 36 38 31 | 20 2d 6e 65 20 60 77 63 |test 681| -ne `wc|
|00005c50| 20 2d 63 20 3c 27 62 73 | 64 5f 73 72 63 2f 74 77 | -c <'bs|d_src/tw|
|00005c60| 65 61 6b 2e 68 27 60 3b | 20 74 68 65 6e 0a 20 20 |eak.h'`;| then. |
|00005c70| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00005c80| 62 73 64 5f 73 72 63 2f | 74 77 65 61 6b 2e 68 27 |bsd_src/|tweak.h'|
|00005c90| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00005ca0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00005cb0| 23 20 65 6e 64 20 6f 66 | 20 27 62 73 64 5f 73 72 |# end of| 'bsd_sr|
|00005cc0| 63 2f 74 77 65 61 6b 2e | 68 27 0a 66 69 0a 69 66 |c/tweak.|h'.fi.if|
|00005cd0| 20 74 65 73 74 20 2d 66 | 20 27 62 73 64 5f 73 72 | test -f| 'bsd_sr|
|00005ce0| 63 2f 75 74 69 6c 2e 63 | 27 20 2d 61 20 22 24 7b |c/util.c|' -a "${|
|00005cf0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00005d00| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00005d10| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00005d20| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00005d30| 5c 22 27 62 73 64 5f 73 | 72 63 2f 75 74 69 6c 2e |\"'bsd_s|rc/util.|
|00005d40| 63 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |c'\".els|e.echo s|
|00005d50| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00005d60| 5c 22 27 62 73 64 5f 73 | 72 63 2f 75 74 69 6c 2e |\"'bsd_s|rc/util.|
|00005d70| 63 27 5c 22 20 5c 28 31 | 37 33 39 20 63 68 61 72 |c'\" \(1|739 char|
|00005d80| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00005d90| 5e 58 2f 2f 22 20 3e 27 | 62 73 64 5f 73 72 63 2f |^X//" >'|bsd_src/|
|00005da0| 75 74 69 6c 2e 63 27 20 | 3c 3c 27 45 4e 44 5f 4f |util.c' |<<'END_O|
|00005db0| 46 5f 46 49 4c 45 27 0a | 58 2f 2a 0a 58 20 2a 20 |F_FILE'.|X/*.X * |
|00005dc0| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 31 39 |Copyrigh|t (c) 19|
|00005dd0| 38 39 20 54 68 65 20 52 | 65 67 65 6e 74 73 20 6f |89 The R|egents o|
|00005de0| 66 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |f the Un|iversity|
|00005df0| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 0a | of Cali|fornia..|
|00005e00| 58 20 2a 20 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |X * All |rights r|
|00005e10| 65 73 65 72 76 65 64 2e | 0a 58 20 2a 0a 58 20 2a |eserved.|.X *.X *|
|00005e20| 20 54 68 69 73 20 63 6f | 64 65 20 69 73 20 64 65 | This co|de is de|
|00005e30| 72 69 76 65 64 20 66 72 | 6f 6d 20 73 6f 66 74 77 |rived fr|om softw|
|00005e40| 61 72 65 20 63 6f 6e 74 | 72 69 62 75 74 65 64 20 |are cont|ributed |
|00005e50| 74 6f 20 42 65 72 6b 65 | 6c 65 79 20 62 79 0a 58 |to Berke|ley by.X|
|00005e60| 20 2a 20 4d 69 63 68 61 | 65 6c 20 46 69 73 63 68 | * Micha|el Fisch|
|00005e70| 62 65 69 6e 2e 0a 58 20 | 2a 0a 58 20 2a 20 52 65 |bein..X |*.X * Re|
|00005e80| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 61 6e 64 |distribu|tion and|
|00005e90| 20 75 73 65 20 69 6e 20 | 73 6f 75 72 63 65 20 61 | use in |source a|
|00005ea0| 6e 64 20 62 69 6e 61 72 | 79 20 66 6f 72 6d 73 20 |nd binar|y forms |
|00005eb0| 61 72 65 20 70 65 72 6d | 69 74 74 65 64 0a 58 20 |are perm|itted.X |
|00005ec0| 2a 20 70 72 6f 76 69 64 | 65 64 20 74 68 61 74 3a |* provid|ed that:|
|00005ed0| 20 28 31 29 20 73 6f 75 | 72 63 65 20 64 69 73 74 | (1) sou|rce dist|
|00005ee0| 72 69 62 75 74 69 6f 6e | 73 20 72 65 74 61 69 6e |ribution|s retain|
|00005ef0| 20 74 68 69 73 20 65 6e | 74 69 72 65 20 63 6f 70 | this en|tire cop|
|00005f00| 79 72 69 67 68 74 0a 58 | 20 2a 20 6e 6f 74 69 63 |yright.X| * notic|
|00005f10| 65 20 61 6e 64 20 63 6f | 6d 6d 65 6e 74 2c 20 61 |e and co|mment, a|
|00005f20| 6e 64 20 28 32 29 20 64 | 69 73 74 72 69 62 75 74 |nd (2) d|istribut|
|00005f30| 69 6f 6e 73 20 69 6e 63 | 6c 75 64 69 6e 67 20 62 |ions inc|luding b|
|00005f40| 69 6e 61 72 69 65 73 20 | 64 69 73 70 6c 61 79 0a |inaries |display.|
|00005f50| 58 20 2a 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |X * the |followin|
|00005f60| 67 20 61 63 6b 6e 6f 77 | 6c 65 64 67 65 6d 65 6e |g acknow|ledgemen|
|00005f70| 74 3a 20 20 60 60 54 68 | 69 73 20 70 72 6f 64 75 |t: ``Th|is produ|
|00005f80| 63 74 20 69 6e 63 6c 75 | 64 65 73 20 73 6f 66 74 |ct inclu|des soft|
|00005f90| 77 61 72 65 0a 58 20 2a | 20 64 65 76 65 6c 6f 70 |ware.X *| develop|
|00005fa0| 65 64 20 62 79 20 74 68 | 65 20 55 6e 69 76 65 72 |ed by th|e Univer|
|00005fb0| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|00005fc0| 69 61 2c 20 42 65 72 6b | 65 6c 65 79 20 61 6e 64 |ia, Berk|eley and|
|00005fd0| 20 69 74 73 20 63 6f 6e | 74 72 69 62 75 74 6f 72 | its con|tributor|
|00005fe0| 73 27 27 0a 58 20 2a 20 | 69 6e 20 74 68 65 20 64 |s''.X * |in the d|
|00005ff0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 72 20 |ocumenta|tion or |
|00006000| 6f 74 68 65 72 20 6d 61 | 74 65 72 69 61 6c 73 20 |other ma|terials |
|00006010| 70 72 6f 76 69 64 65 64 | 20 77 69 74 68 20 74 68 |provided| with th|
|00006020| 65 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 0a 58 |e distri|bution.X|
|00006030| 20 2a 20 61 6e 64 20 69 | 6e 20 61 6c 6c 20 61 64 | * and i|n all ad|
|00006040| 76 65 72 74 69 73 69 6e | 67 20 6d 61 74 65 72 69 |vertisin|g materi|
|00006050| 61 6c 73 20 6d 65 6e 74 | 69 6f 6e 69 6e 67 20 66 |als ment|ioning f|
|00006060| 65 61 74 75 72 65 73 20 | 6f 72 20 75 73 65 20 6f |eatures |or use o|
|00006070| 66 20 74 68 69 73 0a 58 | 20 2a 20 73 6f 66 74 77 |f this.X| * softw|
|00006080| 61 72 65 2e 20 4e 65 69 | 74 68 65 72 20 74 68 65 |are. Nei|ther the|
|00006090| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 55 6e 69 | name of| the Uni|
|000060a0| 76 65 72 73 69 74 79 20 | 6e 6f 72 20 74 68 65 20 |versity |nor the |
|000060b0| 6e 61 6d 65 73 20 6f 66 | 20 69 74 73 0a 58 20 2a |names of| its.X *|
|000060c0| 20 63 6f 6e 74 72 69 62 | 75 74 6f 72 73 20 6d 61 | contrib|utors ma|
|000060d0| 79 20 62 65 20 75 73 65 | 64 20 74 6f 20 65 6e 64 |y be use|d to end|
|000060e0| 6f 72 73 65 20 6f 72 20 | 70 72 6f 6d 6f 74 65 20 |orse or |promote |
|000060f0| 70 72 6f 64 75 63 74 73 | 20 64 65 72 69 76 65 64 |products| derived|
|00006100| 0a 58 20 2a 20 66 72 6f | 6d 20 74 68 69 73 20 73 |.X * fro|m this s|
|00006110| 6f 66 74 77 61 72 65 20 | 77 69 74 68 6f 75 74 20 |oftware |without |
|00006120| 73 70 65 63 69 66 69 63 | 20 70 72 69 6f 72 20 77 |specific| prior w|
|00006130| 72 69 74 74 65 6e 20 70 | 65 72 6d 69 73 73 69 6f |ritten p|ermissio|
|00006140| 6e 2e 0a 58 20 2a 20 54 | 48 49 53 20 53 4f 46 54 |n..X * T|HIS SOFT|
|00006150| 57 41 52 45 20 49 53 20 | 50 52 4f 56 49 44 45 44 |WARE IS |PROVIDED|
|00006160| 20 60 60 41 53 20 49 53 | 27 27 20 41 4e 44 20 57 | ``AS IS|'' AND W|
|00006170| 49 54 48 4f 55 54 20 41 | 4e 59 20 45 58 50 52 45 |ITHOUT A|NY EXPRE|
|00006180| 53 53 20 4f 52 0a 58 20 | 2a 20 49 4d 50 4c 49 45 |SS OR.X |* IMPLIE|
|00006190| 44 20 57 41 52 52 41 4e | 54 49 45 53 2c 20 49 4e |D WARRAN|TIES, IN|
|000061a0| 43 4c 55 44 49 4e 47 2c | 20 57 49 54 48 4f 55 54 |CLUDING,| WITHOUT|
|000061b0| 20 4c 49 4d 49 54 41 54 | 49 4f 4e 2c 20 54 48 45 | LIMITAT|ION, THE|
|000061c0| 20 49 4d 50 4c 49 45 44 | 0a 58 20 2a 20 57 41 52 | IMPLIED|.X * WAR|
|000061d0| 52 41 4e 54 49 45 53 20 | 4f 46 20 4d 45 52 43 48 |RANTIES |OF MERCH|
|000061e0| 41 4e 54 41 42 49 4c 49 | 54 59 20 41 4e 44 20 46 |ANTABILI|TY AND F|
|000061f0| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00006200| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00006210| 0a 58 20 2a 2f 0a 58 0a | 58 23 69 66 6e 64 65 66 |.X */.X.|X#ifndef|
|00006220| 20 6c 69 6e 74 0a 73 74 | 61 74 69 63 20 63 68 61 | lint.st|atic cha|
|00006230| 72 20 73 63 63 73 69 64 | 5b 5d 20 3d 20 22 40 28 |r sccsid|[] = "@(|
|00006240| 23 29 75 74 69 6c 2e 63 | 09 35 2e 37 20 28 42 65 |#)util.c|.5.7 (Be|
|00006250| 72 6b 65 6c 65 79 29 20 | 34 2f 38 2f 39 30 22 3b |rkeley) |4/8/90";|
|00006260| 0a 58 23 65 6e 64 69 66 | 20 2f 2a 20 6e 6f 74 20 |.X#endif| /* not |
|00006270| 6c 69 6e 74 20 2a 2f 0a | 58 0a 58 23 69 6e 63 6c |lint */.|X.X#incl|
|00006280| 75 64 65 20 3c 73 79 73 | 2f 74 79 70 65 73 2e 68 |ude <sys|/types.h|
|00006290| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |>.X#incl|ude <std|
|000062a0| 69 6f 2e 68 3e 0a 58 23 | 69 6e 63 6c 75 64 65 20 |io.h>.X#|include |
|000062b0| 3c 63 74 79 70 65 2e 68 | 3e 0a 58 23 69 6e 63 6c |<ctype.h|>.X#incl|
|000062c0| 75 64 65 20 22 74 77 65 | 61 6b 2e 68 22 0a 58 0a |ude "twe|ak.h".X.|
|000062d0| 70 72 63 6f 70 79 28 73 | 72 63 2c 20 64 65 73 74 |prcopy(s|rc, dest|
|000062e0| 2c 20 6c 65 6e 29 0a 58 | 09 72 65 67 69 73 74 65 |, len).X|.registe|
|000062f0| 72 20 63 68 61 72 20 2a | 73 72 63 2c 20 2a 64 65 |r char *|src, *de|
|00006300| 73 74 3b 0a 58 09 72 65 | 67 69 73 74 65 72 20 69 |st;.X.re|gister i|
|00006310| 6e 74 20 6c 65 6e 3b 0a | 58 7b 0a 58 09 72 65 67 |nt len;.|X{.X.reg|
|00006320| 69 73 74 65 72 20 69 6e | 74 20 63 68 3b 0a 58 0a |ister in|t ch;.X.|
|00006330| 58 09 77 68 69 6c 65 28 | 6c 65 6e 2d 2d 29 20 7b |X.while(|len--) {|
|00006340| 0a 58 09 09 63 68 20 3d | 20 2a 73 72 63 2b 2b 3b |.X..ch =| *src++;|
|00006350| 0a 58 09 09 2a 64 65 73 | 74 2b 2b 20 3d 20 69 73 |.X..*des|t++ = is|
|00006360| 70 72 69 6e 74 28 63 68 | 29 20 3f 20 63 68 20 3a |print(ch|) ? ch :|
|00006370| 20 27 3f 27 3b 0a 58 09 | 7d 0a 58 7d 0a 58 0a 63 | '?';.X.|}.X}.X.c|
|00006380| 68 61 72 0a 58 2a 65 6d | 61 6c 6c 6f 63 28 73 69 |har.X*em|alloc(si|
|00006390| 7a 65 29 0a 58 09 75 6e | 73 69 67 6e 65 64 20 69 |ze).X.un|signed i|
|000063a0| 6e 74 20 73 69 7a 65 3b | 0a 58 7b 0a 58 09 63 68 |nt size;|.X{.X.ch|
|000063b0| 61 72 20 2a 72 65 74 76 | 61 6c 2c 20 2a 6d 61 6c |ar *retv|al, *mal|
|000063c0| 6c 6f 63 28 29 3b 0a 58 | 0a 58 09 69 66 20 28 21 |loc();.X|.X.if (!|
|000063d0| 28 72 65 74 76 61 6c 20 | 3d 20 6d 61 6c 6c 6f 63 |(retval |= malloc|
|000063e0| 28 73 69 7a 65 29 29 29 | 0a 58 09 09 6e 6f 6d 65 |(size)))|.X..nome|
|000063f0| 6d 28 29 3b 0a 58 09 72 | 65 74 75 72 6e 28 72 65 |m();.X.r|eturn(re|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.