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 20 76 32 34 69 30 31 |Subject:| v24i01|
|00000010| 30 3a 20 20 52 43 53 20 | 73 6f 75 72 63 65 20 63 |0: RCS |source c|
|00000020| 6f 6e 74 72 6f 6c 20 73 | 79 73 74 65 6d 2c 20 50 |ontrol s|ystem, P|
|00000030| 61 72 74 31 30 2f 31 32 | 0a 4e 65 77 73 67 72 6f |art10/12|.Newsgro|
|00000040| 75 70 73 3a 20 63 6f 6d | 70 2e 73 6f 75 72 63 65 |ups: com|p.source|
|00000050| 73 2e 75 6e 69 78 0a 41 | 70 70 72 6f 76 65 64 3a |s.unix.A|pproved:|
|00000060| 20 72 73 61 6c 7a 40 75 | 75 6e 65 74 2e 55 55 2e | rsalz@u|unet.UU.|
|00000070| 4e 45 54 0a 58 2d 43 68 | 65 63 6b 73 75 6d 2d 53 |NET.X-Ch|ecksum-S|
|00000080| 6e 65 66 72 75 3a 20 31 | 64 31 38 31 30 31 37 20 |nefru: 1|d181017 |
|00000090| 31 63 30 66 64 64 33 37 | 20 33 31 37 34 63 61 36 |1c0fdd37| 3174ca6|
|000000a0| 65 20 32 30 31 61 65 31 | 33 33 0a 0a 53 75 62 6d |e 201ae1|33..Subm|
|000000b0| 69 74 74 65 64 2d 62 79 | 3a 20 41 64 61 6d 20 48 |itted-by|: Adam H|
|000000c0| 61 6d 6d 65 72 20 3c 68 | 61 6d 6d 65 72 40 63 73 |ammer <h|ammer@cs|
|000000d0| 2e 70 75 72 64 75 65 2e | 65 64 75 3e 0a 50 6f 73 |.purdue.|edu>.Pos|
|000000e0| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|000000f0| 75 6d 65 20 32 34 2c 20 | 49 73 73 75 65 20 31 30 |ume 24, |Issue 10|
|00000100| 0a 41 72 63 68 69 76 65 | 2d 6e 61 6d 65 3a 20 72 |.Archive|-name: r|
|00000110| 63 73 2f 70 61 72 74 31 | 30 0a 0a 23 21 20 2f 62 |cs/part1|0..#! /b|
|00000120| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|00000130| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2e |a shell |archive.|
|00000140| 20 20 52 65 6d 6f 76 65 | 20 61 6e 79 74 68 69 6e | Remove| anythin|
|00000150| 67 20 62 65 66 6f 72 65 | 20 74 68 69 73 20 6c 69 |g before| this li|
|00000160| 6e 65 2c 20 74 68 65 6e | 20 66 65 65 64 20 69 74 |ne, then| feed it|
|00000170| 0a 23 20 69 6e 74 6f 20 | 61 20 73 68 65 6c 6c 20 |.# into |a shell |
|00000180| 76 69 61 20 22 73 68 20 | 66 69 6c 65 22 20 6f 72 |via "sh |file" or|
|00000190| 20 73 69 6d 69 6c 61 72 | 2e 20 20 54 6f 20 6f 76 | similar|. To ov|
|000001a0| 65 72 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |erwrite |existing|
|000001b0| 20 66 69 6c 65 73 2c 0a | 23 20 74 79 70 65 20 22 | files,.|# type "|
|000001c0| 73 68 20 66 69 6c 65 20 | 2d 63 22 2e 0a 23 20 54 |sh file |-c"..# T|
|000001d0| 68 65 20 74 6f 6f 6c 20 | 74 68 61 74 20 67 65 6e |he tool |that gen|
|000001e0| 65 72 61 74 65 64 20 74 | 68 69 73 20 61 70 70 65 |erated t|his appe|
|000001f0| 61 72 65 64 20 69 6e 20 | 74 68 65 20 63 6f 6d 70 |ared in |the comp|
|00000200| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 20 6e 65 |.sources|.unix ne|
|00000210| 77 73 67 72 6f 75 70 3b | 0a 23 20 73 65 6e 64 20 |wsgroup;|.# send |
|00000220| 6d 61 69 6c 20 74 6f 20 | 63 6f 6d 70 2d 73 6f 75 |mail to |comp-sou|
|00000230| 72 63 65 73 2d 75 6e 69 | 78 40 75 75 6e 65 74 2e |rces-uni|x@uunet.|
|00000240| 75 75 2e 6e 65 74 20 69 | 66 20 79 6f 75 20 77 61 |uu.net i|f you wa|
|00000250| 6e 74 20 74 68 61 74 20 | 74 6f 6f 6c 2e 0a 23 20 |nt that |tool..# |
|00000260| 43 6f 6e 74 65 6e 74 73 | 3a 20 20 6d 61 6e 2f 72 |Contents|: man/r|
|00000270| 63 73 69 6e 74 72 6f 2e | 31 20 72 63 73 5f 66 75 |csintro.|1 rcs_fu|
|00000280| 6e 63 2e 6d 73 20 73 72 | 63 2f 6d 61 6b 65 74 69 |nc.ms sr|c/maketi|
|00000290| 6d 65 2e 63 20 73 72 63 | 2f 72 63 73 64 69 66 66 |me.c src|/rcsdiff|
|000002a0| 2e 63 0a 23 20 20 20 73 | 72 63 2f 72 63 73 6b 65 |.c.# s|rc/rcske|
|000002b0| 65 70 2e 63 20 73 72 63 | 2f 72 63 73 6d 65 72 67 |ep.c src|/rcsmerg|
|000002c0| 65 2e 63 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |e.c.# Wr|apped by|
|000002d0| 20 72 73 61 6c 7a 40 6c | 69 74 63 68 69 2e 62 62 | rsalz@l|itchi.bb|
|000002e0| 6e 2e 63 6f 6d 20 6f 6e | 20 54 68 75 20 46 65 62 |n.com on| Thu Feb|
|000002f0| 20 32 31 20 31 34 3a 33 | 37 3a 30 39 20 31 39 39 | 21 14:3|7:09 199|
|00000300| 31 0a 50 41 54 48 3d 2f | 62 69 6e 3a 2f 75 73 72 |1.PATH=/|bin:/usr|
|00000310| 2f 62 69 6e 3a 2f 75 73 | 72 2f 75 63 62 20 3b 20 |/bin:/us|r/ucb ; |
|00000320| 65 78 70 6f 72 74 20 50 | 41 54 48 0a 65 63 68 6f |export P|ATH.echo|
|00000330| 20 49 66 20 74 68 69 73 | 20 61 72 63 68 69 76 65 | If this| archive|
|00000340| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2c 20 79 6f | is comp|lete, yo|
|00000350| 75 20 77 69 6c 6c 20 73 | 65 65 20 74 68 65 20 66 |u will s|ee the f|
|00000360| 6f 6c 6c 6f 77 69 6e 67 | 20 6d 65 73 73 61 67 65 |ollowing| message|
|00000370| 3a 0a 65 63 68 6f 20 27 | 20 20 20 20 20 20 20 20 |:.echo '| |
|00000380| 20 20 22 73 68 61 72 3a | 20 45 6e 64 20 6f 66 20 | "shar:| End of |
|00000390| 61 72 63 68 69 76 65 20 | 31 30 20 28 6f 66 20 31 |archive |10 (of 1|
|000003a0| 32 29 2e 22 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |2)."'.if| test -f|
|000003b0| 20 27 6d 61 6e 2f 72 63 | 73 69 6e 74 72 6f 2e 31 | 'man/rc|sintro.1|
|000003c0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|000003d0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|000003e0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|000003f0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00000400| 6e 67 20 66 69 6c 65 20 | 5c 22 27 6d 61 6e 2f 72 |ng file |\"'man/r|
|00000410| 63 73 69 6e 74 72 6f 2e | 31 27 5c 22 0a 65 6c 73 |csintro.|1'\".els|
|00000420| 65 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 45 |e. echo| shar: E|
|00000430| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 6d 61 6e |xtractin|g \"'man|
|00000440| 2f 72 63 73 69 6e 74 72 | 6f 2e 31 27 5c 22 20 5c |/rcsintr|o.1'\" \|
|00000450| 28 39 32 30 39 20 63 68 | 61 72 61 63 74 65 72 73 |(9209 ch|aracters|
|00000460| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00000470| 22 20 3e 27 6d 61 6e 2f | 72 63 73 69 6e 74 72 6f |" >'man/|rcsintro|
|00000480| 2e 31 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.1' <<'E|ND_OF_FI|
|00000490| 4c 45 27 0a 58 2e 64 65 | 20 49 64 0a 58 2e 64 73 |LE'.X.de| Id.X.ds|
|000004a0| 20 52 76 20 5c 5c 24 33 | 0a 58 2e 64 73 20 44 74 | Rv \\$3|.X.ds Dt|
|000004b0| 20 5c 5c 24 34 0a 58 2e | 2e 0a 58 2e 49 64 20 24 | \\$4.X.|..X.Id $|
|000004c0| 49 64 3a 20 72 63 73 69 | 6e 74 72 6f 2e 31 2c 76 |Id: rcsi|ntro.1,v|
|000004d0| 20 35 2e 30 20 31 39 39 | 30 2f 30 38 2f 32 32 20 | 5.0 199|0/08/22 |
|000004e0| 30 39 3a 31 31 3a 30 30 | 20 65 67 67 65 72 74 20 |09:11:00| eggert |
|000004f0| 45 78 70 20 24 0a 58 2e | 64 73 20 72 20 5c 73 2d |Exp $.X.|ds r \s-|
|00000500| 31 52 43 53 5c 73 30 0a | 58 2e 69 66 20 6e 20 2e |1RCS\s0.|X.if n .|
|00000510| 64 73 20 2d 20 5c 25 2d | 2d 0a 58 2e 69 66 20 74 |ds - \%-|-.X.if t|
|00000520| 20 2e 64 73 20 2d 20 5c | 28 65 6d 0a 58 2e 61 6d | .ds - \|(em.X.am|
|00000530| 20 53 53 0a 58 2e 4c 50 | 0a 58 2e 2e 0a 58 2e 54 | SS.X.LP|.X...X.T|
|00000540| 48 20 52 43 53 49 4e 54 | 52 4f 20 31 20 5c 2a 28 |H RCSINT|RO 1 \*(|
|00000550| 44 74 20 47 4e 55 0a 58 | 2e 53 48 20 4e 41 4d 45 |Dt GNU.X|.SH NAME|
|00000560| 0a 58 72 63 73 69 6e 74 | 72 6f 20 5c 2d 20 69 6e |.Xrcsint|ro \- in|
|00000570| 74 72 6f 64 75 63 74 69 | 6f 6e 20 74 6f 20 52 43 |troducti|on to RC|
|00000580| 53 20 63 6f 6d 6d 61 6e | 64 73 0a 58 2e 53 48 20 |S comman|ds.X.SH |
|00000590| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 54 68 65 |DESCRIPT|ION.XThe|
|000005a0| 20 52 65 76 69 73 69 6f | 6e 20 43 6f 6e 74 72 6f | Revisio|n Contro|
|000005b0| 6c 20 53 79 73 74 65 6d | 20 28 5c 2a 72 29 20 6d |l System| (\*r) m|
|000005c0| 61 6e 61 67 65 73 20 6d | 75 6c 74 69 70 6c 65 20 |anages m|ultiple |
|000005d0| 72 65 76 69 73 69 6f 6e | 73 20 6f 66 20 66 69 6c |revision|s of fil|
|000005e0| 65 73 2e 0a 58 5c 2a 72 | 20 61 75 74 6f 6d 61 74 |es..X\*r| automat|
|000005f0| 65 73 20 74 68 65 20 73 | 74 6f 72 69 6e 67 2c 20 |es the s|toring, |
|00000600| 72 65 74 72 69 65 76 61 | 6c 2c 20 6c 6f 67 67 69 |retrieva|l, loggi|
|00000610| 6e 67 2c 20 69 64 65 6e | 74 69 66 69 63 61 74 69 |ng, iden|tificati|
|00000620| 6f 6e 2c 20 61 6e 64 20 | 6d 65 72 67 69 6e 67 0a |on, and |merging.|
|00000630| 58 6f 66 20 72 65 76 69 | 73 69 6f 6e 73 2e 20 20 |Xof revi|sions. |
|00000640| 5c 2a 72 20 69 73 20 75 | 73 65 66 75 6c 20 66 6f |\*r is u|seful fo|
|00000650| 72 20 74 65 78 74 20 74 | 68 61 74 20 69 73 20 72 |r text t|hat is r|
|00000660| 65 76 69 73 65 64 20 66 | 72 65 71 75 65 6e 74 6c |evised f|requentl|
|00000670| 79 2c 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 0a 58 |y, for e|xample.X|
|00000680| 70 72 6f 67 72 61 6d 73 | 2c 20 64 6f 63 75 6d 65 |programs|, docume|
|00000690| 6e 74 61 74 69 6f 6e 2c | 20 67 72 61 70 68 69 63 |ntation,| graphic|
|000006a0| 73 2c 20 70 61 70 65 72 | 73 2c 20 61 6e 64 20 66 |s, paper|s, and f|
|000006b0| 6f 72 6d 20 6c 65 74 74 | 65 72 73 2e 0a 58 2e 50 |orm lett|ers..X.P|
|000006c0| 50 0a 58 54 68 65 20 62 | 61 73 69 63 20 75 73 65 |P.XThe b|asic use|
|000006d0| 72 20 69 6e 74 65 72 66 | 61 63 65 20 69 73 20 65 |r interf|ace is e|
|000006e0| 78 74 72 65 6d 65 6c 79 | 20 73 69 6d 70 6c 65 2e |xtremely| simple.|
|000006f0| 20 20 54 68 65 20 6e 6f | 76 69 63 65 20 6f 6e 6c | The no|vice onl|
|00000700| 79 20 6e 65 65 64 73 0a | 58 74 6f 20 6c 65 61 72 |y needs.|Xto lear|
|00000710| 6e 20 74 77 6f 20 63 6f | 6d 6d 61 6e 64 73 3a 0a |n two co|mmands:.|
|00000720| 58 2e 42 52 20 63 69 20 | 28 31 29 0a 58 61 6e 64 |X.BR ci |(1).Xand|
|00000730| 0a 58 2e 42 52 20 63 6f | 20 28 31 29 2e 0a 58 2e |.X.BR co| (1)..X.|
|00000740| 42 52 20 63 69 20 2c 0a | 58 73 68 6f 72 74 20 66 |BR ci ,.|Xshort f|
|00000750| 6f 72 20 5c 2a 28 6c 71 | 63 68 65 63 6b 20 69 6e |or \*(lq|check in|
|00000760| 5c 2a 28 72 71 2c 20 64 | 65 70 6f 73 69 74 73 20 |\*(rq, d|eposits |
|00000770| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|00000780| 61 0a 58 66 69 6c 65 20 | 69 6e 74 6f 20 61 6e 20 |a.Xfile |into an |
|00000790| 61 72 63 68 69 76 61 6c | 20 66 69 6c 65 20 63 61 |archival| file ca|
|000007a0| 6c 6c 65 64 20 61 6e 20 | 5c 2a 72 20 66 69 6c 65 |lled an |\*r file|
|000007b0| 2e 20 20 41 6e 20 5c 2a | 72 20 66 69 6c 65 0a 58 |. An \*|r file.X|
|000007c0| 63 6f 6e 74 61 69 6e 73 | 20 61 6c 6c 20 72 65 76 |contains| all rev|
|000007d0| 69 73 69 6f 6e 73 20 6f | 66 20 61 20 70 61 72 74 |isions o|f a part|
|000007e0| 69 63 75 6c 61 72 20 66 | 69 6c 65 2e 0a 58 2e 42 |icular f|ile..X.B|
|000007f0| 52 20 63 6f 20 2c 0a 58 | 73 68 6f 72 74 20 66 6f |R co ,.X|short fo|
|00000800| 72 20 5c 2a 28 6c 71 63 | 68 65 63 6b 20 6f 75 74 |r \*(lqc|heck out|
|00000810| 5c 2a 28 72 71 2c 20 72 | 65 74 72 69 65 76 65 73 |\*(rq, r|etrieves|
|00000820| 20 72 65 76 69 73 69 6f | 6e 73 20 66 72 6f 6d 20 | revisio|ns from |
|00000830| 61 6e 20 5c 2a 72 20 66 | 69 6c 65 2e 0a 58 2e 53 |an \*r f|ile..X.S|
|00000840| 53 20 22 46 75 6e 63 74 | 69 6f 6e 73 20 6f 66 20 |S "Funct|ions of |
|00000850| 5c 2a 72 22 0a 58 2e 49 | 50 20 5c 28 62 75 0a 58 |\*r".X.I|P \(bu.X|
|00000860| 53 74 6f 72 65 20 61 6e | 64 20 72 65 74 72 69 65 |Store an|d retrie|
|00000870| 76 65 20 6d 75 6c 74 69 | 70 6c 65 20 72 65 76 69 |ve multi|ple revi|
|00000880| 73 69 6f 6e 73 20 6f 66 | 20 74 65 78 74 2e 20 20 |sions of| text. |
|00000890| 5c 2a 72 20 73 61 76 65 | 73 20 61 6c 6c 20 6f 6c |\*r save|s all ol|
|000008a0| 64 0a 58 72 65 76 69 73 | 69 6f 6e 73 20 69 6e 20 |d.Xrevis|ions in |
|000008b0| 61 20 73 70 61 63 65 20 | 65 66 66 69 63 69 65 6e |a space |efficien|
|000008c0| 74 20 77 61 79 2e 0a 58 | 43 68 61 6e 67 65 73 20 |t way..X|Changes |
|000008d0| 6e 6f 20 6c 6f 6e 67 65 | 72 20 64 65 73 74 72 6f |no longe|r destro|
|000008e0| 79 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 2c 20 |y the or|iginal, |
|000008f0| 62 65 63 61 75 73 65 20 | 74 68 65 0a 58 70 72 65 |because |the.Xpre|
|00000900| 76 69 6f 75 73 20 72 65 | 76 69 73 69 6f 6e 73 20 |vious re|visions |
|00000910| 72 65 6d 61 69 6e 20 61 | 63 63 65 73 73 69 62 6c |remain a|ccessibl|
|00000920| 65 2e 20 20 52 65 76 69 | 73 69 6f 6e 73 20 63 61 |e. Revi|sions ca|
|00000930| 6e 20 62 65 20 72 65 74 | 72 69 65 76 65 64 20 61 |n be ret|rieved a|
|00000940| 63 63 6f 72 64 69 6e 67 | 20 74 6f 0a 58 72 61 6e |ccording| to.Xran|
|00000950| 67 65 73 20 6f 66 20 72 | 65 76 69 73 69 6f 6e 20 |ges of r|evision |
|00000960| 6e 75 6d 62 65 72 73 2c | 20 73 79 6d 62 6f 6c 69 |numbers,| symboli|
|00000970| 63 20 6e 61 6d 65 73 2c | 20 64 61 74 65 73 2c 20 |c names,| dates, |
|00000980| 61 75 74 68 6f 72 73 2c | 20 61 6e 64 0a 58 73 74 |authors,| and.Xst|
|00000990| 61 74 65 73 2e 0a 58 2e | 49 50 20 5c 28 62 75 0a |ates..X.|IP \(bu.|
|000009a0| 58 4d 61 69 6e 74 61 69 | 6e 20 61 20 63 6f 6d 70 |XMaintai|n a comp|
|000009b0| 6c 65 74 65 20 68 69 73 | 74 6f 72 79 20 6f 66 20 |lete his|tory of |
|000009c0| 63 68 61 6e 67 65 73 2e | 0a 58 5c 2a 72 20 6c 6f |changes.|.X\*r lo|
|000009d0| 67 73 20 61 6c 6c 20 63 | 68 61 6e 67 65 73 20 61 |gs all c|hanges a|
|000009e0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 2e 0a 58 42 |utomatic|ally..XB|
|000009f0| 65 73 69 64 65 73 20 74 | 68 65 20 74 65 78 74 20 |esides t|he text |
|00000a00| 6f 66 20 65 61 63 68 20 | 72 65 76 69 73 69 6f 6e |of each |revision|
|00000a10| 2c 20 5c 2a 72 20 73 74 | 6f 72 65 73 20 74 68 65 |, \*r st|ores the|
|00000a20| 20 61 75 74 68 6f 72 2c | 20 74 68 65 20 64 61 74 | author,| the dat|
|00000a30| 65 20 61 6e 64 20 74 69 | 6d 65 20 6f 66 0a 58 63 |e and ti|me of.Xc|
|00000a40| 68 65 63 6b 2d 69 6e 2c | 20 61 6e 64 20 61 20 6c |heck-in,| and a l|
|00000a50| 6f 67 20 6d 65 73 73 61 | 67 65 20 73 75 6d 6d 61 |og messa|ge summa|
|00000a60| 72 69 7a 69 6e 67 20 74 | 68 65 20 63 68 61 6e 67 |rizing t|he chang|
|00000a70| 65 2e 0a 58 54 68 65 20 | 6c 6f 67 67 69 6e 67 20 |e..XThe |logging |
|00000a80| 6d 61 6b 65 73 20 69 74 | 20 65 61 73 79 20 74 6f |makes it| easy to|
|00000a90| 20 66 69 6e 64 20 6f 75 | 74 0a 58 77 68 61 74 20 | find ou|t.Xwhat |
|00000aa0| 68 61 70 70 65 6e 65 64 | 20 74 6f 20 61 20 6d 6f |happened| to a mo|
|00000ab0| 64 75 6c 65 2c 20 77 69 | 74 68 6f 75 74 20 68 61 |dule, wi|thout ha|
|00000ac0| 76 69 6e 67 20 74 6f 20 | 63 6f 6d 70 61 72 65 0a |ving to |compare.|
|00000ad0| 58 73 6f 75 72 63 65 20 | 6c 69 73 74 69 6e 67 73 |Xsource |listings|
|00000ae0| 20 6f 72 20 68 61 76 69 | 6e 67 20 74 6f 20 74 72 | or havi|ng to tr|
|00000af0| 61 63 6b 20 64 6f 77 6e | 20 63 6f 6c 6c 65 61 67 |ack down| colleag|
|00000b00| 75 65 73 2e 0a 58 2e 49 | 50 20 5c 28 62 75 0a 58 |ues..X.I|P \(bu.X|
|00000b10| 52 65 73 6f 6c 76 65 20 | 61 63 63 65 73 73 20 63 |Resolve |access c|
|00000b20| 6f 6e 66 6c 69 63 74 73 | 2e 20 20 57 68 65 6e 20 |onflicts|. When |
|00000b30| 74 77 6f 20 6f 72 20 6d | 6f 72 65 20 70 72 6f 67 |two or m|ore prog|
|00000b40| 72 61 6d 6d 65 72 73 20 | 77 69 73 68 20 74 6f 0a |rammers |wish to.|
|00000b50| 58 6d 6f 64 69 66 79 20 | 74 68 65 20 73 61 6d 65 |Xmodify |the same|
|00000b60| 20 72 65 76 69 73 69 6f | 6e 2c 20 5c 2a 72 20 61 | revisio|n, \*r a|
|00000b70| 6c 65 72 74 73 20 74 68 | 65 20 70 72 6f 67 72 61 |lerts th|e progra|
|00000b80| 6d 6d 65 72 73 20 61 6e | 64 20 70 72 65 76 65 6e |mmers an|d preven|
|00000b90| 74 73 20 6f 6e 65 0a 58 | 6d 6f 64 69 66 69 63 61 |ts one.X|modifica|
|00000ba0| 74 69 6f 6e 20 66 72 6f | 6d 20 63 6f 72 72 75 70 |tion fro|m corrup|
|00000bb0| 74 69 6e 67 20 74 68 65 | 20 6f 74 68 65 72 2e 0a |ting the| other..|
|00000bc0| 58 2e 49 50 20 5c 28 62 | 75 0a 58 4d 61 69 6e 74 |X.IP \(b|u.XMaint|
|00000bd0| 61 69 6e 20 61 20 74 72 | 65 65 20 6f 66 20 72 65 |ain a tr|ee of re|
|00000be0| 76 69 73 69 6f 6e 73 2e | 20 20 5c 2a 72 20 63 61 |visions.| \*r ca|
|00000bf0| 6e 20 6d 61 69 6e 74 61 | 69 6e 20 73 65 70 61 72 |n mainta|in separ|
|00000c00| 61 74 65 20 6c 69 6e 65 | 73 20 6f 66 20 64 65 76 |ate line|s of dev|
|00000c10| 65 6c 6f 70 6d 65 6e 74 | 0a 58 66 6f 72 20 65 61 |elopment|.Xfor ea|
|00000c20| 63 68 20 6d 6f 64 75 6c | 65 2e 20 20 49 74 20 73 |ch modul|e. It s|
|00000c30| 74 6f 72 65 73 20 61 20 | 74 72 65 65 20 73 74 72 |tores a |tree str|
|00000c40| 75 63 74 75 72 65 20 74 | 68 61 74 20 72 65 70 72 |ucture t|hat repr|
|00000c50| 65 73 65 6e 74 73 20 74 | 68 65 0a 58 61 6e 63 65 |esents t|he.Xance|
|00000c60| 73 74 72 61 6c 20 72 65 | 6c 61 74 69 6f 6e 73 68 |stral re|lationsh|
|00000c70| 69 70 73 20 61 6d 6f 6e | 67 20 72 65 76 69 73 69 |ips amon|g revisi|
|00000c80| 6f 6e 73 2e 0a 58 2e 49 | 50 20 5c 28 62 75 0a 58 |ons..X.I|P \(bu.X|
|00000c90| 4d 65 72 67 65 20 72 65 | 76 69 73 69 6f 6e 73 20 |Merge re|visions |
|00000ca0| 61 6e 64 20 72 65 73 6f | 6c 76 65 20 63 6f 6e 66 |and reso|lve conf|
|00000cb0| 6c 69 63 74 73 2e 0a 58 | 54 77 6f 20 73 65 70 61 |licts..X|Two sepa|
|00000cc0| 72 61 74 65 20 6c 69 6e | 65 73 20 6f 66 20 64 65 |rate lin|es of de|
|00000cd0| 76 65 6c 6f 70 6d 65 6e | 74 20 6f 66 20 61 20 6d |velopmen|t of a m|
|00000ce0| 6f 64 75 6c 65 20 63 61 | 6e 20 62 65 20 63 6f 61 |odule ca|n be coa|
|00000cf0| 6c 65 73 63 65 64 20 62 | 79 20 6d 65 72 67 69 6e |lesced b|y mergin|
|00000d00| 67 2e 0a 58 49 66 20 74 | 68 65 20 72 65 76 69 73 |g..XIf t|he revis|
|00000d10| 69 6f 6e 73 20 74 6f 20 | 62 65 20 6d 65 72 67 65 |ions to |be merge|
|00000d20| 64 20 61 66 66 65 63 74 | 20 74 68 65 20 73 61 6d |d affect| the sam|
|00000d30| 65 20 73 65 63 74 69 6f | 6e 73 20 6f 66 20 63 6f |e sectio|ns of co|
|00000d40| 64 65 2c 20 5c 2a 72 20 | 61 6c 65 72 74 73 20 74 |de, \*r |alerts t|
|00000d50| 68 65 0a 58 75 73 65 72 | 20 61 62 6f 75 74 20 74 |he.Xuser| about t|
|00000d60| 68 65 20 6f 76 65 72 6c | 61 70 70 69 6e 67 20 63 |he overl|apping c|
|00000d70| 68 61 6e 67 65 73 2e 0a | 58 2e 49 50 20 5c 28 62 |hanges..|X.IP \(b|
|00000d80| 75 0a 58 43 6f 6e 74 72 | 6f 6c 20 72 65 6c 65 61 |u.XContr|ol relea|
|00000d90| 73 65 73 20 61 6e 64 20 | 63 6f 6e 66 69 67 75 72 |ses and |configur|
|00000da0| 61 74 69 6f 6e 73 2e 0a | 58 52 65 76 69 73 69 6f |ations..|XRevisio|
|00000db0| 6e 73 20 63 61 6e 20 62 | 65 20 61 73 73 69 67 6e |ns can b|e assign|
|00000dc0| 65 64 20 73 79 6d 62 6f | 6c 69 63 20 6e 61 6d 65 |ed symbo|lic name|
|00000dd0| 73 0a 58 61 6e 64 20 6d | 61 72 6b 65 64 20 61 73 |s.Xand m|arked as|
|00000de0| 20 72 65 6c 65 61 73 65 | 64 2c 20 73 74 61 62 6c | release|d, stabl|
|00000df0| 65 2c 20 65 78 70 65 72 | 69 6d 65 6e 74 61 6c 2c |e, exper|imental,|
|00000e00| 20 65 74 63 2e 0a 58 57 | 69 74 68 20 74 68 65 73 | etc..XW|ith thes|
|00000e10| 65 20 66 61 63 69 6c 69 | 74 69 65 73 2c 20 63 6f |e facili|ties, co|
|00000e20| 6e 66 69 67 75 72 61 74 | 69 6f 6e 73 20 6f 66 20 |nfigurat|ions of |
|00000e30| 6d 6f 64 75 6c 65 73 20 | 63 61 6e 20 62 65 0a 58 |modules |can be.X|
|00000e40| 64 65 73 63 72 69 62 65 | 64 20 73 69 6d 70 6c 79 |describe|d simply|
|00000e50| 20 61 6e 64 20 64 69 72 | 65 63 74 6c 79 2e 0a 58 | and dir|ectly..X|
|00000e60| 2e 49 50 20 5c 28 62 75 | 0a 58 41 75 74 6f 6d 61 |.IP \(bu|.XAutoma|
|00000e70| 74 69 63 61 6c 6c 79 20 | 69 64 65 6e 74 69 66 79 |tically |identify|
|00000e80| 20 65 61 63 68 20 72 65 | 76 69 73 69 6f 6e 20 77 | each re|vision w|
|00000e90| 69 74 68 20 6e 61 6d 65 | 2c 20 72 65 76 69 73 69 |ith name|, revisi|
|00000ea0| 6f 6e 20 6e 75 6d 62 65 | 72 2c 0a 58 63 72 65 61 |on numbe|r,.Xcrea|
|00000eb0| 74 69 6f 6e 20 74 69 6d | 65 2c 20 61 75 74 68 6f |tion tim|e, autho|
|00000ec0| 72 2c 20 65 74 63 2e 0a | 58 54 68 65 20 69 64 65 |r, etc..|XThe ide|
|00000ed0| 6e 74 69 66 69 63 61 74 | 69 6f 6e 20 69 73 20 6c |ntificat|ion is l|
|00000ee0| 69 6b 65 20 61 20 73 74 | 61 6d 70 20 74 68 61 74 |ike a st|amp that|
|00000ef0| 20 63 61 6e 20 62 65 20 | 65 6d 62 65 64 64 65 64 | can be |embedded|
|00000f00| 20 61 74 20 61 6e 20 61 | 70 70 72 6f 70 72 69 61 | at an a|ppropria|
|00000f10| 74 65 20 70 6c 61 63 65 | 0a 58 69 6e 20 74 68 65 |te place|.Xin the|
|00000f20| 20 74 65 78 74 20 6f 66 | 20 61 20 72 65 76 69 73 | text of| a revis|
|00000f30| 69 6f 6e 2e 0a 58 54 68 | 65 20 69 64 65 6e 74 69 |ion..XTh|e identi|
|00000f40| 66 69 63 61 74 69 6f 6e | 20 6d 61 6b 65 73 20 69 |fication| makes i|
|00000f50| 74 20 73 69 6d 70 6c 65 | 20 74 6f 20 64 65 74 65 |t simple| to dete|
|00000f60| 72 6d 69 6e 65 20 77 68 | 69 63 68 0a 58 72 65 76 |rmine wh|ich.Xrev|
|00000f70| 69 73 69 6f 6e 73 20 6f | 66 20 77 68 69 63 68 20 |isions o|f which |
|00000f80| 6d 6f 64 75 6c 65 73 20 | 6d 61 6b 65 20 75 70 20 |modules |make up |
|00000f90| 61 20 67 69 76 65 6e 20 | 63 6f 6e 66 69 67 75 72 |a given |configur|
|00000fa0| 61 74 69 6f 6e 2e 0a 58 | 2e 49 50 20 5c 28 62 75 |ation..X|.IP \(bu|
|00000fb0| 0a 58 4d 69 6e 69 6d 69 | 7a 65 20 73 65 63 6f 6e |.XMinimi|ze secon|
|00000fc0| 64 61 72 79 20 73 74 6f | 72 61 67 65 2e 20 20 5c |dary sto|rage. \|
|00000fd0| 2a 72 20 6e 65 65 64 73 | 20 6c 69 74 74 6c 65 20 |*r needs| little |
|00000fe0| 65 78 74 72 61 20 73 70 | 61 63 65 20 66 6f 72 0a |extra sp|ace for.|
|00000ff0| 58 74 68 65 20 72 65 76 | 69 73 69 6f 6e 73 20 28 |Xthe rev|isions (|
|00001000| 6f 6e 6c 79 20 74 68 65 | 20 64 69 66 66 65 72 65 |only the| differe|
|00001010| 6e 63 65 73 29 2e 20 20 | 49 66 20 69 6e 74 65 72 |nces). |If inter|
|00001020| 6d 65 64 69 61 74 65 20 | 72 65 76 69 73 69 6f 6e |mediate |revision|
|00001030| 73 20 61 72 65 0a 58 64 | 65 6c 65 74 65 64 2c 20 |s are.Xd|eleted, |
|00001040| 74 68 65 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |the corr|espondin|
|00001050| 67 20 64 65 6c 74 61 73 | 20 61 72 65 20 63 6f 6d |g deltas| are com|
|00001060| 70 72 65 73 73 65 64 20 | 61 63 63 6f 72 64 69 6e |pressed |accordin|
|00001070| 67 6c 79 2e 0a 58 2e 53 | 53 20 22 47 65 74 74 69 |gly..X.S|S "Getti|
|00001080| 6e 67 20 53 74 61 72 74 | 65 64 20 77 69 74 68 20 |ng Start|ed with |
|00001090| 5c 2a 72 22 0a 58 53 75 | 70 70 6f 73 65 20 79 6f |\*r".XSu|ppose yo|
|000010a0| 75 20 68 61 76 65 20 61 | 20 66 69 6c 65 0a 58 2e |u have a| file.X.|
|000010b0| 42 20 66 2e 63 0a 58 74 | 68 61 74 20 79 6f 75 20 |B f.c.Xt|hat you |
|000010c0| 77 69 73 68 20 74 6f 20 | 70 75 74 20 75 6e 64 65 |wish to |put unde|
|000010d0| 72 20 63 6f 6e 74 72 6f | 6c 20 6f 66 20 5c 2a 72 |r contro|l of \*r|
|000010e0| 2e 0a 58 49 6e 76 6f 6b | 65 20 74 68 65 20 63 68 |..XInvok|e the ch|
|000010f0| 65 63 6b 2d 69 6e 20 63 | 6f 6d 6d 61 6e 64 0a 58 |eck-in c|ommand.X|
|00001100| 2e 49 50 0a 58 2e 42 20 | 22 63 69 20 20 66 2e 63 |.IP.X.B |"ci f.c|
|00001110| 22 0a 58 2e 4c 50 0a 58 | 54 68 69 73 20 63 6f 6d |".X.LP.X|This com|
|00001120| 6d 61 6e 64 20 63 72 65 | 61 74 65 73 20 74 68 65 |mand cre|ates the|
|00001130| 20 5c 2a 72 20 66 69 6c | 65 0a 58 2e 42 52 20 66 | \*r fil|e.X.BR f|
|00001140| 2e 63 2c 76 20 2c 0a 58 | 73 74 6f 72 65 73 0a 58 |.c,v ,.X|stores.X|
|00001150| 2e 42 20 66 2e 63 0a 58 | 69 6e 74 6f 20 69 74 20 |.B f.c.X|into it |
|00001160| 61 73 20 72 65 76 69 73 | 69 6f 6e 20 31 2e 31 2c |as revis|ion 1.1,|
|00001170| 20 61 6e 64 0a 58 64 65 | 6c 65 74 65 73 0a 58 2e | and.Xde|letes.X.|
|00001180| 42 52 20 66 2e 63 20 2e | 0a 58 49 74 20 61 6c 73 |BR f.c .|.XIt als|
|00001190| 6f 20 61 73 6b 73 20 79 | 6f 75 20 66 6f 72 20 61 |o asks y|ou for a|
|000011a0| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 2e 20 20 54 | descrip|tion. T|
|000011b0| 68 65 20 64 65 73 63 72 | 69 70 74 69 6f 6e 0a 58 |he descr|iption.X|
|000011c0| 73 68 6f 75 6c 64 20 62 | 65 20 61 20 73 79 6e 6f |should b|e a syno|
|000011d0| 70 73 69 73 20 6f 66 20 | 74 68 65 20 63 6f 6e 74 |psis of |the cont|
|000011e0| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |ents of |the file|
|000011f0| 2e 20 20 41 6c 6c 20 6c | 61 74 65 72 20 63 68 65 |. All l|ater che|
|00001200| 63 6b 2d 69 6e 0a 58 63 | 6f 6d 6d 61 6e 64 73 20 |ck-in.Xc|ommands |
|00001210| 77 69 6c 6c 20 61 73 6b | 20 79 6f 75 20 66 6f 72 |will ask| you for|
|00001220| 20 61 20 6c 6f 67 20 65 | 6e 74 72 79 2c 20 77 68 | a log e|ntry, wh|
|00001230| 69 63 68 20 73 68 6f 75 | 6c 64 20 73 75 6d 6d 61 |ich shou|ld summa|
|00001240| 72 69 7a 65 20 74 68 65 | 0a 58 63 68 61 6e 67 65 |rize the|.Xchange|
|00001250| 73 20 74 68 61 74 20 79 | 6f 75 20 6d 61 64 65 2e |s that y|ou made.|
|00001260| 0a 58 2e 50 50 0a 58 46 | 69 6c 65 73 20 65 6e 64 |.X.PP.XF|iles end|
|00001270| 69 6e 67 20 69 6e 0a 58 | 2e 42 20 2c 76 0a 58 61 |ing in.X|.B ,v.Xa|
|00001280| 72 65 20 63 61 6c 6c 65 | 64 20 5c 2a 72 20 66 69 |re calle|d \*r fi|
|00001290| 6c 65 73 20 28 5c 2a 28 | 6c 71 76 5c 2a 28 72 71 |les (\*(|lqv\*(rq|
|000012a0| 20 73 74 61 6e 64 73 20 | 66 6f 72 20 5c 2a 28 6c | stands |for \*(l|
|000012b0| 71 76 65 72 73 69 6f 6e | 73 5c 2a 28 72 71 29 3b |qversion|s\*(rq);|
|000012c0| 0a 58 74 68 65 20 6f 74 | 68 65 72 73 20 61 72 65 |.Xthe ot|hers are|
|000012d0| 20 63 61 6c 6c 65 64 20 | 77 6f 72 6b 69 6e 67 20 | called |working |
|000012e0| 66 69 6c 65 73 2e 0a 58 | 54 6f 20 67 65 74 20 62 |files..X|To get b|
|000012f0| 61 63 6b 20 74 68 65 20 | 77 6f 72 6b 69 6e 67 20 |ack the |working |
|00001300| 66 69 6c 65 0a 58 2e 42 | 20 66 2e 63 0a 58 69 6e |file.X.B| f.c.Xin|
|00001310| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 65 78 | the pre|vious ex|
|00001320| 61 6d 70 6c 65 2c 20 75 | 73 65 20 74 68 65 20 63 |ample, u|se the c|
|00001330| 68 65 63 6b 2d 6f 75 74 | 0a 58 63 6f 6d 6d 61 6e |heck-out|.Xcomman|
|00001340| 64 0a 58 2e 49 50 0a 58 | 2e 42 20 22 63 6f 20 20 |d.X.IP.X|.B "co |
|00001350| 66 2e 63 22 0a 58 2e 4c | 50 0a 58 54 68 69 73 20 |f.c".X.L|P.XThis |
|00001360| 63 6f 6d 6d 61 6e 64 20 | 65 78 74 72 61 63 74 73 |command |extracts|
|00001370| 20 74 68 65 20 6c 61 74 | 65 73 74 20 72 65 76 69 | the lat|est revi|
|00001380| 73 69 6f 6e 20 66 72 6f | 6d 0a 58 2e 42 20 66 2e |sion fro|m.X.B f.|
|00001390| 63 2c 76 0a 58 61 6e 64 | 20 77 72 69 74 65 73 0a |c,v.Xand| writes.|
|000013a0| 58 69 74 20 69 6e 74 6f | 0a 58 2e 42 52 20 66 2e |Xit into|.X.BR f.|
|000013b0| 63 20 2e 0a 58 49 66 20 | 79 6f 75 20 77 61 6e 74 |c ..XIf |you want|
|000013c0| 20 74 6f 20 65 64 69 74 | 0a 58 2e 42 52 20 66 2e | to edit|.X.BR f.|
|000013d0| 63 20 2c 0a 58 79 6f 75 | 20 6d 75 73 74 20 6c 6f |c ,.Xyou| must lo|
|000013e0| 63 6b 20 69 74 20 61 73 | 20 79 6f 75 20 63 68 65 |ck it as| you che|
|000013f0| 63 6b 20 69 74 20 6f 75 | 74 20 77 69 74 68 20 74 |ck it ou|t with t|
|00001400| 68 65 20 63 6f 6d 6d 61 | 6e 64 0a 58 2e 49 50 0a |he comma|nd.X.IP.|
|00001410| 58 2e 42 20 22 63 6f 20 | 20 5c 2d 6c 20 20 66 2e |X.B "co | \-l f.|
|00001420| 63 22 0a 58 2e 4c 50 0a | 58 59 6f 75 20 63 61 6e |c".X.LP.|XYou can|
|00001430| 20 6e 6f 77 20 65 64 69 | 74 0a 58 2e 42 52 20 66 | now edi|t.X.BR f|
|00001440| 2e 63 20 2e 0a 58 2e 50 | 50 0a 58 53 75 70 70 6f |.c ..X.P|P.XSuppo|
|00001450| 73 65 20 61 66 74 65 72 | 20 73 6f 6d 65 20 65 64 |se after| some ed|
|00001460| 69 74 69 6e 67 20 79 6f | 75 20 77 61 6e 74 20 74 |iting yo|u want t|
|00001470| 6f 20 6b 6e 6f 77 20 77 | 68 61 74 20 63 68 61 6e |o know w|hat chan|
|00001480| 67 65 73 20 74 68 61 74 | 20 79 6f 75 20 68 61 76 |ges that| you hav|
|00001490| 65 20 6d 61 64 65 2e 0a | 58 54 68 65 20 63 6f 6d |e made..|XThe com|
|000014a0| 6d 61 6e 64 0a 58 2e 49 | 50 0a 58 2e 42 20 22 72 |mand.X.I|P.X.B "r|
|000014b0| 63 73 64 69 66 66 20 20 | 66 2e 63 22 0a 58 2e 4c |csdiff |f.c".X.L|
|000014c0| 50 0a 58 74 65 6c 6c 73 | 20 79 6f 75 20 74 68 65 |P.Xtells| you the|
|000014d0| 20 64 69 66 66 65 72 65 | 6e 63 65 20 62 65 74 77 | differe|nce betw|
|000014e0| 65 65 6e 20 74 68 65 20 | 6d 6f 73 74 20 72 65 63 |een the |most rec|
|000014f0| 65 6e 74 6c 79 20 63 68 | 65 63 6b 65 64 2d 69 6e |ently ch|ecked-in|
|00001500| 20 76 65 72 73 69 6f 6e | 0a 58 61 6e 64 20 74 68 | version|.Xand th|
|00001510| 65 20 77 6f 72 6b 69 6e | 67 20 66 69 6c 65 2e 0a |e workin|g file..|
|00001520| 58 59 6f 75 20 63 61 6e | 20 63 68 65 63 6b 20 74 |XYou can| check t|
|00001530| 68 65 20 66 69 6c 65 20 | 62 61 63 6b 20 69 6e 20 |he file |back in |
|00001540| 62 79 20 69 6e 76 6f 6b | 69 6e 67 0a 58 2e 49 50 |by invok|ing.X.IP|
|00001550| 0a 58 2e 42 20 22 63 69 | 20 20 66 2e 63 22 0a 58 |.X.B "ci| f.c".X|
|00001560| 2e 4c 50 0a 58 54 68 69 | 73 20 69 6e 63 72 65 6d |.LP.XThi|s increm|
|00001570| 65 6e 74 73 20 74 68 65 | 20 72 65 76 69 73 69 6f |ents the| revisio|
|00001580| 6e 20 6e 75 6d 62 65 72 | 20 70 72 6f 70 65 72 6c |n number| properl|
|00001590| 79 2e 0a 58 2e 50 50 0a | 58 49 66 0a 58 2e 42 20 |y..X.PP.|XIf.X.B |
|000015a0| 63 69 0a 58 63 6f 6d 70 | 6c 61 69 6e 73 20 77 69 |ci.Xcomp|lains wi|
|000015b0| 74 68 20 74 68 65 20 6d | 65 73 73 61 67 65 0a 58 |th the m|essage.X|
|000015c0| 2e 49 50 0a 58 2e 42 49 | 20 22 63 69 20 65 72 72 |.IP.X.BI| "ci err|
|000015d0| 6f 72 3a 20 6e 6f 20 6c | 6f 63 6b 20 73 65 74 20 |or: no l|ock set |
|000015e0| 62 79 20 22 20 22 79 6f | 75 72 20 6e 61 6d 65 22 |by " "yo|ur name"|
|000015f0| 0a 58 2e 4c 50 0a 58 74 | 68 65 6e 20 79 6f 75 20 |.X.LP.Xt|hen you |
|00001600| 68 61 76 65 20 74 72 69 | 65 64 20 74 6f 20 63 68 |have tri|ed to ch|
|00001610| 65 63 6b 20 69 6e 20 61 | 20 66 69 6c 65 20 65 76 |eck in a| file ev|
|00001620| 65 6e 20 74 68 6f 75 67 | 68 20 79 6f 75 20 64 69 |en thoug|h you di|
|00001630| 64 20 6e 6f 74 0a 58 6c | 6f 63 6b 20 69 74 20 77 |d not.Xl|ock it w|
|00001640| 68 65 6e 20 79 6f 75 20 | 63 68 65 63 6b 65 64 20 |hen you |checked |
|00001650| 69 74 20 6f 75 74 2e 0a | 58 4f 66 20 63 6f 75 72 |it out..|XOf cour|
|00001660| 73 65 2c 20 69 74 20 69 | 73 20 74 6f 6f 20 6c 61 |se, it i|s too la|
|00001670| 74 65 20 6e 6f 77 20 74 | 6f 20 64 6f 20 74 68 65 |te now t|o do the|
|00001680| 20 63 68 65 63 6b 2d 6f | 75 74 20 77 69 74 68 20 | check-o|ut with |
|00001690| 6c 6f 63 6b 69 6e 67 2c | 20 62 65 63 61 75 73 65 |locking,| because|
|000016a0| 0a 58 61 6e 6f 74 68 65 | 72 20 63 68 65 63 6b 2d |.Xanothe|r check-|
|000016b0| 6f 75 74 20 77 6f 75 6c | 64 0a 58 6f 76 65 72 77 |out woul|d.Xoverw|
|000016c0| 72 69 74 65 20 79 6f 75 | 72 20 6d 6f 64 69 66 69 |rite you|r modifi|
|000016d0| 63 61 74 69 6f 6e 73 2e | 20 20 49 6e 73 74 65 61 |cations.| Instea|
|000016e0| 64 2c 20 69 6e 76 6f 6b | 65 0a 58 2e 49 50 0a 58 |d, invok|e.X.IP.X|
|000016f0| 2e 42 20 22 72 63 73 20 | 20 5c 2d 6c 20 20 66 2e |.B "rcs | \-l f.|
|00001700| 63 22 0a 58 2e 4c 50 0a | 58 54 68 69 73 20 63 6f |c".X.LP.|XThis co|
|00001710| 6d 6d 61 6e 64 20 77 69 | 6c 6c 20 6c 6f 63 6b 20 |mmand wi|ll lock |
|00001720| 74 68 65 20 6c 61 74 65 | 73 74 20 72 65 76 69 73 |the late|st revis|
|00001730| 69 6f 6e 20 66 6f 72 20 | 79 6f 75 2c 20 75 6e 6c |ion for |you, unl|
|00001740| 65 73 73 20 73 6f 6d 65 | 62 6f 64 79 0a 58 65 6c |ess some|body.Xel|
|00001750| 73 65 20 67 6f 74 20 61 | 68 65 61 64 20 6f 66 20 |se got a|head of |
|00001760| 79 6f 75 20 61 6c 72 65 | 61 64 79 2e 20 20 49 6e |you alre|ady. In|
|00001770| 20 74 68 69 73 20 63 61 | 73 65 2c 20 79 6f 75 27 | this ca|se, you'|
|00001780| 6c 6c 20 68 61 76 65 20 | 74 6f 20 6e 65 67 6f 74 |ll have |to negot|
|00001790| 69 61 74 65 20 77 69 74 | 68 0a 58 74 68 61 74 20 |iate wit|h.Xthat |
|000017a0| 70 65 72 73 6f 6e 2e 0a | 58 2e 50 50 0a 58 4c 6f |person..|X.PP.XLo|
|000017b0| 63 6b 69 6e 67 20 61 73 | 73 75 72 65 73 20 74 68 |cking as|sures th|
|000017c0| 61 74 20 79 6f 75 2c 20 | 61 6e 64 20 6f 6e 6c 79 |at you, |and only|
|000017d0| 20 79 6f 75 2c 20 63 61 | 6e 20 63 68 65 63 6b 20 | you, ca|n check |
|000017e0| 69 6e 20 74 68 65 20 6e | 65 78 74 20 75 70 64 61 |in the n|ext upda|
|000017f0| 74 65 2c 20 61 6e 64 0a | 58 61 76 6f 69 64 73 20 |te, and.|Xavoids |
|00001800| 6e 61 73 74 79 20 70 72 | 6f 62 6c 65 6d 73 20 69 |nasty pr|oblems i|
|00001810| 66 20 73 65 76 65 72 61 | 6c 20 70 65 6f 70 6c 65 |f severa|l people|
|00001820| 20 77 6f 72 6b 20 6f 6e | 20 74 68 65 20 73 61 6d | work on| the sam|
|00001830| 65 20 66 69 6c 65 2e 0a | 58 45 76 65 6e 20 69 66 |e file..|XEven if|
|00001840| 20 61 20 72 65 76 69 73 | 69 6f 6e 20 69 73 20 6c | a revis|ion is l|
|00001850| 6f 63 6b 65 64 2c 20 69 | 74 20 63 61 6e 20 73 74 |ocked, i|t can st|
|00001860| 69 6c 6c 20 62 65 20 63 | 68 65 63 6b 65 64 20 6f |ill be c|hecked o|
|00001870| 75 74 20 66 6f 72 0a 58 | 72 65 61 64 69 6e 67 2c |ut for.X|reading,|
|00001880| 20 63 6f 6d 70 69 6c 69 | 6e 67 2c 20 65 74 63 2e | compili|ng, etc.|
|00001890| 20 20 41 6c 6c 20 74 68 | 61 74 20 6c 6f 63 6b 69 | All th|at locki|
|000018a0| 6e 67 0a 58 70 72 65 76 | 65 6e 74 73 20 69 73 20 |ng.Xprev|ents is |
|000018b0| 61 0a 58 2e 49 20 22 63 | 68 65 63 6b 2d 69 6e 22 |a.X.I "c|heck-in"|
|000018c0| 0a 58 62 79 20 61 6e 79 | 62 6f 64 79 20 62 75 74 |.Xby any|body but|
|000018d0| 20 74 68 65 20 6c 6f 63 | 6b 65 72 2e 0a 58 2e 50 | the loc|ker..X.P|
|000018e0| 50 0a 58 49 66 20 79 6f | 75 72 20 5c 2a 72 20 66 |P.XIf yo|ur \*r f|
|000018f0| 69 6c 65 20 69 73 20 70 | 72 69 76 61 74 65 2c 20 |ile is p|rivate, |
|00001900| 69 2e 65 2e 2c 20 69 66 | 20 79 6f 75 20 61 72 65 |i.e., if| you are|
|00001910| 20 74 68 65 20 6f 6e 6c | 79 20 70 65 72 73 6f 6e | the onl|y person|
|00001920| 20 77 68 6f 20 69 73 20 | 67 6f 69 6e 67 0a 58 74 | who is |going.Xt|
|00001930| 6f 20 64 65 70 6f 73 69 | 74 20 72 65 76 69 73 69 |o deposi|t revisi|
|00001940| 6f 6e 73 20 69 6e 74 6f | 20 69 74 2c 20 73 74 72 |ons into| it, str|
|00001950| 69 63 74 20 6c 6f 63 6b | 69 6e 67 20 69 73 20 6e |ict lock|ing is n|
|00001960| 6f 74 20 6e 65 65 64 65 | 64 20 61 6e 64 20 79 6f |ot neede|d and yo|
|00001970| 75 0a 58 63 61 6e 20 74 | 75 72 6e 20 69 74 20 6f |u.Xcan t|urn it o|
|00001980| 66 66 2e 0a 58 49 66 20 | 73 74 72 69 63 74 20 6c |ff..XIf |strict l|
|00001990| 6f 63 6b 69 6e 67 20 69 | 73 20 74 75 72 6e 65 64 |ocking i|s turned|
|000019a0| 20 6f 66 66 2c 0a 58 74 | 68 65 20 6f 77 6e 65 72 | off,.Xt|he owner|
|000019b0| 20 6f 66 20 74 68 65 20 | 5c 2a 72 20 66 69 6c 65 | of the |\*r file|
|000019c0| 20 6e 65 65 64 20 6e 6f | 74 20 68 61 76 65 20 61 | need no|t have a|
|000019d0| 20 6c 6f 63 6b 20 66 6f | 72 20 63 68 65 63 6b 2d | lock fo|r check-|
|000019e0| 69 6e 3b 20 61 6c 6c 20 | 6f 74 68 65 72 73 0a 58 |in; all |others.X|
|000019f0| 73 74 69 6c 6c 20 64 6f | 2e 20 20 54 75 72 6e 69 |still do|. Turni|
|00001a00| 6e 67 20 73 74 72 69 63 | 74 20 6c 6f 63 6b 69 6e |ng stric|t lockin|
|00001a10| 67 20 6f 66 66 20 61 6e | 64 20 6f 6e 20 69 73 20 |g off an|d on is |
|00001a20| 64 6f 6e 65 20 77 69 74 | 68 20 74 68 65 20 63 6f |done wit|h the co|
|00001a30| 6d 6d 61 6e 64 73 0a 58 | 2e 49 50 0a 58 2e 42 52 |mmands.X|.IP.X.BR|
|00001a40| 20 22 72 63 73 20 20 5c | 2d 55 20 20 66 2e 63 22 | "rcs \|-U f.c"|
|00001a50| 20 22 20 20 20 20 20 61 | 6e 64 20 20 20 20 20 22 | " a|nd "|
|00001a60| 20 22 72 63 73 20 20 5c | 2d 4c 20 20 66 2e 63 22 | "rcs \|-L f.c"|
|00001a70| 0a 58 2e 4c 50 0a 58 49 | 66 20 79 6f 75 20 64 6f |.X.LP.XI|f you do|
|00001a80| 6e 27 74 20 77 61 6e 74 | 20 74 6f 20 63 6c 75 74 |n't want| to clut|
|00001a90| 74 65 72 20 79 6f 75 72 | 20 77 6f 72 6b 69 6e 67 |ter your| working|
|00001aa0| 20 64 69 72 65 63 74 6f | 72 79 20 77 69 74 68 20 | directo|ry with |
|00001ab0| 5c 2a 72 20 66 69 6c 65 | 73 2c 20 63 72 65 61 74 |\*r file|s, creat|
|00001ac0| 65 0a 58 61 20 73 75 62 | 64 69 72 65 63 74 6f 72 |e.Xa sub|director|
|00001ad0| 79 20 63 61 6c 6c 65 64 | 0a 58 2e 42 20 52 43 53 |y called|.X.B RCS|
|00001ae0| 0a 58 69 6e 20 79 6f 75 | 72 20 77 6f 72 6b 69 6e |.Xin you|r workin|
|00001af0| 67 20 64 69 72 65 63 74 | 6f 72 79 2c 20 61 6e 64 |g direct|ory, and|
|00001b00| 20 6d 6f 76 65 20 61 6c | 6c 20 79 6f 75 72 20 5c | move al|l your \|
|00001b10| 2a 72 0a 58 66 69 6c 65 | 73 20 74 68 65 72 65 2e |*r.Xfile|s there.|
|00001b20| 20 20 5c 2a 72 20 63 6f | 6d 6d 61 6e 64 73 20 77 | \*r co|mmands w|
|00001b30| 69 6c 6c 20 6c 6f 6f 6b | 20 66 69 72 73 74 20 69 |ill look| first i|
|00001b40| 6e 74 6f 20 74 68 61 74 | 20 64 69 72 65 63 74 6f |nto that| directo|
|00001b50| 72 79 20 74 6f 20 66 69 | 6e 64 0a 58 6e 65 65 64 |ry to fi|nd.Xneed|
|00001b60| 65 64 20 66 69 6c 65 73 | 2e 20 20 41 6c 6c 20 74 |ed files|. All t|
|00001b70| 68 65 20 63 6f 6d 6d 61 | 6e 64 73 20 64 69 73 63 |he comma|nds disc|
|00001b80| 75 73 73 65 64 20 61 62 | 6f 76 65 20 77 69 6c 6c |ussed ab|ove will|
|00001b90| 20 73 74 69 6c 6c 20 77 | 6f 72 6b 2c 20 77 69 74 | still w|ork, wit|
|00001ba0| 68 6f 75 74 20 61 6e 79 | 0a 58 6d 6f 64 69 66 69 |hout any|.Xmodifi|
|00001bb0| 63 61 74 69 6f 6e 2e 0a | 58 28 41 63 74 75 61 6c |cation..|X(Actual|
|00001bc0| 6c 79 2c 20 70 61 69 72 | 73 20 6f 66 20 5c 2a 72 |ly, pair|s of \*r|
|00001bd0| 20 61 6e 64 20 77 6f 72 | 6b 69 6e 67 20 66 69 6c | and wor|king fil|
|00001be0| 65 73 20 63 61 6e 20 62 | 65 20 73 70 65 63 69 66 |es can b|e specif|
|00001bf0| 69 65 64 20 69 6e 20 74 | 68 72 65 65 20 77 61 79 |ied in t|hree way|
|00001c00| 73 3a 0a 58 28 61 29 20 | 62 6f 74 68 20 61 72 65 |s:.X(a) |both are|
|00001c10| 20 67 69 76 65 6e 2c 20 | 28 62 29 20 6f 6e 6c 79 | given, |(b) only|
|00001c20| 20 74 68 65 20 77 6f 72 | 6b 69 6e 67 20 66 69 6c | the wor|king fil|
|00001c30| 65 20 69 73 20 67 69 76 | 65 6e 2c 20 28 63 29 20 |e is giv|en, (c) |
|00001c40| 6f 6e 6c 79 20 74 68 65 | 0a 58 5c 2a 72 20 66 69 |only the|.X\*r fi|
|00001c50| 6c 65 20 69 73 20 67 69 | 76 65 6e 2e 20 20 42 6f |le is gi|ven. Bo|
|00001c60| 74 68 20 5c 2a 72 20 61 | 6e 64 20 77 6f 72 6b 69 |th \*r a|nd worki|
|00001c70| 6e 67 20 66 69 6c 65 73 | 20 6d 61 79 20 68 61 76 |ng files| may hav|
|00001c80| 65 20 61 72 62 69 74 72 | 61 72 79 20 70 61 74 68 |e arbitr|ary path|
|00001c90| 20 70 72 65 66 69 78 65 | 73 3b 0a 58 5c 2a 72 20 | prefixe|s;.X\*r |
|00001ca0| 63 6f 6d 6d 61 6e 64 73 | 20 70 61 69 72 20 74 68 |commands| pair th|
|00001cb0| 65 6d 20 75 70 20 69 6e | 74 65 6c 6c 69 67 65 6e |em up in|telligen|
|00001cc0| 74 6c 79 2e 29 0a 58 2e | 50 50 0a 58 54 6f 20 61 |tly.).X.|PP.XTo a|
|00001cd0| 76 6f 69 64 20 74 68 65 | 20 64 65 6c 65 74 69 6f |void the| deletio|
|00001ce0| 6e 20 6f 66 20 74 68 65 | 20 77 6f 72 6b 69 6e 67 |n of the| working|
|00001cf0| 20 66 69 6c 65 20 64 75 | 72 69 6e 67 20 63 68 65 | file du|ring che|
|00001d00| 63 6b 2d 69 6e 20 28 69 | 6e 20 63 61 73 65 20 79 |ck-in (i|n case y|
|00001d10| 6f 75 20 77 61 6e 74 20 | 74 6f 0a 58 63 6f 6e 74 |ou want |to.Xcont|
|00001d20| 69 6e 75 65 20 65 64 69 | 74 69 6e 67 20 6f 72 20 |inue edi|ting or |
|00001d30| 63 6f 6d 70 69 6c 69 6e | 67 29 2c 20 69 6e 76 6f |compilin|g), invo|
|00001d40| 6b 65 0a 58 2e 49 50 0a | 58 2e 42 52 20 22 63 69 |ke.X.IP.|X.BR "ci|
|00001d50| 20 20 5c 2d 6c 20 20 66 | 2e 63 22 20 22 20 20 20 | \-l f|.c" " |
|00001d60| 20 20 6f 72 20 20 20 20 | 20 22 20 22 63 69 20 20 | or | " "ci |
|00001d70| 5c 2d 75 20 20 66 2e 63 | 22 0a 58 2e 4c 50 0a 58 |\-u f.c|".X.LP.X|
|00001d80| 54 68 65 73 65 20 63 6f | 6d 6d 61 6e 64 73 20 63 |These co|mmands c|
|00001d90| 68 65 63 6b 20 69 6e 0a | 58 2e 42 20 66 2e 63 0a |heck in.|X.B f.c.|
|00001da0| 58 61 73 20 75 73 75 61 | 6c 2c 20 62 75 74 20 70 |Xas usua|l, but p|
|00001db0| 65 72 66 6f 72 6d 20 61 | 6e 20 69 6d 70 6c 69 63 |erform a|n implic|
|00001dc0| 69 74 0a 58 63 68 65 63 | 6b 2d 6f 75 74 2e 20 20 |it.Xchec|k-out. |
|00001dd0| 54 68 65 20 66 69 72 73 | 74 20 66 6f 72 6d 20 61 |The firs|t form a|
|00001de0| 6c 73 6f 20 6c 6f 63 6b | 73 20 74 68 65 20 63 68 |lso lock|s the ch|
|00001df0| 65 63 6b 65 64 20 69 6e | 20 72 65 76 69 73 69 6f |ecked in| revisio|
|00001e00| 6e 2c 20 74 68 65 20 73 | 65 63 6f 6e 64 20 6f 6e |n, the s|econd on|
|00001e10| 65 0a 58 64 6f 65 73 6e | 27 74 2e 20 20 54 68 75 |e.Xdoesn|'t. Thu|
|00001e20| 73 2c 20 74 68 65 73 65 | 20 6f 70 74 69 6f 6e 73 |s, these| options|
|00001e30| 20 73 61 76 65 20 79 6f | 75 20 6f 6e 65 20 63 68 | save yo|u one ch|
|00001e40| 65 63 6b 2d 6f 75 74 20 | 6f 70 65 72 61 74 69 6f |eck-out |operatio|
|00001e50| 6e 2e 0a 58 54 68 65 20 | 66 69 72 73 74 20 66 6f |n..XThe |first fo|
|00001e60| 72 6d 20 69 73 20 75 73 | 65 66 75 6c 20 69 66 20 |rm is us|eful if |
|00001e70| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 63 6f 6e 74 |you want| to cont|
|00001e80| 69 6e 75 65 20 65 64 69 | 74 69 6e 67 2c 0a 58 74 |inue edi|ting,.Xt|
|00001e90| 68 65 20 73 65 63 6f 6e | 64 20 6f 6e 65 20 69 66 |he secon|d one if|
|00001ea0| 20 79 6f 75 20 6a 75 73 | 74 20 77 61 6e 74 20 74 | you jus|t want t|
|00001eb0| 6f 20 72 65 61 64 20 74 | 68 65 20 66 69 6c 65 2e |o read t|he file.|
|00001ec0| 0a 58 42 6f 74 68 20 75 | 70 64 61 74 65 20 74 68 |.XBoth u|pdate th|
|00001ed0| 65 20 69 64 65 6e 74 69 | 66 69 63 61 74 69 6f 6e |e identi|fication|
|00001ee0| 20 6d 61 72 6b 65 72 73 | 20 69 6e 20 79 6f 75 72 | markers| in your|
|00001ef0| 20 77 6f 72 6b 69 6e 67 | 20 66 69 6c 65 20 28 73 | working| file (s|
|00001f00| 65 65 20 62 65 6c 6f 77 | 29 2e 0a 58 2e 50 50 0a |ee below|)..X.PP.|
|00001f10| 58 59 6f 75 20 63 61 6e | 20 67 69 76 65 0a 58 2e |XYou can| give.X.|
|00001f20| 42 20 63 69 0a 58 74 68 | 65 20 6e 75 6d 62 65 72 |B ci.Xth|e number|
|00001f30| 20 79 6f 75 20 77 61 6e | 74 20 61 73 73 69 67 6e | you wan|t assign|
|00001f40| 65 64 20 74 6f 20 61 20 | 63 68 65 63 6b 65 64 20 |ed to a |checked |
|00001f50| 69 6e 0a 58 72 65 76 69 | 73 69 6f 6e 2e 20 20 41 |in.Xrevi|sion. A|
|00001f60| 73 73 75 6d 65 20 61 6c | 6c 20 79 6f 75 72 20 72 |ssume al|l your r|
|00001f70| 65 76 69 73 69 6f 6e 73 | 20 77 65 72 65 20 6e 75 |evisions| were nu|
|00001f80| 6d 62 65 72 65 64 20 31 | 2e 31 2c 20 31 2e 32 2c |mbered 1|.1, 1.2,|
|00001f90| 20 31 2e 33 2c 20 65 74 | 63 2e 2c 0a 58 61 6e 64 | 1.3, et|c.,.Xand|
|00001fa0| 20 79 6f 75 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 | you wou|ld like |
|00001fb0| 74 6f 20 73 74 61 72 74 | 20 72 65 6c 65 61 73 65 |to start| release|
|00001fc0| 20 32 2e 0a 58 54 68 65 | 20 63 6f 6d 6d 61 6e 64 | 2..XThe| command|
|00001fd0| 0a 58 2e 49 50 0a 58 2e | 42 52 20 22 63 69 20 20 |.X.IP.X.|BR "ci |
|00001fe0| 5c 2d 72 32 20 20 66 2e | 63 22 20 22 20 20 20 20 |\-r2 f.|c" " |
|00001ff0| 20 6f 72 20 20 20 20 20 | 22 20 22 63 69 20 20 5c | or |" "ci \|
|00002000| 2d 72 32 2e 31 20 20 66 | 2e 63 22 0a 58 2e 4c 50 |-r2.1 f|.c".X.LP|
|00002010| 0a 58 61 73 73 69 67 6e | 73 20 74 68 65 20 6e 75 |.Xassign|s the nu|
|00002020| 6d 62 65 72 20 32 2e 31 | 20 74 6f 20 74 68 65 20 |mber 2.1| to the |
|00002030| 6e 65 77 20 72 65 76 69 | 73 69 6f 6e 2e 0a 58 46 |new revi|sion..XF|
|00002040| 72 6f 6d 20 74 68 65 6e | 20 6f 6e 2c 0a 58 2e 42 |rom then| on,.X.B|
|00002050| 20 63 69 0a 58 77 69 6c | 6c 20 6e 75 6d 62 65 72 | ci.Xwil|l number|
|00002060| 20 74 68 65 20 73 75 62 | 73 65 71 75 65 6e 74 20 | the sub|sequent |
|00002070| 72 65 76 69 73 69 6f 6e | 73 0a 58 77 69 74 68 20 |revision|s.Xwith |
|00002080| 32 2e 32 2c 20 32 2e 33 | 2c 20 65 74 63 2e 20 20 |2.2, 2.3|, etc. |
|00002090| 54 68 65 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |The corr|espondin|
|000020a0| 67 0a 58 2e 42 20 63 6f | 0a 58 63 6f 6d 6d 61 6e |g.X.B co|.Xcomman|
|000020b0| 64 73 0a 58 2e 49 50 0a | 58 2e 42 52 20 22 63 6f |ds.X.IP.|X.BR "co|
|000020c0| 20 20 5c 2d 72 32 20 20 | 66 2e 63 22 20 22 20 20 | \-r2 |f.c" " |
|000020d0| 20 20 20 61 6e 64 20 20 | 20 20 20 22 20 22 63 6f | and | " "co|
|000020e0| 20 20 5c 2d 72 32 2e 31 | 20 20 66 2e 63 22 0a 58 | \-r2.1| f.c".X|
|000020f0| 2e 50 50 0a 58 72 65 74 | 72 69 65 76 65 20 74 68 |.PP.Xret|rieve th|
|00002100| 65 20 6c 61 74 65 73 74 | 20 72 65 76 69 73 69 6f |e latest| revisio|
|00002110| 6e 20 6e 75 6d 62 65 72 | 65 64 0a 58 2e 52 49 20 |n number|ed.X.RI |
|00002120| 32 2e 20 78 0a 58 61 6e | 64 20 74 68 65 20 72 65 |2. x.Xan|d the re|
|00002130| 76 69 73 69 6f 6e 20 32 | 2e 31 2c 0a 58 72 65 73 |vision 2|.1,.Xres|
|00002140| 70 65 63 74 69 76 65 6c | 79 2e 0a 58 2e 42 20 63 |pectivel|y..X.B c|
|00002150| 6f 0a 58 77 69 74 68 6f | 75 74 20 61 20 72 65 76 |o.Xwitho|ut a rev|
|00002160| 69 73 69 6f 6e 20 6e 75 | 6d 62 65 72 20 73 65 6c |ision nu|mber sel|
|00002170| 65 63 74 73 0a 58 74 68 | 65 20 6c 61 74 65 73 74 |ects.Xth|e latest|
|00002180| 20 72 65 76 69 73 69 6f | 6e 20 6f 6e 20 74 68 65 | revisio|n on the|
|00002190| 0a 58 2e 49 52 20 74 72 | 75 6e 6b 20 2c 0a 58 69 |.X.IR tr|unk ,.Xi|
|000021a0| 2e 65 2e 20 74 68 65 20 | 68 69 67 68 65 73 74 0a |.e. the |highest.|
|000021b0| 58 72 65 76 69 73 69 6f | 6e 20 77 69 74 68 20 61 |Xrevisio|n with a|
|000021c0| 20 6e 75 6d 62 65 72 20 | 63 6f 6e 73 69 73 74 69 | number |consisti|
|000021d0| 6e 67 20 6f 66 20 74 77 | 6f 20 66 69 65 6c 64 73 |ng of tw|o fields|
|000021e0| 2e 20 20 4e 75 6d 62 65 | 72 73 20 77 69 74 68 20 |. Numbe|rs with |
|000021f0| 6d 6f 72 65 20 74 68 61 | 6e 20 74 77 6f 0a 58 66 |more tha|n two.Xf|
|00002200| 69 65 6c 64 73 20 61 72 | 65 20 6e 65 65 64 65 64 |ields ar|e needed|
|00002210| 20 66 6f 72 20 62 72 61 | 6e 63 68 65 73 2e 0a 58 | for bra|nches..X|
|00002220| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 74 6f 20 |For exam|ple, to |
|00002230| 73 74 61 72 74 20 61 20 | 62 72 61 6e 63 68 20 61 |start a |branch a|
|00002240| 74 20 72 65 76 69 73 69 | 6f 6e 20 31 2e 33 2c 20 |t revisi|on 1.3, |
|00002250| 69 6e 76 6f 6b 65 0a 58 | 2e 49 50 0a 58 2e 42 20 |invoke.X|.IP.X.B |
|00002260| 22 63 69 20 20 5c 2d 72 | 31 2e 33 2e 31 20 20 66 |"ci \-r|1.3.1 f|
|00002270| 2e 63 22 0a 58 2e 4c 50 | 0a 58 54 68 69 73 20 63 |.c".X.LP|.XThis c|
|00002280| 6f 6d 6d 61 6e 64 20 73 | 74 61 72 74 73 20 61 20 |ommand s|tarts a |
|00002290| 62 72 61 6e 63 68 20 6e | 75 6d 62 65 72 65 64 20 |branch n|umbered |
|000022a0| 31 20 61 74 20 72 65 76 | 69 73 69 6f 6e 20 31 2e |1 at rev|ision 1.|
|000022b0| 33 2c 20 61 6e 64 20 61 | 73 73 69 67 6e 73 0a 58 |3, and a|ssigns.X|
|000022c0| 74 68 65 20 6e 75 6d 62 | 65 72 20 31 2e 33 2e 31 |the numb|er 1.3.1|
|000022d0| 2e 31 20 74 6f 20 74 68 | 65 20 6e 65 77 20 72 65 |.1 to th|e new re|
|000022e0| 76 69 73 69 6f 6e 2e 20 | 20 46 6f 72 20 6d 6f 72 |vision. | For mor|
|000022f0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |e inform|ation ab|
|00002300| 6f 75 74 0a 58 62 72 61 | 6e 63 68 65 73 2c 20 73 |out.Xbra|nches, s|
|00002310| 65 65 0a 58 2e 42 52 20 | 72 63 73 66 69 6c 65 20 |ee.X.BR |rcsfile |
|00002320| 28 35 29 2e 0a 58 2e 53 | 53 20 22 41 75 74 6f 6d |(5)..X.S|S "Autom|
|00002330| 61 74 69 63 20 49 64 65 | 6e 74 69 66 69 63 61 74 |atic Ide|ntificat|
|00002340| 69 6f 6e 22 0a 58 5c 2a | 72 20 63 61 6e 20 70 75 |ion".X\*|r can pu|
|00002350| 74 20 73 70 65 63 69 61 | 6c 20 73 74 72 69 6e 67 |t specia|l string|
|00002360| 73 20 66 6f 72 20 69 64 | 65 6e 74 69 66 69 63 61 |s for id|entifica|
|00002370| 74 69 6f 6e 20 69 6e 74 | 6f 20 79 6f 75 72 20 73 |tion int|o your s|
|00002380| 6f 75 72 63 65 20 61 6e | 64 20 6f 62 6a 65 63 74 |ource an|d object|
|00002390| 0a 58 63 6f 64 65 2e 20 | 20 54 6f 20 6f 62 74 61 |.Xcode. | To obta|
|000023a0| 69 6e 20 73 75 63 68 20 | 69 64 65 6e 74 69 66 69 |in such |identifi|
|000023b0| 63 61 74 69 6f 6e 2c 20 | 70 6c 61 63 65 20 74 68 |cation, |place th|
|000023c0| 65 20 6d 61 72 6b 65 72 | 0a 58 2e 49 50 0a 58 2e |e marker|.X.IP.X.|
|000023d0| 42 20 22 24 5c 26 49 64 | 24 22 0a 58 2e 4c 50 0a |B "$\&Id|$".X.LP.|
|000023e0| 58 69 6e 74 6f 20 79 6f | 75 72 20 74 65 78 74 2c |Xinto yo|ur text,|
|000023f0| 20 66 6f 72 20 69 6e 73 | 74 61 6e 63 65 20 69 6e | for ins|tance in|
|00002400| 73 69 64 65 20 61 20 63 | 6f 6d 6d 65 6e 74 2e 0a |side a c|omment..|
|00002410| 58 5c 2a 72 20 77 69 6c | 6c 20 72 65 70 6c 61 63 |X\*r wil|l replac|
|00002420| 65 20 74 68 69 73 20 6d | 61 72 6b 65 72 20 77 69 |e this m|arker wi|
|00002430| 74 68 20 61 20 73 74 72 | 69 6e 67 20 6f 66 20 74 |th a str|ing of t|
|00002440| 68 65 20 66 6f 72 6d 0a | 58 2e 49 50 0a 58 2e 42 |he form.|X.IP.X.B|
|00002450| 49 20 24 5c 26 49 64 3a | 20 22 20 20 66 69 6c 65 |I $\&Id:| " file|
|00002460| 6e 61 6d 65 20 20 72 65 | 76 69 73 69 6f 6e 20 20 |name re|vision |
|00002470| 64 61 74 65 20 20 74 69 | 6d 65 20 20 61 75 74 68 |date ti|me auth|
|00002480| 6f 72 20 20 73 74 61 74 | 65 20 20 22 20 24 0a 58 |or stat|e " $.X|
|00002490| 2e 4c 50 0a 58 57 69 74 | 68 20 73 75 63 68 20 61 |.LP.XWit|h such a|
|000024a0| 20 6d 61 72 6b 65 72 20 | 6f 6e 20 74 68 65 20 66 | marker |on the f|
|000024b0| 69 72 73 74 20 70 61 67 | 65 20 6f 66 20 65 61 63 |irst pag|e of eac|
|000024c0| 68 20 6d 6f 64 75 6c 65 | 2c 20 79 6f 75 20 63 61 |h module|, you ca|
|000024d0| 6e 0a 58 61 6c 77 61 79 | 73 20 73 65 65 20 77 69 |n.Xalway|s see wi|
|000024e0| 74 68 20 77 68 69 63 68 | 20 72 65 76 69 73 69 6f |th which| revisio|
|000024f0| 6e 20 79 6f 75 20 61 72 | 65 20 77 6f 72 6b 69 6e |n you ar|e workin|
|00002500| 67 2e 0a 58 5c 2a 72 20 | 6b 65 65 70 73 20 74 68 |g..X\*r |keeps th|
|00002510| 65 20 6d 61 72 6b 65 72 | 73 20 75 70 20 74 6f 20 |e marker|s up to |
|00002520| 64 61 74 65 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |date aut|omatical|
|00002530| 6c 79 2e 0a 58 54 6f 20 | 70 72 6f 70 61 67 61 74 |ly..XTo |propagat|
|00002540| 65 20 74 68 65 20 6d 61 | 72 6b 65 72 73 20 69 6e |e the ma|rkers in|
|00002550| 74 6f 20 79 6f 75 72 20 | 6f 62 6a 65 63 74 20 63 |to your |object c|
|00002560| 6f 64 65 2c 20 73 69 6d | 70 6c 79 20 70 75 74 0a |ode, sim|ply put.|
|00002570| 58 74 68 65 6d 20 69 6e | 74 6f 20 6c 69 74 65 72 |Xthem in|to liter|
|00002580| 61 6c 20 63 68 61 72 61 | 63 74 65 72 20 73 74 72 |al chara|cter str|
|00002590| 69 6e 67 73 2e 20 20 49 | 6e 20 43 2c 20 74 68 69 |ings. I|n C, thi|
|000025a0| 73 20 69 73 20 64 6f 6e | 65 20 61 73 20 66 6f 6c |s is don|e as fol|
|000025b0| 6c 6f 77 73 3a 0a 58 2e | 49 50 0a 58 2e 66 74 20 |lows:.X.|IP.X.ft |
|000025c0| 33 0a 58 73 74 61 74 69 | 63 20 63 68 61 72 20 72 |3.Xstati|c char r|
|000025d0| 63 73 69 64 5b 5d 20 3d | 20 5c 26 22 24 5c 26 49 |csid[] =| \&"$\&I|
|000025e0| 64 24 5c 26 22 3b 0a 58 | 2e 66 74 0a 58 2e 4c 50 |d$\&";.X|.ft.X.LP|
|000025f0| 0a 58 54 68 65 20 63 6f | 6d 6d 61 6e 64 0a 58 2e |.XThe co|mmand.X.|
|00002600| 42 20 69 64 65 6e 74 0a | 58 65 78 74 72 61 63 74 |B ident.|Xextract|
|00002610| 73 20 73 75 63 68 20 6d | 61 72 6b 65 72 73 20 66 |s such m|arkers f|
|00002620| 72 6f 6d 20 61 6e 79 20 | 66 69 6c 65 2c 20 65 76 |rom any |file, ev|
|00002630| 65 6e 20 6f 62 6a 65 63 | 74 20 63 6f 64 65 0a 58 |en objec|t code.X|
|00002640| 61 6e 64 20 64 75 6d 70 | 73 2e 0a 58 54 68 75 73 |and dump|s..XThus|
|00002650| 2c 0a 58 2e 42 20 69 64 | 65 6e 74 0a 58 6c 65 74 |,.X.B id|ent.Xlet|
|00002660| 73 20 79 6f 75 20 66 69 | 6e 64 20 6f 75 74 0a 58 |s you fi|nd out.X|
|00002670| 77 68 69 63 68 20 72 65 | 76 69 73 69 6f 6e 73 20 |which re|visions |
|00002680| 6f 66 20 77 68 69 63 68 | 20 6d 6f 64 75 6c 65 73 |of which| modules|
|00002690| 20 77 65 72 65 20 75 73 | 65 64 20 69 6e 20 61 20 | were us|ed in a |
|000026a0| 67 69 76 65 6e 20 70 72 | 6f 67 72 61 6d 2e 0a 58 |given pr|ogram..X|
|000026b0| 2e 50 50 0a 58 59 6f 75 | 20 6d 61 79 20 61 6c 73 |.PP.XYou| may als|
|000026c0| 6f 20 66 69 6e 64 20 69 | 74 20 75 73 65 66 75 6c |o find i|t useful|
|000026d0| 20 74 6f 20 70 75 74 20 | 74 68 65 20 6d 61 72 6b | to put |the mark|
|000026e0| 65 72 0a 58 2e 42 20 24 | 5c 26 4c 6f 67 24 0a 58 |er.X.B $|\&Log$.X|
|000026f0| 69 6e 74 6f 20 79 6f 75 | 72 20 74 65 78 74 2c 20 |into you|r text, |
|00002700| 69 6e 73 69 64 65 20 61 | 20 63 6f 6d 6d 65 6e 74 |inside a| comment|
|00002710| 2e 20 20 54 68 69 73 20 | 6d 61 72 6b 65 72 20 61 |. This |marker a|
|00002720| 63 63 75 6d 75 6c 61 74 | 65 73 0a 58 74 68 65 20 |ccumulat|es.Xthe |
|00002730| 6c 6f 67 20 6d 65 73 73 | 61 67 65 73 20 74 68 61 |log mess|ages tha|
|00002740| 74 20 61 72 65 20 72 65 | 71 75 65 73 74 65 64 20 |t are re|quested |
|00002750| 64 75 72 69 6e 67 20 63 | 68 65 63 6b 2d 69 6e 2e |during c|heck-in.|
|00002760| 0a 58 54 68 75 73 2c 20 | 79 6f 75 20 63 61 6e 20 |.XThus, |you can |
|00002770| 6d 61 69 6e 74 61 69 6e | 20 74 68 65 20 63 6f 6d |maintain| the com|
|00002780| 70 6c 65 74 65 20 68 69 | 73 74 6f 72 79 20 6f 66 |plete hi|story of|
|00002790| 20 79 6f 75 72 20 66 69 | 6c 65 20 64 69 72 65 63 | your fi|le direc|
|000027a0| 74 6c 79 20 69 6e 73 69 | 64 65 20 69 74 2e 0a 58 |tly insi|de it..X|
|000027b0| 54 68 65 72 65 20 61 72 | 65 20 73 65 76 65 72 61 |There ar|e severa|
|000027c0| 6c 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 69 64 65 |l additi|onal ide|
|000027d0| 6e 74 69 66 69 63 61 74 | 69 6f 6e 20 6d 61 72 6b |ntificat|ion mark|
|000027e0| 65 72 73 3b 20 73 65 65 | 0a 58 2e 42 52 20 63 6f |ers; see|.X.BR co|
|000027f0| 20 28 31 29 0a 58 66 6f | 72 0a 58 64 65 74 61 69 | (1).Xfo|r.Xdetai|
|00002800| 6c 73 2e 0a 58 2e 53 48 | 20 49 44 45 4e 54 49 46 |ls..X.SH| IDENTIF|
|00002810| 49 43 41 54 49 4f 4e 0a | 58 41 75 74 68 6f 72 3a |ICATION.|XAuthor:|
|00002820| 20 57 61 6c 74 65 72 20 | 46 2e 20 54 69 63 68 79 | Walter |F. Tichy|
|00002830| 2e 0a 58 2e 62 72 0a 58 | 52 65 76 69 73 69 6f 6e |..X.br.X|Revision|
|00002840| 20 4e 75 6d 62 65 72 3a | 20 5c 2a 28 52 76 3b 20 | Number:| \*(Rv; |
|00002850| 52 65 6c 65 61 73 65 20 | 44 61 74 65 3a 20 5c 2a |Release |Date: \*|
|00002860| 28 44 74 2e 0a 58 2e 62 | 72 0a 58 43 6f 70 79 72 |(Dt..X.b|r.XCopyr|
|00002870| 69 67 68 74 20 5c 28 63 | 6f 20 31 39 38 32 2c 20 |ight \(c|o 1982, |
|00002880| 31 39 38 38 2c 20 31 39 | 38 39 20 62 79 20 57 61 |1988, 19|89 by Wa|
|00002890| 6c 74 65 72 20 46 2e 20 | 54 69 63 68 79 2e 0a 58 |lter F. |Tichy..X|
|000028a0| 2e 62 72 0a 58 43 6f 70 | 79 72 69 67 68 74 20 5c |.br.XCop|yright \|
|000028b0| 28 63 6f 20 31 39 39 30 | 20 62 79 20 50 61 75 6c |(co 1990| by Paul|
|000028c0| 20 45 67 67 65 72 74 2e | 0a 58 2e 53 48 20 22 53 | Eggert.|.X.SH "S|
|000028d0| 45 45 20 41 4c 53 4f 22 | 0a 58 63 69 28 31 29 2c |EE ALSO"|.Xci(1),|
|000028e0| 20 63 6f 28 31 29 2c 20 | 69 64 65 6e 74 28 31 29 | co(1), |ident(1)|
|000028f0| 2c 20 72 63 73 28 31 29 | 2c 20 72 63 73 64 69 66 |, rcs(1)|, rcsdif|
|00002900| 66 28 31 29 2c 20 72 63 | 73 69 6e 74 72 6f 28 31 |f(1), rc|sintro(1|
|00002910| 29 2c 20 72 63 73 6d 65 | 72 67 65 28 31 29 2c 20 |), rcsme|rge(1), |
|00002920| 72 6c 6f 67 28 31 29 0a | 58 2e 62 72 0a 58 57 61 |rlog(1).|X.br.XWa|
|00002930| 6c 74 65 72 20 46 2e 20 | 54 69 63 68 79 2c 0a 58 |lter F. |Tichy,.X|
|00002940| 5c 2a 72 5c 2a 2d 41 20 | 53 79 73 74 65 6d 20 66 |\*r\*-A |System f|
|00002950| 6f 72 20 56 65 72 73 69 | 6f 6e 20 43 6f 6e 74 72 |or Versi|on Contr|
|00002960| 6f 6c 2c 0a 58 2e 49 20 | 22 53 6f 66 74 77 61 72 |ol,.X.I |"Softwar|
|00002970| 65 5c 2a 2d 50 72 61 63 | 74 69 63 65 20 26 20 45 |e\*-Prac|tice & E|
|00002980| 78 70 65 72 69 65 6e 63 | 65 22 0a 58 2e 42 52 20 |xperienc|e".X.BR |
|00002990| 31 35 20 2c 0a 58 37 20 | 28 4a 75 6c 79 20 31 39 |15 ,.X7 |(July 19|
|000029a0| 38 35 29 2c 20 36 33 37 | 2d 36 35 34 2e 0a 45 4e |85), 637|-654..EN|
|000029b0| 44 5f 4f 46 5f 46 49 4c | 45 0a 20 20 69 66 20 74 |D_OF_FIL|E. if t|
|000029c0| 65 73 74 20 39 32 30 39 | 20 2d 6e 65 20 60 77 63 |est 9209| -ne `wc|
|000029d0| 20 2d 63 20 3c 27 6d 61 | 6e 2f 72 63 73 69 6e 74 | -c <'ma|n/rcsint|
|000029e0| 72 6f 2e 31 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |ro.1'`; |then. |
|000029f0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 6d | echo sh|ar: \"'m|
|00002a00| 61 6e 2f 72 63 73 69 6e | 74 72 6f 2e 31 27 5c 22 |an/rcsin|tro.1'\"|
|00002a10| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00002a20| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|00002a30| 20 20 23 20 65 6e 64 20 | 6f 66 20 27 6d 61 6e 2f | # end |of 'man/|
|00002a40| 72 63 73 69 6e 74 72 6f | 2e 31 27 0a 66 69 0a 69 |rcsintro|.1'.fi.i|
|00002a50| 66 20 74 65 73 74 20 2d | 66 20 27 72 63 73 5f 66 |f test -|f 'rcs_f|
|00002a60| 75 6e 63 2e 6d 73 27 20 | 2d 61 20 22 24 7b 31 7d |unc.ms' |-a "${1}|
|00002a70| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00002a80| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00002a90| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00002aa0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00002ab0| 27 72 63 73 5f 66 75 6e | 63 2e 6d 73 27 5c 22 0a |'rcs_fun|c.ms'\".|
|00002ac0| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|00002ad0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00002ae0| 72 63 73 5f 66 75 6e 63 | 2e 6d 73 27 5c 22 20 5c |rcs_func|.ms'\" \|
|00002af0| 28 33 36 38 33 20 63 68 | 61 72 61 63 74 65 72 73 |(3683 ch|aracters|
|00002b00| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00002b10| 22 20 3e 27 72 63 73 5f | 66 75 6e 63 2e 6d 73 27 |" >'rcs_|func.ms'|
|00002b20| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00002b30| 0a 58 2e 53 48 0a 58 46 | 75 6e 63 74 69 6f 6e 73 |.X.SH.XF|unctions|
|00002b40| 20 6f 66 20 52 43 53 20 | 28 52 65 76 69 73 69 6f | of RCS |(Revisio|
|00002b50| 6e 20 43 6f 6e 74 72 6f | 6c 20 53 79 73 74 65 6d |n Contro|l System|
|00002b60| 29 0a 58 2e 50 50 0a 58 | 52 43 53 20 6d 61 6e 61 |).X.PP.X|RCS mana|
|00002b70| 67 65 73 20 73 6f 66 74 | 77 61 72 65 20 6c 69 62 |ges soft|ware lib|
|00002b80| 72 61 72 69 65 73 2e 20 | 49 74 20 67 72 65 61 74 |raries. |It great|
|00002b90| 6c 79 20 69 6e 63 72 65 | 61 73 65 73 20 70 72 6f |ly incre|ases pro|
|00002ba0| 67 72 61 6d 6d 65 72 20 | 70 72 6f 64 75 63 74 69 |grammer |producti|
|00002bb0| 76 69 74 79 0a 58 62 79 | 20 70 72 6f 76 69 64 69 |vity.Xby| providi|
|00002bc0| 6e 67 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ng the f|ollowing|
|00002bd0| 20 66 75 6e 63 74 69 6f | 6e 73 2e 0a 58 2e 49 50 | functio|ns..X.IP|
|00002be0| 20 31 2e 0a 58 52 43 53 | 20 73 74 6f 72 65 73 20 | 1..XRCS| stores |
|00002bf0| 61 6e 64 20 72 65 74 72 | 69 65 76 65 73 20 6d 75 |and retr|ieves mu|
|00002c00| 6c 74 69 70 6c 65 20 72 | 65 76 69 73 69 6f 6e 73 |ltiple r|evisions|
|00002c10| 20 6f 66 20 70 72 6f 67 | 72 61 6d 20 61 6e 64 20 | of prog|ram and |
|00002c20| 6f 74 68 65 72 20 74 65 | 78 74 2e 0a 58 54 68 75 |other te|xt..XThu|
|00002c30| 73 2c 20 6f 6e 65 20 63 | 61 6e 20 6d 61 69 6e 74 |s, one c|an maint|
|00002c40| 61 69 6e 20 6f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 |ain one |or more |
|00002c50| 72 65 6c 65 61 73 65 73 | 20 77 68 69 6c 65 20 64 |releases| while d|
|00002c60| 65 76 65 6c 6f 70 69 6e | 67 20 74 68 65 20 6e 65 |evelopin|g the ne|
|00002c70| 78 74 0a 58 72 65 6c 65 | 61 73 65 2c 20 77 69 74 |xt.Xrele|ase, wit|
|00002c80| 68 20 61 20 6d 69 6e 69 | 6d 75 6d 20 6f 66 20 73 |h a mini|mum of s|
|00002c90| 70 61 63 65 20 6f 76 65 | 72 68 65 61 64 2e 20 43 |pace ove|rhead. C|
|00002ca0| 68 61 6e 67 65 73 20 6e | 6f 20 6c 6f 6e 67 65 72 |hanges n|o longer|
|00002cb0| 20 64 65 73 74 72 6f 79 | 20 74 68 65 0a 58 6f 72 | destroy| the.Xor|
|00002cc0| 69 67 69 6e 61 6c 20 2d | 2d 20 70 72 65 76 69 6f |iginal -|- previo|
|00002cd0| 75 73 20 72 65 76 69 73 | 69 6f 6e 73 20 72 65 6d |us revis|ions rem|
|00002ce0| 61 69 6e 20 61 63 63 65 | 73 73 69 62 6c 65 2e 0a |ain acce|ssible..|
|00002cf0| 58 2e 52 53 0a 58 2e 49 | 50 20 61 2e 0a 58 4d 61 |X.RS.X.I|P a..XMa|
|00002d00| 69 6e 74 61 69 6e 73 20 | 65 61 63 68 20 6d 6f 64 |intains |each mod|
|00002d10| 75 6c 65 20 61 73 20 61 | 20 74 72 65 65 20 6f 66 |ule as a| tree of|
|00002d20| 20 72 65 76 69 73 69 6f | 6e 73 2e 0a 58 2e 49 50 | revisio|ns..X.IP|
|00002d30| 20 62 2e 0a 58 50 72 6f | 6a 65 63 74 20 6c 69 62 | b..XPro|ject lib|
|00002d40| 72 61 72 69 65 73 20 63 | 61 6e 0a 58 62 65 20 6f |raries c|an.Xbe o|
|00002d50| 72 67 61 6e 69 7a 65 64 | 20 63 65 6e 74 72 61 6c |rganized| central|
|00002d60| 6c 79 2c 20 64 65 63 65 | 6e 74 72 61 6c 69 7a 65 |ly, dece|ntralize|
|00002d70| 64 2c 20 6f 72 20 61 6e | 79 20 77 61 79 20 79 6f |d, or an|y way yo|
|00002d80| 75 20 6c 69 6b 65 2e 0a | 58 2e 49 50 20 63 2e 0a |u like..|X.IP c..|
|00002d90| 58 52 43 53 20 77 6f 72 | 6b 73 20 66 6f 72 20 61 |XRCS wor|ks for a|
|00002da0| 6e 79 20 74 79 70 65 20 | 6f 66 20 74 65 78 74 3a |ny type |of text:|
|00002db0| 20 70 72 6f 67 72 61 6d | 73 2c 20 64 6f 63 75 6d | program|s, docum|
|00002dc0| 65 6e 74 61 74 69 6f 6e | 2c 20 6d 65 6d 6f 73 2c |entation|, memos,|
|00002dd0| 20 70 61 70 65 72 73 2c | 0a 58 67 72 61 70 68 69 | papers,|.Xgraphi|
|00002de0| 63 73 2c 20 56 4c 53 49 | 20 6c 61 79 6f 75 74 73 |cs, VLSI| layouts|
|00002df0| 2c 20 66 6f 72 6d 20 6c | 65 74 74 65 72 73 2c 20 |, form l|etters, |
|00002e00| 65 74 63 2e 0a 58 2e 52 | 45 0a 58 2e 49 50 20 32 |etc..X.R|E.X.IP 2|
|00002e10| 2e 0a 58 52 43 53 20 6d | 61 69 6e 74 61 69 6e 73 |..XRCS m|aintains|
|00002e20| 20 61 20 63 6f 6d 70 6c | 65 74 65 20 68 69 73 74 | a compl|ete hist|
|00002e30| 6f 72 79 20 6f 66 20 63 | 68 61 6e 67 65 73 2e 0a |ory of c|hanges..|
|00002e40| 58 54 68 75 73 2c 20 6f | 6e 65 20 63 61 6e 20 66 |XThus, o|ne can f|
|00002e50| 69 6e 64 20 6f 75 74 20 | 77 68 61 74 20 68 61 70 |ind out |what hap|
|00002e60| 70 65 6e 65 64 20 74 6f | 20 61 20 6d 6f 64 75 6c |pened to| a modul|
|00002e70| 65 20 65 61 73 69 6c 79 | 0a 58 61 6e 64 20 71 75 |e easily|.Xand qu|
|00002e80| 69 63 6b 6c 79 2c 20 77 | 69 74 68 6f 75 74 20 68 |ickly, w|ithout h|
|00002e90| 61 76 69 6e 67 20 74 6f | 20 63 6f 6d 70 61 72 65 |aving to| compare|
|00002ea0| 20 73 6f 75 72 63 65 20 | 6c 69 73 74 69 6e 67 73 | source |listings|
|00002eb0| 20 6f 72 0a 58 68 61 76 | 69 6e 67 20 74 6f 20 74 | or.Xhav|ing to t|
|00002ec0| 72 61 63 6b 20 64 6f 77 | 6e 20 63 6f 6c 6c 65 61 |rack dow|n collea|
|00002ed0| 67 75 65 73 2e 0a 58 2e | 52 53 0a 58 2e 49 50 20 |gues..X.|RS.X.IP |
|00002ee0| 61 2e 0a 58 52 43 53 20 | 70 65 72 66 6f 72 6d 73 |a..XRCS |performs|
|00002ef0| 20 61 75 74 6f 6d 61 74 | 69 63 20 72 65 63 6f 72 | automat|ic recor|
|00002f00| 64 20 6b 65 65 70 69 6e | 67 2e 0a 58 2e 49 50 20 |d keepin|g..X.IP |
|00002f10| 62 2e 0a 58 52 43 53 20 | 6c 6f 67 73 20 61 6c 6c |b..XRCS |logs all|
|00002f20| 20 63 68 61 6e 67 65 73 | 20 61 75 74 6f 6d 61 74 | changes| automat|
|00002f30| 69 63 61 6c 6c 79 2e 0a | 58 2e 49 50 20 63 2e 0a |ically..|X.IP c..|
|00002f40| 58 52 43 53 20 67 75 61 | 72 61 6e 74 65 65 73 20 |XRCS gua|rantees |
|00002f50| 70 72 6f 6a 65 63 74 20 | 63 6f 6e 74 69 6e 75 69 |project |continui|
|00002f60| 74 79 2e 0a 58 2e 52 45 | 0a 58 2e 49 50 20 33 2e |ty..X.RE|.X.IP 3.|
|00002f70| 0a 58 52 43 53 20 6d 61 | 6e 61 67 65 73 20 6d 75 |.XRCS ma|nages mu|
|00002f80| 6c 74 69 70 6c 65 20 6c | 69 6e 65 73 20 6f 66 20 |ltiple l|ines of |
|00002f90| 64 65 76 65 6c 6f 70 6d | 65 6e 74 2e 0a 58 2e 49 |developm|ent..X.I|
|00002fa0| 50 20 34 2e 0a 58 52 43 | 53 20 63 61 6e 20 6d 65 |P 4..XRC|S can me|
|00002fb0| 72 67 65 20 6d 75 6c 74 | 69 70 6c 65 20 6c 69 6e |rge mult|iple lin|
|00002fc0| 65 73 20 6f 66 20 64 65 | 76 65 6c 6f 70 6d 65 6e |es of de|velopmen|
|00002fd0| 74 2e 0a 58 54 68 75 73 | 2c 20 77 68 65 6e 20 73 |t..XThus|, when s|
|00002fe0| 65 76 65 72 61 6c 20 70 | 61 72 61 6c 6c 65 6c 20 |everal p|arallel |
|00002ff0| 6c 69 6e 65 73 20 6f 66 | 20 64 65 76 65 6c 6f 70 |lines of| develop|
|00003000| 6d 65 6e 74 20 6d 75 73 | 74 20 62 65 20 63 6f 6e |ment mus|t be con|
|00003010| 73 6f 6c 69 64 61 74 65 | 64 0a 58 69 6e 74 6f 20 |solidate|d.Xinto |
|00003020| 6f 6e 65 20 6c 69 6e 65 | 2c 20 74 68 65 20 6d 65 |one line|, the me|
|00003030| 72 67 69 6e 67 20 6f 66 | 20 63 68 61 6e 67 65 73 |rging of| changes|
|00003040| 20 69 73 20 61 75 74 6f | 6d 61 74 69 63 2e 0a 58 | is auto|matic..X|
|00003050| 2e 49 50 20 35 2e 0a 58 | 52 43 53 20 66 6c 61 67 |.IP 5..X|RCS flag|
|00003060| 73 20 63 6f 64 69 6e 67 | 20 63 6f 6e 66 6c 69 63 |s coding| conflic|
|00003070| 74 73 2e 0a 58 49 66 20 | 74 77 6f 20 6f 72 20 6d |ts..XIf |two or m|
|00003080| 6f 72 65 20 6c 69 6e 65 | 73 20 6f 66 20 64 65 76 |ore line|s of dev|
|00003090| 65 6c 6f 70 6d 65 6e 74 | 20 6d 6f 64 69 66 79 20 |elopment| modify |
|000030a0| 74 68 65 20 73 61 6d 65 | 20 73 65 63 74 69 6f 6e |the same| section|
|000030b0| 20 6f 66 20 63 6f 64 65 | 2c 0a 58 52 43 53 20 63 | of code|,.XRCS c|
|000030c0| 61 6e 20 61 6c 65 72 74 | 20 70 72 6f 67 72 61 6d |an alert| program|
|000030d0| 6d 65 72 73 20 61 62 6f | 75 74 20 6f 76 65 72 6c |mers abo|ut overl|
|000030e0| 61 70 70 69 6e 67 20 63 | 68 61 6e 67 65 73 2e 0a |apping c|hanges..|
|000030f0| 58 2e 49 50 20 36 2e 0a | 58 52 43 53 20 72 65 73 |X.IP 6..|XRCS res|
|00003100| 6f 6c 76 65 73 20 61 63 | 63 65 73 73 20 63 6f 6e |olves ac|cess con|
|00003110| 66 6c 69 63 74 73 2e 0a | 58 57 68 65 6e 20 74 77 |flicts..|XWhen tw|
|00003120| 6f 20 6f 72 20 6d 6f 72 | 65 20 70 72 6f 67 72 61 |o or mor|e progra|
|00003130| 6d 6d 65 72 73 20 77 69 | 73 68 20 74 6f 20 6d 6f |mmers wi|sh to mo|
|00003140| 64 69 66 79 20 74 68 65 | 20 73 61 6d 65 20 72 65 |dify the| same re|
|00003150| 76 69 73 69 6f 6e 2c 0a | 58 52 43 53 20 61 6c 65 |vision,.|XRCS ale|
|00003160| 72 74 73 20 74 68 65 20 | 70 72 6f 67 72 61 6d 6d |rts the |programm|
|00003170| 65 72 73 20 61 6e 64 20 | 6d 61 6b 65 73 20 73 75 |ers and |makes su|
|00003180| 72 65 20 74 68 61 74 20 | 6f 6e 65 20 6d 6f 64 69 |re that |one modi|
|00003190| 66 69 63 61 74 69 6f 6e | 20 77 6f 6e 27 74 20 77 |fication| won't w|
|000031a0| 69 70 65 0a 58 6f 75 74 | 20 74 68 65 20 6f 74 68 |ipe.Xout| the oth|
|000031b0| 65 72 20 6f 6e 65 2e 0a | 58 2e 49 50 20 37 2e 0a |er one..|X.IP 7..|
|000031c0| 58 52 43 53 20 70 72 6f | 76 69 64 65 73 20 68 69 |XRCS pro|vides hi|
|000031d0| 67 68 2d 6c 65 76 65 6c | 20 72 65 74 72 69 65 76 |gh-level| retriev|
|000031e0| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 73 2e 0a 58 52 |al funct|ions..XR|
|000031f0| 65 76 69 73 69 6f 6e 73 | 20 63 61 6e 20 62 65 20 |evisions| can be |
|00003200| 72 65 74 72 69 65 76 65 | 64 20 61 63 63 6f 72 64 |retrieve|d accord|
|00003210| 69 6e 67 20 74 6f 20 72 | 61 6e 67 65 73 20 6f 66 |ing to r|anges of|
|00003220| 20 72 65 76 69 73 69 6f | 6e 20 6e 75 6d 62 65 72 | revisio|n number|
|00003230| 73 2c 0a 58 73 79 6d 62 | 6f 6c 69 63 20 6e 61 6d |s,.Xsymb|olic nam|
|00003240| 65 73 2c 20 64 61 74 65 | 73 2c 20 61 75 74 68 6f |es, date|s, autho|
|00003250| 72 73 2c 20 61 6e 64 20 | 73 74 61 74 65 73 2e 0a |rs, and |states..|
|00003260| 58 2e 49 50 20 38 2e 0a | 58 52 43 53 20 70 72 6f |X.IP 8..|XRCS pro|
|00003270| 76 69 64 65 73 20 72 65 | 6c 65 61 73 65 20 61 6e |vides re|lease an|
|00003280| 64 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |d config|uration |
|00003290| 63 6f 6e 74 72 6f 6c 2e | 0a 58 52 65 76 69 73 69 |control.|.XRevisi|
|000032a0| 6f 6e 73 20 63 61 6e 20 | 62 65 20 6d 61 72 6b 65 |ons can |be marke|
|000032b0| 64 20 61 73 20 72 65 6c | 65 61 73 65 64 2c 20 73 |d as rel|eased, s|
|000032c0| 74 61 62 6c 65 2c 20 65 | 78 70 65 72 69 6d 65 6e |table, e|xperimen|
|000032d0| 74 61 6c 2c 20 65 74 63 | 2e 0a 58 43 6f 6e 66 69 |tal, etc|..XConfi|
|000032e0| 67 75 72 61 74 69 6f 6e | 73 20 6f 66 20 6d 6f 64 |guration|s of mod|
|000032f0| 75 6c 65 73 20 63 61 6e | 20 62 65 20 64 65 73 63 |ules can| be desc|
|00003300| 72 69 62 65 64 20 73 69 | 6d 70 6c 79 20 61 6e 64 |ribed si|mply and|
|00003310| 20 64 69 72 65 63 74 6c | 79 2e 0a 58 2e 49 50 20 | directl|y..X.IP |
|00003320| 39 2e 0a 58 52 43 53 20 | 70 65 72 66 6f 72 6d 73 |9..XRCS |performs|
|00003330| 20 61 75 74 6f 6d 61 74 | 69 63 20 69 64 65 6e 74 | automat|ic ident|
|00003340| 69 66 69 63 61 74 69 6f | 6e 20 6f 66 20 6d 6f 64 |ificatio|n of mod|
|00003350| 75 6c 65 73 20 77 69 74 | 68 20 6e 61 6d 65 2c 20 |ules wit|h name, |
|00003360| 72 65 76 69 73 69 6f 6e | 0a 58 6e 75 6d 62 65 72 |revision|.Xnumber|
|00003370| 2c 20 63 72 65 61 74 69 | 6f 6e 20 74 69 6d 65 2c |, creati|on time,|
|00003380| 20 61 75 74 68 6f 72 2c | 20 65 74 63 2e 0a 58 54 | author,| etc..XT|
|00003390| 68 75 73 2c 20 69 74 20 | 69 73 20 61 6c 77 61 79 |hus, it |is alway|
|000033a0| 73 20 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 64 65 |s possib|le to de|
|000033b0| 74 65 72 6d 69 6e 65 20 | 77 68 69 63 68 20 72 65 |termine |which re|
|000033c0| 76 69 73 69 6f 6e 73 20 | 6f 66 20 77 68 69 63 68 |visions |of which|
|000033d0| 0a 58 6d 6f 64 75 6c 65 | 73 20 6d 61 6b 65 20 75 |.Xmodule|s make u|
|000033e0| 70 20 61 20 67 69 76 65 | 6e 20 63 6f 6e 66 69 67 |p a give|n config|
|000033f0| 75 72 61 74 69 6f 6e 2e | 0a 58 2e 49 50 20 31 30 |uration.|.X.IP 10|
|00003400| 2e 0a 58 50 72 6f 76 69 | 64 65 73 20 68 69 67 68 |..XProvi|des high|
|00003410| 2d 6c 65 76 65 6c 20 6d | 61 6e 61 67 65 6d 65 6e |-level m|anagemen|
|00003420| 74 20 76 69 73 69 62 69 | 6c 69 74 79 2e 0a 58 54 |t visibi|lity..XT|
|00003430| 68 75 73 2c 20 69 74 20 | 69 73 20 65 61 73 79 20 |hus, it |is easy |
|00003440| 74 6f 20 74 72 61 63 6b | 20 74 68 65 20 73 74 61 |to track| the sta|
|00003450| 74 75 73 20 6f 66 20 61 | 20 73 6f 66 74 77 61 72 |tus of a| softwar|
|00003460| 65 20 70 72 6f 6a 65 63 | 74 2e 0a 58 2e 52 53 0a |e projec|t..X.RS.|
|00003470| 58 2e 49 50 20 61 2e 0a | 58 52 43 53 20 70 72 6f |X.IP a..|XRCS pro|
|00003480| 76 69 64 65 73 20 61 20 | 63 6f 6d 70 6c 65 74 65 |vides a |complete|
|00003490| 20 63 68 61 6e 67 65 20 | 68 69 73 74 6f 72 79 2e | change |history.|
|000034a0| 0a 58 2e 49 50 20 62 2e | 0a 58 52 43 53 20 72 65 |.X.IP b.|.XRCS re|
|000034b0| 63 6f 72 64 73 20 77 68 | 6f 20 64 69 64 20 77 68 |cords wh|o did wh|
|000034c0| 61 74 20 77 68 65 6e 20 | 74 6f 20 77 68 69 63 68 |at when |to which|
|000034d0| 20 72 65 76 69 73 69 6f | 6e 20 6f 66 20 77 68 69 | revisio|n of whi|
|000034e0| 63 68 20 6d 6f 64 75 6c | 65 2e 0a 58 2e 52 45 0a |ch modul|e..X.RE.|
|000034f0| 58 2e 49 50 20 31 31 2e | 0a 58 52 43 53 20 69 73 |X.IP 11.|.XRCS is|
|00003500| 20 66 75 6c 6c 79 20 63 | 6f 6d 70 61 74 69 62 6c | fully c|ompatibl|
|00003510| 65 20 77 69 74 68 20 65 | 78 69 73 74 69 6e 67 20 |e with e|xisting |
|00003520| 73 6f 66 74 77 61 72 65 | 20 64 65 76 65 6c 6f 70 |software| develop|
|00003530| 6d 65 6e 74 20 74 6f 6f | 6c 73 2e 0a 58 52 43 53 |ment too|ls..XRCS|
|00003540| 20 69 73 20 75 6e 6f 62 | 74 72 75 73 69 76 65 20 | is unob|trusive |
|00003550| 2d 2d 20 69 74 73 20 69 | 6e 74 65 72 66 61 63 65 |-- its i|nterface|
|00003560| 20 74 6f 20 74 68 65 20 | 66 69 6c 65 20 73 79 73 | to the |file sys|
|00003570| 74 65 6d 20 69 73 20 73 | 75 63 68 20 74 68 61 74 |tem is s|uch that|
|00003580| 0a 58 61 6c 6c 20 79 6f | 75 72 20 65 78 69 73 74 |.Xall yo|ur exist|
|00003590| 69 6e 67 20 73 6f 66 74 | 77 61 72 65 20 74 6f 6f |ing soft|ware too|
|000035a0| 6c 73 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 61 |ls can b|e used a|
|000035b0| 73 20 62 65 66 6f 72 65 | 2e 0a 58 2e 49 50 20 31 |s before|..X.IP 1|
|000035c0| 32 2e 0a 58 52 43 53 27 | 20 62 61 73 69 63 20 75 |2..XRCS'| basic u|
|000035d0| 73 65 72 20 69 6e 74 65 | 72 66 61 63 65 20 69 73 |ser inte|rface is|
|000035e0| 20 65 78 74 72 65 6d 65 | 6c 79 20 73 69 6d 70 6c | extreme|ly simpl|
|000035f0| 65 2e 20 54 68 65 20 6e | 6f 76 69 63 65 20 6e 65 |e. The n|ovice ne|
|00003600| 65 64 20 74 6f 20 6c 65 | 61 72 6e 0a 58 6f 6e 6c |ed to le|arn.Xonl|
|00003610| 79 20 74 77 6f 20 63 6f | 6d 6d 61 6e 64 73 2e 20 |y two co|mmands. |
|00003620| 49 74 73 20 6d 6f 72 65 | 20 73 6f 70 68 69 73 74 |Its more| sophist|
|00003630| 69 63 61 74 65 64 20 66 | 65 61 74 75 72 65 73 20 |icated f|eatures |
|00003640| 68 61 76 65 20 62 65 65 | 6e 0a 58 74 75 6e 65 64 |have bee|n.Xtuned|
|00003650| 20 74 6f 77 61 72 64 73 | 20 61 64 76 61 6e 63 65 | towards| advance|
|00003660| 64 20 73 6f 66 74 77 61 | 72 65 20 64 65 76 65 6c |d softwa|re devel|
|00003670| 6f 70 6d 65 6e 74 20 65 | 6e 76 69 72 6f 6e 6d 65 |opment e|nvironme|
|00003680| 6e 74 73 20 61 6e 64 20 | 74 68 65 0a 58 65 78 70 |nts and |the.Xexp|
|00003690| 65 72 69 65 6e 63 65 64 | 20 73 6f 66 74 77 61 72 |erienced| softwar|
|000036a0| 65 20 70 72 6f 66 65 73 | 73 69 6f 6e 61 6c 2e 0a |e profes|sional..|
|000036b0| 58 2e 49 50 20 31 33 2e | 0a 58 52 43 53 20 73 69 |X.IP 13.|.XRCS si|
|000036c0| 6d 70 6c 69 66 69 65 73 | 20 73 6f 66 74 77 61 72 |mplifies| softwar|
|000036d0| 65 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 20 69 |e distri|bution i|
|000036e0| 66 20 63 75 73 74 6f 6d | 65 72 73 0a 58 6d 61 69 |f custom|ers.Xmai|
|000036f0| 6e 74 61 69 6e 20 73 6f | 75 72 63 65 73 20 77 69 |ntain so|urces wi|
|00003700| 74 68 20 52 43 53 20 61 | 6c 73 6f 2e 20 54 68 69 |th RCS a|lso. Thi|
|00003710| 73 20 74 65 63 68 6e 69 | 71 75 65 20 61 73 73 75 |s techni|que assu|
|00003720| 72 65 73 20 70 72 6f 70 | 65 72 0a 58 69 64 65 6e |res prop|er.Xiden|
|00003730| 74 69 66 69 63 61 74 69 | 6f 6e 20 6f 66 20 76 65 |tificati|on of ve|
|00003740| 72 73 69 6f 6e 73 20 61 | 6e 64 20 63 6f 6e 66 69 |rsions a|nd confi|
|00003750| 67 75 72 61 74 69 6f 6e | 73 2c 20 61 6e 64 20 74 |guration|s, and t|
|00003760| 72 61 63 6b 69 6e 67 20 | 6f 66 20 63 75 73 74 6f |racking |of custo|
|00003770| 6d 65 72 0a 58 6d 6f 64 | 69 66 69 63 61 74 69 6f |mer.Xmod|ificatio|
|00003780| 6e 73 2e 20 43 75 73 74 | 6f 6d 65 72 20 6d 6f 64 |ns. Cust|omer mod|
|00003790| 69 66 69 63 61 74 69 6f | 6e 73 20 63 61 6e 20 62 |ificatio|ns can b|
|000037a0| 65 20 6d 65 72 67 65 64 | 20 69 6e 74 6f 20 64 69 |e merged| into di|
|000037b0| 73 74 72 69 62 75 74 65 | 64 0a 58 76 65 72 73 69 |stribute|d.Xversi|
|000037c0| 6f 6e 73 20 6c 6f 63 61 | 6c 6c 79 20 6f 72 20 62 |ons loca|lly or b|
|000037d0| 79 20 74 68 65 20 64 65 | 76 65 6c 6f 70 6d 65 6e |y the de|velopmen|
|000037e0| 74 20 67 72 6f 75 70 2e | 0a 58 2e 49 50 20 31 34 |t group.|.X.IP 14|
|000037f0| 2e 0a 58 52 43 53 20 6e | 65 65 64 73 20 6c 69 74 |..XRCS n|eeds lit|
|00003800| 74 6c 65 20 65 78 74 72 | 61 20 73 70 61 63 65 20 |tle extr|a space |
|00003810| 66 6f 72 20 74 68 65 20 | 72 65 76 69 73 69 6f 6e |for the |revision|
|00003820| 73 20 28 6f 6e 6c 79 20 | 74 68 65 20 64 69 66 66 |s (only |the diff|
|00003830| 65 72 65 6e 63 65 73 29 | 2e 0a 58 49 66 20 69 6e |erences)|..XIf in|
|00003840| 74 65 72 6d 65 64 69 61 | 74 65 20 72 65 76 69 73 |termedia|te revis|
|00003850| 69 6f 6e 73 20 61 72 65 | 20 64 65 6c 65 74 65 64 |ions are| deleted|
|00003860| 2c 20 74 68 65 20 63 6f | 72 72 65 73 70 6f 6e 64 |, the co|rrespond|
|00003870| 69 6e 67 0a 58 64 69 66 | 66 65 72 65 6e 63 65 73 |ing.Xdif|ferences|
|00003880| 20 61 72 65 20 63 6f 6d | 70 72 65 73 73 65 64 20 | are com|pressed |
|00003890| 69 6e 74 6f 20 74 68 65 | 20 73 68 6f 72 74 65 73 |into the| shortes|
|000038a0| 74 20 70 6f 73 73 69 62 | 6c 65 20 66 6f 72 6d 2e |t possib|le form.|
|000038b0| 0a 58 2e 49 50 20 31 35 | 2e 0a 58 52 43 53 20 69 |.X.IP 15|..XRCS i|
|000038c0| 73 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 20 77 69 |s implem|ented wi|
|000038d0| 74 68 20 72 65 76 65 72 | 73 65 20 64 65 6c 74 61 |th rever|se delta|
|000038e0| 73 2e 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |s. This |means th|
|000038f0| 61 74 0a 58 74 68 65 20 | 6c 61 74 65 73 74 20 72 |at.Xthe |latest r|
|00003900| 65 76 69 73 69 6f 6e 2c | 20 77 68 69 63 68 20 69 |evision,| which i|
|00003910| 73 20 74 68 65 20 6f 6e | 65 20 74 68 61 74 20 69 |s the on|e that i|
|00003920| 73 20 61 63 63 65 73 73 | 65 64 20 6d 6f 73 74 20 |s access|ed most |
|00003930| 6f 66 74 65 6e 2c 0a 58 | 69 73 20 73 74 6f 72 65 |often,.X|is store|
|00003940| 64 20 69 6e 74 61 63 74 | 2e 20 41 6c 6c 20 6f 74 |d intact|. All ot|
|00003950| 68 65 72 73 20 61 72 65 | 20 72 65 67 65 6e 65 72 |hers are| regener|
|00003960| 61 74 65 64 20 66 72 6f | 6d 20 74 68 65 20 6c 61 |ated fro|m the la|
|00003970| 74 65 73 74 20 6f 6e 65 | 0a 58 62 79 20 61 70 70 |test one|.Xby app|
|00003980| 6c 79 69 6e 67 20 72 65 | 76 65 72 73 65 20 64 65 |lying re|verse de|
|00003990| 6c 74 61 73 20 28 62 61 | 63 6b 77 61 72 64 20 64 |ltas (ba|ckward d|
|000039a0| 69 66 66 65 72 65 6e 63 | 65 73 29 2e 20 54 68 69 |ifferenc|es). Thi|
|000039b0| 73 0a 58 72 65 73 75 6c | 74 73 20 69 6e 20 66 61 |s.Xresul|ts in fa|
|000039c0| 73 74 20 61 63 63 65 73 | 73 20 74 69 6d 65 20 66 |st acces|s time f|
|000039d0| 6f 72 20 74 68 65 20 72 | 65 76 69 73 69 6f 6e 20 |or the r|evision |
|000039e0| 6e 65 65 64 65 64 20 6d | 6f 73 74 20 6f 66 74 65 |needed m|ost ofte|
|000039f0| 6e 2e 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |n..END_O|F_FILE. |
|00003a00| 20 69 66 20 74 65 73 74 | 20 33 36 38 33 20 2d 6e | if test| 3683 -n|
|00003a10| 65 20 60 77 63 20 2d 63 | 20 3c 27 72 63 73 5f 66 |e `wc -c| <'rcs_f|
|00003a20| 75 6e 63 2e 6d 73 27 60 | 3b 20 74 68 65 6e 0a 20 |unc.ms'`|; then. |
|00003a30| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00003a40| 27 72 63 73 5f 66 75 6e | 63 2e 6d 73 27 5c 22 20 |'rcs_fun|c.ms'\" |
|00003a50| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00003a60| 6f 6e 67 20 73 69 7a 65 | 21 0a 20 20 66 69 0a 20 |ong size|!. fi. |
|00003a70| 20 23 20 65 6e 64 20 6f | 66 20 27 72 63 73 5f 66 | # end o|f 'rcs_f|
|00003a80| 75 6e 63 2e 6d 73 27 0a | 66 69 0a 69 66 20 74 65 |unc.ms'.|fi.if te|
|00003a90| 73 74 20 2d 66 20 27 73 | 72 63 2f 6d 61 6b 65 74 |st -f 's|rc/maket|
|00003aa0| 69 6d 65 2e 63 27 20 2d | 61 20 22 24 7b 31 7d 22 |ime.c' -|a "${1}"|
|00003ab0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00003ac0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00003ad0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00003ae0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00003af0| 73 72 63 2f 6d 61 6b 65 | 74 69 6d 65 2e 63 27 5c |src/make|time.c'\|
|00003b00| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|00003b10| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00003b20| 22 27 73 72 63 2f 6d 61 | 6b 65 74 69 6d 65 2e 63 |"'src/ma|ketime.c|
|00003b30| 27 5c 22 20 5c 28 38 37 | 33 33 20 63 68 61 72 61 |'\" \(87|33 chara|
|00003b40| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|00003b50| 2f 5e 58 2f 2f 22 20 3e | 27 73 72 63 2f 6d 61 6b |/^X//" >|'src/mak|
|00003b60| 65 74 69 6d 65 2e 63 27 | 20 3c 3c 27 45 4e 44 5f |etime.c'| <<'END_|
|00003b70| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 0a 58 2f 2a 0a |OF_FILE'|.X#.X/*.|
|00003b80| 58 20 2a 20 4d 41 4b 45 | 54 49 4d 45 09 09 64 65 |X * MAKE|TIME..de|
|00003b90| 72 69 76 65 20 33 32 2d | 62 69 74 20 74 69 6d 65 |rive 32-|bit time|
|00003ba0| 20 76 61 6c 75 65 20 66 | 72 6f 6d 20 54 4d 20 73 | value f|rom TM s|
|00003bb0| 74 72 75 63 74 75 72 65 | 2e 0a 58 20 2a 0a 58 20 |tructure|..X *.X |
|00003bc0| 2a 20 55 73 61 67 65 3a | 0a 58 20 2a 09 69 6e 74 |* Usage:|.X *.int|
|00003bd0| 20 7a 6f 6e 65 3b 09 4d | 69 6e 75 74 65 73 20 77 | zone;.M|inutes w|
|00003be0| 65 73 74 20 6f 66 20 47 | 4d 54 2c 20 6f 72 0a 58 |est of G|MT, or.X|
|00003bf0| 20 2a 09 09 09 34 38 2a | 36 30 20 66 6f 72 20 6c | *...48*|60 for l|
|00003c00| 6f 63 61 6c 74 69 6d 65 | 0a 58 20 2a 09 74 69 6d |ocaltime|.X *.tim|
|00003c10| 65 5f 74 20 74 3b 0a 58 | 20 2a 09 73 74 72 75 63 |e_t t;.X| *.struc|
|00003c20| 74 20 74 6d 20 2a 74 70 | 3b 09 50 6f 69 6e 74 65 |t tm *tp|;.Pointe|
|00003c30| 72 20 74 6f 20 54 4d 20 | 73 74 72 75 63 74 75 72 |r to TM |structur|
|00003c40| 65 20 66 72 6f 6d 20 3c | 74 69 6d 65 2e 68 3e 0a |e from <|time.h>.|
|00003c50| 58 20 2a 09 74 20 3d 20 | 6d 61 6b 65 74 69 6d 65 |X *.t = |maketime|
|00003c60| 28 74 70 2c 7a 6f 6e 65 | 29 3b 0a 58 20 2a 0a 58 |(tp,zone|);.X *.X|
|00003c70| 20 2a 20 52 65 74 75 72 | 6e 73 3a 0a 58 20 2a 09 | * Retur|ns:.X *.|
|00003c80| 2d 31 20 69 66 20 66 61 | 69 6c 75 72 65 3b 20 70 |-1 if fa|ilure; p|
|00003c90| 61 72 61 6d 65 74 65 72 | 20 6f 75 74 20 6f 66 20 |arameter| out of |
|00003ca0| 72 61 6e 67 65 20 6f 72 | 20 6e 6f 6e 73 65 6e 73 |range or| nonsens|
|00003cb0| 69 63 61 6c 2e 0a 58 20 | 2a 09 65 6c 73 65 20 74 |ical..X |*.else t|
|00003cc0| 69 6d 65 2d 76 61 6c 75 | 65 2e 0a 58 20 2a 20 4e |ime-valu|e..X * N|
|00003cd0| 6f 74 65 73 3a 0a 58 20 | 2a 09 54 68 69 73 20 63 |otes:.X |*.This c|
|00003ce0| 6f 64 65 20 69 73 20 71 | 75 61 73 69 2d 70 75 62 |ode is q|uasi-pub|
|00003cf0| 6c 69 63 3b 20 69 74 20 | 6d 61 79 20 62 65 20 75 |lic; it |may be u|
|00003d00| 73 65 64 20 66 72 65 65 | 6c 79 20 69 6e 20 6c 69 |sed free|ly in li|
|00003d10| 6b 65 20 73 6f 66 74 77 | 61 72 65 2e 0a 58 20 2a |ke softw|are..X *|
|00003d20| 09 49 74 20 69 73 20 6e | 6f 74 20 74 6f 20 62 65 |.It is n|ot to be|
|00003d30| 20 73 6f 6c 64 2c 20 6e | 6f 72 20 75 73 65 64 20 | sold, n|or used |
|00003d40| 69 6e 20 6c 69 63 65 6e | 73 65 64 20 73 6f 66 74 |in licen|sed soft|
|00003d50| 77 61 72 65 20 77 69 74 | 68 6f 75 74 0a 58 20 2a |ware wit|hout.X *|
|00003d60| 09 70 65 72 6d 69 73 73 | 69 6f 6e 20 6f 66 20 74 |.permiss|ion of t|
|00003d70| 68 65 20 61 75 74 68 6f | 72 2e 0a 58 20 2a 09 46 |he autho|r..X *.F|
|00003d80| 6f 72 20 65 76 65 72 79 | 6f 6e 65 27 73 20 62 65 |or every|one's be|
|00003d90| 6e 65 66 69 74 2c 20 70 | 6c 65 61 73 65 20 72 65 |nefit, p|lease re|
|00003da0| 70 6f 72 74 20 62 75 67 | 73 20 61 6e 64 20 69 6d |port bug|s and im|
|00003db0| 70 72 6f 76 65 6d 65 6e | 74 73 21 0a 58 20 2a 20 |provemen|ts!.X * |
|00003dc0| 09 43 6f 70 79 72 69 67 | 68 74 20 31 39 38 31 20 |.Copyrig|ht 1981 |
|00003dd0| 62 79 20 4b 65 6e 20 48 | 61 72 72 65 6e 73 74 69 |by Ken H|arrensti|
|00003de0| 65 6e 2c 20 53 52 49 20 | 49 6e 74 65 72 6e 61 74 |en, SRI |Internat|
|00003df0| 69 6f 6e 61 6c 2e 0a 58 | 20 2a 09 28 41 52 50 41 |ional..X| *.(ARPA|
|00003e00| 4e 45 54 3a 20 4b 4c 48 | 20 40 20 53 52 49 29 0a |NET: KLH| @ SRI).|
|00003e10| 58 20 2a 2f 0a 58 2f 2a | 20 24 4c 6f 67 3a 20 6d |X */.X/*| $Log: m|
|00003e20| 61 6b 65 74 69 6d 65 2e | 63 2c 76 20 24 0a 58 20 |aketime.|c,v $.X |
|00003e30| 2a 20 52 65 76 69 73 69 | 6f 6e 20 35 2e 32 20 20 |* Revisi|on 5.2 |
|00003e40| 31 39 39 30 2f 31 31 2f | 30 31 20 20 30 35 3a 30 |1990/11/|01 05:0|
|00003e50| 33 3a 33 30 20 20 65 67 | 67 65 72 74 0a 58 20 2a |3:30 eg|gert.X *|
|00003e60| 20 52 65 6d 6f 76 65 20 | 6c 69 6e 74 2e 0a 58 20 | Remove |lint..X |
|00003e70| 2a 0a 58 20 2a 20 52 65 | 76 69 73 69 6f 6e 20 35 |*.X * Re|vision 5|
|00003e80| 2e 31 20 20 31 39 39 30 | 2f 31 30 2f 30 34 20 20 |.1 1990|/10/04 |
|00003e90| 30 36 3a 33 30 3a 31 33 | 20 20 65 67 67 65 72 74 |06:30:13| eggert|
|00003ea0| 0a 58 20 2a 20 43 61 6c | 63 75 6c 61 74 65 20 74 |.X * Cal|culate t|
|00003eb0| 68 65 20 47 4d 54 20 6f | 66 66 73 65 74 20 6f 66 |he GMT o|ffset of|
|00003ec0| 20 27 78 78 78 20 4c 54 | 27 20 61 73 20 6f 66 20 | 'xxx LT|' as of |
|00003ed0| 78 78 78 2c 20 6e 6f 74 | 20 61 73 20 6f 66 20 6e |xxx, not| as of n|
|00003ee0| 6f 77 2e 0a 58 20 2a 20 | 44 6f 6e 27 74 20 61 73 |ow..X * |Don't as|
|00003ef0| 73 75 6d 65 20 74 69 6d | 65 5f 74 20 69 73 20 33 |sume tim|e_t is 3|
|00003f00| 32 20 62 69 74 73 2e 20 | 20 46 69 78 20 62 75 67 |2 bits. | Fix bug|
|00003f10| 73 20 6e 65 61 72 20 65 | 70 6f 63 68 20 61 6e 64 |s near e|poch and|
|00003f20| 20 6e 65 61 72 20 65 6e | 64 20 6f 66 20 74 69 6d | near en|d of tim|
|00003f30| 65 2e 0a 58 20 2a 0a 58 | 20 2a 20 52 65 76 69 73 |e..X *.X| * Revis|
|00003f40| 69 6f 6e 20 35 2e 30 20 | 20 31 39 39 30 2f 30 38 |ion 5.0 | 1990/08|
|00003f50| 2f 32 32 20 20 30 38 3a | 31 32 3a 33 38 20 20 65 |/22 08:|12:38 e|
|00003f60| 67 67 65 72 74 0a 58 20 | 2a 20 53 77 69 74 63 68 |ggert.X |* Switch|
|00003f70| 20 74 6f 20 47 4d 54 20 | 61 6e 64 20 66 69 78 20 | to GMT |and fix |
|00003f80| 74 68 65 20 62 75 67 73 | 20 65 78 70 6f 73 65 64 |the bugs| exposed|
|00003f90| 20 74 68 65 72 65 62 79 | 2e 0a 58 20 2a 20 50 65 | thereby|..X * Pe|
|00003fa0| 72 6d 69 74 20 64 61 74 | 65 73 20 70 61 73 74 20 |rmit dat|es past |
|00003fb0| 31 39 39 39 2f 31 32 2f | 33 31 2e 20 20 41 6e 73 |1999/12/|31. Ans|
|00003fc0| 69 66 79 20 61 6e 64 20 | 50 6f 73 69 78 61 74 65 |ify and |Posixate|
|00003fd0| 2e 0a 58 20 2a 0a 58 20 | 2a 20 52 65 76 69 73 69 |..X *.X |* Revisi|
|00003fe0| 6f 6e 20 31 2e 38 20 20 | 38 38 2f 31 31 2f 30 38 |on 1.8 |88/11/08|
|00003ff0| 20 20 31 33 3a 35 34 3a | 35 33 20 20 6e 61 72 74 | 13:54:|53 nart|
|00004000| 65 6e 0a 58 20 2a 20 61 | 6c 6c 6f 77 20 6e 65 67 |en.X * a|llow neg|
|00004010| 61 74 69 76 65 20 74 69 | 6d 65 7a 6f 6e 65 73 20 |ative ti|mezones |
|00004020| 28 2d 32 34 68 20 3c 3d | 20 78 20 3c 3d 20 32 34 |(-24h <=| x <= 24|
|00004030| 68 29 0a 58 20 2a 20 0a | 58 20 2a 20 52 65 76 69 |h).X * .|X * Revi|
|00004040| 73 69 6f 6e 20 31 2e 37 | 20 20 38 38 2f 30 38 2f |sion 1.7| 88/08/|
|00004050| 32 38 20 20 31 34 3a 34 | 37 3a 35 32 20 20 65 67 |28 14:4|7:52 eg|
|00004060| 67 65 72 74 0a 58 20 2a | 20 41 6c 6c 6f 77 20 63 |gert.X *| Allow c|
|00004070| 63 20 2d 52 2e 20 20 52 | 65 6d 6f 76 65 20 75 6e |c -R. R|emove un|
|00004080| 70 6f 72 74 61 62 6c 65 | 20 22 23 65 6e 64 69 66 |portable| "#endif|
|00004090| 20 58 58 58 22 73 2e 0a | 58 20 2a 20 0a 58 20 2a | XXX"s..|X * .X *|
|000040a0| 20 52 65 76 69 73 69 6f | 6e 20 31 2e 36 20 20 38 | Revisio|n 1.6 8|
|000040b0| 37 2f 31 32 2f 31 38 20 | 20 31 37 3a 30 35 3a 35 |7/12/18 | 17:05:5|
|000040c0| 38 20 20 6e 61 72 74 65 | 6e 0a 58 20 2a 20 69 6e |8 narte|n.X * in|
|000040d0| 63 6c 75 64 65 20 72 63 | 73 70 61 72 61 6d 2e 68 |clude rc|sparam.h|
|000040e0| 0a 58 20 2a 20 0a 58 20 | 2a 20 52 65 76 69 73 69 |.X * .X |* Revisi|
|000040f0| 6f 6e 20 31 2e 35 20 20 | 38 37 2f 31 32 2f 31 38 |on 1.5 |87/12/18|
|00004100| 20 20 31 31 3a 33 35 3a | 35 31 20 20 6e 61 72 74 | 11:35:|51 nart|
|00004110| 65 6e 0a 58 20 2a 20 6d | 61 6b 65 74 69 6d 65 2e |en.X * m|aketime.|
|00004120| 63 3a 20 66 69 78 65 64 | 20 55 53 47 20 63 6f 64 |c: fixed| USG cod|
|00004130| 65 20 2d 20 79 6f 75 20 | 68 61 76 65 20 74 67 6f |e - you |have tgo|
|00004140| 20 63 61 6c 6c 20 22 74 | 7a 73 65 74 22 20 69 6e | call "t|zset" in|
|00004150| 20 6f 72 64 65 72 20 74 | 6f 20 68 61 76 65 0a 58 | order t|o have.X|
|00004160| 20 2a 20 22 74 69 6d 65 | 7a 6f 6e 65 22 20 73 65 | * "time|zone" se|
|00004170| 74 2e 20 28 22 6c 6f 63 | 61 6c 74 69 6d 65 22 20 |t. ("loc|altime" |
|00004180| 63 61 6c 6c 73 20 69 74 | 2c 20 62 75 74 20 69 74 |calls it|, but it|
|00004190| 27 73 20 70 72 6f 62 61 | 62 6c 79 20 62 65 74 74 |'s proba|bly bett|
|000041a0| 65 72 20 6e 6f 74 20 74 | 6f 20 0a 58 20 2a 20 63 |er not t|o .X * c|
|000041b0| 6f 75 6e 74 20 6f 6e 20 | 22 6c 6f 63 61 6c 74 69 |ount on |"localti|
|000041c0| 6d 65 22 20 68 61 76 69 | 6e 67 20 62 65 65 6e 20 |me" havi|ng been |
|000041d0| 63 61 6c 6c 65 64 2e 29 | 0a 58 20 2a 20 0a 58 20 |called.)|.X * .X |
|000041e0| 2a 20 52 65 76 69 73 69 | 6f 6e 20 31 2e 34 20 20 |* Revisi|on 1.4 |
|000041f0| 38 37 2f 31 30 2f 31 38 | 20 20 31 30 3a 32 36 3a |87/10/18| 10:26:|
|00004200| 35 37 20 20 6e 61 72 74 | 65 6e 0a 58 20 2a 20 55 |57 nart|en.X * U|
|00004210| 70 64 61 74 69 6e 67 20 | 76 65 72 73 69 6f 6e 20 |pdating |version |
|00004220| 6e 75 6d 62 65 72 73 2e | 20 43 68 61 6e 67 65 73 |numbers.| Changes|
|00004230| 20 72 65 6c 61 74 69 76 | 65 20 74 6f 20 31 2e 30 | relativ|e to 1.0|
|00004240| 20 61 72 65 20 61 63 74 | 75 61 6c 6c 79 20 0a 58 | are act|ually .X|
|00004250| 20 2a 20 72 65 6c 61 74 | 69 76 65 20 74 6f 20 31 | * relat|ive to 1|
|00004260| 2e 32 0a 58 20 2a 20 0a | 58 20 2a 20 52 65 76 69 |.2.X * .|X * Revi|
|00004270| 73 69 6f 6e 20 31 2e 33 | 20 20 38 37 2f 30 39 2f |sion 1.3| 87/09/|
|00004280| 32 34 20 20 31 33 3a 35 | 38 3a 34 35 20 20 6e 61 |24 13:5|8:45 na|
|00004290| 72 74 65 6e 0a 58 20 2a | 20 53 6f 75 72 63 65 73 |rten.X *| Sources|
|000042a0| 20 6e 6f 77 20 70 61 73 | 73 20 74 68 72 6f 75 67 | now pas|s throug|
|000042b0| 68 20 6c 69 6e 74 20 28 | 69 66 20 79 6f 75 20 69 |h lint (|if you i|
|000042c0| 67 6e 6f 72 65 20 70 72 | 69 6e 74 66 2f 73 70 72 |gnore pr|intf/spr|
|000042d0| 69 6e 74 66 2f 66 70 72 | 69 6e 74 66 20 0a 58 20 |intf/fpr|intf .X |
|000042e0| 2a 20 77 61 72 6e 69 6e | 67 73 29 0a 58 20 2a 20 |* warnin|gs).X * |
|000042f0| 0a 58 20 2a 20 52 65 76 | 69 73 69 6f 6e 20 31 2e |.X * Rev|ision 1.|
|00004300| 32 20 20 38 37 2f 30 33 | 2f 32 37 20 20 31 34 3a |2 87/03|/27 14:|
|00004310| 32 31 3a 34 38 20 20 6a | 65 6e 6b 69 6e 73 0a 58 |21:48 j|enkins.X|
|00004320| 20 2a 20 50 6f 72 74 20 | 74 6f 20 73 75 6e 73 0a | * Port |to suns.|
|00004330| 58 20 2a 20 0a 58 20 2a | 20 52 65 76 69 73 69 6f |X * .X *| Revisio|
|00004340| 6e 20 31 2e 32 20 20 38 | 33 2f 31 32 2f 30 35 20 |n 1.2 8|3/12/05 |
|00004350| 20 31 30 3a 31 32 3a 35 | 36 20 20 77 66 74 0a 58 | 10:12:5|6 wft.X|
|00004360| 20 2a 20 61 64 64 65 64 | 20 63 6f 6e 64 2e 20 63 | * added| cond. c|
|00004370| 6f 6d 70 69 6c 61 74 69 | 6f 6e 20 66 6f 72 20 55 |ompilati|on for U|
|00004380| 53 47 20 55 6e 69 78 3b | 20 6c 6f 6e 67 20 74 69 |SG Unix;| long ti|
|00004390| 6d 65 7a 6f 6e 65 3b 0a | 58 20 2a 20 0a 58 20 2a |mezone;.|X * .X *|
|000043a0| 20 52 65 76 69 73 69 6f | 6e 20 31 2e 31 20 20 38 | Revisio|n 1.1 8|
|000043b0| 32 2f 30 35 2f 30 36 20 | 20 31 31 3a 33 38 3a 30 |2/05/06 | 11:38:0|
|000043c0| 30 20 20 77 66 74 0a 58 | 20 2a 20 49 6e 69 74 69 |0 wft.X| * Initi|
|000043d0| 61 6c 20 72 65 76 69 73 | 69 6f 6e 0a 58 20 2a 20 |al revis|ion.X * |
|000043e0| 0a 58 20 2a 2f 0a 58 0a | 58 0a 58 23 69 6e 63 6c |.X */.X.|X.X#incl|
|000043f0| 75 64 65 20 22 72 63 73 | 62 61 73 65 2e 68 22 0a |ude "rcs|base.h".|
|00004400| 58 0a 58 6c 69 62 49 64 | 28 6d 61 6b 65 74 49 64 |X.XlibId|(maketId|
|00004410| 2c 20 22 24 49 64 3a 20 | 6d 61 6b 65 74 69 6d 65 |, "$Id: |maketime|
|00004420| 2e 63 2c 76 20 35 2e 32 | 20 31 39 39 30 2f 31 31 |.c,v 5.2| 1990/11|
|00004430| 2f 30 31 20 30 35 3a 30 | 33 3a 33 30 20 65 67 67 |/01 05:0|3:30 egg|
|00004440| 65 72 74 20 45 78 70 20 | 24 22 29 0a 58 0a 58 73 |ert Exp |$").X.Xs|
|00004450| 74 61 74 69 63 20 63 6f | 6e 73 74 20 73 74 72 75 |tatic co|nst stru|
|00004460| 63 74 20 74 6d 20 2a 74 | 69 6d 65 32 74 6d 20 50 |ct tm *t|ime2tm P|
|00004470| 28 28 74 69 6d 65 5f 74 | 29 29 3b 0a 58 0a 58 23 |((time_t|));.X.X#|
|00004480| 64 65 66 69 6e 65 20 67 | 69 76 65 6e 28 76 29 20 |define g|iven(v) |
|00004490| 28 30 20 3c 3d 20 28 76 | 29 29 20 2f 2a 20 4e 65 |(0 <= (v|)) /* Ne|
|000044a0| 67 61 74 69 76 65 20 76 | 61 6c 75 65 73 20 61 72 |gative v|alues ar|
|000044b0| 65 20 75 6e 73 70 65 63 | 69 66 69 65 64 2e 20 2a |e unspec|ified. *|
|000044c0| 2f 0a 58 0a 58 73 74 61 | 74 69 63 20 63 6f 6e 73 |/.X.Xsta|tic cons|
|000044d0| 74 20 69 6e 74 20 64 61 | 79 74 62 5b 5d 20 3d 20 |t int da|ytb[] = |
|000044e0| 7b 0a 58 09 2f 2a 20 23 | 20 64 61 79 73 20 69 6e |{.X./* #| days in|
|000044f0| 20 79 65 61 72 20 74 68 | 75 73 20 66 61 72 2c 20 | year th|us far, |
|00004500| 69 6e 64 65 78 65 64 20 | 62 79 20 6d 6f 6e 74 68 |indexed |by month|
|00004510| 20 28 30 2d 31 32 21 21 | 29 20 2a 2f 0a 58 09 30 | (0-12!!|) */.X.0|
|00004520| 2c 20 33 31 2c 20 35 39 | 2c 20 39 30 2c 20 31 32 |, 31, 59|, 90, 12|
|00004530| 30 2c 20 31 35 31 2c 20 | 31 38 31 2c 20 32 31 32 |0, 151, |181, 212|
|00004540| 2c 20 32 34 33 2c 20 32 | 37 33 2c 20 33 30 34 2c |, 243, 2|73, 304,|
|00004550| 20 33 33 34 2c 20 33 36 | 35 0a 58 7d 3b 0a 58 0a | 334, 36|5.X};.X.|
|00004560| 58 09 73 74 61 74 69 63 | 20 74 69 6d 65 5f 74 0a |X.static| time_t.|
|00004570| 58 6d 61 6b 65 74 69 6d | 65 28 61 74 6d 2c 7a 6f |Xmaketim|e(atm,zo|
|00004580| 6e 65 29 0a 58 09 63 6f | 6e 73 74 20 73 74 72 75 |ne).X.co|nst stru|
|00004590| 63 74 20 74 6d 20 2a 61 | 74 6d 3b 0a 58 09 69 6e |ct tm *a|tm;.X.in|
|000045a0| 74 20 7a 6f 6e 65 3b 0a | 58 7b 0a 58 20 20 20 20 |t zone;.|X{.X |
|000045b0| 72 65 67 69 73 74 65 72 | 20 63 6f 6e 73 74 20 73 |register| const s|
|000045c0| 74 72 75 63 74 20 74 6d | 20 2a 74 70 3b 0a 58 20 |truct tm| *tp;.X |
|000045d0| 20 20 20 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 | regis|ter int |
|000045e0| 69 3b 0a 58 20 20 20 20 | 69 6e 74 20 79 65 61 72 |i;.X |int year|
|000045f0| 2c 20 79 64 61 79 2c 20 | 6d 6f 6e 2c 20 64 61 79 |, yday, |mon, day|
|00004600| 2c 20 68 6f 75 72 2c 20 | 6d 69 6e 2c 20 73 65 63 |, hour, |min, sec|
|00004610| 2c 20 6c 65 61 70 2c 20 | 6c 6f 63 61 6c 7a 6f 6e |, leap, |localzon|
|00004620| 65 3b 0a 58 20 20 20 20 | 69 6e 74 20 61 74 74 65 |e;.X |int atte|
|00004630| 6d 70 74 73 3b 0a 58 20 | 20 20 20 74 69 6d 65 5f |mpts;.X | time_|
|00004640| 74 20 74 2c 20 74 72 65 | 73 3b 0a 58 0a 58 20 20 |t t, tre|s;.X.X |
|00004650| 20 20 61 74 74 65 6d 70 | 74 73 20 3d 20 32 3b 0a | attemp|ts = 2;.|
|00004660| 58 20 20 20 20 6c 6f 63 | 61 6c 7a 6f 6e 65 20 3d |X loc|alzone =|
|00004670| 20 7a 6f 6e 65 3d 3d 34 | 38 2a 36 30 3b 0a 58 20 | zone==4|8*60;.X |
|00004680| 20 20 20 74 72 65 73 20 | 3d 20 2d 31 3b 0a 58 20 | tres |= -1;.X |
|00004690| 20 20 20 79 65 61 72 20 | 3d 20 6d 6f 6e 20 3d 20 | year |= mon = |
|000046a0| 64 61 79 20 3d 20 30 3b | 20 20 2f 2a 20 4b 65 65 |day = 0;| /* Kee|
|000046b0| 70 20 6c 69 6e 74 20 68 | 61 70 70 79 2e 20 20 2a |p lint h|appy. *|
|000046c0| 2f 0a 58 0a 58 20 20 20 | 20 64 6f 20 7b 0a 58 0a |/.X.X | do {.X.|
|000046d0| 58 09 69 66 20 28 6c 6f | 63 61 6c 7a 6f 6e 65 20 |X.if (lo|calzone |
|000046e0| 7c 7c 20 21 67 69 76 65 | 6e 28 61 74 6d 2d 3e 74 ||| !give|n(atm->t|
|000046f0| 6d 5f 79 65 61 72 29 29 | 20 7b 0a 58 09 09 69 66 |m_year))| {.X..if|
|00004700| 20 28 74 72 65 73 20 3d | 3d 20 2d 31 29 0a 58 09 | (tres =|= -1).X.|
|00004710| 09 09 69 66 20 28 28 74 | 72 65 73 20 3d 20 74 69 |..if ((t|res = ti|
|00004720| 6d 65 28 28 74 69 6d 65 | 5f 74 2a 29 30 29 29 20 |me((time|_t*)0)) |
|00004730| 20 3d 3d 20 20 2d 31 29 | 0a 58 09 09 09 09 72 65 | == -1)|.X....re|
|00004740| 74 75 72 6e 20 2d 31 3b | 0a 58 09 09 74 70 20 3d |turn -1;|.X..tp =|
|00004750| 20 74 69 6d 65 32 74 6d | 28 74 72 65 73 29 3b 0a | time2tm|(tres);.|
|00004760| 58 09 09 2f 2a 20 47 65 | 74 20 62 72 65 61 6b 64 |X../* Ge|t breakd|
|00004770| 6f 77 6e 73 20 6f 66 20 | 64 65 66 61 75 6c 74 20 |owns of |default |
|00004780| 74 69 6d 65 2c 20 61 64 | 6a 75 73 74 69 6e 67 20 |time, ad|justing |
|00004790| 74 6f 20 7a 6f 6e 65 2e | 20 2a 2f 0a 58 09 09 79 |to zone.| */.X..y|
|000047a0| 65 61 72 20 3d 20 74 70 | 2d 3e 74 6d 5f 79 65 61 |ear = tp|->tm_yea|
|000047b0| 72 3b 09 09 2f 2a 20 55 | 73 65 20 74 6f 20 73 65 |r;../* U|se to se|
|000047c0| 74 20 75 70 20 64 65 66 | 61 75 6c 74 73 20 2a 2f |t up def|aults */|
|000047d0| 0a 58 09 09 79 64 61 79 | 20 3d 20 74 70 2d 3e 74 |.X..yday| = tp->t|
|000047e0| 6d 5f 79 64 61 79 3b 0a | 58 09 09 6d 6f 6e 20 3d |m_yday;.|X..mon =|
|000047f0| 20 74 70 2d 3e 74 6d 5f | 6d 6f 6e 3b 0a 58 09 09 | tp->tm_|mon;.X..|
|00004800| 64 61 79 20 3d 20 74 70 | 2d 3e 74 6d 5f 6d 64 61 |day = tp|->tm_mda|
|00004810| 79 3b 0a 58 09 09 68 6f | 75 72 20 3d 20 74 70 2d |y;.X..ho|ur = tp-|
|00004820| 3e 74 6d 5f 68 6f 75 72 | 3b 0a 58 09 09 6d 69 6e |>tm_hour|;.X..min|
|00004830| 20 3d 20 74 70 2d 3e 74 | 6d 5f 6d 69 6e 3b 0a 58 | = tp->t|m_min;.X|
|00004840| 09 09 69 66 20 28 6c 6f | 63 61 6c 7a 6f 6e 65 29 |..if (lo|calzone)|
|00004850| 20 7b 0a 58 09 09 20 20 | 20 20 74 70 20 3d 20 6c | {.X.. | tp = l|
|00004860| 6f 63 61 6c 74 69 6d 65 | 28 26 74 72 65 73 29 3b |ocaltime|(&tres);|
|00004870| 0a 58 09 09 20 20 20 20 | 7a 6f 6e 65 20 3d 0a 58 |.X.. |zone =.X|
|00004880| 09 09 09 6d 69 6e 20 2d | 20 74 70 2d 3e 74 6d 5f |...min -| tp->tm_|
|00004890| 6d 69 6e 20 2b 20 36 30 | 2a 28 0a 58 09 09 09 09 |min + 60|*(.X....|
|000048a0| 68 6f 75 72 20 2d 20 74 | 70 2d 3e 74 6d 5f 68 6f |hour - t|p->tm_ho|
|000048b0| 75 72 20 2b 20 32 34 2a | 28 0a 58 09 09 09 09 09 |ur + 24*|(.X.....|
|000048c0| 2f 2a 20 49 66 20 79 65 | 61 72 73 20 64 69 66 66 |/* If ye|ars diff|
|000048d0| 65 72 2c 20 69 74 27 73 | 20 62 79 20 6f 6e 65 20 |er, it's| by one |
|000048e0| 64 61 79 2e 20 2a 2f 0a | 58 09 09 09 09 09 09 79 |day. */.|X......y|
|000048f0| 65 61 72 20 2d 20 74 70 | 2d 3e 74 6d 5f 79 65 61 |ear - tp|->tm_yea|
|00004900| 72 0a 58 09 09 09 09 09 | 3f 09 79 65 61 72 20 2d |r.X.....|?.year -|
|00004910| 20 74 70 2d 3e 74 6d 5f | 79 65 61 72 0a 58 09 09 | tp->tm_|year.X..|
|00004920| 09 09 09 3a 09 79 64 61 | 79 20 2d 20 74 70 2d 3e |...:.yda|y - tp->|
|00004930| 74 6d 5f 79 64 61 79 29 | 29 3b 0a 58 09 09 7d 0a |tm_yday)|);.X..}.|
|00004940| 58 09 09 2f 2a 20 41 64 | 6a 75 73 74 20 74 68 65 |X../* Ad|just the|
|00004950| 20 64 65 66 61 75 6c 74 | 20 64 61 79 2c 20 6d 6f | default| day, mo|
|00004960| 6e 74 68 20 61 6e 64 20 | 79 65 61 72 20 61 63 63 |nth and |year acc|
|00004970| 6f 72 64 69 6e 67 20 74 | 6f 20 7a 6f 6e 65 2e 20 |ording t|o zone. |
|00004980| 20 2a 2f 0a 58 09 09 69 | 66 20 28 28 6d 69 6e 20 | */.X..i|f ((min |
|00004990| 2d 3d 20 7a 6f 6e 65 29 | 20 3c 20 30 29 20 7b 0a |-= zone)| < 0) {.|
|000049a0| 58 09 09 20 20 20 20 69 | 66 20 28 68 6f 75 72 2d |X.. i|f (hour-|
|000049b0| 28 35 39 2d 6d 69 6e 29 | 2f 36 30 20 3c 20 30 20 |(59-min)|/60 < 0 |
|000049c0| 20 26 26 20 20 2d 2d 64 | 61 79 20 3c 3d 20 30 29 | && --d|ay <= 0)|
|000049d0| 20 7b 0a 58 09 09 09 69 | 66 20 28 2d 2d 6d 6f 6e | {.X...i|f (--mon|
|000049e0| 20 3c 20 30 29 20 7b 0a | 58 09 09 09 09 2d 2d 79 | < 0) {.|X....--y|
|000049f0| 65 61 72 3b 0a 58 09 09 | 09 09 6d 6f 6e 20 3d 20 |ear;.X..|..mon = |
|00004a00| 31 31 3b 0a 58 09 09 09 | 7d 0a 58 09 09 09 64 61 |11;.X...|}.X...da|
|00004a10| 79 20 20 3d 20 20 64 61 | 79 74 62 5b 6d 6f 6e 2b |y = da|ytb[mon+|
|00004a20| 31 5d 20 2d 20 64 61 79 | 74 62 5b 6d 6f 6e 5d 20 |1] - day|tb[mon] |
|00004a30| 2b 20 28 6d 6f 6e 3d 3d | 31 26 26 21 28 79 65 61 |+ (mon==|1&&!(yea|
|00004a40| 72 26 33 29 29 3b 0a 58 | 09 09 20 20 20 20 7d 0a |r&3));.X|.. }.|
|00004a50| 58 09 09 7d 20 65 6c 73 | 65 0a 58 09 09 20 20 20 |X..} els|e.X.. |
|00004a60| 20 69 66 20 28 0a 58 09 | 09 20 20 20 20 20 20 32 | if (.X.|. 2|
|00004a70| 34 20 3c 3d 20 68 6f 75 | 72 2b 6d 69 6e 2f 36 30 |4 <= hou|r+min/60|
|00004a80| 20 20 26 26 0a 58 09 09 | 20 20 20 20 20 20 64 61 | &&.X..| da|
|00004a90| 79 74 62 5b 6d 6f 6e 2b | 31 5d 20 2d 20 64 61 79 |ytb[mon+|1] - day|
|00004aa0| 74 62 5b 6d 6f 6e 5d 20 | 2b 20 28 6d 6f 6e 3d 3d |tb[mon] |+ (mon==|
|00004ab0| 31 26 26 21 28 79 65 61 | 72 26 33 29 29 20 20 3c |1&&!(yea|r&3)) <|
|00004ac0| 20 20 2b 2b 64 61 79 0a | 58 09 09 20 20 20 20 29 | ++day.|X.. )|
|00004ad0| 20 7b 0a 58 09 09 09 20 | 20 20 20 69 66 20 28 31 | {.X... | if (1|
|00004ae0| 31 20 3c 20 2b 2b 6d 6f | 6e 29 20 7b 0a 58 09 09 |1 < ++mo|n) {.X..|
|00004af0| 09 09 20 20 20 20 2b 2b | 79 65 61 72 3b 0a 58 09 |.. ++|year;.X.|
|00004b00| 09 09 09 20 20 20 20 6d | 6f 6e 20 3d 20 30 3b 0a |... m|on = 0;.|
|00004b10| 58 09 09 09 20 20 20 20 | 7d 0a 58 09 09 09 20 20 |X... |}.X... |
|00004b20| 20 20 64 61 79 20 3d 20 | 31 3b 0a 58 09 09 20 20 | day = |1;.X.. |
|00004b30| 20 20 7d 0a 58 09 7d 0a | 58 09 69 66 20 28 7a 6f | }.X.}.|X.if (zo|
|00004b40| 6e 65 20 3c 20 2d 32 34 | 2a 36 30 20 20 7c 7c 20 |ne < -24|*60 || |
|00004b50| 20 32 34 2a 36 30 20 3c | 20 7a 6f 6e 65 29 0a 58 | 24*60 <| zone).X|
|00004b60| 09 09 72 65 74 75 72 6e | 20 2d 31 3b 0a 58 0a 58 |..return| -1;.X.X|
|00004b70| 0a 58 23 69 66 64 65 66 | 20 44 45 42 55 47 0a 58 |.X#ifdef| DEBUG.X|
|00004b80| 70 72 69 6e 74 66 28 22 | 66 69 72 73 74 20 59 4d |printf("|first YM|
|00004b90| 44 3a 20 25 64 20 25 64 | 20 25 64 5c 6e 22 2c 79 |D: %d %d| %d\n",y|
|00004ba0| 65 61 72 2c 6d 6f 6e 2c | 64 61 79 29 3b 0a 58 23 |ear,mon,|day);.X#|
|00004bb0| 65 6e 64 69 66 0a 58 09 | 74 70 20 3d 20 61 74 6d |endif.X.|tp = atm|
|00004bc0| 3b 0a 58 0a 58 09 2f 2a | 20 46 69 72 73 74 20 6d |;.X.X./*| First m|
|00004bd0| 75 73 74 20 66 69 6e 64 | 20 64 61 74 65 2c 20 75 |ust find| date, u|
|00004be0| 73 69 6e 67 20 73 70 65 | 63 69 66 69 65 64 20 79 |sing spe|cified y|
|00004bf0| 65 61 72 2c 20 6d 6f 6e | 74 68 2c 20 64 61 79 2e |ear, mon|th, day.|
|00004c00| 0a 58 09 20 2a 20 49 66 | 20 6f 6e 65 20 6f 66 20 |.X. * If| one of |
|00004c10| 74 68 65 73 65 20 69 73 | 20 75 6e 73 70 65 63 69 |these is| unspeci|
|00004c20| 66 69 65 64 2c 20 69 74 | 20 64 65 66 61 75 6c 74 |fied, it| default|
|00004c30| 73 20 65 69 74 68 65 72 | 20 74 6f 20 74 68 65 0a |s either| to the.|
|00004c40| 58 09 20 2a 20 63 75 72 | 72 65 6e 74 20 64 61 74 |X. * cur|rent dat|
|00004c50| 65 20 28 69 66 20 6e 6f | 20 6d 6f 72 65 20 67 6c |e (if no| more gl|
|00004c60| 6f 62 61 6c 20 73 70 65 | 63 20 77 61 73 20 67 69 |obal spe|c was gi|
|00004c70| 76 65 6e 29 20 6f 72 20 | 74 6f 20 74 68 65 0a 58 |ven) or |to the.X|
|00004c80| 09 20 2a 20 7a 65 72 6f | 2d 76 61 6c 75 65 20 66 |. * zero|-value f|
|00004c90| 6f 72 20 74 68 61 74 20 | 73 70 65 63 20 28 69 2e |or that |spec (i.|
|00004ca0| 65 2e 20 61 20 6d 6f 72 | 65 20 67 6c 6f 62 61 6c |e. a mor|e global|
|00004cb0| 20 73 70 65 63 20 77 61 | 73 20 73 65 65 6e 29 2e | spec wa|s seen).|
|00004cc0| 0a 58 09 20 2a 20 52 65 | 6a 65 63 74 20 74 69 6d |.X. * Re|ject tim|
|00004cd0| 65 73 20 74 68 61 74 20 | 64 6f 20 6e 6f 74 20 66 |es that |do not f|
|00004ce0| 69 74 20 69 6e 20 74 69 | 6d 65 5f 74 2c 0a 58 09 |it in ti|me_t,.X.|
|00004cf0| 20 2a 20 77 69 74 68 6f | 75 74 20 61 73 73 75 6d | * witho|ut assum|
|00004d00| 69 6e 67 20 74 68 61 74 | 20 74 69 6d 65 5f 74 20 |ing that| time_t |
|00004d10| 69 73 20 33 32 20 62 69 | 74 73 20 6f 72 20 69 73 |is 32 bi|ts or is|
|00004d20| 20 73 69 67 6e 65 64 2e | 0a 58 09 20 2a 2f 0a 58 | signed.|.X. */.X|
|00004d30| 09 69 66 20 28 67 69 76 | 65 6e 28 74 70 2d 3e 74 |.if (giv|en(tp->t|
|00004d40| 6d 5f 79 65 61 72 29 29 | 0a 58 09 20 20 7b 0a 58 |m_year))|.X. {.X|
|00004d50| 09 09 79 65 61 72 20 3d | 20 74 70 2d 3e 74 6d 5f |..year =| tp->tm_|
|00004d60| 79 65 61 72 3b 0a 58 09 | 09 6d 6f 6e 20 3d 20 30 |year;.X.|.mon = 0|
|00004d70| 3b 09 09 2f 2a 20 53 69 | 6e 63 65 20 79 65 61 72 |;../* Si|nce year|
|00004d80| 20 77 61 73 20 67 69 76 | 65 6e 2c 20 64 65 66 61 | was giv|en, defa|
|00004d90| 75 6c 74 20 2a 2f 0a 58 | 09 09 64 61 79 20 3d 20 |ult */.X|..day = |
|00004da0| 31 3b 09 09 2f 2a 20 66 | 6f 72 20 72 65 6d 61 69 |1;../* f|or remai|
|00004db0| 6e 69 6e 67 20 73 70 65 | 63 73 20 69 73 20 7a 65 |ning spe|cs is ze|
|00004dc0| 72 6f 20 2a 2f 0a 58 09 | 20 20 7d 0a 58 09 69 66 |ro */.X.| }.X.if|
|00004dd0| 20 28 79 65 61 72 20 3c | 20 36 39 29 09 09 09 2f | (year <| 69).../|
|00004de0| 2a 20 31 39 36 39 2f 31 | 32 2f 33 31 20 4f 4b 20 |* 1969/1|2/31 OK |
|00004df0| 69 6e 20 73 6f 6d 65 20 | 74 69 6d 65 7a 6f 6e 65 |in some |timezone|
|00004e00| 73 2e 20 20 2a 2f 0a 58 | 09 09 72 65 74 75 72 6e |s. */.X|..return|
|00004e10| 20 2d 31 3b 09 09 2f 2a | 20 45 52 52 3a 20 79 65 | -1;../*| ERR: ye|
|00004e20| 61 72 20 6f 75 74 20 6f | 66 20 72 61 6e 67 65 20 |ar out o|f range |
|00004e30| 2a 2f 0a 58 09 6c 65 61 | 70 20 20 20 3d 20 20 20 |*/.X.lea|p = |
|00004e40| 21 28 79 65 61 72 26 33 | 29 20 20 26 26 20 20 28 |!(year&3|) && (|
|00004e50| 79 65 61 72 25 31 30 30 | 20 7c 7c 20 21 28 28 79 |year%100| || !((y|
|00004e60| 65 61 72 2b 33 30 30 29 | 25 34 30 30 29 29 3b 0a |ear+300)|%400));.|
|00004e70| 58 09 79 65 61 72 20 2d | 3d 20 37 30 3b 09 09 09 |X.year -|= 70;...|
|00004e80| 2f 2a 20 55 4e 49 58 20 | 74 69 6d 65 20 73 74 61 |/* UNIX |time sta|
|00004e90| 72 74 73 20 61 74 20 31 | 39 37 30 20 2a 2f 0a 58 |rts at 1|970 */.X|
|00004ea0| 0a 58 09 2f 2a 0a 58 09 | 20 2a 20 46 69 6e 64 20 |.X./*.X.| * Find |
|00004eb0| 64 61 79 20 6f 66 20 79 | 65 61 72 2e 0a 58 09 20 |day of y|ear..X. |
|00004ec0| 2a 2f 0a 58 09 7b 0a 58 | 09 09 69 66 20 28 67 69 |*/.X.{.X|..if (gi|
|00004ed0| 76 65 6e 28 74 70 2d 3e | 74 6d 5f 6d 6f 6e 29 29 |ven(tp->|tm_mon))|
|00004ee0| 0a 58 09 09 20 20 7b 09 | 6d 6f 6e 20 3d 20 74 70 |.X.. {.|mon = tp|
|00004ef0| 2d 3e 74 6d 5f 6d 6f 6e | 3b 09 2f 2a 20 4d 6f 6e |->tm_mon|;./* Mon|
|00004f00| 74 68 20 77 61 73 20 73 | 70 65 63 69 66 69 65 64 |th was s|pecified|
|00004f10| 20 2a 2f 0a 58 09 09 09 | 64 61 79 20 3d 20 31 3b | */.X...|day = 1;|
|00004f20| 09 09 2f 2a 20 73 6f 20 | 73 65 74 20 72 65 6d 61 |../* so |set rema|
|00004f30| 69 6e 69 6e 67 20 64 65 | 66 61 75 6c 74 20 2a 2f |ining de|fault */|
|00004f40| 0a 58 09 09 20 20 7d 0a | 58 09 09 69 66 20 28 31 |.X.. }.|X..if (1|
|00004f50| 31 20 3c 20 28 75 6e 73 | 69 67 6e 65 64 29 6d 6f |1 < (uns|igned)mo|
|00004f60| 6e 29 0a 58 09 09 09 72 | 65 74 75 72 6e 20 2d 31 |n).X...r|eturn -1|
|00004f70| 3b 09 09 2f 2a 20 45 52 | 52 3a 20 62 61 64 20 6d |;../* ER|R: bad m|
|00004f80| 6f 6e 74 68 20 2a 2f 0a | 58 09 09 69 66 20 28 67 |onth */.|X..if (g|
|00004f90| 69 76 65 6e 28 74 70 2d | 3e 74 6d 5f 6d 64 61 79 |iven(tp-|>tm_mday|
|00004fa0| 29 29 20 64 61 79 20 3d | 20 74 70 2d 3e 74 6d 5f |)) day =| tp->tm_|
|00004fb0| 6d 64 61 79 3b 0a 58 09 | 09 69 66 28 64 61 79 20 |mday;.X.|.if(day |
|00004fc0| 3c 20 31 0a 58 09 09 20 | 7c 7c 20 28 28 28 64 61 |< 1.X.. ||| (((da|
|00004fd0| 79 74 62 5b 6d 6f 6e 2b | 31 5d 2d 64 61 79 74 62 |ytb[mon+|1]-daytb|
|00004fe0| 5b 6d 6f 6e 5d 29 20 3c | 20 64 61 79 29 0a 58 09 |[mon]) <| day).X.|
|00004ff0| 09 09 26 26 20 28 64 61 | 79 21 3d 32 39 20 7c 7c |..&& (da|y!=29 |||
|00005000| 20 6d 6f 6e 21 3d 31 20 | 7c 7c 20 21 6c 65 61 70 | mon!=1 ||| !leap|
|00005010| 29 20 29 29 0a 58 09 09 | 09 09 72 65 74 75 72 6e |) )).X..|..return|
|00005020| 20 2d 31 3b 09 2f 2a 20 | 45 52 52 3a 20 62 61 64 | -1;./* |ERR: bad|
|00005030| 20 64 61 79 20 2a 2f 0a | 58 09 09 79 64 61 79 20 | day */.|X..yday |
|00005040| 3d 20 64 61 79 74 62 5b | 6d 6f 6e 5d 09 2f 2a 20 |= daytb[|mon]./* |
|00005050| 41 64 64 20 23 20 6f 66 | 20 64 61 79 73 20 69 6e |Add # of| days in|
|00005060| 20 6d 6f 6e 74 68 73 20 | 73 6f 20 66 61 72 20 2a | months |so far *|
|00005070| 2f 0a 58 09 09 20 20 2b | 20 28 28 6c 65 61 70 09 |/.X.. +| ((leap.|
|00005080| 09 2f 2a 20 4c 65 61 70 | 20 79 65 61 72 2c 20 61 |./* Leap| year, a|
|00005090| 6e 64 20 70 61 73 74 20 | 46 65 62 3f 20 20 49 66 |nd past |Feb? If|
|000050a0| 20 2a 2f 0a 58 09 09 20 | 20 20 20 20 20 26 26 20 | */.X.. | && |
|000050b0| 6d 6f 6e 3e 31 29 3f 20 | 31 3a 30 29 09 2f 2a 20 |mon>1)? |1:0)./* |
|000050c0| 73 6f 2c 20 61 64 64 20 | 6c 65 61 70 20 64 61 79 |so, add |leap day|
|000050d0| 20 66 6f 72 20 74 68 69 | 73 20 79 65 61 72 20 2a | for thi|s year *|
|000050e0| 2f 0a 58 09 09 20 20 2b | 20 64 61 79 2d 31 3b 09 |/.X.. +| day-1;.|
|000050f0| 09 2f 2a 20 41 6e 64 20 | 66 69 6e 61 6c 6c 79 20 |./* And |finally |
|00005100| 61 64 64 20 23 20 64 61 | 79 73 20 74 68 69 73 20 |add # da|ys this |
|00005110| 6d 6f 6e 20 2a 2f 0a 58 | 0a 58 09 7d 0a 58 09 69 |mon */.X|.X.}.X.i|
|00005120| 66 20 28 6c 65 61 70 2b | 33 36 35 20 3c 3d 20 28 |f (leap+|365 <= (|
|00005130| 75 6e 73 69 67 6e 65 64 | 29 79 64 61 79 29 0a 58 |unsigned|)yday).X|
|00005140| 09 09 72 65 74 75 72 6e | 20 2d 31 3b 09 09 2f 2a |..return| -1;../*|
|00005150| 20 45 52 52 3a 20 62 61 | 64 20 59 44 41 59 20 2a | ERR: ba|d YDAY *|
|00005160| 2f 0a 58 0a 58 09 69 66 | 20 28 79 65 61 72 20 3c |/.X.X.if| (year <|
|00005170| 20 30 29 20 7b 0a 58 09 | 20 20 20 20 69 66 20 28 | 0) {.X.| if (|
|00005180| 79 64 61 79 20 21 3d 20 | 33 36 34 29 0a 58 09 09 |yday != |364).X..|
|00005190| 72 65 74 75 72 6e 20 2d | 31 3b 09 09 2f 2a 20 45 |return -|1;../* E|
|000051a0| 52 52 3a 20 74 6f 6f 20 | 65 61 72 6c 79 20 2a 2f |RR: too |early */|
|000051b0| 0a 58 09 20 20 20 20 74 | 20 3d 20 2d 31 3b 0a 58 |.X. t| = -1;.X|
|000051c0| 09 7d 20 65 6c 73 65 20 | 7b 0a 58 09 20 20 20 20 |.} else |{.X. |
|000051d0| 74 72 65 73 20 3d 20 79 | 65 61 72 2a 33 36 35 3b |tres = y|ear*365;|
|000051e0| 09 09 2f 2a 20 47 65 74 | 20 23 20 64 61 79 73 20 |../* Get| # days |
|000051f0| 6f 66 20 79 65 61 72 73 | 20 73 6f 20 66 61 72 20 |of years| so far |
|00005200| 2a 2f 0a 58 09 20 20 20 | 20 69 66 20 28 74 72 65 |*/.X. | if (tre|
|00005210| 73 2f 33 36 35 20 21 3d | 20 79 65 61 72 29 0a 58 |s/365 !=| year).X|
|00005220| 09 09 20 20 20 20 72 65 | 74 75 72 6e 20 2d 31 3b |.. re|turn -1;|
|00005230| 09 09 2f 2a 20 45 52 52 | 3a 20 6f 76 65 72 66 6c |../* ERR|: overfl|
|00005240| 6f 77 20 2a 2f 0a 58 09 | 20 20 20 20 74 20 3d 20 |ow */.X.| t = |
|00005250| 74 72 65 73 0a 58 09 09 | 2b 20 28 28 79 65 61 72 |tres.X..|+ ((year|
|00005260| 2b 31 29 3e 3e 32 29 09 | 09 2f 2a 20 70 6c 75 73 |+1)>>2).|./* plus|
|00005270| 20 23 20 6f 66 20 6c 65 | 61 70 20 64 61 79 73 20 | # of le|ap days |
|00005280| 73 69 6e 63 65 20 31 39 | 37 30 20 2a 2f 0a 58 09 |since 19|70 */.X.|
|00005290| 09 2b 20 79 64 61 79 3b | 09 09 09 2f 2a 20 61 6e |.+ yday;|.../* an|
|000052a0| 64 20 66 69 6e 61 6c 6c | 79 20 61 64 64 20 23 20 |d finall|y add # |
|000052b0| 64 61 79 73 20 74 68 69 | 73 20 79 65 61 72 20 2a |days thi|s year *|
|000052c0| 2f 0a 58 09 20 20 20 20 | 69 66 20 28 74 2b 34 20 |/.X. |if (t+4 |
|000052d0| 3c 20 74 72 65 73 29 0a | 58 09 09 20 20 20 20 72 |< tres).|X.. r|
|000052e0| 65 74 75 72 6e 20 2d 31 | 3b 09 09 2f 2a 20 45 52 |eturn -1|;../* ER|
|000052f0| 52 3a 20 6f 76 65 72 66 | 6c 6f 77 20 2a 2f 0a 58 |R: overf|low */.X|
|00005300| 09 7d 0a 58 09 74 72 65 | 73 20 3d 20 74 3b 0a 58 |.}.X.tre|s = t;.X|
|00005310| 0a 58 09 69 66 20 28 67 | 69 76 65 6e 28 69 20 3d |.X.if (g|iven(i =|
|00005320| 20 74 70 2d 3e 74 6d 5f | 77 64 61 79 29 29 20 2f | tp->tm_|wday)) /|
|00005330| 2a 20 43 68 65 63 6b 20 | 57 44 41 59 20 69 66 20 |* Check |WDAY if |
|00005340| 70 72 65 73 65 6e 74 20 | 2a 2f 0a 58 09 09 69 66 |present |*/.X..if|
|00005350| 20 28 69 20 21 3d 20 28 | 74 72 65 73 2b 34 29 25 | (i != (|tres+4)%|
|00005360| 37 29 09 2f 2a 20 31 39 | 37 30 2f 30 31 2f 30 31 |7)./* 19|70/01/01|
|00005370| 20 77 61 73 20 54 68 75 | 20 3d 20 34 20 2a 2f 0a | was Thu| = 4 */.|
|00005380| 58 09 09 09 72 65 74 75 | 72 6e 20 2d 31 3b 09 2f |X...retu|rn -1;./|
|00005390| 2a 20 45 52 52 3a 20 62 | 61 64 20 57 44 41 59 20 |* ERR: b|ad WDAY |
|000053a0| 2a 2f 0a 58 0a 58 23 69 | 66 64 65 66 20 44 45 42 |*/.X.X#i|fdef DEB|
|000053b0| 55 47 0a 58 70 72 69 6e | 74 66 28 22 59 4d 44 3a |UG.Xprin|tf("YMD:|
|000053c0| 20 25 64 20 25 64 20 25 | 64 2c 20 54 3d 25 6c 64 | %d %d %|d, T=%ld|
|000053d0| 5c 6e 22 2c 79 65 61 72 | 2c 6d 6f 6e 2c 64 61 79 |\n",year|,mon,day|
|000053e0| 2c 74 72 65 73 29 3b 0a | 58 23 65 6e 64 69 66 0a |,tres);.|X#endif.|
|000053f0| 58 09 2f 2a 0a 58 09 20 | 2a 20 4e 6f 77 20 64 65 |X./*.X. |* Now de|
|00005400| 74 65 72 6d 69 6e 65 20 | 74 69 6d 65 2e 20 20 49 |termine |time. I|
|00005410| 66 20 6e 6f 74 20 67 69 | 76 65 6e 2c 20 64 65 66 |f not gi|ven, def|
|00005420| 61 75 6c 74 20 74 6f 20 | 7a 65 72 6f 73 0a 58 09 |ault to |zeros.X.|
|00005430| 20 2a 20 28 73 69 6e 63 | 65 20 74 69 6d 65 20 69 | * (sinc|e time i|
|00005440| 73 20 61 6c 77 61 79 73 | 20 74 68 65 20 6c 65 61 |s always| the lea|
|00005450| 73 74 20 67 6c 6f 62 61 | 6c 20 73 70 65 63 29 0a |st globa|l spec).|
|00005460| 58 09 20 2a 2f 0a 58 09 | 74 72 65 73 20 2a 3d 20 |X. */.X.|tres *= |
|00005470| 38 36 34 30 30 4c 3b 09 | 09 09 2f 2a 20 47 65 74 |86400L;.|../* Get|
|00005480| 20 23 20 73 65 63 6f 6e | 64 73 20 28 32 34 2a 36 | # secon|ds (24*6|
|00005490| 30 2a 36 30 29 20 2a 2f | 0a 58 09 69 66 20 28 74 |0*60) */|.X.if (t|
|000054a0| 72 65 73 2f 38 36 34 30 | 30 4c 20 21 3d 20 74 29 |res/8640|0L != t)|
|000054b0| 0a 58 09 09 72 65 74 75 | 72 6e 20 2d 31 3b 09 09 |.X..retu|rn -1;..|
|000054c0| 2f 2a 20 45 52 52 3a 20 | 6f 76 65 72 66 6c 6f 77 |/* ERR: |overflow|
|000054d0| 20 2a 2f 0a 58 09 68 6f | 75 72 20 3d 20 6d 69 6e | */.X.ho|ur = min|
|000054e0| 20 3d 20 73 65 63 20 3d | 20 30 3b 0a 58 09 69 66 | = sec =| 0;.X.if|
|000054f0| 20 28 67 69 76 65 6e 28 | 74 70 2d 3e 74 6d 5f 68 | (given(|tp->tm_h|
|00005500| 6f 75 72 29 29 20 68 6f | 75 72 20 3d 20 74 70 2d |our)) ho|ur = tp-|
|00005510| 3e 74 6d 5f 68 6f 75 72 | 3b 0a 58 09 69 66 20 28 |>tm_hour|;.X.if (|
|00005520| 67 69 76 65 6e 28 74 70 | 2d 3e 74 6d 5f 6d 69 6e |given(tp|->tm_min|
|00005530| 20 29 29 20 6d 69 6e 20 | 20 3d 20 74 70 2d 3e 74 | )) min | = tp->t|
|00005540| 6d 5f 6d 69 6e 3b 0a 58 | 09 69 66 20 28 67 69 76 |m_min;.X|.if (giv|
|00005550| 65 6e 28 74 70 2d 3e 74 | 6d 5f 73 65 63 20 29 29 |en(tp->t|m_sec ))|
|00005560| 20 73 65 63 20 20 3d 20 | 74 70 2d 3e 74 6d 5f 73 | sec = |tp->tm_s|
|00005570| 65 63 3b 0a 58 09 69 66 | 20 28 36 30 20 3c 3d 20 |ec;.X.if| (60 <= |
|00005580| 28 75 6e 73 69 67 6e 65 | 64 29 6d 69 6e 20 20 7c |(unsigne|d)min ||
|00005590| 7c 20 20 36 30 20 3c 20 | 28 75 6e 73 69 67 6e 65 || 60 < |(unsigne|
|000055a0| 64 29 73 65 63 29 0a 58 | 09 09 72 65 74 75 72 6e |d)sec).X|..return|
|000055b0| 20 2d 31 3b 09 09 2f 2a | 20 45 52 52 3a 20 4d 53 | -1;../*| ERR: MS|
|000055c0| 20 6f 75 74 20 6f 66 20 | 72 61 6e 67 65 20 2a 2f | out of |range */|
|000055d0| 0a 58 09 69 66 20 28 32 | 34 20 3c 3d 20 28 75 6e |.X.if (2|4 <= (un|
|000055e0| 73 69 67 6e 65 64 29 68 | 6f 75 72 29 0a 58 09 09 |signed)h|our).X..|
|000055f0| 69 66 28 68 6f 75 72 20 | 21 3d 20 32 34 20 7c 7c |if(hour |!= 24 |||
|00005600| 20 28 6d 69 6e 2b 73 65 | 63 29 20 21 3d 30 29 09 | (min+se|c) !=0).|
|00005610| 2f 2a 20 41 6c 6c 6f 77 | 20 32 34 3a 30 30 20 2a |/* Allow| 24:00 *|
|00005620| 2f 0a 58 09 09 09 72 65 | 74 75 72 6e 20 2d 31 3b |/.X...re|turn -1;|
|00005630| 09 2f 2a 20 45 52 52 3a | 20 48 20 6f 75 74 20 6f |./* ERR:| H out o|
|00005640| 66 20 72 61 6e 67 65 20 | 2a 2f 0a 58 0a 58 09 74 |f range |*/.X.X.t|
|00005650| 20 3d 20 74 72 65 73 3b | 0a 58 09 74 72 65 73 20 | = tres;|.X.tres |
|00005660| 2b 3d 20 73 65 63 20 2b | 20 36 30 4c 2a 28 7a 6f |+= sec +| 60L*(zo|
|00005670| 6e 65 20 2b 20 6d 69 6e | 20 2b 20 36 30 2a 68 6f |ne + min| + 60*ho|
|00005680| 75 72 29 3b 0a 58 0a 58 | 23 69 66 64 65 66 20 44 |ur);.X.X|#ifdef D|
|00005690| 45 42 55 47 0a 58 70 72 | 69 6e 74 66 28 22 48 4d |EBUG.Xpr|intf("HM|
|000056a0| 53 3a 20 25 64 20 25 64 | 20 25 64 20 54 3d 25 6c |S: %d %d| %d T=%l|
|000056b0| 64 5c 6e 22 2c 68 6f 75 | 72 2c 6d 69 6e 2c 73 65 |d\n",hou|r,min,se|
|000056c0| 63 2c 74 72 65 73 29 3b | 0a 58 23 65 6e 64 69 66 |c,tres);|.X#endif|
|000056d0| 0a 58 0a 58 09 69 66 20 | 28 21 6c 6f 63 61 6c 7a |.X.X.if |(!localz|
|000056e0| 6f 6e 65 29 09 09 09 2f | 2a 20 63 68 65 63 6b 20 |one).../|* check |
|000056f0| 66 6f 72 20 6f 76 65 72 | 66 6c 6f 77 20 2a 2f 0a |for over|flow */.|
|00005700| 58 09 20 20 20 20 72 65 | 74 75 72 6e 20 28 79 65 |X. re|turn (ye|
|00005710| 61 72 3c 30 20 3f 20 28 | 74 72 65 73 3c 30 7c 7c |ar<0 ? (|tres<0|||
|00005720| 38 36 34 30 30 4c 3c 3d | 74 72 65 73 29 20 3a 20 |86400L<=|tres) : |
|00005730| 74 72 65 73 3c 74 29 20 | 20 3f 20 20 2d 31 20 20 |tres<t) | ? -1 |
|00005740| 3a 20 20 74 72 65 73 3b | 0a 58 0a 58 09 2f 2a 20 |: tres;|.X.X./* |
|00005750| 43 68 65 63 6b 20 72 65 | 73 75 6c 74 73 3b 20 4c |Check re|sults; L|
|00005760| 54 20 6d 61 79 20 68 61 | 76 65 20 68 61 64 20 61 |T may ha|ve had a|
|00005770| 20 64 69 66 66 65 72 65 | 6e 74 20 47 4d 54 20 6f | differe|nt GMT o|
|00005780| 66 66 73 65 74 20 62 61 | 63 6b 20 74 68 65 6e 2e |ffset ba|ck then.|
|00005790| 20 20 2a 2f 0a 58 09 74 | 70 20 3d 20 6c 6f 63 61 | */.X.t|p = loca|
|000057a0| 6c 74 69 6d 65 28 26 74 | 72 65 73 29 3b 0a 58 09 |ltime(&t|res);.X.|
|000057b0| 69 66 20 28 67 69 76 65 | 6e 28 61 74 6d 2d 3e 74 |if (give|n(atm->t|
|000057c0| 6d 5f 73 65 63 29 20 20 | 26 26 20 20 61 74 6d 2d |m_sec) |&& atm-|
|000057d0| 3e 74 6d 5f 73 65 63 20 | 21 3d 20 74 70 2d 3e 74 |>tm_sec |!= tp->t|
|000057e0| 6d 5f 73 65 63 29 0a 58 | 09 09 72 65 74 75 72 6e |m_sec).X|..return|
|000057f0| 20 2d 31 3b 20 2f 2a 20 | 49 66 20 73 65 63 6f 6e | -1; /* |If secon|
|00005800| 64 73 20 64 6f 6e 27 74 | 20 6d 61 74 63 68 2c 20 |ds don't| match, |
|00005810| 77 65 27 72 65 20 69 6e | 20 74 72 6f 75 62 6c 65 |we're in| trouble|
|00005820| 2e 20 20 2a 2f 0a 58 09 | 69 66 20 28 21 28 0a 58 |. */.X.|if (!(.X|
|00005830| 09 20 20 20 20 67 69 76 | 65 6e 28 61 74 6d 2d 3e |. giv|en(atm->|
|00005840| 74 6d 5f 6d 69 6e 29 20 | 20 26 26 20 20 61 74 6d |tm_min) | && atm|
|00005850| 2d 3e 74 6d 5f 6d 69 6e | 20 21 3d 20 74 70 2d 3e |->tm_min| != tp->|
|00005860| 74 6d 5f 6d 69 6e 20 20 | 7c 7c 0a 58 09 20 20 20 |tm_min |||.X. |
|00005870| 20 67 69 76 65 6e 28 61 | 74 6d 2d 3e 74 6d 5f 68 | given(a|tm->tm_h|
|00005880| 6f 75 72 29 20 20 26 26 | 20 20 61 74 6d 2d 3e 74 |our) &&| atm->t|
|00005890| 6d 5f 68 6f 75 72 20 21 | 3d 20 74 70 2d 3e 74 6d |m_hour !|= tp->tm|
|000058a0| 5f 68 6f 75 72 20 20 7c | 7c 0a 58 09 20 20 20 20 |_hour |||.X. |
|000058b0| 67 69 76 65 6e 28 61 74 | 6d 2d 3e 74 6d 5f 6d 64 |given(at|m->tm_md|
|000058c0| 61 79 29 20 20 26 26 20 | 20 61 74 6d 2d 3e 74 6d |ay) && | atm->tm|
|000058d0| 5f 6d 64 61 79 20 21 3d | 20 74 70 2d 3e 74 6d 5f |_mday !=| tp->tm_|
|000058e0| 6d 64 61 79 20 20 7c 7c | 0a 58 09 20 20 20 20 67 |mday |||.X. g|
|000058f0| 69 76 65 6e 28 61 74 6d | 2d 3e 74 6d 5f 6d 6f 6e |iven(atm|->tm_mon|
|00005900| 29 20 20 26 26 20 20 61 | 74 6d 2d 3e 74 6d 5f 6d |) && a|tm->tm_m|
|00005910| 6f 6e 20 21 3d 20 74 70 | 2d 3e 74 6d 5f 6d 6f 6e |on != tp|->tm_mon|
|00005920| 20 20 7c 7c 0a 58 09 20 | 20 20 20 67 69 76 65 6e | ||.X. | given|
|00005930| 28 61 74 6d 2d 3e 74 6d | 5f 79 65 61 72 29 20 20 |(atm->tm|_year) |
|00005940| 26 26 20 20 61 74 6d 2d | 3e 74 6d 5f 79 65 61 72 |&& atm-|>tm_year|
|00005950| 20 21 3d 20 74 70 2d 3e | 74 6d 5f 79 65 61 72 0a | != tp->|tm_year.|
|00005960| 58 09 29 29 0a 58 09 09 | 72 65 74 75 72 6e 20 74 |X.)).X..|return t|
|00005970| 72 65 73 3b 20 2f 2a 20 | 45 76 65 72 79 74 68 69 |res; /* |Everythi|
|00005980| 6e 67 20 6d 61 74 63 68 | 65 73 2e 20 20 2a 2f 0a |ng match|es. */.|
|00005990| 58 0a 58 20 20 20 20 7d | 20 77 68 69 6c 65 20 28 |X.X }| while (|
|000059a0| 2d 2d 61 74 74 65 6d 70 | 74 73 29 3b 0a 58 0a 58 |--attemp|ts);.X.X|
|000059b0| 20 20 20 20 72 65 74 75 | 72 6e 20 2d 31 3b 0a 58 | retu|rn -1;.X|
|000059c0| 7d 0a 58 0a 58 2f 2a 0a | 58 2a 20 43 6f 6e 76 65 |}.X.X/*.|X* Conve|
|000059d0| 72 74 20 55 6e 69 78 20 | 74 69 6d 65 20 74 6f 20 |rt Unix |time to |
|000059e0| 73 74 72 75 63 74 20 74 | 6d 20 66 6f 72 6d 61 74 |struct t|m format|
|000059f0| 2e 0a 58 2a 20 55 73 65 | 20 43 6f 6f 72 64 69 6e |..X* Use| Coordin|
|00005a00| 61 74 65 64 20 55 6e 69 | 76 65 72 73 61 6c 20 54 |ated Uni|versal T|
|00005a10| 69 6d 65 20 28 55 54 43 | 29 20 69 66 20 61 76 61 |ime (UTC|) if ava|
|00005a20| 69 6c 61 62 6c 65 20 61 | 6e 64 20 69 66 20 76 65 |ilable a|nd if ve|
|00005a30| 72 73 69 6f 6e 20 35 20 | 6f 72 20 6e 65 77 65 72 |rsion 5 |or newer|
|00005a40| 3b 0a 58 2a 20 75 73 65 | 20 6c 6f 63 61 6c 20 74 |;.X* use| local t|
|00005a50| 69 6d 65 20 6f 74 68 65 | 72 77 69 73 65 2e 0a 58 |ime othe|rwise..X|
|00005a60| 2a 2f 0a 58 09 73 74 61 | 74 69 63 20 63 6f 6e 73 |*/.X.sta|tic cons|
|00005a70| 74 20 73 74 72 75 63 74 | 20 74 6d 20 2a 0a 58 74 |t struct| tm *.Xt|
|00005a80| 69 6d 65 32 74 6d 28 75 | 6e 69 78 74 69 6d 65 29 |ime2tm(u|nixtime)|
|00005a90| 0a 58 09 74 69 6d 65 5f | 74 20 75 6e 69 78 74 69 |.X.time_|t unixti|
|00005aa0| 6d 65 3b 0a 58 7b 0a 58 | 09 63 6f 6e 73 74 20 73 |me;.X{.X|.const s|
|00005ab0| 74 72 75 63 74 20 74 6d | 20 2a 74 6d 3b 0a 58 09 |truct tm| *tm;.X.|
|00005ac0| 72 65 74 75 72 6e 0a 58 | 09 09 09 56 45 52 53 49 |return.X|...VERSI|
|00005ad0| 4f 4e 28 35 29 3c 3d 52 | 43 53 76 65 72 73 69 6f |ON(5)<=R|CSversio|
|00005ae0| 6e 20 26 26 20 28 74 6d | 20 3d 20 67 6d 74 69 6d |n && (tm| = gmtim|
|00005af0| 65 28 26 75 6e 69 78 74 | 69 6d 65 29 29 0a 58 09 |e(&unixt|ime)).X.|
|00005b00| 09 3f 09 74 6d 0a 58 09 | 09 3a 09 6c 6f 63 61 6c |.?.tm.X.|.:.local|
|00005b10| 74 69 6d 65 28 26 75 6e | 69 78 74 69 6d 65 29 3b |time(&un|ixtime);|
|00005b20| 0a 58 7d 0a 58 0a 58 2f | 2a 0a 58 2a 20 43 6f 6e |.X}.X.X/|*.X* Con|
|00005b30| 76 65 72 74 20 55 6e 69 | 78 20 74 69 6d 65 20 74 |vert Uni|x time t|
|00005b40| 6f 20 52 43 53 20 66 6f | 72 6d 61 74 2e 0a 58 2a |o RCS fo|rmat..X*|
|00005b50| 20 46 6f 72 20 63 6f 6d | 70 61 74 69 62 69 6c 69 | For com|patibili|
|00005b60| 74 79 20 77 69 74 68 20 | 6f 6c 64 65 72 20 76 65 |ty with |older ve|
|00005b70| 72 73 69 6f 6e 73 20 6f | 66 20 52 43 53 2c 0a 58 |rsions o|f RCS,.X|
|00005b80| 2a 20 64 61 74 65 73 20 | 62 65 66 6f 72 65 20 41 |* dates |before A|
|00005b90| 44 20 32 30 30 30 20 61 | 72 65 20 73 74 6f 72 65 |D 2000 a|re store|
|00005ba0| 64 20 77 69 74 68 6f 75 | 74 20 74 68 65 20 6c 65 |d withou|t the le|
|00005bb0| 61 64 69 6e 67 20 22 31 | 39 22 2e 0a 58 2a 2f 0a |ading "1|9"..X*/.|
|00005bc0| 58 09 76 6f 69 64 0a 58 | 74 69 6d 65 32 64 61 74 |X.void.X|time2dat|
|00005bd0| 65 28 75 6e 69 78 74 69 | 6d 65 2c 64 61 74 65 29 |e(unixti|me,date)|
|00005be0| 0a 58 09 74 69 6d 65 5f | 74 20 75 6e 69 78 74 69 |.X.time_|t unixti|
|00005bf0| 6d 65 3b 0a 58 09 63 68 | 61 72 20 64 61 74 65 5b |me;.X.ch|ar date[|
|00005c00| 64 61 74 65 73 69 7a 65 | 5d 3b 0a 58 7b 0a 58 09 |datesize|];.X{.X.|
|00005c10| 72 65 67 69 73 74 65 72 | 20 63 6f 6e 73 74 20 73 |register| const s|
|00005c20| 74 72 75 63 74 20 74 6d | 20 2a 74 6d 20 3d 20 74 |truct tm| *tm = t|
|00005c30| 69 6d 65 32 74 6d 28 75 | 6e 69 78 74 69 6d 65 29 |ime2tm(u|nixtime)|
|00005c40| 3b 0a 58 09 56 4f 49 44 | 20 73 70 72 69 6e 74 66 |;.X.VOID| sprintf|
|00005c50| 28 64 61 74 65 2c 20 44 | 41 54 45 46 4f 52 4d 2c |(date, D|ATEFORM,|
|00005c60| 0a 58 09 09 74 6d 2d 3e | 74 6d 5f 79 65 61 72 20 |.X..tm->|tm_year |
|00005c70| 20 2b 20 20 28 74 6d 2d | 3e 74 6d 5f 79 65 61 72 | + (tm-|>tm_year|
|00005c80| 3c 31 30 30 20 3f 20 30 | 20 3a 20 31 39 30 30 29 |<100 ? 0| : 1900)|
|00005c90| 2c 0a 58 09 09 74 6d 2d | 3e 74 6d 5f 6d 6f 6e 2b |,.X..tm-|>tm_mon+|
|00005ca0| 31 2c 20 74 6d 2d 3e 74 | 6d 5f 6d 64 61 79 2c 0a |1, tm->t|m_mday,.|
|00005cb0| 58 09 09 74 6d 2d 3e 74 | 6d 5f 68 6f 75 72 2c 20 |X..tm->t|m_hour, |
|00005cc0| 74 6d 2d 3e 74 6d 5f 6d | 69 6e 2c 20 74 6d 2d 3e |tm->tm_m|in, tm->|
|00005cd0| 74 6d 5f 73 65 63 0a 58 | 09 29 3b 0a 58 7d 0a 58 |tm_sec.X|.);.X}.X|
|00005ce0| 0a 58 0a 58 0a 58 09 76 | 6f 69 64 0a 58 73 74 72 |.X.X.X.v|oid.Xstr|
|00005cf0| 32 64 61 74 65 28 73 6f | 75 72 63 65 2c 20 74 61 |2date(so|urce, ta|
|00005d00| 72 67 65 74 29 0a 58 09 | 63 6f 6e 73 74 20 63 68 |rget).X.|const ch|
|00005d10| 61 72 20 2a 73 6f 75 72 | 63 65 3b 0a 58 09 63 68 |ar *sour|ce;.X.ch|
|00005d20| 61 72 20 74 61 72 67 65 | 74 5b 64 61 74 65 73 69 |ar targe|t[datesi|
|00005d30| 7a 65 5d 3b 0a 58 2f 2a | 20 50 61 72 73 65 20 61 |ze];.X/*| Parse a|
|00005d40| 20 66 72 65 65 2d 66 6f | 72 6d 61 74 20 64 61 74 | free-fo|rmat dat|
|00005d50| 65 20 69 6e 20 53 4f 55 | 52 43 45 2c 20 63 6f 6e |e in SOU|RCE, con|
|00005d60| 76 65 72 74 20 69 74 0a | 58 20 2a 20 69 6e 74 6f |vert it.|X * into|
|00005d70| 20 52 43 53 20 69 6e 74 | 65 72 6e 61 6c 20 66 6f | RCS int|ernal fo|
|00005d80| 72 6d 61 74 2c 20 61 6e | 64 20 73 74 6f 72 65 20 |rmat, an|d store |
|00005d90| 74 68 65 20 72 65 73 75 | 6c 74 20 69 6e 74 6f 20 |the resu|lt into |
|00005da0| 54 41 52 47 45 54 2e 0a | 58 20 2a 2f 0a 58 7b 0a |TARGET..|X */.X{.|
|00005db0| 58 09 69 6e 74 20 7a 6f | 6e 65 3b 0a 58 09 74 69 |X.int zo|ne;.X.ti|
|00005dc0| 6d 65 5f 74 20 75 6e 69 | 78 74 69 6d 65 3b 0a 58 |me_t uni|xtime;.X|
|00005dd0| 09 73 74 72 75 63 74 20 | 74 6d 20 70 61 72 73 65 |.struct |tm parse|
|00005de0| 64 64 61 74 65 3b 0a 58 | 0a 58 09 69 66 20 28 21 |ddate;.X|.X.if (!|
|00005df0| 70 61 72 74 69 6d 65 28 | 73 6f 75 72 63 65 2c 20 |partime(|source, |
|00005e00| 26 70 61 72 73 65 64 64 | 61 74 65 2c 20 26 7a 6f |&parsedd|ate, &zo|
|00005e10| 6e 65 29 29 0a 58 09 20 | 20 20 20 66 61 74 65 72 |ne)).X. | fater|
|00005e20| 72 6f 72 28 22 63 61 6e | 27 74 20 70 61 72 73 65 |ror("can|'t parse|
|00005e30| 20 64 61 74 65 2f 74 69 | 6d 65 3a 20 25 73 22 2c | date/ti|me: %s",|
|00005e40| 20 73 6f 75 72 63 65 29 | 3b 0a 58 09 69 66 20 28 | source)|;.X.if (|
|00005e50| 28 75 6e 69 78 74 69 6d | 65 20 3d 20 6d 61 6b 65 |(unixtim|e = make|
|00005e60| 74 69 6d 65 28 26 70 61 | 72 73 65 64 64 61 74 65 |time(&pa|rseddate|
|00005e70| 2c 20 7a 6f 6e 65 29 29 | 20 20 3d 3d 20 20 2d 31 |, zone))| == -1|
|00005e80| 29 0a 58 09 20 20 20 20 | 66 61 74 65 72 72 6f 72 |).X. |faterror|
|00005e90| 28 22 62 61 64 20 64 61 | 74 65 2f 74 69 6d 65 3a |("bad da|te/time:|
|00005ea0| 20 25 73 22 2c 20 73 6f | 75 72 63 65 29 3b 0a 58 | %s", so|urce);.X|
|00005eb0| 09 74 69 6d 65 32 64 61 | 74 65 28 75 6e 69 78 74 |.time2da|te(unixt|
|00005ec0| 69 6d 65 2c 20 74 61 72 | 67 65 74 29 3b 0a 58 7d |ime, tar|get);.X}|
|00005ed0| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00005ee0| 66 20 74 65 73 74 20 38 | 37 33 33 20 2d 6e 65 20 |f test 8|733 -ne |
|00005ef0| 60 77 63 20 2d 63 20 3c | 27 73 72 63 2f 6d 61 6b |`wc -c <|'src/mak|
|00005f00| 65 74 69 6d 65 2e 63 27 | 60 3b 20 74 68 65 6e 0a |etime.c'|`; then.|
|00005f10| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00005f20| 22 27 73 72 63 2f 6d 61 | 6b 65 74 69 6d 65 2e 63 |"'src/ma|ketime.c|
|00005f30| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00005f40| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|00005f50| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 73 |fi. # e|nd of 's|
|00005f60| 72 63 2f 6d 61 6b 65 74 | 69 6d 65 2e 63 27 0a 66 |rc/maket|ime.c'.f|
|00005f70| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 73 72 |i.if tes|t -f 'sr|
|00005f80| 63 2f 72 63 73 64 69 66 | 66 2e 63 27 20 2d 61 20 |c/rcsdif|f.c' -a |
|00005f90| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00005fa0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00005fb0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00005fc0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00005fd0| 6c 65 20 5c 22 27 73 72 | 63 2f 72 63 73 64 69 66 |le \"'sr|c/rcsdif|
|00005fe0| 66 2e 63 27 5c 22 0a 65 | 6c 73 65 0a 20 20 65 63 |f.c'\".e|lse. ec|
|00005ff0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00006000| 69 6e 67 20 5c 22 27 73 | 72 63 2f 72 63 73 64 69 |ing \"'s|rc/rcsdi|
|00006010| 66 66 2e 63 27 5c 22 20 | 5c 28 31 30 39 37 36 20 |ff.c'\" |\(10976 |
|00006020| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 20 20 73 |characte|rs\). s|
|00006030| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 73 72 |ed "s/^X|//" >'sr|
|00006040| 63 2f 72 63 73 64 69 66 | 66 2e 63 27 20 3c 3c 27 |c/rcsdif|f.c' <<'|
|00006050| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 2f 2a |END_OF_F|ILE'.X/*|
|00006060| 0a 58 20 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X * | |
|00006070| 20 20 20 20 20 20 20 20 | 20 52 43 53 20 72 63 73 | | RCS rcs|
|00006080| 64 69 66 66 20 6f 70 65 | 72 61 74 69 6f 6e 0a 58 |diff ope|ration.X|
|00006090| 20 2a 2f 0a 58 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | */.X/**|********|
|000060a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000060b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000060c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000060d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000060e0| 2a 2a 2a 0a 58 20 2a 20 | 20 20 20 20 20 20 20 20 |***.X * | |
|000060f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 67 65 | | ge|
|00006100| 6e 65 72 61 74 65 20 64 | 69 66 66 65 72 65 6e 63 |nerate d|ifferenc|
|00006110| 65 20 62 65 74 77 65 65 | 6e 20 52 43 53 20 72 65 |e betwee|n RCS re|
|00006120| 76 69 73 69 6f 6e 73 0a | 58 20 2a 2a 2a 2a 2a 2a |visions.|X ******|
|00006130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006170| 2a 2a 2a 2a 2a 2a 2a 0a | 58 20 2a 2f 0a 58 0a 58 |*******.|X */.X.X|
|00006180| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |/* Copyr|ight (C)|
|00006190| 20 31 39 38 32 2c 20 31 | 39 38 38 2c 20 31 39 38 | 1982, 1|988, 198|
|000061a0| 39 20 57 61 6c 74 65 72 | 20 54 69 63 68 79 0a 58 |9 Walter| Tichy.X|
|000061b0| 20 20 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 | Copyr|ight 199|
|000061c0| 30 20 62 79 20 50 61 75 | 6c 20 45 67 67 65 72 74 |0 by Pau|l Eggert|
|000061d0| 0a 58 20 20 20 44 69 73 | 74 72 69 62 75 74 65 64 |.X Dis|tributed|
|000061e0| 20 75 6e 64 65 72 20 6c | 69 63 65 6e 73 65 20 62 | under l|icense b|
|000061f0| 79 20 74 68 65 20 46 72 | 65 65 20 53 6f 66 74 77 |y the Fr|ee Softw|
|00006200| 61 72 65 20 46 6f 75 6e | 64 61 74 69 6f 6e 2c 20 |are Foun|dation, |
|00006210| 49 6e 63 2e 0a 58 0a 58 | 54 68 69 73 20 66 69 6c |Inc..X.X|This fil|
|00006220| 65 20 69 73 20 70 61 72 | 74 20 6f 66 20 52 43 53 |e is par|t of RCS|
|00006230| 2e 0a 58 0a 58 52 43 53 | 20 69 73 20 66 72 65 65 |..X.XRCS| is free|
|00006240| 20 73 6f 66 74 77 61 72 | 65 3b 20 79 6f 75 20 63 | softwar|e; you c|
|00006250| 61 6e 20 72 65 64 69 73 | 74 72 69 62 75 74 65 20 |an redis|tribute |
|00006260| 69 74 20 61 6e 64 2f 6f | 72 20 6d 6f 64 69 66 79 |it and/o|r modify|
|00006270| 0a 58 69 74 20 75 6e 64 | 65 72 20 74 68 65 20 74 |.Xit und|er the t|
|00006280| 65 72 6d 73 20 6f 66 20 | 74 68 65 20 47 4e 55 20 |erms of |the GNU |
|00006290| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|000062a0| 69 63 65 6e 73 65 20 61 | 73 20 70 75 62 6c 69 73 |icense a|s publis|
|000062b0| 68 65 64 20 62 79 0a 58 | 74 68 65 20 46 72 65 65 |hed by.X|the Free|
|000062c0| 20 53 6f 66 74 77 61 72 | 65 20 46 6f 75 6e 64 61 | Softwar|e Founda|
|000062d0| 74 69 6f 6e 3b 20 65 69 | 74 68 65 72 20 76 65 72 |tion; ei|ther ver|
|000062e0| 73 69 6f 6e 20 31 2c 20 | 6f 72 20 28 61 74 20 79 |sion 1, |or (at y|
|000062f0| 6f 75 72 20 6f 70 74 69 | 6f 6e 29 0a 58 61 6e 79 |our opti|on).Xany|
|00006300| 20 6c 61 74 65 72 20 76 | 65 72 73 69 6f 6e 2e 0a | later v|ersion..|
|00006310| 58 0a 58 52 43 53 20 69 | 73 20 64 69 73 74 72 69 |X.XRCS i|s distri|
|00006320| 62 75 74 65 64 20 69 6e | 20 74 68 65 20 68 6f 70 |buted in| the hop|
|00006330| 65 20 74 68 61 74 20 69 | 74 20 77 69 6c 6c 20 62 |e that i|t will b|
|00006340| 65 20 75 73 65 66 75 6c | 2c 0a 58 62 75 74 20 57 |e useful|,.Xbut W|
|00006350| 49 54 48 4f 55 54 20 41 | 4e 59 20 57 41 52 52 41 |ITHOUT A|NY WARRA|
|00006360| 4e 54 59 3b 20 77 69 74 | 68 6f 75 74 20 65 76 65 |NTY; wit|hout eve|
|00006370| 6e 20 74 68 65 20 69 6d | 70 6c 69 65 64 20 77 61 |n the im|plied wa|
|00006380| 72 72 61 6e 74 79 20 6f | 66 0a 58 4d 45 52 43 48 |rranty o|f.XMERCH|
|00006390| 41 4e 54 41 42 49 4c 49 | 54 59 20 6f 72 20 46 49 |ANTABILI|TY or FI|
|000063a0| 54 4e 45 53 53 20 46 4f | 52 20 41 20 50 41 52 54 |TNESS FO|R A PART|
|000063b0| 49 43 55 4c 41 52 20 50 | 55 52 50 4f 53 45 2e 20 |ICULAR P|URPOSE. |
|000063c0| 20 53 65 65 20 74 68 65 | 0a 58 47 4e 55 20 47 65 | See the|.XGNU Ge|
|000063d0| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|000063e0| 65 6e 73 65 20 66 6f 72 | 20 6d 6f 72 65 20 64 65 |ense for| more de|
|000063f0| 74 61 69 6c 73 2e 0a 58 | 0a 58 59 6f 75 20 73 68 |tails..X|.XYou sh|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.