home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: part01
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| 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, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| 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/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 69 73 6c 61 |Path: uu|net!isla|
|00000010| 6e 64 21 61 72 67 76 0a | 46 72 6f 6d 3a 20 61 72 |nd!argv.|From: ar|
|00000020| 67 76 40 69 73 6c 61 6e | 64 2e 75 75 2e 6e 65 74 |gv@islan|d.uu.net|
|00000030| 20 28 44 61 6e 20 48 65 | 6c 6c 65 72 29 0a 4e 65 | (Dan He|ller).Ne|
|00000040| 77 73 67 72 6f 75 70 73 | 3a 20 63 6f 6d 70 2e 73 |wsgroups|: comp.s|
|00000050| 6f 75 72 63 65 73 2e 78 | 0a 53 75 62 6a 65 63 74 |ources.x|.Subject|
|00000060| 3a 20 76 30 35 69 30 30 | 34 3a 20 78 6c 6f 63 6b |: v05i00|4: xlock|
|00000070| 20 2d 2d 20 6c 6f 63 6b | 73 63 72 65 65 6e 20 66 | -- lock|screen f|
|00000080| 6f 72 20 58 20 64 69 73 | 70 6c 61 79 73 2c 20 50 |or X dis|plays, P|
|00000090| 61 72 74 30 31 2f 30 31 | 0a 4d 65 73 73 61 67 65 |art01/01|.Message|
|000000a0| 2d 49 44 3a 20 3c 31 30 | 38 39 40 69 73 6c 61 6e |-ID: <10|89@islan|
|000000b0| 64 2e 75 75 2e 6e 65 74 | 3e 0a 44 61 74 65 3a 20 |d.uu.net|>.Date: |
|000000c0| 32 34 20 53 65 70 20 38 | 39 20 31 37 3a 34 39 3a |24 Sep 8|9 17:49:|
|000000d0| 32 39 20 47 4d 54 0a 4f | 72 67 61 6e 69 7a 61 74 |29 GMT.O|rganizat|
|000000e0| 69 6f 6e 3a 20 49 73 6c | 61 6e 64 20 47 72 61 70 |ion: Isl|and Grap|
|000000f0| 68 69 63 73 2c 20 4d 61 | 72 69 6e 20 43 6f 75 6e |hics, Ma|rin Coun|
|00000100| 74 79 2c 20 43 61 6c 69 | 66 6f 72 6e 69 61 0a 4c |ty, Cali|fornia.L|
|00000110| 69 6e 65 73 3a 20 32 33 | 37 32 0a 41 70 70 72 6f |ines: 23|72.Appro|
|00000120| 76 65 64 3a 20 69 73 6c | 61 6e 64 21 61 72 67 76 |ved: isl|and!argv|
|00000130| 40 73 75 6e 2e 63 6f 6d | 0a 0a 53 75 62 6d 69 74 |@sun.com|..Submit|
|00000140| 74 65 64 2d 62 79 3a 20 | 50 61 74 72 69 63 6b 20 |ted-by: |Patrick |
|00000150| 4e 61 75 67 68 74 6f 6e | 20 3c 6e 61 75 67 68 74 |Naughton| <naught|
|00000160| 6f 6e 40 73 75 6e 2e 63 | 6f 6d 3e 0a 50 6f 73 74 |on@sun.c|om>.Post|
|00000170| 69 6e 67 2d 6e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-numb|er: Volu|
|00000180| 6d 65 20 35 2c 20 49 73 | 73 75 65 20 34 0a 41 72 |me 5, Is|sue 4.Ar|
|00000190| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 78 6c 6f 63 |chive-na|me: xloc|
|000001a0| 6b 2f 70 61 72 74 30 31 | 0a 0a 5b 20 54 68 69 73 |k/part01|..[ This|
|000001b0| 20 77 61 73 20 70 6f 73 | 74 65 64 20 6f 6e 63 65 | was pos|ted once|
|000001c0| 20 62 65 66 6f 72 65 2c | 20 62 75 74 20 74 68 69 | before,| but thi|
|000001d0| 73 20 69 73 20 61 20 72 | 65 70 6f 73 74 20 64 75 |s is a r|epost du|
|000001e0| 65 20 74 6f 20 74 68 65 | 20 6c 61 72 67 65 20 6e |e to the| large n|
|000001f0| 75 6d 62 65 72 0a 20 20 | 6f 66 20 63 68 61 6e 67 |umber. |of chang|
|00000200| 65 73 2e 20 20 4e 6f 74 | 65 20 74 68 65 20 76 65 |es. Not|e the ve|
|00000210| 72 73 69 6f 6e 20 6e 75 | 6d 62 65 72 20 61 6e 64 |rsion nu|mber and|
|00000220| 20 70 61 74 63 68 6c 65 | 76 65 6c 2e 68 2e 20 20 | patchle|vel.h. |
|00000230| 53 79 73 74 65 6d 73 20 | 77 69 74 68 6f 75 74 0a |Systems |without.|
|00000240| 20 20 75 73 6c 65 65 70 | 28 32 29 20 6d 61 79 20 | usleep|(2) may |
|00000250| 63 6f 6e 73 69 64 65 72 | 20 77 72 69 74 69 6e 67 |consider| writing|
|00000260| 20 61 20 6f 6e 65 20 6f | 72 20 74 77 6f 20 6c 69 | a one o|r two li|
|00000270| 6e 65 72 20 75 73 69 6e | 67 20 73 65 6c 65 63 74 |ner usin|g select|
|00000280| 28 29 20 61 6e 64 0a 20 | 20 70 6f 6c 6c 69 6e 67 |() and. | polling|
|00000290| 20 66 6f 72 20 4e 20 6d | 69 63 72 6f 73 65 63 6f | for N m|icroseco|
|000002a0| 6e 64 73 20 28 73 65 65 | 20 52 45 41 44 4d 45 29 |nds (see| README)|
|000002b0| 2e 20 20 2d 2d 61 72 67 | 76 20 5d 0a 0a 23 21 20 |. --arg|v ]..#! |
|000002c0| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|000002d0| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|000002e0| 65 2c 20 6d 65 61 6e 69 | 6e 67 3a 0a 23 20 31 2e |e, meani|ng:.# 1.|
|000002f0| 20 52 65 6d 6f 76 65 20 | 65 76 65 72 79 74 68 69 | Remove |everythi|
|00000300| 6e 67 20 61 62 6f 76 65 | 20 74 68 65 20 23 21 20 |ng above| the #! |
|00000310| 2f 62 69 6e 2f 73 68 20 | 6c 69 6e 65 2e 0a 23 20 |/bin/sh |line..# |
|00000320| 32 2e 20 53 61 76 65 20 | 74 68 65 20 72 65 73 75 |2. Save |the resu|
|00000330| 6c 74 69 6e 67 20 74 65 | 78 74 20 69 6e 20 61 20 |lting te|xt in a |
|00000340| 66 69 6c 65 2e 0a 23 20 | 33 2e 20 45 78 65 63 75 |file..# |3. Execu|
|00000350| 74 65 20 74 68 65 20 66 | 69 6c 65 20 77 69 74 68 |te the f|ile with|
|00000360| 20 2f 62 69 6e 2f 73 68 | 20 28 6e 6f 74 20 63 73 | /bin/sh| (not cs|
|00000370| 68 29 20 74 6f 20 63 72 | 65 61 74 65 3a 0a 23 09 |h) to cr|eate:.#.|
|00000380| 52 45 41 44 4d 45 0a 23 | 09 49 6d 61 6b 65 66 69 |README.#|.Imakefi|
|00000390| 6c 65 0a 23 09 4d 61 6b | 65 66 69 6c 65 0a 23 09 |le.#.Mak|efile.#.|
|000003a0| 70 61 74 63 68 6c 65 76 | 65 6c 2e 68 0a 23 09 78 |patchlev|el.h.#.x|
|000003b0| 6c 6f 63 6b 2e 31 0a 23 | 09 78 6c 6f 63 6b 2e 63 |lock.1.#|.xlock.c|
|000003c0| 0a 23 09 68 6f 70 61 6c | 6f 6e 67 2e 63 0a 23 09 |.#.hopal|ong.c.#.|
|000003d0| 71 69 78 2e 63 0a 23 09 | 6c 69 66 65 2e 63 0a 23 |qix.c.#.|life.c.#|
|000003e0| 09 6c 69 66 65 69 63 6f | 6e 2e 62 69 74 0a 23 09 |.lifeico|n.bit.#.|
|000003f0| 58 43 72 44 79 6e 43 6d | 61 70 2e 63 0a 23 09 58 |XCrDynCm|ap.c.#.X|
|00000400| 43 72 48 73 62 43 6d 61 | 70 2e 63 0a 23 09 48 53 |CrHsbCma|p.c.#.HS|
|00000410| 42 6d 61 70 2e 63 0a 23 | 20 54 68 69 73 20 61 72 |Bmap.c.#| This ar|
|00000420| 63 68 69 76 65 20 63 72 | 65 61 74 65 64 3a 20 53 |chive cr|eated: S|
|00000430| 61 74 20 53 65 70 20 32 | 33 20 30 39 3a 33 39 3a |at Sep 2|3 09:39:|
|00000440| 33 30 20 31 39 38 39 0a | 65 78 70 6f 72 74 20 50 |30 1989.|export P|
|00000450| 41 54 48 3b 20 50 41 54 | 48 3d 2f 62 69 6e 3a 2f |ATH; PAT|H=/bin:/|
|00000460| 75 73 72 2f 62 69 6e 3a | 24 50 41 54 48 0a 69 66 |usr/bin:|$PATH.if|
|00000470| 20 74 65 73 74 20 2d 66 | 20 27 52 45 41 44 4d 45 | test -f| 'README|
|00000480| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00000490| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|000004a0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|000004b0| 20 66 69 6c 65 20 27 52 | 45 41 44 4d 45 27 22 0a | file 'R|EADME'".|
|000004c0| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|000004d0| 52 5f 45 4f 46 20 3e 20 | 27 52 45 41 44 4d 45 27 |R_EOF > |'README'|
|000004e0| 0a 0a 54 68 69 73 20 69 | 73 20 74 68 65 20 6c 61 |..This i|s the la|
|000004f0| 74 65 73 74 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |test ver|sion of |
|00000500| 78 6c 6f 63 6b 20 28 73 | 63 63 73 20 76 65 72 73 |xlock (s|ccs vers|
|00000510| 69 6f 6e 20 32 32 2e 34 | 29 0a 0a 54 68 69 73 20 |ion 22.4|)..This |
|00000520| 77 69 6c 6c 20 73 74 61 | 72 74 20 77 69 74 68 20 |will sta|rt with |
|00000530| 70 61 74 63 68 6c 65 76 | 65 6c 20 3d 20 31 2e 31 |patchlev|el = 1.1|
|00000540| 0a 0a 54 68 65 72 65 20 | 77 65 72 65 20 73 65 72 |..There |were ser|
|00000550| 76 65 72 61 6c 20 6d 69 | 6e 6f 72 20 62 75 67 66 |veral mi|nor bugf|
|00000560| 69 78 65 73 20 6d 61 64 | 65 20 61 66 74 65 72 20 |ixes mad|e after |
|00000570| 49 20 70 75 74 20 74 68 | 69 73 20 6f 6e 20 65 78 |I put th|is on ex|
|00000580| 70 6f 2c 20 62 75 74 20 | 62 65 66 6f 72 65 0a 69 |po, but |before.i|
|00000590| 74 20 77 61 73 20 70 6f | 73 74 65 64 20 74 6f 20 |t was po|sted to |
|000005a0| 63 6f 6d 70 2e 73 6f 75 | 72 63 65 73 2e 78 0a 0a |comp.sou|rces.x..|
|000005b0| 20 20 20 6f 20 2d 64 69 | 73 70 6c 61 79 20 68 6f | o -di|splay ho|
|000005c0| 73 74 6e 61 6d 65 3a 30 | 20 64 69 64 20 6e 6f 74 |stname:0| did not|
|000005d0| 20 77 6f 72 6b 20 65 76 | 65 6e 20 77 68 65 6e 20 | work ev|en when |
|000005e0| 68 6f 73 74 6e 61 6d 65 | 20 77 61 73 20 74 68 65 |hostname| was the|
|000005f0| 20 6c 6f 63 61 6c 68 6f | 73 74 2e 0a 20 20 20 6f | localho|st.. o|
|00000600| 20 2d 6d 6f 64 65 20 71 | 69 78 20 66 61 69 6c 65 | -mode q|ix faile|
|00000610| 64 20 77 69 74 68 20 61 | 20 63 6f 75 6e 74 20 3c |d with a| count <|
|00000620| 20 34 2e 0a 20 20 20 6f | 20 71 69 78 20 77 61 73 | 4.. o| qix was|
|00000630| 20 75 73 69 6e 67 20 72 | 61 6e 64 28 29 20 73 68 | using r|and() sh|
|00000640| 69 66 74 65 64 20 72 69 | 67 68 74 20 73 6f 6d 65 |ifted ri|ght some|
|00000650| 20 61 6d 6f 75 6e 74 20 | 74 6f 20 67 65 74 20 73 | amount |to get s|
|00000660| 6f 6d 65 20 72 61 6e 64 | 6f 6d 6e 65 73 73 2e 0a |ome rand|omness..|
|00000670| 20 20 20 20 20 49 20 73 | 77 69 74 63 68 65 64 20 | I s|witched |
|00000680| 74 6f 20 72 61 6e 64 6f | 6d 28 29 20 61 6e 64 20 |to rando|m() and |
|00000690| 73 72 61 6e 64 6f 6d 28 | 29 20 61 6e 64 20 74 68 |srandom(|) and th|
|000006a0| 65 20 70 65 72 66 6f 72 | 6d 61 6e 63 65 20 69 73 |e perfor|mance is|
|000006b0| 20 73 74 69 6c 6c 20 74 | 6f 6f 0a 20 20 20 20 20 | still t|oo. |
|000006c0| 66 61 73 74 20 74 6f 20 | 77 6f 72 72 79 20 61 62 |fast to |worry ab|
|000006d0| 6f 75 74 20 6d 65 61 73 | 75 72 69 6e 67 2e 2e 2e |out meas|uring...|
|000006e0| 20 28 61 74 20 6c 65 61 | 73 74 20 6f 6e 20 4f 70 | (at lea|st on Op|
|000006f0| 65 6e 57 69 6e 64 6f 77 | 73 20 6f 6e 20 61 20 34 |enWindow|s on a 4|
|00000700| 2f 36 30 29 0a 20 20 20 | 6f 20 49 20 77 61 73 20 |/60). |o I was |
|00000710| 63 6f 75 67 68 69 6e 67 | 20 6f 6e 20 45 6e 74 65 |coughing| on Ente|
|00000720| 72 4e 6f 74 69 66 79 20 | 61 6e 64 20 4c 65 61 76 |rNotify |and Leav|
|00000730| 65 4e 6f 74 69 66 79 2c | 20 6e 6f 77 20 49 20 69 |eNotify,| now I i|
|00000740| 67 6e 6f 72 65 20 74 68 | 65 6d 2e 0a 20 20 20 6f |gnore th|em.. o|
|00000750| 20 54 68 65 20 77 69 6e | 64 6f 77 20 6d 61 6e 61 | The win|dow mana|
|00000760| 67 65 72 20 77 61 73 20 | 73 6f 6d 65 74 69 6d 65 |ger was |sometime|
|00000770| 73 20 69 6e 73 74 61 6c | 6c 69 6e 67 20 74 68 65 |s instal|ling the|
|00000780| 20 64 65 66 61 75 6c 74 | 20 63 6f 6c 6f 72 6d 61 | default| colorma|
|00000790| 70 20 77 68 65 6e 0a 20 | 20 20 20 20 74 68 65 20 |p when. | the |
|000007a0| 6d 6f 75 73 65 20 63 72 | 6f 73 73 65 64 20 61 20 |mouse cr|ossed a |
|000007b0| 77 69 6e 64 6f 77 20 62 | 6f 75 6e 64 72 79 20 2a |window b|oundry *|
|000007c0| 61 66 74 65 72 2a 20 49 | 20 68 61 64 20 69 6e 73 |after* I| had ins|
|000007d0| 74 61 6c 6c 65 64 20 6d | 79 20 63 6f 6c 6f 72 6d |talled m|y colorm|
|000007e0| 61 70 2c 0a 20 20 20 20 | 20 62 75 74 20 2a 62 65 |ap,. | but *be|
|000007f0| 66 6f 72 65 2a 20 49 20 | 68 61 64 20 6d 79 20 77 |fore* I |had my w|
|00000800| 69 6e 64 6f 77 20 75 70 | 20 74 6f 20 62 6c 6f 63 |indow up| to bloc|
|00000810| 6b 20 63 72 6f 73 73 69 | 6e 67 20 65 76 65 6e 74 |k crossi|ng event|
|00000820| 73 2e 20 20 49 20 6d 6f | 76 65 64 20 74 68 65 0a |s. I mo|ved the.|
|00000830| 20 20 20 20 20 63 6f 6c | 6f 72 6d 61 70 20 69 6e | col|ormap in|
|00000840| 73 74 61 6c 6c 61 74 69 | 6f 6e 20 64 6f 77 6e 20 |stallati|on down |
|00000850| 74 6f 20 74 68 65 20 76 | 65 72 79 20 6c 61 73 74 |to the v|ery last|
|00000860| 20 6d 6f 6d 65 6e 74 2e | 0a 20 20 20 6f 20 61 20 | moment.|. o a |
|00000870| 63 6f 75 70 6c 65 20 6f | 66 20 67 72 61 74 75 69 |couple o|f gratui|
|00000880| 74 6f 75 73 20 6e 6f 6e | 2d 70 6f 72 74 61 62 6c |tous non|-portabl|
|00000890| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 77 65 72 65 |e functi|ons were|
|000008a0| 20 75 73 65 64 2e 0a 09 | 2d 20 73 74 72 74 6f 6b | used...|- strtok|
|000008b0| 28 29 20 72 65 70 6c 61 | 63 65 64 20 77 69 74 68 |() repla|ced with|
|000008c0| 20 73 69 6d 70 6c 65 20 | 73 74 72 63 68 72 28 29 | simple |strchr()|
|000008d0| 20 61 6e 64 20 61 20 6e | 75 6c 6c 20 73 74 6f 72 | and a n|ull stor|
|000008e0| 65 2e 0a 09 2d 20 73 72 | 61 6e 64 34 38 28 29 20 |e...- sr|and48() |
|000008f0| 72 65 70 6c 61 63 65 64 | 20 77 69 74 68 20 73 72 |replaced| with sr|
|00000900| 61 6e 64 6f 6d 28 29 3b | 0a 09 2d 20 75 73 6c 65 |andom();|..- usle|
|00000910| 65 70 28 29 20 74 68 69 | 73 20 69 73 20 73 74 69 |ep() thi|s is sti|
|00000920| 6c 6c 20 75 73 65 64 20 | 69 6e 20 6c 69 66 65 2e |ll used |in life.|
|00000930| 63 2c 20 62 75 74 20 70 | 65 6f 70 6c 65 20 63 61 |c, but p|eople ca|
|00000940| 6e 20 6a 75 73 74 20 72 | 69 70 20 69 74 0a 09 6f |n just r|ip it..o|
|00000950| 75 74 20 69 66 20 74 68 | 65 79 20 64 6f 6e 27 74 |ut if th|ey don't|
|00000960| 20 68 61 76 65 20 69 74 | 2c 20 6f 72 20 73 74 69 | have it|, or sti|
|00000970| 63 6b 20 69 6e 20 61 20 | 6c 6f 6f 70 20 70 6f 6c |ck in a |loop pol|
|00000980| 6c 69 6e 67 20 74 69 6d | 65 6f 66 64 61 79 2c 20 |ling tim|eofday, |
|00000990| 6f 72 0a 09 75 73 65 20 | 56 54 41 4c 52 4d 2c 20 |or..use |VTALRM, |
|000009a0| 62 75 74 20 75 73 6c 65 | 65 70 20 77 6f 72 6b 73 |but usle|ep works|
|000009b0| 20 6e 69 63 65 20 61 6e | 64 20 63 6c 65 61 6e 6c | nice an|d cleanl|
|000009c0| 79 20 75 6e 64 65 72 20 | 53 75 6e 4f 53 2c 20 73 |y under |SunOS, s|
|000009d0| 6f 20 49 27 6d 0a 09 6e | 6f 74 20 72 65 61 6c 6c |o I'm..n|ot reall|
|000009e0| 79 20 6d 6f 74 69 76 61 | 74 65 64 20 74 6f 20 63 |y motiva|ted to c|
|000009f0| 68 61 6e 67 65 20 69 74 | 2e 0a 0a 2d 2d 2d 2d 2d |hange it|...-----|
|00000a00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a40| 2d 0a 0a 20 20 20 20 54 | 68 65 72 65 20 69 73 20 |-.. T|here is |
|00000a50| 61 20 6d 69 6e 69 6d 61 | 6c 20 4d 61 6b 65 66 69 |a minima|l Makefi|
|00000a60| 6c 65 20 77 68 69 63 68 | 20 79 6f 75 20 6d 61 79 |le which| you may|
|00000a70| 20 6e 65 65 64 20 74 6f | 20 6d 61 73 73 61 67 65 | need to| massage|
|00000a80| 20 69 6e 20 6f 72 64 65 | 72 0a 20 20 20 20 74 6f | in orde|r. to|
|00000a90| 20 67 65 74 20 69 74 20 | 74 6f 20 67 65 6e 65 72 | get it |to gener|
|00000aa0| 61 74 65 20 74 68 65 20 | 72 69 67 68 74 20 74 68 |ate the |right th|
|00000ab0| 69 6e 67 20 66 72 6f 6d | 20 74 68 65 20 49 6d 61 |ing from| the Ima|
|00000ac0| 6b 65 66 69 6c 65 2e 20 | 20 4e 65 69 74 68 65 72 |kefile. | Neither|
|00000ad0| 0a 20 20 20 20 6f 66 20 | 74 68 65 73 65 20 68 61 |. of |these ha|
|00000ae0| 73 20 62 65 65 6e 20 74 | 65 73 74 65 64 20 73 69 |s been t|ested si|
|00000af0| 6e 63 65 20 77 65 20 64 | 6f 6e 27 74 20 75 73 65 |nce we d|on't use|
|00000b00| 20 49 6d 61 6b 65 2e 0a | 0a 43 68 61 6e 67 65 73 | Imake..|.Changes|
|00000b10| 20 73 69 6e 63 65 20 6c | 61 73 74 20 76 65 72 73 | since l|ast vers|
|00000b20| 69 6f 6e 20 28 31 2e 38 | 29 3a 0a 0a 20 20 20 20 |ion (1.8|):.. |
|00000b30| 41 62 69 6c 69 74 79 20 | 74 6f 20 73 65 74 20 74 |Ability |to set t|
|00000b40| 68 65 20 6e 69 63 65 20 | 6c 65 76 65 6c 20 6f 66 |he nice |level of|
|00000b50| 20 74 68 65 20 78 6c 6f | 63 6b 20 70 72 6f 63 65 | the xlo|ck proce|
|00000b60| 73 73 2c 20 74 6f 20 6b | 65 65 70 20 69 74 20 66 |ss, to k|eep it f|
|00000b70| 72 6f 6d 0a 20 20 20 20 | 68 6f 67 67 69 6e 67 20 |rom. |hogging |
|00000b80| 61 6c 6c 20 6f 66 20 74 | 68 65 20 63 70 75 2e 0a |all of t|he cpu..|
|00000b90| 0a 20 20 20 20 2d 64 69 | 73 70 6c 61 79 20 69 73 |. -di|splay is|
|00000ba0| 20 70 61 72 73 65 64 20 | 74 6f 20 62 65 20 61 62 | parsed |to be ab|
|00000bb0| 6c 65 20 74 6f 20 6c 6f | 63 6b 20 75 6e 69 78 3a |le to lo|ck unix:|
|00000bc0| 31 2c 20 65 74 63 2e 2e | 2e 0a 0a 20 20 20 20 6e |1, etc..|... n|
|00000bd0| 65 77 20 6d 6f 64 61 6c | 20 69 6e 74 65 72 66 61 |ew modal| interfa|
|00000be0| 63 65 20 74 6f 20 64 69 | 66 66 65 72 65 6e 74 20 |ce to di|fferent |
|00000bf0| 6c 6f 63 6b 73 63 72 65 | 65 6e 20 73 63 72 65 65 |lockscre|en scree|
|00000c00| 6e 73 61 76 65 72 73 2e | 0a 0a 20 20 20 20 74 68 |nsavers.|.. th|
|00000c10| 72 65 65 20 73 61 6d 70 | 6c 65 20 6d 6f 64 65 73 |ree samp|le modes|
|00000c20| 2e 0a 09 2d 6d 6f 64 65 | 20 71 69 78 20 69 73 20 |...-mode| qix is |
|00000c30| 74 68 65 20 6f 6c 64 20 | 73 70 69 6e 6e 69 6e 67 |the old |spinning|
|00000c40| 20 6c 69 6e 65 73 20 64 | 65 6d 6f 2e 2e 2e 0a 09 | lines d|emo.....|
|00000c50| 2d 6d 6f 64 65 20 6c 69 | 66 65 20 69 73 20 61 20 |-mode li|fe is a |
|00000c60| 6e 65 77 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |new impl|ementati|
|00000c70| 6f 6e 20 6f 66 20 43 6f | 6e 77 61 79 27 73 20 4c |on of Co|nway's L|
|00000c80| 69 66 65 20 73 69 6d 75 | 6c 61 74 69 6f 6e 2e 0a |ife simu|lation..|
|00000c90| 09 2d 6d 6f 64 65 20 68 | 6f 70 20 69 73 20 74 68 |.-mode h|op is th|
|00000ca0| 65 20 22 68 6f 70 61 6c | 6f 6e 67 20 66 72 61 63 |e "hopal|ong frac|
|00000cb0| 74 61 6c 73 22 20 66 72 | 6f 6d 20 6c 61 73 74 20 |tals" fr|om last |
|00000cc0| 76 65 72 73 69 6f 6e 2e | 0a 0a 20 20 20 20 6c 6f |version.|.. lo|
|00000cd0| 74 73 20 6f 66 20 62 75 | 67 20 66 69 78 65 73 20 |ts of bu|g fixes |
|00000ce0| 61 6e 64 20 63 6f 64 65 | 20 63 6c 65 61 6e 75 70 |and code| cleanup|
|00000cf0| 2e 0a 0a 20 20 20 20 5f | 5f 5f 5f 5f 5f 5f 5f 5f |... _|________|
|00000d00| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000d10| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000d20| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000d30| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0a 20 20 |________|_____. |
|00000d40| 20 20 50 61 74 72 69 63 | 6b 20 4a 2e 20 4e 61 75 | Patric|k J. Nau|
|00000d50| 67 68 74 6f 6e 09 09 09 | 09 20 20 20 20 41 52 50 |ghton...|. ARP|
|00000d60| 41 3a 20 6e 61 75 67 68 | 74 6f 6e 40 73 75 6e 2e |A: naugh|ton@sun.|
|00000d70| 63 6f 6d 0a 20 20 20 20 | 57 69 6e 64 6f 77 20 53 |com. |Window S|
|00000d80| 79 73 74 65 6d 73 20 47 | 72 6f 75 70 09 09 09 20 |ystems G|roup... |
|00000d90| 20 20 20 55 55 43 50 3a | 20 2e 2e 2e 21 73 75 6e | UUCP:| ...!sun|
|00000da0| 21 6e 61 75 67 68 74 6f | 6e 0a 20 20 20 20 53 75 |!naughto|n. Su|
|00000db0| 6e 20 4d 69 63 72 6f 73 | 79 73 74 65 6d 73 2c 20 |n Micros|ystems, |
|00000dc0| 49 6e 63 2e 09 09 09 20 | 20 20 20 41 54 26 54 3a |Inc.... | AT&T:|
|00000dd0| 20 28 34 31 35 29 20 33 | 33 36 20 2d 20 31 30 38 | (415) 3|36 - 108|
|00000de0| 30 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 69 66 |0.SHAR_E|OF.fi.if|
|00000df0| 20 74 65 73 74 20 2d 66 | 20 27 49 6d 61 6b 65 66 | test -f| 'Imakef|
|00000e00| 69 6c 65 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |ile'.the|n..echo |
|00000e10| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00000e20| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00000e30| 69 6e 67 20 66 69 6c 65 | 20 27 49 6d 61 6b 65 66 |ing file| 'Imakef|
|00000e40| 69 6c 65 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |ile'".el|se.cat <|
|00000e50| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 49 |< \SHAR_|EOF > 'I|
|00000e60| 6d 61 6b 65 66 69 6c 65 | 27 0a 23 20 40 28 23 29 |makefile|'.# @(#)|
|00000e70| 49 6d 61 6b 65 66 69 6c | 65 20 32 32 2e 32 20 38 |Imakefil|e 22.2 8|
|00000e80| 39 2f 30 39 2f 32 30 0a | 23 20 49 6d 61 6b 65 66 |9/09/20.|# Imakef|
|00000e90| 69 6c 65 20 2d 20 78 6c | 6f 63 6b 0a 23 0a 23 20 |ile - xl|ock.#.# |
|00000ea0| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 31 39 |Copyrigh|t (c) 19|
|00000eb0| 38 39 20 62 79 20 53 75 | 6e 20 4d 69 63 72 6f 73 |89 by Su|n Micros|
|00000ec0| 79 73 74 65 6d 73 2c 20 | 49 6e 63 2e 0a 23 0a 23 |ystems, |Inc..#.#|
|00000ed0| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 74 6f 20 75 | Permiss|ion to u|
|00000ee0| 73 65 2c 20 63 6f 70 79 | 2c 20 6d 6f 64 69 66 79 |se, copy|, modify|
|00000ef0| 2c 20 61 6e 64 20 64 69 | 73 74 72 69 62 75 74 65 |, and di|stribute|
|00000f00| 20 74 68 69 73 20 73 6f | 66 74 77 61 72 65 20 61 | this so|ftware a|
|00000f10| 6e 64 20 69 74 73 0a 23 | 20 64 6f 63 75 6d 65 6e |nd its.#| documen|
|00000f20| 74 61 74 69 6f 6e 20 66 | 6f 72 20 61 6e 79 20 70 |tation f|or any p|
|00000f30| 75 72 70 6f 73 65 20 61 | 6e 64 20 77 69 74 68 6f |urpose a|nd witho|
|00000f40| 75 74 20 66 65 65 20 69 | 73 20 68 65 72 65 62 79 |ut fee i|s hereby|
|00000f50| 20 67 72 61 6e 74 65 64 | 2c 0a 23 20 70 72 6f 76 | granted|,.# prov|
|00000f60| 69 64 65 64 20 74 68 61 | 74 20 74 68 65 20 61 62 |ided tha|t the ab|
|00000f70| 6f 76 65 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |ove copy|right no|
|00000f80| 74 69 63 65 20 61 70 70 | 65 61 72 20 69 6e 20 61 |tice app|ear in a|
|00000f90| 6c 6c 20 63 6f 70 69 65 | 73 20 61 6e 64 20 74 68 |ll copie|s and th|
|00000fa0| 61 74 0a 23 20 62 6f 74 | 68 20 74 68 61 74 20 63 |at.# bot|h that c|
|00000fb0| 6f 70 79 72 69 67 68 74 | 20 6e 6f 74 69 63 65 20 |opyright| notice |
|00000fc0| 61 6e 64 20 74 68 69 73 | 20 70 65 72 6d 69 73 73 |and this| permiss|
|00000fd0| 69 6f 6e 20 6e 6f 74 69 | 63 65 20 61 70 70 65 61 |ion noti|ce appea|
|00000fe0| 72 20 69 6e 0a 23 20 73 | 75 70 70 6f 72 74 69 6e |r in.# s|upportin|
|00000ff0| 67 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 2e |g docume|ntation.|
|00001000| 0a 23 0a 23 20 54 68 69 | 73 20 66 69 6c 65 20 69 |.#.# Thi|s file i|
|00001010| 73 20 70 72 6f 76 69 64 | 65 64 20 41 53 20 49 53 |s provid|ed AS IS|
|00001020| 20 77 69 74 68 20 6e 6f | 20 77 61 72 72 61 6e 74 | with no| warrant|
|00001030| 69 65 73 20 6f 66 20 61 | 6e 79 20 6b 69 6e 64 2e |ies of a|ny kind.|
|00001040| 20 20 54 68 65 20 61 75 | 74 68 6f 72 0a 23 20 73 | The au|thor.# s|
|00001050| 68 61 6c 6c 20 68 61 76 | 65 20 6e 6f 20 6c 69 61 |hall hav|e no lia|
|00001060| 62 69 6c 69 74 79 20 77 | 69 74 68 20 72 65 73 70 |bility w|ith resp|
|00001070| 65 63 74 20 74 6f 20 74 | 68 65 20 69 6e 66 72 69 |ect to t|he infri|
|00001080| 6e 67 65 6d 65 6e 74 20 | 6f 66 20 63 6f 70 79 72 |ngement |of copyr|
|00001090| 69 67 68 74 73 2c 0a 23 | 20 74 72 61 64 65 20 73 |ights,.#| trade s|
|000010a0| 65 63 72 65 74 73 20 6f | 72 20 61 6e 79 20 70 61 |ecrets o|r any pa|
|000010b0| 74 65 6e 74 73 20 62 79 | 20 74 68 69 73 20 66 69 |tents by| this fi|
|000010c0| 6c 65 20 6f 72 20 61 6e | 79 20 70 61 72 74 20 74 |le or an|y part t|
|000010d0| 68 65 72 65 6f 66 2e 20 | 20 49 6e 20 6e 6f 0a 23 |hereof. | In no.#|
|000010e0| 20 65 76 65 6e 74 20 77 | 69 6c 6c 20 74 68 65 20 | event w|ill the |
|000010f0| 61 75 74 68 6f 72 20 62 | 65 20 6c 69 61 62 6c 65 |author b|e liable|
|00001100| 20 66 6f 72 20 61 6e 79 | 20 6c 6f 73 74 20 72 65 | for any| lost re|
|00001110| 76 65 6e 75 65 20 6f 72 | 20 70 72 6f 66 69 74 73 |venue or| profits|
|00001120| 20 6f 72 0a 23 20 6f 74 | 68 65 72 20 73 70 65 63 | or.# ot|her spec|
|00001130| 69 61 6c 2c 20 69 6e 64 | 69 72 65 63 74 20 61 6e |ial, ind|irect an|
|00001140| 64 20 63 6f 6e 73 65 71 | 75 65 6e 74 69 61 6c 20 |d conseq|uential |
|00001150| 64 61 6d 61 67 65 73 2e | 0a 23 0a 23 0a 20 20 20 |damages.|.#.#. |
|00001160| 20 20 20 20 49 4e 43 4c | 55 44 45 53 20 3d 20 2d | INCL|UDES = -|
|00001170| 49 24 28 54 4f 50 29 20 | 2d 49 24 28 54 4f 50 29 |I$(TOP) |-I$(TOP)|
|00001180| 2f 58 31 31 0a 4c 4f 43 | 41 4c 5f 4c 49 42 52 41 |/X11.LOC|AL_LIBRA|
|00001190| 52 49 45 53 20 3d 20 24 | 28 58 4c 49 42 29 0a 20 |RIES = $|(XLIB). |
|000011a0| 20 53 59 53 5f 4c 49 42 | 52 41 52 49 45 53 20 3d | SYS_LIB|RARIES =|
|000011b0| 20 2d 6c 6d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | -lm. | |
|000011c0| 53 52 43 53 20 3d 20 78 | 6c 6f 63 6b 2e 63 20 68 |SRCS = x|lock.c h|
|000011d0| 6f 70 61 6c 6f 6e 67 2e | 63 20 6c 69 66 65 2e 63 |opalong.|c life.c|
|000011e0| 20 71 69 78 2e 63 20 5c | 0a 09 09 58 43 72 48 73 | qix.c \|...XCrHs|
|000011f0| 62 43 6d 61 70 2e 63 20 | 48 53 42 6d 61 70 2e 63 |bCmap.c |HSBmap.c|
|00001200| 20 58 43 72 44 79 6e 43 | 6d 61 70 2e 63 0a 20 20 | XCrDynC|map.c. |
|00001210| 20 20 20 20 20 20 20 20 | 20 4f 42 4a 53 20 3d 20 | | OBJS = |
|00001220| 78 6c 6f 63 6b 2e 6f 20 | 68 6f 70 61 6c 6f 6e 67 |xlock.o |hopalong|
|00001230| 2e 6f 20 6c 69 66 65 2e | 6f 20 71 69 78 2e 6f 20 |.o life.|o qix.o |
|00001240| 5c 0a 09 09 58 43 72 48 | 73 62 43 6d 61 70 2e 6f |\...XCrH|sbCmap.o|
|00001250| 20 48 53 42 6d 61 70 2e | 6f 20 58 43 72 44 79 6e | HSBmap.|o XCrDyn|
|00001260| 43 6d 61 70 2e 6f 0a 0a | 43 6f 6d 70 6c 65 78 50 |Cmap.o..|ComplexP|
|00001270| 72 6f 67 72 61 6d 54 61 | 72 67 65 74 28 78 6c 6f |rogramTa|rget(xlo|
|00001280| 63 6b 29 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 0a |ck).SHAR|_EOF.fi.|
|00001290| 69 66 20 74 65 73 74 20 | 2d 66 20 27 4d 61 6b 65 |if test |-f 'Make|
|000012a0| 66 69 6c 65 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |file'.th|en..echo|
|000012b0| 20 73 68 61 72 3a 20 22 | 77 69 6c 6c 20 6e 6f 74 | shar: "|will not|
|000012c0| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|000012d0| 74 69 6e 67 20 66 69 6c | 65 20 27 4d 61 6b 65 66 |ting fil|e 'Makef|
|000012e0| 69 6c 65 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |ile'".el|se.cat <|
|000012f0| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 4d |< \SHAR_|EOF > 'M|
|00001300| 61 6b 65 66 69 6c 65 27 | 0a 20 20 20 20 20 20 20 |akefile'|. |
|00001310| 20 20 20 20 20 54 4f 50 | 20 3d 20 2e 2f 2e 2e 2f | TOP| = ./../|
|00001320| 2e 2e 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00001330| 4d 56 20 3d 20 6d 76 0a | 20 20 20 20 20 20 20 20 |MV = mv.| |
|00001340| 20 20 20 20 20 52 4d 20 | 3d 20 72 6d 20 2d 66 0a | RM |= rm -f.|
|00001350| 20 20 20 20 20 20 20 20 | 55 54 49 4c 53 52 43 20 | |UTILSRC |
|00001360| 3d 20 24 28 54 4f 50 29 | 2f 75 74 69 6c 0a 20 20 |= $(TOP)|/util. |
|00001370| 20 20 20 20 20 49 4d 41 | 4b 45 53 52 43 20 3d 20 | IMA|KESRC = |
|00001380| 24 28 55 54 49 4c 53 52 | 43 29 2f 69 6d 61 6b 65 |$(UTILSR|C)/imake|
|00001390| 0a 20 20 20 20 20 20 20 | 49 52 55 4c 45 53 52 43 |. |IRULESRC|
|000013a0| 20 3d 20 24 28 55 54 49 | 4c 53 52 43 29 2f 69 6d | = $(UTI|LSRC)/im|
|000013b0| 61 6b 65 2e 69 6e 63 6c | 75 64 65 73 0a 20 20 20 |ake.incl|udes. |
|000013c0| 20 20 20 20 20 20 20 49 | 4d 41 4b 45 20 3d 20 24 | I|MAKE = $|
|000013d0| 28 49 4d 41 4b 45 53 52 | 43 29 2f 69 6d 61 6b 65 |(IMAKESR|C)/imake|
|000013e0| 0a 20 20 20 20 20 20 49 | 4d 41 4b 45 5f 43 4d 44 |. I|MAKE_CMD|
|000013f0| 20 3d 20 24 28 4e 45 57 | 54 4f 50 29 24 28 49 4d | = $(NEW|TOP)$(IM|
|00001400| 41 4b 45 29 20 2d 54 49 | 6d 61 6b 65 2e 74 6d 70 |AKE) -TI|make.tmp|
|00001410| 6c 20 5c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |l \. | |
|00001420| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 49 24 28 | | -I$(|
|00001430| 4e 45 57 54 4f 50 29 24 | 28 49 52 55 4c 45 53 52 |NEWTOP)$|(IRULESR|
|00001440| 43 29 20 5c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |C) \. | |
|00001450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 73 20 | | -s |
|00001460| 4d 61 6b 65 66 69 6c 65 | 0a 0a 4d 61 6b 65 66 69 |Makefile|..Makefi|
|00001470| 6c 65 3a 3a 20 49 6d 61 | 6b 65 66 69 6c 65 0a 20 |le:: Ima|kefile. |
|00001480| 20 20 20 20 20 20 20 2d | 24 28 52 4d 29 20 4d 61 | -|$(RM) Ma|
|00001490| 6b 65 66 69 6c 65 2e 62 | 61 6b 3b 20 24 28 4d 56 |kefile.b|ak; $(MV|
|000014a0| 29 20 4d 61 6b 65 66 69 | 6c 65 20 4d 61 6b 65 66 |) Makefi|le Makef|
|000014b0| 69 6c 65 2e 62 61 6b 0a | 20 20 20 20 20 20 20 20 |ile.bak.| |
|000014c0| 24 28 49 4d 41 4b 45 5f | 43 4d 44 29 20 2d 44 54 |$(IMAKE_|CMD) -DT|
|000014d0| 4f 50 44 49 52 3d 24 28 | 54 4f 50 29 0a 53 48 41 |OPDIR=$(|TOP).SHA|
|000014e0| 52 5f 45 4f 46 0a 66 69 | 0a 69 66 20 74 65 73 74 |R_EOF.fi|.if test|
|000014f0| 20 2d 66 20 27 70 61 74 | 63 68 6c 65 76 65 6c 2e | -f 'pat|chlevel.|
|00001500| 68 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |h'.then.|.echo sh|
|00001510| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|00001520| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00001530| 67 20 66 69 6c 65 20 27 | 70 61 74 63 68 6c 65 76 |g file '|patchlev|
|00001540| 65 6c 2e 68 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |el.h'".e|lse.cat |
|00001550| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00001560| 70 61 74 63 68 6c 65 76 | 65 6c 2e 68 27 0a 31 2e |patchlev|el.h'.1.|
|00001570| 31 0a 53 48 41 52 5f 45 | 4f 46 0a 66 69 0a 69 66 |1.SHAR_E|OF.fi.if|
|00001580| 20 74 65 73 74 20 2d 66 | 20 27 78 6c 6f 63 6b 2e | test -f| 'xlock.|
|00001590| 31 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |1'.then.|.echo sh|
|000015a0| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|000015b0| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|000015c0| 67 20 66 69 6c 65 20 27 | 78 6c 6f 63 6b 2e 31 27 |g file '|xlock.1'|
|000015d0| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|000015e0| 48 41 52 5f 45 4f 46 20 | 3e 20 27 78 6c 6f 63 6b |HAR_EOF |> 'xlock|
|000015f0| 2e 31 27 0a 2e 5c 22 20 | 40 28 23 29 78 6c 6f 63 |.1'..\" |@(#)xloc|
|00001600| 6b 2e 6e 20 32 32 2e 32 | 20 38 39 2f 30 39 2f 32 |k.n 22.2| 89/09/2|
|00001610| 30 3b 20 43 6f 70 79 72 | 69 67 68 74 20 28 63 29 |0; Copyr|ight (c)|
|00001620| 20 31 39 38 39 20 2d 20 | 53 75 6e 20 4d 69 63 72 | 1989 - |Sun Micr|
|00001630| 6f 73 79 73 74 65 6d 73 | 2c 20 49 6e 63 2e 0a 2e |osystems|, Inc...|
|00001640| 54 48 20 58 4c 4f 43 4b | 20 31 20 22 32 30 20 53 |TH XLOCK| 1 "20 S|
|00001650| 65 70 20 31 39 38 39 22 | 20 22 58 31 31 52 34 22 |ep 1989"| "X11R4"|
|00001660| 0a 2e 53 48 20 4e 41 4d | 45 0a 78 6c 6f 63 6b 20 |..SH NAM|E.xlock |
|00001670| 5c 2d 20 4c 6f 63 6b 73 | 20 74 68 65 20 6c 6f 63 |\- Locks| the loc|
|00001680| 61 6c 20 58 20 64 69 73 | 70 6c 61 79 20 74 69 6c |al X dis|play til|
|00001690| 6c 20 61 20 70 61 73 73 | 77 6f 72 64 20 69 73 20 |l a pass|word is |
|000016a0| 65 6e 74 65 72 65 64 2e | 0a 0a 2e 53 48 20 53 59 |entered.|...SH SY|
|000016b0| 4e 4f 50 53 49 53 0a 2e | 42 20 78 6c 6f 63 6b 0a |NOPSIS..|B xlock.|
|000016c0| 5b 0a 2e 42 49 20 5c 2d | 64 69 73 70 6c 61 79 20 |[..BI \-|display |
|000016d0| 22 20 64 73 70 22 0a 5d | 0a 5b 0a 2e 42 49 20 5c |" dsp".]|.[..BI \|
|000016e0| 2d 6d 6f 64 65 20 22 20 | 6d 6f 64 65 22 0a 5d 0a |-mode " |mode".].|
|000016f0| 5b 0a 2e 42 49 20 5c 2d | 74 69 6d 65 20 22 20 74 |[..BI \-|time " t|
|00001700| 69 6d 65 6f 75 74 22 0a | 5d 0a 5b 0a 2e 42 49 20 |imeout".|].[..BI |
|00001710| 5c 2d 63 6f 75 6e 74 20 | 22 20 6e 22 0a 5d 0a 5b |\-count |" n".].[|
|00001720| 0a 2e 42 49 20 5c 2d 66 | 6f 6e 74 20 22 20 66 6f |..BI \-f|ont " fo|
|00001730| 6e 74 6e 61 6d 65 22 0a | 5d 0a 5b 0a 2e 42 49 20 |ntname".|].[..BI |
|00001740| 5c 2d 6e 69 63 65 20 22 | 20 6e 69 63 65 6c 65 76 |\-nice "| nicelev|
|00001750| 65 6c 22 0a 5d 0a 5b 0a | 2e 42 20 5c 2d 6d 6f 6e |el".].[.|.B \-mon|
|00001760| 6f 0a 5d 0a 5b 0a 2e 42 | 20 5c 2d 73 61 76 65 72 |o.].[..B| \-saver|
|00001770| 0a 5d 0a 5b 0a 2e 42 20 | 5c 2d 72 6f 6f 74 0a 5d |.].[..B |\-root.]|
|00001780| 0a 5b 0a 2e 42 20 5c 2d | 76 0a 5d 0a 0a 2e 53 48 |.[..B \-|v.]...SH|
|00001790| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 2e 42 20 | DESCRIP|TION..B |
|000017a0| 78 6c 6f 63 6b 0a 6c 6f | 63 6b 73 20 74 68 65 20 |xlock.lo|cks the |
|000017b0| 58 20 73 65 72 76 65 72 | 20 74 69 6c 6c 20 74 68 |X server| till th|
|000017c0| 65 20 75 73 65 72 20 65 | 6e 74 65 72 73 20 74 68 |e user e|nters th|
|000017d0| 65 69 72 20 70 61 73 73 | 77 6f 72 64 20 61 74 20 |eir pass|word at |
|000017e0| 74 68 65 20 6b 65 79 62 | 6f 61 72 64 2e 0a 57 68 |the keyb|oard..Wh|
|000017f0| 69 6c 65 0a 2e 42 20 78 | 6c 6f 63 6b 0a 69 73 20 |ile..B x|lock.is |
|00001800| 72 75 6e 6e 69 6e 67 2c | 0a 61 6c 6c 20 6e 65 77 |running,|.all new|
|00001810| 20 73 65 72 76 65 72 20 | 63 6f 6e 6e 65 63 74 69 | server |connecti|
|00001820| 6f 6e 73 20 61 72 65 20 | 72 65 66 75 73 65 64 2e |ons are |refused.|
|00001830| 0a 54 68 65 20 73 63 72 | 65 65 6e 20 73 61 76 65 |.The scr|een save|
|00001840| 72 20 69 73 20 64 69 73 | 61 62 6c 65 64 2e 0a 54 |r is dis|abled..T|
|00001850| 68 65 20 6d 6f 75 73 65 | 20 63 75 72 73 6f 72 20 |he mouse| cursor |
|00001860| 69 73 20 74 75 72 6e 65 | 64 20 6f 66 66 2e 0a 54 |is turne|d off..T|
|00001870| 68 65 20 73 63 72 65 65 | 6e 20 69 73 20 62 6c 61 |he scree|n is bla|
|00001880| 6e 6b 65 64 20 61 6e 64 | 20 61 20 63 68 61 6e 67 |nked and| a chang|
|00001890| 69 6e 67 20 70 61 74 74 | 65 72 6e 20 69 73 20 70 |ing patt|ern is p|
|000018a0| 75 74 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |ut on th|e screen|
|000018b0| 2e 0a 54 68 65 20 70 61 | 74 74 65 72 6e 20 63 68 |..The pa|ttern ch|
|000018c0| 61 6e 67 65 73 20 61 66 | 74 65 72 0a 2e 49 20 74 |anges af|ter..I t|
|000018d0| 69 6d 65 6f 75 74 0a 73 | 65 63 6f 6e 64 73 2e 20 |imeout.s|econds. |
|000018e0| 0a 49 66 20 61 20 6b 65 | 79 20 6f 72 20 61 20 6d |.If a ke|y or a m|
|000018f0| 6f 75 73 65 20 62 75 74 | 74 6f 6e 20 69 73 20 70 |ouse but|ton is p|
|00001900| 72 65 73 73 65 64 20 74 | 68 65 6e 20 74 68 65 20 |ressed t|hen the |
|00001910| 75 73 65 72 20 69 73 20 | 70 72 6f 6d 70 74 65 64 |user is |prompted|
|00001920| 20 66 6f 72 20 74 68 65 | 0a 70 61 73 73 77 6f 72 | for the|.passwor|
|00001930| 64 20 6f 66 20 74 68 65 | 20 75 73 65 72 20 77 68 |d of the| user wh|
|00001940| 6f 20 73 74 61 72 74 65 | 64 0a 2e 42 20 78 6c 6f |o starte|d..B xlo|
|00001950| 63 6b 2e 0a 0a 49 66 20 | 74 68 65 20 63 6f 72 72 |ck...If |the corr|
|00001960| 65 63 74 20 70 61 73 73 | 77 6f 72 64 20 69 73 20 |ect pass|word is |
|00001970| 74 79 70 65 64 2c 20 74 | 68 65 6e 20 74 68 65 20 |typed, t|hen the |
|00001980| 73 63 72 65 65 6e 20 69 | 73 20 75 6e 6c 6f 63 6b |screen i|s unlock|
|00001990| 65 64 20 61 6e 64 20 74 | 68 65 20 58 0a 73 65 72 |ed and t|he X.ser|
|000019a0| 76 65 72 20 69 73 20 72 | 65 73 74 6f 72 65 64 2e |ver is r|estored.|
|000019b0| 20 20 57 68 65 6e 20 74 | 79 70 69 6e 67 20 74 68 | When t|yping th|
|000019c0| 65 20 70 61 73 73 77 6f | 72 64 2c 20 63 68 61 72 |e passwo|rd, char|
|000019d0| 61 63 74 65 72 73 20 61 | 72 65 20 65 63 68 6f 65 |acters a|re echoe|
|000019e0| 64 0a 74 6f 20 74 68 65 | 20 73 63 72 65 65 6e 20 |d.to the| screen |
|000019f0| 61 73 20 71 75 65 73 74 | 69 6f 6e 20 6d 61 72 6b |as quest|ion mark|
|00001a00| 73 20 28 3f 29 2c 20 61 | 6e 64 20 43 6f 6e 74 72 |s (?), a|nd Contr|
|00001a10| 6f 6c 2d 55 20 61 6e 64 | 20 43 6f 6e 74 72 6f 6c |ol-U and| Control|
|00001a20| 2d 48 20 61 72 65 0a 61 | 63 74 69 76 65 20 61 73 |-H are.a|ctive as|
|00001a30| 20 6b 69 6c 6c 20 61 6e | 64 20 65 72 61 73 65 20 | kill an|d erase |
|00001a40| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2e 20 20 54 |respecti|vely. T|
|00001a50| 6f 20 72 65 74 75 72 6e | 20 74 6f 20 74 68 65 20 |o return| to the |
|00001a60| 6c 6f 63 6b 65 64 20 73 | 63 72 65 65 6e 2c 0a 63 |locked s|creen,.c|
|00001a70| 6c 69 63 6b 20 69 6e 20 | 74 68 65 20 73 6d 61 6c |lick in |the smal|
|00001a80| 6c 20 69 63 6f 6e 20 76 | 65 72 73 69 6f 6e 20 6f |l icon v|ersion o|
|00001a90| 66 20 74 68 65 20 63 68 | 61 6e 67 69 6e 67 20 70 |f the ch|anging p|
|00001aa0| 61 74 74 65 72 6e 2e 0a | 0a 2e 53 48 20 4f 50 54 |attern..|..SH OPT|
|00001ab0| 49 4f 4e 53 0a 2e 54 50 | 20 35 0a 2e 42 20 5c 2d |IONS..TP| 5..B \-|
|00001ac0| 64 69 73 70 6c 61 79 20 | 22 20 64 73 70 22 0a 54 |display |" dsp".T|
|00001ad0| 68 65 0a 2e 49 20 64 69 | 73 70 6c 61 79 0a 6f 70 |he..I di|splay.op|
|00001ae0| 74 69 6f 6e 20 73 65 74 | 73 20 74 68 65 20 58 31 |tion set|s the X1|
|00001af0| 31 20 64 69 73 70 6c 61 | 79 20 74 6f 20 6c 6f 63 |1 displa|y to loc|
|00001b00| 6b 2e 0a 2e 42 20 78 6c | 6f 63 6b 0a 77 69 6c 6c |k...B xl|ock.will|
|00001b10| 20 6e 6f 74 20 61 6c 6c | 6f 77 20 6f 6e 65 20 74 | not all|ow one t|
|00001b20| 6f 20 6c 6f 63 6b 20 61 | 6e 6f 74 68 65 72 20 73 |o lock a|nother s|
|00001b30| 65 72 76 65 72 27 73 20 | 64 69 73 70 6c 61 79 73 |erver's |displays|
|00001b40| 20 74 68 75 73 20 6f 6e | 6c 79 0a 2e 42 49 20 75 | thus on|ly..BI u|
|00001b50| 6e 69 78 3a 73 65 72 76 | 65 72 2e 73 63 72 65 65 |nix:serv|er.scree|
|00001b60| 6e 2c 0a 2e 42 49 20 6c | 6f 63 61 6c 68 6f 73 74 |n,..BI l|ocalhost|
|00001b70| 3a 73 65 72 76 65 72 2e | 73 63 72 65 65 6e 2c 0a |:server.|screen,.|
|00001b80| 61 6e 64 0a 2e 42 49 20 | 3a 73 65 72 76 65 72 2e |and..BI |:server.|
|00001b90| 73 63 72 65 65 6e 0a 61 | 72 65 20 61 6c 6c 6f 77 |screen.a|re allow|
|00001ba0| 65 64 20 66 6f 72 0a 2e | 49 20 64 73 70 2e 0a 57 |ed for..|I dsp..W|
|00001bb0| 68 65 72 65 0a 2e 49 20 | 73 65 72 76 65 72 0a 69 |here..I |server.i|
|00001bc0| 73 20 77 68 69 63 68 20 | 58 31 31 20 73 65 72 76 |s which |X11 serv|
|00001bd0| 65 72 20 73 6f 63 6b 65 | 74 20 74 6f 20 63 6f 6e |er socke|t to con|
|00001be0| 6e 65 63 74 20 74 6f 20 | 61 6e 64 0a 2e 49 20 73 |nect to |and..I s|
|00001bf0| 63 72 65 65 6e 0a 69 73 | 20 77 68 69 63 68 20 68 |creen.is| which h|
|00001c00| 65 61 64 20 74 6f 20 64 | 69 73 70 6c 61 79 20 74 |ead to d|isplay t|
|00001c10| 68 65 20 70 61 74 74 65 | 72 6e 20 6f 6e 2e 0a 2e |he patte|rn on...|
|00001c20| 54 50 20 35 0a 2e 42 20 | 5c 2d 6d 6f 64 65 20 22 |TP 5..B |\-mode "|
|00001c30| 20 6d 6f 64 65 6e 61 6d | 65 22 0a 41 73 20 6f 66 | modenam|e".As of|
|00001c40| 20 74 68 69 73 20 77 72 | 69 74 69 6e 67 20 74 68 | this wr|iting th|
|00001c50| 65 72 65 20 61 72 65 20 | 74 68 72 65 65 20 64 69 |ere are |three di|
|00001c60| 73 70 6c 61 79 20 6d 6f | 64 65 73 20 73 75 70 70 |splay mo|des supp|
|00001c70| 6f 72 74 65 64 2e 0a 2e | 54 50 20 38 0a 2e 42 20 |orted...|TP 8..B |
|00001c80| 68 6f 70 0a 48 6f 70 20 | 6d 6f 64 65 20 73 68 6f |hop.Hop |mode sho|
|00001c90| 77 73 20 74 68 65 20 22 | 72 65 61 6c 20 70 6c 61 |ws the "|real pla|
|00001ca0| 6e 65 20 66 72 61 63 74 | 61 6c 73 22 20 66 72 6f |ne fract|als" fro|
|00001cb0| 6d 20 74 68 65 20 53 65 | 70 74 65 6d 62 65 72 20 |m the Se|ptember |
|00001cc0| 31 39 38 36 20 69 73 73 | 75 65 20 6f 66 0a 53 63 |1986 iss|ue of.Sc|
|00001cd0| 69 65 6e 74 69 66 69 63 | 20 41 6d 65 72 69 63 61 |ientific| America|
|00001ce0| 6e 2e 0a 2e 54 50 20 38 | 0a 2e 42 20 6c 69 66 65 |n...TP 8|..B life|
|00001cf0| 0a 4c 69 66 65 20 6d 6f | 64 65 20 73 68 6f 77 73 |.Life mo|de shows|
|00001d00| 20 43 6f 6e 77 61 79 27 | 73 20 67 61 6d 65 20 6f | Conway'|s game o|
|00001d10| 66 20 6c 69 66 65 2e 0a | 2e 54 50 20 38 0a 2e 42 |f life..|.TP 8..B|
|00001d20| 20 71 69 78 0a 51 69 78 | 20 6d 6f 64 65 20 73 68 | qix.Qix| mode sh|
|00001d30| 6f 77 73 20 74 68 65 20 | 73 70 69 6e 6e 69 6e 67 |ows the |spinning|
|00001d40| 20 6c 69 6e 65 73 20 73 | 69 6d 69 6c 61 72 20 74 | lines s|imilar t|
|00001d50| 6f 20 74 68 65 20 6f 6c | 64 20 76 69 64 65 6f 20 |o the ol|d video |
|00001d60| 67 61 6d 65 0a 62 79 20 | 74 68 65 20 73 61 6d 65 |game.by |the same|
|00001d70| 20 6e 61 6d 65 2e 0a 2e | 54 50 20 35 0a 2e 42 20 | name...|TP 5..B |
|00001d80| 5c 2d 74 69 6d 65 20 22 | 20 74 69 6d 65 6f 75 74 |\-time "| timeout|
|00001d90| 22 0a 54 68 65 0a 2e 49 | 20 74 69 6d 65 0a 6f 70 |".The..I| time.op|
|00001da0| 74 69 6f 6e 20 73 65 74 | 73 20 74 68 65 20 6e 75 |tion set|s the nu|
|00001db0| 6d 62 65 72 20 6f 66 20 | 73 65 63 6f 6e 64 73 20 |mber of |seconds |
|00001dc0| 74 68 61 74 20 65 61 63 | 68 20 75 6e 69 71 75 65 |that eac|h unique|
|00001dd0| 20 66 72 61 63 74 61 6c | 20 77 69 6c 6c 20 72 65 | fractal| will re|
|00001de0| 6d 61 69 6e 20 6f 6e 0a | 74 68 65 20 73 63 72 65 |main on.|the scre|
|00001df0| 65 6e 20 62 65 66 6f 72 | 65 20 62 65 69 6e 67 20 |en befor|e being |
|00001e00| 72 65 70 6c 61 63 65 64 | 20 62 79 20 74 68 65 20 |replaced| by the |
|00001e10| 6e 65 78 74 20 6f 6e 65 | 20 74 6f 0a 2e 49 20 74 |next one| to..I t|
|00001e20| 69 6d 65 6f 75 74 2e 0a | 2e 54 50 20 35 0a 2e 42 |imeout..|.TP 5..B|
|00001e30| 20 5c 2d 63 6f 75 6e 74 | 20 22 20 6e 22 0a 54 68 | \-count| " n".Th|
|00001e40| 65 0a 2e 49 20 63 6f 75 | 6e 74 0a 6f 70 74 69 6f |e..I cou|nt.optio|
|00001e50| 6e 20 73 65 74 73 20 74 | 68 65 20 73 70 65 65 64 |n sets t|he speed|
|00001e60| 20 61 74 20 77 68 69 63 | 68 20 61 20 6d 6f 64 65 | at whic|h a mode|
|00001e70| 20 77 69 6c 6c 20 6f 70 | 65 72 61 74 65 2e 20 20 | will op|erate. |
|00001e80| 54 68 65 20 64 69 66 66 | 65 72 65 6e 74 20 6d 6f |The diff|erent mo|
|00001e90| 64 65 73 0a 69 6e 74 65 | 72 70 72 65 74 20 74 68 |des.inte|rpret th|
|00001ea0| 69 73 20 76 61 6c 75 65 | 20 64 69 66 66 65 72 65 |is value| differe|
|00001eb0| 6e 74 6c 79 2e 20 20 46 | 6f 72 20 27 68 6f 70 27 |ntly. F|or 'hop'|
|00001ec0| 20 61 6e 64 20 27 71 69 | 78 27 20 74 68 69 73 20 | and 'qi|x' this |
|00001ed0| 73 65 74 73 20 74 68 65 | 0a 6e 75 6d 62 65 72 20 |sets the|.number |
|00001ee0| 6f 66 20 70 69 78 65 6c | 73 20 61 6e 64 20 6c 69 |of pixel|s and li|
|00001ef0| 6e 65 73 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |nes resp|ectively|
|00001f00| 20 74 6f 20 64 72 61 77 | 20 69 6e 20 65 61 63 68 | to draw| in each|
|00001f10| 20 63 6f 6c 6f 72 2e 0a | 54 68 65 73 65 20 70 61 | color..|These pa|
|00001f20| 74 74 65 72 6e 73 20 61 | 72 65 20 63 61 6c 63 75 |tterns a|re calcu|
|00001f30| 6c 61 74 65 64 20 69 6e | 20 62 61 74 63 68 65 73 |lated in| batches|
|00001f40| 20 6f 66 0a 2e 49 20 6e | 0a 6f 62 6a 65 63 74 73 | of..I n|.objects|
|00001f50| 2c 20 74 68 65 6e 20 73 | 65 6e 74 20 74 6f 20 74 |, then s|ent to t|
|00001f60| 68 65 20 73 65 72 76 65 | 72 20 69 6e 20 61 20 73 |he serve|r in a s|
|00001f70| 69 6e 67 6c 65 20 63 6f | 6c 6f 72 2e 20 20 46 61 |ingle co|lor. Fa|
|00001f80| 73 74 65 72 20 6d 61 63 | 68 69 6e 65 73 2c 0a 65 |ster mac|hines,.e|
|00001f90| 78 70 65 63 69 61 6c 6c | 79 20 6d 61 63 68 69 6e |xpeciall|y machin|
|00001fa0| 65 73 20 77 69 74 68 20 | 66 6c 6f 61 74 69 6e 67 |es with |floating|
|00001fb0| 20 70 6f 69 6e 74 20 68 | 61 72 64 77 61 72 65 20 | point h|ardware |
|00001fc0| 63 61 6e 20 73 65 74 20 | 74 68 69 73 20 74 6f 20 |can set |this to |
|00001fd0| 61 0a 68 69 67 68 65 72 | 20 6e 75 6d 62 65 72 20 |a.higher| number |
|00001fe0| 61 6e 64 20 73 74 69 6c | 6c 20 68 61 76 65 20 66 |and stil|l have f|
|00001ff0| 61 73 74 20 63 68 61 6e | 67 69 6e 67 20 70 61 74 |ast chan|ging pat|
|00002000| 74 65 72 6e 73 2e 0a 54 | 68 65 20 27 6c 69 66 65 |terns..T|he 'life|
|00002010| 27 20 6d 6f 64 65 2c 20 | 69 6e 20 63 6f 6e 74 72 |' mode, |in contr|
|00002020| 61 73 74 20 69 6e 74 65 | 72 70 72 65 74 73 20 74 |ast inte|rprets t|
|00002030| 68 69 73 20 6e 75 6d 62 | 65 72 20 61 73 20 74 68 |his numb|er as th|
|00002040| 65 20 6e 75 6d 62 65 72 | 20 6f 66 0a 6d 69 6c 6c |e number| of.mill|
|00002050| 69 73 65 63 6f 6e 64 73 | 20 74 6f 20 64 65 6c 61 |iseconds| to dela|
|00002060| 79 20 61 66 74 65 72 20 | 65 61 63 68 20 67 65 6e |y after |each gen|
|00002070| 65 72 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 22 |eration |of the "|
|00002080| 63 72 69 74 74 65 72 73 | 22 2e 20 20 41 20 6c 6f |critters|". A lo|
|00002090| 77 0a 6e 75 6d 62 65 72 | 20 68 65 72 65 20 6d 61 |w.number| here ma|
|000020a0| 6b 65 73 20 74 68 65 20 | 70 61 74 74 65 72 6e 20 |kes the |pattern |
|000020b0| 63 68 61 6e 67 65 20 72 | 61 70 69 64 6c 79 2c 20 |change r|apidly, |
|000020c0| 77 68 65 72 65 20 31 30 | 30 30 20 6d 65 61 6e 73 |where 10|00 means|
|000020d0| 20 77 61 69 74 20 61 0a | 73 65 63 6f 6e 64 20 62 | wait a.|second b|
|000020e0| 65 74 77 65 65 6e 20 67 | 65 6e 65 72 61 74 69 6f |etween g|eneratio|
|000020f0| 6e 73 2e 0a 2e 54 50 20 | 35 0a 2e 42 20 5c 2d 66 |ns...TP |5..B \-f|
|00002100| 6f 6e 74 20 22 20 66 6f | 6e 74 6e 61 6d 65 22 0a |ont " fo|ntname".|
|00002110| 54 68 65 0a 2e 49 20 66 | 6f 6e 74 0a 6f 70 74 69 |The..I f|ont.opti|
|00002120| 6f 6e 20 73 65 74 73 20 | 74 68 65 20 66 6f 6e 74 |on sets |the font|
|00002130| 20 74 6f 20 62 65 20 75 | 73 65 64 20 6f 6e 20 74 | to be u|sed on t|
|00002140| 68 65 20 70 72 6f 6d 70 | 74 20 73 63 72 65 65 6e |he promp|t screen|
|00002150| 2e 0a 2e 54 50 20 35 0a | 2e 42 20 5c 2d 6e 69 63 |...TP 5.|.B \-nic|
|00002160| 65 20 22 20 6e 69 63 65 | 6c 65 76 65 6c 22 0a 54 |e " nice|level".T|
|00002170| 68 65 0a 2e 49 20 6e 69 | 63 65 0a 6f 70 74 69 6f |he..I ni|ce.optio|
|00002180| 6e 20 73 65 74 73 20 73 | 79 73 74 65 6d 20 6e 69 |n sets s|ystem ni|
|00002190| 63 65 6c 65 76 65 6c 20 | 6f 66 20 74 68 65 20 78 |celevel |of the x|
|000021a0| 6c 6f 63 6b 20 70 72 6f | 63 65 73 73 20 74 6f 0a |lock pro|cess to.|
|000021b0| 2e 49 20 6e 69 63 65 6c | 65 76 65 6c 20 2e 0a 2e |.I nicel|evel ...|
|000021c0| 54 50 20 35 0a 2e 42 20 | 5c 2d 6d 6f 6e 6f 0a 54 |TP 5..B |\-mono.T|
|000021d0| 68 65 0a 2e 49 20 6d 6f | 6e 6f 0a 6f 70 74 69 6f |he..I mo|no.optio|
|000021e0| 6e 20 63 61 75 73 65 73 | 20 78 6c 6f 63 6b 20 74 |n causes| xlock t|
|000021f0| 6f 20 64 69 73 70 6c 61 | 79 20 6d 6f 6e 6f 63 68 |o displa|y monoch|
|00002200| 72 6f 6d 65 2c 20 28 62 | 6c 61 63 6b 20 61 6e 64 |rome, (b|lack and|
|00002210| 20 77 68 69 74 65 29 20 | 70 69 78 65 6c 73 20 72 | white) |pixels r|
|00002220| 61 74 68 65 72 0a 74 68 | 61 6e 20 74 68 65 20 64 |ather.th|an the d|
|00002230| 65 66 61 75 6c 74 20 63 | 6f 6c 6f 72 65 64 20 6f |efault c|olored o|
|00002240| 6e 65 73 20 6f 6e 20 63 | 6f 6c 6f 72 20 64 69 73 |nes on c|olor dis|
|00002250| 70 6c 61 79 73 2e 0a 2e | 54 50 20 35 0a 2e 42 20 |plays...|TP 5..B |
|00002260| 5c 2d 73 61 76 65 72 0a | 54 68 65 0a 2e 49 20 73 |\-saver.|The..I s|
|00002270| 61 76 65 72 0a 6f 70 74 | 69 6f 6e 20 63 61 75 73 |aver.opt|ion caus|
|00002280| 65 73 20 78 6c 6f 63 6b | 20 74 6f 20 6f 6e 6c 79 |es xlock| to only|
|00002290| 20 64 72 61 77 20 74 68 | 65 20 70 61 74 74 65 72 | draw th|e patter|
|000022a0| 6e 73 20 61 6e 64 20 6e | 6f 74 20 6c 6f 63 6b 20 |ns and n|ot lock |
|000022b0| 74 68 65 20 64 69 73 70 | 6c 61 79 2e 0a 41 20 6b |the disp|lay..A k|
|000022c0| 65 79 70 72 65 73 73 20 | 6f 72 20 61 20 6d 6f 75 |eypress |or a mou|
|000022d0| 73 65 20 63 6c 69 63 6b | 20 77 69 6c 6c 20 74 65 |se click| will te|
|000022e0| 72 6d 69 6e 61 74 65 20 | 74 68 65 20 73 63 72 65 |rminate |the scre|
|000022f0| 65 6e 20 73 61 76 65 72 | 2e 0a 2e 54 50 20 35 0a |en saver|...TP 5.|
|00002300| 2e 42 20 5c 2d 72 6f 6f | 74 0a 54 68 65 0a 2e 49 |.B \-roo|t.The..I|
|00002310| 20 72 6f 6f 74 0a 6f 70 | 74 69 6f 6e 20 61 6c 6c | root.op|tion all|
|00002320| 6f 77 73 20 74 68 65 20 | 72 6f 6f 74 20 70 61 73 |ows the |root pas|
|00002330| 73 77 6f 72 64 20 74 6f | 20 75 6e 6c 6f 63 6b 20 |sword to| unlock |
|00002340| 74 68 65 20 73 65 72 76 | 65 72 20 61 73 20 77 65 |the serv|er as we|
|00002350| 6c 6c 20 61 73 20 74 68 | 65 20 75 73 65 72 0a 77 |ll as th|e user.w|
|00002360| 68 6f 20 73 74 61 72 74 | 65 64 20 78 6c 6f 63 6b |ho start|ed xlock|
|00002370| 2e 0a 2e 54 50 20 35 0a | 2e 42 20 5c 2d 76 0a 56 |...TP 5.|.B \-v.V|
|00002380| 65 72 62 6f 73 65 20 6d | 6f 64 65 2c 20 74 65 6c |erbose m|ode, tel|
|00002390| 6c 73 20 77 68 61 74 20 | 6f 70 74 69 6f 6e 73 20 |ls what |options |
|000023a0| 69 74 20 69 73 20 67 6f | 69 6e 67 20 74 6f 20 75 |it is go|ing to u|
|000023b0| 73 65 2e 0a 0a 2e 53 48 | 20 42 55 47 53 0a 22 6b |se....SH| BUGS."k|
|000023c0| 69 6c 6c 20 2d 4b 49 4c | 4c 0a 2e 42 20 78 6c 6f |ill -KIL|L..B xlo|
|000023d0| 63 6b 0a 22 20 63 61 75 | 73 65 73 20 73 65 72 76 |ck." cau|ses serv|
|000023e0| 65 72 20 74 6f 20 62 65 | 20 75 6e 75 73 61 62 6c |er to be| unusabl|
|000023f0| 65 2c 20 73 69 6e 63 65 | 0a 2e 42 20 78 6c 6f 63 |e, since|..B xloc|
|00002400| 6b 0a 68 61 73 20 72 65 | 6d 6f 76 65 64 20 61 6c |k.has re|moved al|
|00002410| 6c 20 68 6f 73 74 73 20 | 28 69 6e 63 6c 75 64 69 |l hosts |(includi|
|00002420| 6e 67 20 6c 6f 63 61 6c | 68 6f 73 74 29 20 66 72 |ng local|host) fr|
|00002430| 6f 6d 20 74 68 65 20 61 | 63 63 65 73 73 20 63 6f |om the a|ccess co|
|00002440| 6e 74 72 6f 6c 20 6c 69 | 73 74 0a 74 6f 20 6c 6f |ntrol li|st.to lo|
|00002450| 63 6b 20 6f 75 74 20 61 | 6c 6c 20 6e 65 77 20 58 |ck out a|ll new X|
|00002460| 20 63 6c 69 65 6e 74 73 | 2c 20 61 6e 64 20 53 49 | clients|, and SI|
|00002470| 47 4b 49 4c 4c 20 63 61 | 6e 6e 6f 74 20 62 65 20 |GKILL ca|nnot be |
|00002480| 63 61 75 67 68 74 20 62 | 79 20 61 6e 79 20 70 72 |caught b|y any pr|
|00002490| 6f 67 72 61 6d 2c 0a 2e | 42 20 78 6c 6f 63 6b 0a |ogram,..|B xlock.|
|000024a0| 77 69 6c 6c 20 74 65 72 | 6d 69 6e 61 74 65 20 62 |will ter|minate b|
|000024b0| 65 66 6f 72 65 20 72 65 | 73 74 6f 72 69 6e 67 20 |efore re|storing |
|000024c0| 74 68 65 20 61 63 63 65 | 73 73 20 63 6f 6e 74 72 |the acce|ss contr|
|000024d0| 6f 6c 20 6c 69 73 74 2e | 20 20 54 68 69 73 20 77 |ol list.| This w|
|000024e0| 69 6c 6c 0a 6c 65 61 76 | 65 20 74 68 65 20 58 20 |ill.leav|e the X |
|000024f0| 73 65 72 76 65 72 20 69 | 6e 20 61 20 73 74 61 74 |server i|n a stat|
|00002500| 65 20 77 68 65 72 65 0a | 5c 66 49 20 22 79 6f 75 |e where.|\fI "you|
|00002510| 20 63 61 6e 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 63 | can no |longer c|
|00002520| 6f 6e 6e 65 63 74 20 74 | 6f 20 74 68 61 74 20 73 |onnect t|o that s|
|00002530| 65 72 76 65 72 2c 20 61 | 6e 64 20 74 68 69 73 20 |erver, a|nd this |
|00002540| 6f 70 65 72 61 74 69 6f | 6e 20 63 61 6e 6e 6f 74 |operatio|n cannot|
|00002550| 20 62 65 0a 72 65 76 65 | 72 73 65 64 20 73 68 6f | be.reve|rsed sho|
|00002560| 72 74 20 6f 66 20 72 65 | 73 65 74 74 69 6e 67 20 |rt of re|setting |
|00002570| 74 68 65 20 73 65 72 76 | 65 72 2e 22 5c 66 50 0a |the serv|er."\fP.|
|00002580| 09 09 2d 46 72 6f 6d 20 | 74 68 65 20 58 31 31 52 |..-From |the X11R|
|00002590| 32 20 58 6c 69 62 20 44 | 6f 63 75 6d 65 6e 74 61 |2 Xlib D|ocumenta|
|000025a0| 74 69 6f 6e 20 70 61 67 | 65 20 31 34 30 2e 20 0a |tion pag|e 140. .|
|000025b0| 2e 53 48 20 53 45 45 20 | 41 4c 53 4f 0a 58 28 31 |.SH SEE |ALSO.X(1|
|000025c0| 29 2c 20 58 6c 69 62 20 | 44 6f 63 75 6d 65 6e 74 |), Xlib |Document|
|000025d0| 61 74 69 6f 6e 2e 0a 0a | 2e 53 48 20 41 55 54 48 |ation...|.SH AUTH|
|000025e0| 4f 52 0a 20 50 61 74 72 | 69 63 6b 20 4a 2e 20 4e |OR. Patr|ick J. N|
|000025f0| 61 75 67 68 74 6f 6e 09 | 20 28 6e 61 75 67 68 74 |aughton.| (naught|
|00002600| 6f 6e 40 73 75 6e 2e 63 | 6f 6d 29 0a 20 57 69 6e |on@sun.c|om). Win|
|00002610| 64 6f 77 20 53 79 73 74 | 65 6d 73 20 47 72 6f 75 |dow Syst|ems Grou|
|00002620| 70 0a 20 53 75 6e 20 4d | 69 63 72 6f 73 79 73 74 |p. Sun M|icrosyst|
|00002630| 65 6d 73 2c 20 49 6e 63 | 2e 0a 20 4d 6f 75 6e 74 |ems, Inc|.. Mount|
|00002640| 61 69 6e 20 56 69 65 77 | 2c 20 43 41 20 20 39 34 |ain View|, CA 94|
|00002650| 30 34 33 0a 20 34 31 35 | 2f 33 33 36 2d 31 30 38 |043. 415|/336-108|
|00002660| 30 0a 0a 2e 53 48 20 43 | 4f 50 59 52 49 47 48 54 |0...SH C|OPYRIGHT|
|00002670| 0a 43 6f 70 79 72 69 67 | 68 74 20 28 63 29 20 31 |.Copyrig|ht (c) 1|
|00002680| 39 38 38 2d 38 39 20 62 | 79 20 50 61 74 72 69 63 |988-89 b|y Patric|
|00002690| 6b 20 4a 2e 20 4e 61 75 | 67 68 74 6f 6e 20 61 6e |k J. Nau|ghton an|
|000026a0| 64 20 53 75 6e 20 4d 69 | 63 72 6f 73 79 73 74 65 |d Sun Mi|crosyste|
|000026b0| 6d 73 2c 20 49 6e 63 2e | 0a 0a 50 65 72 6d 69 73 |ms, Inc.|..Permis|
|000026c0| 73 69 6f 6e 20 74 6f 20 | 75 73 65 2c 20 63 6f 70 |sion to |use, cop|
|000026d0| 79 2c 20 6d 6f 64 69 66 | 79 2c 20 61 6e 64 20 64 |y, modif|y, and d|
|000026e0| 69 73 74 72 69 62 75 74 | 65 20 74 68 69 73 20 73 |istribut|e this s|
|000026f0| 6f 66 74 77 61 72 65 20 | 61 6e 64 20 69 74 73 0a |oftware |and its.|
|00002700| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 66 6f |document|ation fo|
|00002710| 72 20 61 6e 79 20 70 75 | 72 70 6f 73 65 20 61 6e |r any pu|rpose an|
|00002720| 64 20 77 69 74 68 6f 75 | 74 20 66 65 65 20 69 73 |d withou|t fee is|
|00002730| 20 68 65 72 65 62 79 20 | 67 72 61 6e 74 65 64 2c | hereby |granted,|
|00002740| 0a 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 |.provide|d that t|
|00002750| 68 65 20 61 62 6f 76 65 | 20 63 6f 70 79 72 69 67 |he above| copyrig|
|00002760| 68 74 20 6e 6f 74 69 63 | 65 20 61 70 70 65 61 72 |ht notic|e appear|
|00002770| 20 69 6e 20 61 6c 6c 20 | 63 6f 70 69 65 73 20 61 | in all |copies a|
|00002780| 6e 64 20 74 68 61 74 0a | 62 6f 74 68 20 74 68 61 |nd that.|both tha|
|00002790| 74 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |t copyri|ght noti|
|000027a0| 63 65 20 61 6e 64 20 74 | 68 69 73 20 70 65 72 6d |ce and t|his perm|
|000027b0| 69 73 73 69 6f 6e 20 6e | 6f 74 69 63 65 20 61 70 |ission n|otice ap|
|000027c0| 70 65 61 72 20 69 6e 0a | 73 75 70 70 6f 72 74 69 |pear in.|supporti|
|000027d0| 6e 67 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |ng docum|entation|
|000027e0| 2e 20 0a 0a 2e 53 48 20 | 43 4f 4e 54 52 49 42 55 |. ...SH |CONTRIBU|
|000027f0| 54 4f 52 53 0a 20 20 6d | 69 6c 6c 69 6b 65 6e 40 |TORS. m|illiken@|
|00002800| 68 65 72 6f 6e 2e 62 62 | 6e 2e 63 6f 6d 09 6b 61 |heron.bb|n.com.ka|
|00002810| 72 6c 74 6f 6e 40 77 73 | 6c 2e 64 65 63 2e 63 6f |rlton@ws|l.dec.co|
|00002820| 6d 0a 20 20 64 61 6e 61 | 40 74 68 75 6d 70 65 72 |m. dana|@thumper|
|00002830| 2e 62 65 6c 6c 63 6f 72 | 65 2e 63 6f 6d 09 76 65 |.bellcor|e.com.ve|
|00002840| 73 70 65 72 40 33 64 2e | 64 65 63 2e 63 6f 6d 09 |sper@3d.|dec.com.|
|00002850| 66 6c 61 72 40 73 75 6e | 2e 63 6f 6d 0a 53 48 41 |flar@sun|.com.SHA|
|00002860| 52 5f 45 4f 46 0a 66 69 | 0a 69 66 20 74 65 73 74 |R_EOF.fi|.if test|
|00002870| 20 2d 66 20 27 78 6c 6f | 63 6b 2e 63 27 0a 74 68 | -f 'xlo|ck.c'.th|
|00002880| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|00002890| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 2d 77 72 |will not| over-wr|
|000028a0| 69 74 65 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ite exis|ting fil|
|000028b0| 65 20 27 78 6c 6f 63 6b | 2e 63 27 22 0a 65 6c 73 |e 'xlock|.c'".els|
|000028c0| 65 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |e.cat <<| \SHAR_E|
|000028d0| 4f 46 20 3e 20 27 78 6c | 6f 63 6b 2e 63 27 0a 23 |OF > 'xl|ock.c'.#|
|000028e0| 69 66 6e 64 65 66 20 6c | 69 6e 74 0a 73 74 61 74 |ifndef l|int.stat|
|000028f0| 69 63 20 63 68 61 72 20 | 73 63 63 73 69 64 5b 5d |ic char |sccsid[]|
|00002900| 20 3d 20 22 40 28 23 29 | 78 6c 6f 63 6b 2e 63 20 | = "@(#)|xlock.c |
|00002910| 32 32 2e 34 20 38 39 2f | 30 39 2f 32 33 22 3b 0a |22.4 89/|09/23";.|
|00002920| 23 65 6e 64 69 66 0a 2f | 2a 2d 0a 20 2a 20 78 6c |#endif./|*-. * xl|
|00002930| 6f 63 6b 2e 63 20 2d 20 | 58 31 31 20 63 6c 69 65 |ock.c - |X11 clie|
|00002940| 6e 74 20 74 6f 20 6c 6f | 63 6b 20 61 20 64 69 73 |nt to lo|ck a dis|
|00002950| 70 6c 61 79 20 61 6e 64 | 20 73 68 6f 77 20 61 20 |play and| show a |
|00002960| 73 63 72 65 65 6e 20 73 | 61 76 65 72 2e 0a 20 2a |screen s|aver.. *|
|00002970| 0a 20 2a 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |. * Copy|right (c|
|00002980| 29 20 31 39 38 38 2d 38 | 39 20 62 79 20 50 61 74 |) 1988-8|9 by Pat|
|00002990| 72 69 63 6b 20 4e 61 75 | 67 68 74 6f 6e 20 61 6e |rick Nau|ghton an|
|000029a0| 64 20 53 75 6e 20 4d 69 | 63 72 6f 73 79 73 74 65 |d Sun Mi|crosyste|
|000029b0| 6d 73 2c 20 49 6e 63 2e | 0a 20 2a 0a 20 2a 20 50 |ms, Inc.|. *. * P|
|000029c0| 65 72 6d 69 73 73 69 6f | 6e 20 74 6f 20 75 73 65 |ermissio|n to use|
|000029d0| 2c 20 63 6f 70 79 2c 20 | 6d 6f 64 69 66 79 2c 20 |, copy, |modify, |
|000029e0| 61 6e 64 20 64 69 73 74 | 72 69 62 75 74 65 20 74 |and dist|ribute t|
|000029f0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 61 6e 64 |his soft|ware and|
|00002a00| 20 69 74 73 0a 20 2a 20 | 64 6f 63 75 6d 65 6e 74 | its. * |document|
|00002a10| 61 74 69 6f 6e 20 66 6f | 72 20 61 6e 79 20 70 75 |ation fo|r any pu|
|00002a20| 72 70 6f 73 65 20 61 6e | 64 20 77 69 74 68 6f 75 |rpose an|d withou|
|00002a30| 74 20 66 65 65 20 69 73 | 20 68 65 72 65 62 79 20 |t fee is| hereby |
|00002a40| 67 72 61 6e 74 65 64 2c | 0a 20 2a 20 70 72 6f 76 |granted,|. * prov|
|00002a50| 69 64 65 64 20 74 68 61 | 74 20 74 68 65 20 61 62 |ided tha|t the ab|
|00002a60| 6f 76 65 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |ove copy|right no|
|00002a70| 74 69 63 65 20 61 70 70 | 65 61 72 20 69 6e 20 61 |tice app|ear in a|
|00002a80| 6c 6c 20 63 6f 70 69 65 | 73 20 61 6e 64 20 74 68 |ll copie|s and th|
|00002a90| 61 74 0a 20 2a 20 62 6f | 74 68 20 74 68 61 74 20 |at. * bo|th that |
|00002aa0| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00002ab0| 20 61 6e 64 20 74 68 69 | 73 20 70 65 72 6d 69 73 | and thi|s permis|
|00002ac0| 73 69 6f 6e 20 6e 6f 74 | 69 63 65 20 61 70 70 65 |sion not|ice appe|
|00002ad0| 61 72 20 69 6e 0a 20 2a | 20 73 75 70 70 6f 72 74 |ar in. *| support|
|00002ae0| 69 6e 67 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ing docu|mentatio|
|00002af0| 6e 2e 0a 20 2a 0a 20 2a | 20 54 68 69 73 20 66 69 |n.. *. *| This fi|
|00002b00| 6c 65 20 69 73 20 70 72 | 6f 76 69 64 65 64 20 41 |le is pr|ovided A|
|00002b10| 53 20 49 53 20 77 69 74 | 68 20 6e 6f 20 77 61 72 |S IS wit|h no war|
|00002b20| 72 61 6e 74 69 65 73 20 | 6f 66 20 61 6e 79 20 6b |ranties |of any k|
|00002b30| 69 6e 64 2e 20 20 54 68 | 65 20 61 75 74 68 6f 72 |ind. Th|e author|
|00002b40| 0a 20 2a 20 73 68 61 6c | 6c 20 68 61 76 65 20 6e |. * shal|l have n|
|00002b50| 6f 20 6c 69 61 62 69 6c | 69 74 79 20 77 69 74 68 |o liabil|ity with|
|00002b60| 20 72 65 73 70 65 63 74 | 20 74 6f 20 74 68 65 20 | respect| to the |
|00002b70| 69 6e 66 72 69 6e 67 65 | 6d 65 6e 74 20 6f 66 20 |infringe|ment of |
|00002b80| 63 6f 70 79 72 69 67 68 | 74 73 2c 0a 20 2a 20 74 |copyrigh|ts,. * t|
|00002b90| 72 61 64 65 20 73 65 63 | 72 65 74 73 20 6f 72 20 |rade sec|rets or |
|00002ba0| 61 6e 79 20 70 61 74 65 | 6e 74 73 20 62 79 20 74 |any pate|nts by t|
|00002bb0| 68 69 73 20 66 69 6c 65 | 20 6f 72 20 61 6e 79 20 |his file| or any |
|00002bc0| 70 61 72 74 20 74 68 65 | 72 65 6f 66 2e 20 20 49 |part the|reof. I|
|00002bd0| 6e 20 6e 6f 0a 20 2a 20 | 65 76 65 6e 74 20 77 69 |n no. * |event wi|
|00002be0| 6c 6c 20 74 68 65 20 61 | 75 74 68 6f 72 20 62 65 |ll the a|uthor be|
|00002bf0| 20 6c 69 61 62 6c 65 20 | 66 6f 72 20 61 6e 79 20 | liable |for any |
|00002c00| 6c 6f 73 74 20 72 65 76 | 65 6e 75 65 20 6f 72 20 |lost rev|enue or |
|00002c10| 70 72 6f 66 69 74 73 20 | 6f 72 0a 20 2a 20 6f 74 |profits |or. * ot|
|00002c20| 68 65 72 20 73 70 65 63 | 69 61 6c 2c 20 69 6e 64 |her spec|ial, ind|
|00002c30| 69 72 65 63 74 20 61 6e | 64 20 63 6f 6e 73 65 71 |irect an|d conseq|
|00002c40| 75 65 6e 74 69 61 6c 20 | 64 61 6d 61 67 65 73 2e |uential |damages.|
|00002c50| 0a 20 2a 0a 20 2a 20 43 | 6f 6d 6d 65 6e 74 73 20 |. *. * C|omments |
|00002c60| 61 6e 64 20 61 64 64 69 | 74 69 6f 6e 73 20 73 68 |and addi|tions sh|
|00002c70| 6f 75 6c 64 20 62 65 20 | 73 65 6e 74 20 74 6f 20 |ould be |sent to |
|00002c80| 74 68 65 20 61 75 74 68 | 6f 72 3a 0a 20 2a 0a 20 |the auth|or:. *. |
|00002c90| 2a 09 09 20 20 20 20 20 | 20 20 6e 61 75 67 68 74 |*.. | naught|
|00002ca0| 6f 6e 40 73 75 6e 2e 63 | 6f 6d 0a 20 2a 0a 20 2a |on@sun.c|om. *. *|
|00002cb0| 09 09 20 20 20 20 20 20 | 20 50 61 74 72 69 63 6b |.. | Patrick|
|00002cc0| 20 4a 2e 20 4e 61 75 67 | 68 74 6f 6e 0a 20 2a 09 | J. Naug|hton. *.|
|00002cd0| 09 20 20 20 20 20 20 20 | 57 69 6e 64 6f 77 20 53 |. |Window S|
|00002ce0| 79 73 74 65 6d 73 20 47 | 72 6f 75 70 2c 20 4d 53 |ystems G|roup, MS|
|00002cf0| 20 31 34 2d 34 30 0a 20 | 2a 09 09 20 20 20 20 20 | 14-40. |*.. |
|00002d00| 20 20 53 75 6e 20 4d 69 | 63 72 6f 73 79 73 74 65 | Sun Mi|crosyste|
|00002d10| 6d 73 2c 20 49 6e 63 2e | 0a 20 2a 09 09 20 20 20 |ms, Inc.|. *.. |
|00002d20| 20 20 20 20 32 35 35 30 | 20 47 61 72 63 69 61 20 | 2550| Garcia |
|00002d30| 41 76 65 0a 20 2a 09 09 | 20 20 20 20 20 20 20 4d |Ave. *..| M|
|00002d40| 6f 75 6e 74 61 69 6e 20 | 56 69 65 77 2c 20 43 41 |ountain |View, CA|
|00002d50| 20 20 39 34 30 34 33 0a | 20 2a 0a 20 2a 20 52 65 | 94043.| *. * Re|
|00002d60| 76 69 73 69 6f 6e 20 48 | 69 73 74 6f 72 79 3a 0a |vision H|istory:.|
|00002d70| 20 2a 20 32 33 2d 53 65 | 70 2d 38 39 3a 20 41 64 | * 23-Se|p-89: Ad|
|00002d80| 64 65 64 20 66 69 78 20 | 74 6f 20 61 6c 6c 6f 77 |ded fix |to allow|
|00002d90| 20 6c 6f 63 61 6c 20 68 | 6f 73 74 6e 61 6d 65 3a | local h|ostname:|
|00002da0| 30 20 61 73 20 61 20 64 | 69 73 70 6c 61 79 2e 0a |0 as a d|isplay..|
|00002db0| 20 2a 09 20 20 20 20 20 | 20 50 75 74 20 65 6d 70 | *. | Put emp|
|00002dc0| 74 79 20 63 61 73 65 20 | 66 6f 72 20 45 6e 74 65 |ty case |for Ente|
|00002dd0| 72 2f 4c 65 61 76 65 20 | 65 76 65 6e 74 73 2e 0a |r/Leave |events..|
|00002de0| 20 2a 09 20 20 20 20 20 | 20 4d 6f 76 65 64 20 63 | *. | Moved c|
|00002df0| 6f 6c 6f 72 6d 61 70 20 | 69 6e 73 74 61 6c 6c 61 |olormap |installa|
|00002e00| 74 69 6f 6e 20 6c 61 74 | 65 72 20 69 6e 20 73 74 |tion lat|er in st|
|00002e10| 61 72 74 75 70 2e 0a 20 | 2a 20 32 30 2d 53 65 70 |artup.. |* 20-Sep|
|00002e20| 2d 38 39 3a 20 4c 69 6e | 74 65 64 20 61 6e 64 20 |-89: Lin|ted and |
|00002e30| 6d 61 64 65 20 2d 73 61 | 76 65 72 20 6d 6f 64 65 |made -sa|ver mode|
|00002e40| 20 67 72 61 62 20 74 68 | 65 20 6b 65 79 62 6f 61 | grab th|e keyboa|
|00002e50| 72 64 20 61 6e 64 20 6d | 6f 75 73 65 2e 0a 20 2a |rd and m|ouse.. *|
|00002e60| 09 20 20 20 20 20 20 52 | 65 70 6c 61 63 65 64 20 |. R|eplaced |
|00002e70| 53 75 6e 56 69 65 77 20 | 63 6f 64 65 20 66 6f 72 |SunView |code for|
|00002e80| 20 6c 69 66 65 20 6d 6f | 64 65 20 77 69 74 68 20 | life mo|de with |
|00002e90| 4a 69 6d 20 47 72 61 68 | 61 6d 27 73 20 76 65 72 |Jim Grah|am's ver|
|00002ea0| 73 69 6f 6e 2c 0a 20 2a | 09 09 73 6f 20 49 20 63 |sion,. *|..so I c|
|00002eb0| 6f 75 6c 64 20 63 6f 6e | 74 72 69 62 20 69 74 20 |ould con|trib it |
|00002ec0| 77 69 74 68 6f 75 74 20 | 6c 65 67 61 6c 20 70 72 |without |legal pr|
|00002ed0| 6f 62 6c 65 6d 73 2e 0a | 20 2a 09 20 20 20 20 20 |oblems..| *. |
|00002ee0| 20 53 65 6e 74 20 74 6f | 20 65 78 70 6f 20 66 6f | Sent to| expo fo|
|00002ef0| 72 20 58 31 31 52 34 20 | 63 6f 6e 74 72 69 62 2e |r X11R4 |contrib.|
|00002f00| 0a 20 2a 20 31 39 2d 53 | 65 70 2d 38 39 3a 20 41 |. * 19-S|ep-89: A|
|00002f10| 64 64 65 64 20 27 3f 27 | 73 20 6f 6e 20 69 6e 70 |dded '?'|s on inp|
|00002f20| 75 74 2e 0a 20 2a 20 32 | 37 2d 4d 61 72 2d 38 39 |ut.. * 2|7-Mar-89|
|00002f30| 3a 20 41 64 64 65 64 20 | 2d 71 69 78 20 6d 6f 64 |: Added |-qix mod|
|00002f40| 65 2e 0a 20 2a 09 20 20 | 20 20 20 20 46 69 78 65 |e.. *. | Fixe|
|00002f50| 64 20 47 43 6f 6e 74 65 | 78 74 2d 3e 47 43 2e 0a |d GConte|xt->GC..|
|00002f60| 20 2a 20 32 30 2d 4d 61 | 72 2d 38 39 3a 20 41 64 | * 20-Ma|r-89: Ad|
|00002f70| 64 65 64 20 62 61 63 6b | 75 70 20 66 6f 6e 74 20 |ded back|up font |
|00002f80| 28 66 69 78 65 64 29 20 | 69 66 20 58 51 75 65 72 |(fixed) |if XQuer|
|00002f90| 79 4c 6f 61 64 46 6f 6e | 74 28 29 20 66 61 69 6c |yLoadFon|t() fail|
|00002fa0| 73 2e 0a 20 2a 09 20 20 | 20 20 20 20 43 68 61 6e |s.. *. | Chan|
|00002fb0| 67 65 64 20 64 65 66 61 | 75 6c 74 20 66 6f 6e 74 |ged defa|ult font|
|00002fc0| 20 74 6f 20 6c 75 63 69 | 64 61 2d 73 61 6e 73 2d | to luci|da-sans-|
|00002fd0| 32 34 2e 0a 20 2a 20 30 | 38 2d 4d 61 72 2d 38 39 |24.. * 0|8-Mar-89|
|00002fe0| 3a 20 41 64 64 65 64 20 | 2d 6e 69 63 65 2c 20 2d |: Added |-nice, -|
|00002ff0| 6d 6f 64 65 20 61 6e 64 | 20 2d 64 69 73 70 6c 61 |mode and| -displa|
|00003000| 79 2c 20 62 75 69 6c 74 | 20 76 65 63 74 6f 72 20 |y, built| vector |
|00003010| 66 6f 72 20 6c 69 66 65 | 20 61 6e 64 20 68 6f 70 |for life| and hop|
|00003020| 2e 0a 20 2a 20 32 34 2d | 46 65 62 2d 38 39 3a 20 |.. * 24-|Feb-89: |
|00003030| 52 65 70 6c 61 63 65 64 | 20 68 6f 70 61 6c 6f 6e |Replaced| hopalon|
|00003040| 67 20 64 69 73 70 6c 61 | 79 20 77 69 74 68 20 6c |g displa|y with l|
|00003050| 69 66 65 20 64 69 73 70 | 6c 61 79 20 66 72 6f 6d |ife disp|lay from|
|00003060| 20 53 75 6e 56 69 65 77 | 31 2e 0a 20 2a 20 32 32 | SunView|1.. * 22|
|00003070| 2d 46 65 62 2d 38 39 3a | 20 41 64 64 65 64 20 66 |-Feb-89:| Added f|
|00003080| 69 78 20 66 6f 72 20 63 | 6f 6c 6f 72 20 73 65 72 |ix for c|olor ser|
|00003090| 76 65 72 73 20 77 69 74 | 68 20 6e 20 3c 20 38 20 |vers wit|h n < 8 |
|000030a0| 70 6c 61 6e 65 73 2e 0a | 20 2a 20 31 36 2d 46 65 |planes..| * 16-Fe|
|000030b0| 62 2d 38 39 3a 20 55 70 | 64 61 74 65 64 20 63 61 |b-89: Up|dated ca|
|000030c0| 6c 6c 69 6e 67 20 63 6f | 6e 76 65 6e 74 69 6f 6e |lling co|nvention|
|000030d0| 73 20 66 6f 72 20 58 43 | 72 65 61 74 65 48 73 62 |s for XC|reateHsb|
|000030e0| 43 6f 6c 6f 72 6d 61 70 | 28 29 3b 0a 20 2a 09 20 |Colormap|();. *. |
|000030f0| 20 20 20 20 20 41 64 64 | 65 64 20 2d 63 6f 75 6e | Add|ed -coun|
|00003100| 74 20 66 6f 72 20 6e 75 | 6d 62 65 72 20 6f 66 20 |t for nu|mber of |
|00003110| 69 74 65 72 61 74 69 6f | 6e 73 20 70 65 72 20 63 |iteratio|ns per c|
|00003120| 6f 6c 6f 72 2e 0a 20 2a | 09 20 20 20 20 20 20 46 |olor.. *|. F|
|00003130| 69 78 65 64 20 64 65 66 | 61 75 6c 74 69 6e 67 20 |ixed def|aulting |
|00003140| 6d 65 63 68 61 6e 69 73 | 6d 2e 0a 20 2a 09 20 20 |mechanis|m.. *. |
|00003150| 20 20 20 20 52 69 70 70 | 65 64 20 6f 75 74 20 56 | Ripp|ed out V|
|00003160| 4d 53 20 68 61 63 6b 73 | 2e 0a 20 2a 09 20 20 20 |MS hacks|.. *. |
|00003170| 20 20 20 53 65 6e 74 20 | 74 6f 20 65 78 70 6f 20 | Sent |to expo |
|00003180| 66 6f 72 20 58 31 31 52 | 33 20 63 6f 6e 74 72 69 |for X11R|3 contri|
|00003190| 62 2e 0a 20 2a 20 31 35 | 2d 46 65 62 2d 38 39 3a |b.. * 15|-Feb-89:|
|000031a0| 20 43 68 61 6e 67 65 64 | 20 64 65 66 61 75 6c 74 | Changed| default|
|000031b0| 20 66 6f 6e 74 20 74 6f | 20 70 65 6c 6c 75 63 69 | font to| pelluci|
|000031c0| 64 61 2d 73 61 6e 73 2d | 31 38 2e 0a 20 2a 20 32 |da-sans-|18.. * 2|
|000031d0| 30 2d 4a 61 6e 2d 38 39 | 3a 20 41 64 64 65 64 20 |0-Jan-89|: Added |
|000031e0| 2d 76 65 72 62 6f 73 65 | 20 61 6e 64 20 66 69 78 |-verbose| and fix|
|000031f0| 65 64 20 75 73 61 67 65 | 20 6d 65 73 73 61 67 65 |ed usage| message|
|00003200| 2e 0a 20 2a 20 31 39 2d | 4a 61 6e 2d 38 39 3a 20 |.. * 19-|Jan-89: |
|00003210| 46 69 78 65 64 20 6d 6f | 6e 6f 63 68 72 6f 6d 65 |Fixed mo|nochrome|
|00003220| 20 67 63 20 62 75 67 2e | 0a 20 2a 20 31 36 2d 44 | gc bug.|. * 16-D|
|00003230| 65 63 2d 38 38 3a 20 41 | 64 64 65 64 20 53 75 6e |ec-88: A|dded Sun|
|00003240| 56 69 65 77 20 73 74 79 | 6c 65 20 70 61 73 73 77 |View sty|le passw|
|00003250| 6f 72 64 20 70 72 6f 6d | 70 74 69 6e 67 2e 0a 20 |ord prom|pting.. |
|00003260| 2a 20 31 39 2d 53 65 70 | 2d 38 38 3a 20 43 68 61 |* 19-Sep|-88: Cha|
|00003270| 6e 67 65 64 20 2d 63 6f | 6c 6f 72 20 74 6f 20 2d |nged -co|lor to -|
|00003280| 6d 6f 6e 6f 2e 20 28 64 | 65 66 61 75 6c 74 20 69 |mono. (d|efault i|
|00003290| 73 20 63 6f 6c 6f 72 20 | 6f 6e 20 63 6f 6c 6f 72 |s color |on color|
|000032a0| 20 64 69 73 70 6c 61 79 | 73 29 2e 0a 20 2a 09 20 | display|s).. *. |
|000032b0| 20 20 20 20 20 41 64 64 | 65 64 20 2d 73 61 76 65 | Add|ed -save|
|000032c0| 72 20 6f 70 74 69 6f 6e | 2e 20 28 6a 75 73 74 20 |r option|. (just |
|000032d0| 64 6f 20 64 69 73 70 6c | 61 79 2e 2e 2e 20 64 6f |do displ|ay... do|
|000032e0| 6e 27 74 20 6c 6f 63 6b | 2e 29 0a 20 2a 20 33 31 |n't lock|.). * 31|
|000032f0| 2d 41 75 67 2d 38 38 3a | 20 41 64 64 65 64 20 2d |-Aug-88:| Added -|
|00003300| 74 69 6d 65 20 6f 70 74 | 69 6f 6e 2e 0a 20 2a 09 |time opt|ion.. *.|
|00003310| 20 20 20 20 20 20 52 65 | 6d 6f 76 65 64 20 63 6f | Re|moved co|
|00003320| 64 65 20 66 6f 72 20 66 | 72 61 63 74 61 6c 73 20 |de for f|ractals |
|00003330| 74 6f 20 73 65 70 61 72 | 61 74 65 20 66 69 6c 65 |to separ|ate file|
|00003340| 20 66 6f 72 20 6d 6f 64 | 75 6c 61 72 69 74 79 2e | for mod|ularity.|
|00003350| 0a 20 2a 09 20 20 20 20 | 20 20 41 64 64 65 64 20 |. *. | Added |
|00003360| 73 69 67 6e 61 6c 20 68 | 61 6e 64 6c 65 72 20 74 |signal h|andler t|
|00003370| 6f 20 72 65 73 74 6f 72 | 65 20 68 6f 73 74 20 61 |o restor|e host a|
|00003380| 63 63 65 73 73 2e 0a 20 | 2a 09 20 20 20 20 20 20 |ccess.. |*. |
|00003390| 49 6e 73 74 61 6c 6c 73 | 20 64 79 6e 61 6d 69 63 |Installs| dynamic|
|000033a0| 20 63 6f 6c 6f 72 6d 61 | 70 20 77 69 74 68 20 61 | colorma|p with a|
|000033b0| 20 48 75 65 20 52 61 6d | 70 2e 0a 20 2a 09 20 20 | Hue Ram|p.. *. |
|000033c0| 20 20 20 20 49 66 20 67 | 72 61 62 73 20 66 61 69 | If g|rabs fai|
|000033d0| 6c 20 74 68 65 6e 20 65 | 78 69 74 2e 0a 20 2a 09 |l then e|xit.. *.|
|000033e0| 20 20 20 20 20 20 41 64 | 64 65 64 20 56 4d 53 20 | Ad|ded VMS |
|000033f0| 48 61 63 6b 73 2e 20 28 | 70 61 73 73 77 6f 72 64 |Hacks. (|password|
|00003400| 20 27 69 77 69 77 75 75 | 27 29 2e 0a 20 2a 09 20 | 'iwiwuu|').. *. |
|00003410| 20 20 20 20 20 53 65 6e | 74 20 74 6f 20 65 78 70 | Sen|t to exp|
|00003420| 6f 20 66 6f 72 20 58 31 | 31 52 32 20 63 6f 6e 74 |o for X1|1R2 cont|
|00003430| 72 69 62 2e 0a 20 2a 20 | 30 38 2d 4a 75 6e 2d 38 |rib.. * |08-Jun-8|
|00003440| 38 3a 20 46 69 78 65 64 | 20 72 6f 6f 74 20 70 61 |8: Fixed| root pa|
|00003450| 73 73 77 6f 72 64 20 70 | 6f 69 6e 74 65 72 20 70 |ssword p|ointer p|
|00003460| 72 6f 62 6c 65 6d 20 61 | 6e 64 20 63 68 61 6e 67 |roblem a|nd chang|
|00003470| 65 64 20 50 41 53 53 4c | 45 4e 47 54 48 20 74 6f |ed PASSL|ENGTH to|
|00003480| 20 32 30 2e 0a 20 2a 20 | 32 30 2d 4d 61 79 2d 38 | 20.. * |20-May-8|
|00003490| 38 3a 20 41 64 64 65 64 | 20 2d 72 6f 6f 74 20 74 |8: Added| -root t|
|000034a0| 6f 20 61 6c 6c 6f 77 20 | 72 6f 6f 74 20 74 6f 20 |o allow |root to |
|000034b0| 75 6e 6c 6f 63 6b 2e 0a | 20 2a 20 31 32 2d 41 70 |unlock..| * 12-Ap|
|000034c0| 72 2d 38 38 3a 20 41 64 | 64 65 64 20 72 6f 6f 74 |r-88: Ad|ded root|
|000034d0| 20 70 61 73 73 77 6f 72 | 64 20 6f 76 65 72 72 69 | passwor|d overri|
|000034e0| 64 65 2e 0a 20 2a 09 20 | 20 20 20 20 20 41 64 64 |de.. *. | Add|
|000034f0| 65 64 20 73 63 72 65 65 | 6e 20 73 61 76 65 72 20 |ed scree|n saver |
|00003500| 6f 76 65 72 72 69 64 65 | 2e 0a 20 2a 09 20 20 20 |override|.. *. |
|00003510| 20 20 20 52 65 6d 6f 76 | 65 64 20 58 47 72 61 62 | Remov|ed XGrab|
|00003520| 53 65 72 76 65 72 2f 58 | 55 6e 67 72 61 62 53 65 |Server/X|UngrabSe|
|00003530| 72 76 65 72 2e 0a 20 2a | 09 20 20 20 20 20 20 41 |rver.. *|. A|
|00003540| 64 64 65 64 20 61 63 63 | 65 73 73 20 63 6f 6e 74 |dded acc|ess cont|
|00003550| 72 6f 6c 20 68 61 6e 64 | 6c 69 6e 67 20 69 6e 73 |rol hand|ling ins|
|00003560| 74 65 61 64 2e 0a 20 2a | 20 30 31 2d 41 70 72 2d |tead.. *| 01-Apr-|
|00003570| 38 38 3a 20 41 64 64 65 | 64 20 58 47 72 61 62 53 |88: Adde|d XGrabS|
|00003580| 65 72 76 65 72 2f 58 55 | 6e 67 72 61 62 53 65 72 |erver/XU|ngrabSer|
|00003590| 76 65 72 20 66 6f 72 20 | 6d 6f 72 65 20 73 65 63 |ver for |more sec|
|000035a0| 75 72 69 74 79 2e 0a 20 | 2a 20 33 30 2d 4d 61 72 |urity.. |* 30-Mar|
|000035b0| 2d 38 38 3a 20 52 65 6d | 6f 76 65 64 20 73 74 61 |-88: Rem|oved sta|
|000035c0| 72 74 75 70 20 70 61 73 | 73 77 6f 72 64 20 72 65 |rtup pas|sword re|
|000035d0| 71 75 69 72 65 6d 65 6e | 74 2e 0a 20 2a 09 20 20 |quiremen|t.. *. |
|000035e0| 20 20 20 20 52 65 6d 6f | 76 65 64 20 63 75 72 73 | Remo|ved curs|
|000035f0| 6f 72 20 74 6f 20 61 76 | 6f 69 64 20 70 68 6f 73 |or to av|oid phos|
|00003600| 70 68 6f 72 20 62 75 72 | 6e 2e 0a 20 2a 20 32 37 |phor bur|n.. * 27|
|00003610| 2d 4d 61 72 2d 38 38 3a | 20 52 6f 74 61 74 65 20 |-Mar-88:| Rotate |
|00003620| 66 72 61 63 74 61 6c 20 | 62 79 20 34 35 20 64 65 |fractal |by 45 de|
|00003630| 67 72 65 65 73 20 63 6c | 6f 63 6b 77 69 73 65 2e |grees cl|ockwise.|
|00003640| 0a 20 2a 20 32 34 2d 4d | 61 72 2d 38 38 3a 20 41 |. * 24-M|ar-88: A|
|00003650| 64 64 65 64 20 63 6f 6c | 6f 72 20 73 75 70 70 6f |dded col|or suppo|
|00003660| 72 74 2e 20 5b 2d 63 6f | 6c 6f 72 5d 0a 20 2a 09 |rt. [-co|lor]. *.|
|00003670| 20 20 20 20 20 20 77 72 | 6f 74 65 20 74 68 65 20 | wr|ote the |
|00003680| 6d 61 6e 20 70 61 67 65 | 2e 0a 20 2a 20 32 33 2d |man page|.. * 23-|
|00003690| 4d 61 72 2d 38 38 3a 20 | 41 64 64 65 64 20 48 4f |Mar-88: |Added HO|
|000036a0| 50 41 4c 4f 4e 47 20 72 | 6f 75 74 69 6e 65 73 20 |PALONG r|outines |
|000036b0| 66 72 6f 6d 20 53 63 69 | 65 6e 74 69 66 69 63 20 |from Sci|entific |
|000036c0| 41 6d 65 72 69 63 61 6e | 20 53 65 70 74 2e 20 38 |American| Sept. 8|
|000036d0| 36 20 70 2e 20 31 34 2e | 0a 20 2a 09 20 20 20 20 |6 p. 14.|. *. |
|000036e0| 20 20 61 64 64 65 64 20 | 70 61 73 73 77 6f 72 64 | added |password|
|000036f0| 20 72 65 71 75 69 72 65 | 6d 65 6e 74 20 66 6f 72 | require|ment for|
|00003700| 20 69 6e 76 6f 6b 61 74 | 69 6f 6e 0a 20 2a 09 20 | invokat|ion. *. |
|00003710| 20 20 20 20 20 72 65 6d | 6f 76 65 64 20 6f 70 74 | rem|oved opt|
|00003720| 69 6f 6e 20 66 6f 72 20 | 63 6f 6d 6d 61 6e 64 20 |ion for |command |
|00003730| 6c 69 6e 65 20 70 61 73 | 73 77 6f 72 64 0a 20 2a |line pas|sword. *|
|00003740| 09 20 20 20 20 20 20 61 | 64 64 65 64 20 72 65 71 |. a|dded req|
|00003750| 75 69 72 65 6d 65 6e 74 | 20 66 6f 72 20 64 69 73 |uirement| for dis|
|00003760| 70 6c 61 79 20 74 6f 20 | 62 65 20 22 75 6e 69 78 |play to |be "unix|
|00003770| 3a 30 22 2e 0a 20 2a 20 | 32 32 2d 4d 61 72 2d 38 |:0".. * |22-Mar-8|
|00003780| 38 3a 20 52 65 63 69 65 | 76 65 64 20 57 61 6c 74 |8: Recie|ved Walt|
|00003790| 65 72 20 4d 69 6c 6c 69 | 6b 65 6e 27 73 20 63 6f |er Milli|ken's co|
|000037a0| 6d 70 2e 77 69 6e 64 6f | 77 73 2e 78 20 70 6f 73 |mp.windo|ws.x pos|
|000037b0| 74 69 6e 67 2e 0a 20 2a | 0a 20 2a 20 43 6f 6e 74 |ting.. *|. * Cont|
|000037c0| 72 69 62 75 74 6f 72 73 | 3a 0a 20 2a 20 20 6d 69 |ributors|:. * mi|
|000037d0| 6c 6c 69 6b 65 6e 40 68 | 65 72 6f 6e 2e 62 62 6e |lliken@h|eron.bbn|
|000037e0| 2e 63 6f 6d 0a 20 2a 20 | 20 6b 61 72 6c 74 6f 6e |.com. * | karlton|
|000037f0| 40 77 73 6c 2e 64 65 63 | 2e 63 6f 6d 0a 20 2a 20 |@wsl.dec|.com. * |
|00003800| 20 64 61 6e 61 40 74 68 | 75 6d 70 65 72 2e 62 65 | dana@th|umper.be|
|00003810| 6c 6c 63 6f 72 65 2e 63 | 6f 6d 0a 20 2a 20 20 76 |llcore.c|om. * v|
|00003820| 65 73 70 65 72 40 33 64 | 2e 64 65 63 2e 63 6f 6d |esper@3d|.dec.com|
|00003830| 0a 20 2a 2f 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |. */..#i|nclude <|
|00003840| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|00003850| 65 20 3c 73 69 67 6e 61 | 6c 2e 68 3e 0a 23 69 6e |e <signa|l.h>.#in|
|00003860| 63 6c 75 64 65 20 3c 73 | 79 73 2f 70 61 72 61 6d |clude <s|ys/param|
|00003870| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.h>.#inc|lude <st|
|00003880| 72 69 6e 67 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ring.h>.|#include|
|00003890| 20 3c 70 77 64 2e 68 3e | 0a 23 69 6e 63 6c 75 64 | <pwd.h>|.#includ|
|000038a0| 65 20 3c 58 31 31 2f 58 | 6f 73 2e 68 3e 0a 23 69 |e <X11/X|os.h>.#i|
|000038b0| 6e 63 6c 75 64 65 20 3c | 58 31 31 2f 58 6c 69 62 |nclude <|X11/Xlib|
|000038c0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 58 31 |.h>.#inc|lude <X1|
|000038d0| 31 2f 58 75 74 69 6c 2e | 68 3e 0a 23 69 6e 63 6c |1/Xutil.|h>.#incl|
|000038e0| 75 64 65 20 3c 58 31 31 | 2f 63 75 72 73 6f 72 66 |ude <X11|/cursorf|
|000038f0| 6f 6e 74 2e 68 3e 0a 0a | 65 78 74 65 72 6e 20 63 |ont.h>..|extern c|
|00003900| 68 61 72 20 2a 63 72 79 | 70 74 28 29 3b 0a 65 78 |har *cry|pt();.ex|
|00003910| 74 65 72 6e 20 63 68 61 | 72 20 2a 67 65 74 65 6e |tern cha|r *geten|
|00003920| 76 28 29 3b 0a 0a 74 79 | 70 65 64 65 66 20 73 74 |v();..ty|pedef st|
|00003930| 72 75 63 74 20 7b 0a 20 | 20 20 20 63 68 61 72 20 |ruct {. | char |
|00003940| 20 20 20 20 20 20 2a 63 | 6d 64 6c 69 6e 65 5f 61 | *c|mdline_a|
|00003950| 72 67 3b 0a 20 20 20 20 | 69 6e 74 09 09 28 2a 6c |rg;. |int..(*l|
|00003960| 70 5f 72 65 69 6e 69 74 | 29 20 28 29 3b 0a 20 20 |p_reinit|) ();. |
|00003970| 20 20 76 6f 69 64 09 28 | 2a 6c 70 5f 63 61 6c 6c | void.(|*lp_call|
|00003980| 62 61 63 6b 29 20 28 29 | 3b 0a 20 20 20 20 76 6f |back) ()|;. vo|
|00003990| 69 64 09 28 2a 6c 70 5f | 69 6e 69 74 29 20 28 29 |id.(*lp_|init) ()|
|000039a0| 3b 0a 7d 09 20 20 20 20 | 6c 6f 63 6b 50 72 6f 63 |;.}. |lockProc|
|000039b0| 3b 0a 0a 2f 2a 0a 20 2a | 20 44 65 63 6c 61 72 65 |;../*. *| Declare|
|000039c0| 20 65 78 74 65 72 6e 61 | 6c 20 69 6e 74 65 72 66 | externa|l interf|
|000039d0| 61 63 65 20 72 6f 75 74 | 69 6e 65 73 20 66 6f 72 |ace rout|ines for|
|000039e0| 20 73 75 70 70 6f 72 74 | 65 64 20 73 63 72 65 65 | support|ed scree|
|000039f0| 6e 20 73 61 76 65 72 73 | 2e 0a 20 2a 2f 0a 0a 65 |n savers|.. */..e|
|00003a00| 78 74 65 72 6e 20 76 6f | 69 64 20 72 61 6e 64 6f |xtern vo|id rando|
|00003a10| 6d 49 6e 69 74 68 6f 70 | 28 29 3b 0a 65 78 74 65 |mInithop|();.exte|
|00003a20| 72 6e 20 69 6e 74 20 20 | 68 6f 70 64 6f 6e 65 28 |rn int |hopdone(|
|00003a30| 29 3b 0a 65 78 74 65 72 | 6e 20 76 6f 69 64 20 68 |);.exter|n void h|
|00003a40| 6f 70 28 29 3b 0a 0a 65 | 78 74 65 72 6e 20 76 6f |op();..e|xtern vo|
|00003a50| 69 64 20 69 6e 69 74 6c | 69 66 65 28 29 3b 0a 65 |id initl|ife();.e|
|00003a60| 78 74 65 72 6e 20 69 6e | 74 20 20 6c 69 66 65 64 |xtern in|t lifed|
|00003a70| 6f 6e 65 28 29 3b 0a 65 | 78 74 65 72 6e 20 76 6f |one();.e|xtern vo|
|00003a80| 69 64 20 64 72 61 77 6c | 69 66 65 28 29 3b 0a 0a |id drawl|ife();..|
|00003a90| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 69 6e 69 74 |extern v|oid init|
|00003aa0| 71 69 78 28 29 3b 0a 65 | 78 74 65 72 6e 20 69 6e |qix();.e|xtern in|
|00003ab0| 74 20 20 71 69 78 64 6f | 6e 65 28 29 3b 0a 65 78 |t qixdo|ne();.ex|
|00003ac0| 74 65 72 6e 20 76 6f 69 | 64 20 64 72 61 77 71 69 |tern voi|d drawqi|
|00003ad0| 78 28 29 3b 0a 0a 6c 6f | 63 6b 50 72 6f 63 20 20 |x();..lo|ckProc |
|00003ae0| 20 20 4c 6f 63 6b 50 72 | 6f 63 73 5b 5d 20 3d 20 | LockPr|ocs[] = |
|00003af0| 7b 0a 20 20 20 20 7b 22 | 68 6f 70 22 2c 20 68 6f |{. {"|hop", ho|
|00003b00| 70 64 6f 6e 65 2c 20 68 | 6f 70 2c 20 72 61 6e 64 |pdone, h|op, rand|
|00003b10| 6f 6d 49 6e 69 74 68 6f | 70 7d 2c 0a 20 20 20 20 |omInitho|p},. |
|00003b20| 7b 22 6c 69 66 65 22 2c | 20 6c 69 66 65 64 6f 6e |{"life",| lifedon|
|00003b30| 65 2c 20 64 72 61 77 6c | 69 66 65 2c 20 69 6e 69 |e, drawl|ife, ini|
|00003b40| 74 6c 69 66 65 7d 2c 0a | 20 20 20 20 7b 22 71 69 |tlife},.| {"qi|
|00003b50| 78 22 2c 20 71 69 78 64 | 6f 6e 65 2c 20 64 72 61 |x", qixd|one, dra|
|00003b60| 77 71 69 78 2c 20 69 6e | 69 74 71 69 78 7d 0a 2f |wqix, in|itqix}./|
|00003b70| 2a 0a 20 2a 20 4e 65 77 | 20 73 63 72 65 65 6e 20 |*. * New| screen |
|00003b80| 73 61 76 65 72 73 20 6d | 61 79 20 62 65 20 61 64 |savers m|ay be ad|
|00003b90| 64 65 64 20 68 65 72 65 | 2e 0a 20 2a 20 52 65 66 |ded here|.. * Ref|
|00003ba0| 65 72 20 74 6f 20 71 69 | 78 2e 63 20 66 6f 72 20 |er to qi|x.c for |
|00003bb0| 73 69 6d 70 6c 65 20 73 | 61 6d 70 6c 65 20 73 63 |simple s|ample sc|
|00003bc0| 72 65 65 6e 20 73 61 76 | 65 72 2e 0a 20 2a 2f 0a |reen sav|er.. */.|
|00003bd0| 0a 7d 3b 0a 23 64 65 66 | 69 6e 65 20 4e 55 4d 50 |.};.#def|ine NUMP|
|00003be0| 52 4f 43 53 20 28 73 69 | 7a 65 6f 66 28 4c 6f 63 |ROCS (si|zeof(Loc|
|00003bf0| 6b 50 72 6f 63 73 29 20 | 2f 20 73 69 7a 65 6f 66 |kProcs) |/ sizeof|
|00003c00| 28 6c 6f 63 6b 50 72 6f | 63 29 29 0a 0a 69 6e 74 |(lockPro|c))..int|
|00003c10| 09 20 20 20 20 28 2a 72 | 65 69 6e 69 74 29 20 28 |. (*r|einit) (|
|00003c20| 29 20 3d 20 4e 55 4c 4c | 3b 0a 76 6f 69 64 09 20 |) = NULL|;.void. |
|00003c30| 20 20 20 28 2a 63 61 6c | 6c 62 61 63 6b 29 20 28 | (*cal|lback) (|
|00003c40| 29 20 3d 20 4e 55 4c 4c | 3b 0a 76 6f 69 64 09 20 |) = NULL|;.void. |
|00003c50| 20 20 20 28 2a 69 6e 69 | 74 29 20 28 29 20 3d 20 | (*ini|t) () = |
|00003c60| 4e 55 4c 4c 3b 0a 0a 63 | 68 61 72 09 20 20 20 2a |NULL;..c|har. *|
|00003c70| 70 6e 61 6d 65 3b 09 09 | 2f 2a 20 61 72 67 76 5b |pname;..|/* argv[|
|00003c80| 30 5d 20 2a 2f 0a 44 69 | 73 70 6c 61 79 09 20 20 |0] */.Di|splay. |
|00003c90| 20 2a 64 73 70 20 3d 20 | 4e 55 4c 4c 3b 09 09 2f | *dsp = |NULL;../|
|00003ca0| 2a 20 73 65 72 76 65 72 | 20 64 69 73 70 6c 61 79 |* server| display|
|00003cb0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 2a 2f 0a 69 | connect|ion */.i|
|00003cc0| 6e 74 09 20 20 20 20 73 | 63 72 65 65 6e 3b 09 09 |nt. s|creen;..|
|00003cd0| 2f 2a 20 63 75 72 72 65 | 6e 74 20 73 63 72 65 65 |/* curre|nt scree|
|00003ce0| 6e 20 2a 2f 0a 57 69 6e | 64 6f 77 09 20 20 20 20 |n */.Win|dow. |
|00003cf0| 77 2c 09 09 09 2f 2a 20 | 77 69 6e 64 6f 77 20 75 |w,.../* |window u|
|00003d00| 73 65 64 20 74 6f 20 63 | 6f 76 65 72 20 73 63 72 |sed to c|over scr|
|00003d10| 65 65 6e 20 2a 2f 0a 09 | 20 20 20 20 69 63 6f 6e |een */..| icon|
|00003d20| 2c 09 09 2f 2a 20 77 69 | 6e 64 6f 77 20 75 73 65 |,../* wi|ndow use|
|00003d30| 64 20 64 75 72 69 6e 67 | 20 70 61 73 73 77 6f 72 |d during| passwor|
|00003d40| 64 20 74 79 70 65 69 6e | 20 2a 2f 0a 09 20 20 20 |d typein| */.. |
|00003d50| 20 72 6f 6f 74 3b 09 09 | 2f 2a 20 63 6f 6e 76 65 | root;..|/* conve|
|00003d60| 6e 69 65 6e 63 65 20 70 | 6f 69 6e 74 65 72 20 74 |nience p|ointer t|
|00003d70| 6f 20 74 68 65 20 72 6f | 6f 74 20 77 69 6e 64 6f |o the ro|ot windo|
|00003d80| 77 20 2a 2f 0a 47 43 09 | 20 20 20 20 67 63 2c 09 |w */.GC.| gc,.|
|00003d90| 09 09 2f 2a 20 6d 61 69 | 6e 20 67 72 61 70 68 69 |../* mai|n graphi|
|00003da0| 63 73 20 64 72 61 77 69 | 6e 67 20 67 72 61 70 68 |cs drawi|ng graph|
|00003db0| 69 63 73 20 63 6f 6e 74 | 65 78 74 20 2a 2f 0a 09 |ics cont|ext */..|
|00003dc0| 20 20 20 20 74 65 78 74 | 67 63 3b 09 09 2f 2a 20 | text|gc;../* |
|00003dd0| 67 72 61 70 68 69 63 73 | 20 63 6f 6e 74 65 78 74 |graphics| context|
|00003de0| 20 75 73 65 64 20 66 6f | 72 20 74 65 78 74 20 72 | used fo|r text r|
|00003df0| 65 6e 64 65 72 69 6e 67 | 20 2a 2f 0a 58 43 6f 6c |endering| */.XCol|
|00003e00| 6f 72 09 20 20 20 20 62 | 6c 61 63 6b 2c 09 09 2f |or. b|lack,../|
|00003e10| 2a 20 75 73 65 64 20 66 | 6f 72 20 74 65 78 74 20 |* used f|or text |
|00003e20| 72 65 6e 64 65 72 69 6e | 67 20 2a 2f 0a 09 20 20 |renderin|g */.. |
|00003e30| 20 20 77 68 69 74 65 3b | 09 09 2f 2a 20 62 61 63 | white;|../* bac|
|00003e40| 6b 67 72 6f 75 6e 64 20 | 6f 66 20 74 65 78 74 20 |kground |of text |
|00003e50| 73 63 72 65 65 6e 20 2a | 2f 0a 43 6f 6c 6f 72 6d |screen *|/.Colorm|
|00003e60| 61 70 20 20 20 20 63 6d | 61 70 3b 09 09 2f 2a 20 |ap cm|ap;../* |
|00003e70| 63 6f 6c 6f 72 6d 61 70 | 20 2a 2f 0a 43 75 72 73 |colormap| */.Curs|
|00003e80| 6f 72 09 20 20 20 20 6d | 79 63 75 72 73 6f 72 3b |or. m|ycursor;|
|00003e90| 09 09 2f 2a 20 62 6c 61 | 6e 6b 20 63 75 72 73 6f |../* bla|nk curso|
|00003ea0| 72 20 2a 2f 0a 50 69 78 | 6d 61 70 09 20 20 20 20 |r */.Pix|map. |
|00003eb0| 6c 6f 63 6b 63 2c 0a 09 | 20 20 20 20 6c 6f 63 6b |lockc,..| lock|
|00003ec0| 6d 3b 09 09 2f 2a 20 70 | 69 78 6d 61 70 73 20 66 |m;../* p|ixmaps f|
|00003ed0| 6f 72 20 63 75 72 73 6f | 72 20 61 6e 64 20 6d 61 |or curso|r and ma|
|00003ee0| 73 6b 20 2a 2f 0a 63 68 | 61 72 09 20 20 20 20 6e |sk */.ch|ar. n|
|00003ef0| 6f 5f 62 69 74 73 5b 5d | 20 3d 20 7b 30 7d 3b 09 |o_bits[]| = {0};.|
|00003f00| 2f 2a 20 64 75 6d 6d 79 | 20 61 72 72 61 79 20 66 |/* dummy| array f|
|00003f10| 6f 72 20 74 68 65 20 62 | 6c 61 6e 6b 20 63 75 72 |or the b|lank cur|
|00003f20| 73 6f 72 20 2a 2f 0a 69 | 6e 74 09 20 20 20 20 70 |sor */.i|nt. p|
|00003f30| 61 73 73 78 2c 09 09 2f | 2a 20 70 6f 73 69 74 69 |assx,../|* positi|
|00003f40| 6f 6e 20 6f 66 20 74 68 | 65 20 3f 27 73 20 2a 2f |on of th|e ?'s */|
|00003f50| 0a 09 20 20 20 20 70 61 | 73 73 79 3b 0a 58 46 6f |.. pa|ssy;.XFo|
|00003f60| 6e 74 53 74 72 75 63 74 | 20 2a 66 6f 6e 74 3b 0a |ntStruct| *font;.|
|00003f70| 63 68 61 72 09 20 20 20 | 2a 66 6f 6e 74 6e 61 6d |char. |*fontnam|
|00003f80| 65 20 3d 20 4e 55 4c 4c | 3b 09 2f 2a 20 74 68 65 |e = NULL|;./* the|
|00003f90| 20 66 6f 6e 74 20 75 73 | 65 64 20 69 6e 20 74 68 | font us|ed in th|
|00003fa0| 65 20 70 61 73 73 77 6f | 72 64 20 73 63 72 65 65 |e passwo|rd scree|
|00003fb0| 6e 20 2a 2f 0a 69 6e 74 | 09 20 20 20 20 69 6e 69 |n */.int|. ini|
|00003fc0| 74 74 69 6d 65 20 3d 20 | 2d 31 3b 09 2f 2a 20 74 |ttime = |-1;./* t|
|00003fd0| 69 6d 65 20 74 6f 20 69 | 74 65 72 61 74 65 20 62 |ime to i|terate b|
|00003fe0| 65 66 6f 72 65 20 63 61 | 6c 6c 69 6e 67 20 69 6e |efore ca|lling in|
|00003ff0| 69 74 20 2a 2f 0a 69 6e | 74 09 20 20 20 20 73 6b |it */.in|t. sk|
|00004000| 69 70 52 6f 6f 74 3b 09 | 09 2f 2a 20 73 6b 69 70 |ipRoot;.|./* skip|
|00004010| 20 72 6f 6f 74 20 70 61 | 73 73 77 6f 72 64 20 63 | root pa|ssword c|
|00004020| 68 65 63 6b 20 2a 2f 0a | 69 6e 74 09 20 20 20 20 |heck */.|int. |
|00004030| 63 6f 6c 6f 72 3b 09 09 | 2f 2a 20 63 6f 6c 6f 72 |color;..|/* color|
|00004040| 20 6f 72 20 6d 6f 6e 6f | 20 2a 2f 0a 69 6e 74 09 | or mono| */.int.|
|00004050| 20 20 20 20 63 6f 75 6e | 74 20 3d 20 2d 31 3b 09 | coun|t = -1;.|
|00004060| 09 2f 2a 20 6e 75 6d 62 | 65 72 20 6f 66 20 70 69 |./* numb|er of pi|
|00004070| 78 65 6c 73 20 74 6f 20 | 64 72 61 77 20 69 6e 20 |xels to |draw in |
|00004080| 65 61 63 68 20 63 6f 6c | 6f 72 20 2a 2f 0a 69 6e |each col|or */.in|
|00004090| 74 09 20 20 20 20 6e 69 | 63 65 6c 65 76 65 6c 20 |t. ni|celevel |
|000040a0| 3d 20 2d 31 3b 09 2f 2a | 20 73 79 73 74 65 6d 20 |= -1;./*| system |
|000040b0| 70 72 69 6f 72 69 74 79 | 20 61 74 20 77 68 69 63 |priority| at whic|
|000040c0| 68 20 74 6f 20 72 75 6e | 20 70 72 6f 63 65 73 73 |h to run| process|
|000040d0| 20 2a 2f 0a 69 6e 74 09 | 20 20 20 20 6c 6f 63 6b | */.int.| lock|
|000040e0| 3b 09 09 2f 2a 20 6c 6f | 63 6b 65 64 20 6f 72 20 |;../* lo|cked or |
|000040f0| 6a 75 73 74 20 73 63 72 | 65 65 6e 73 61 76 65 72 |just scr|eensaver|
|00004100| 20 6d 6f 64 65 20 2a 2f | 0a 69 6e 74 09 20 20 20 | mode */|.int. |
|00004110| 20 76 65 72 62 6f 73 65 | 20 3d 20 46 61 6c 73 65 | verbose| = False|
|00004120| 3b 09 2f 2a 20 70 72 69 | 6e 74 20 63 6f 6e 66 69 |;./* pri|nt confi|
|00004130| 67 75 72 61 74 69 6f 6e | 20 69 6e 66 6f 20 74 6f |guration| info to|
|00004140| 20 73 74 64 65 72 72 3f | 20 2a 2f 0a 63 68 61 72 | stderr?| */.char|
|00004150| 09 20 20 20 2a 64 69 73 | 70 6c 61 79 20 3d 20 4e |. *dis|play = N|
|00004160| 55 4c 4c 3b 09 2f 2a 20 | 58 20 64 69 73 70 6c 61 |ULL;./* |X displa|
|00004170| 79 20 76 61 72 69 61 62 | 6c 65 20 2a 2f 0a 69 6e |y variab|le */.in|
|00004180| 74 09 20 20 20 20 74 69 | 6d 65 6f 75 74 2c 0a 09 |t. ti|meout,..|
|00004190| 20 20 20 20 69 6e 74 65 | 72 76 61 6c 2c 0a 09 20 | inte|rval,.. |
|000041a0| 20 20 20 62 6c 61 6e 6b | 69 6e 67 2c 0a 09 20 20 | blank|ing,.. |
|000041b0| 20 20 65 78 70 6f 73 75 | 72 65 73 3b 09 09 2f 2a | exposu|res;../*|
|000041c0| 20 73 63 72 65 65 6e 20 | 73 61 76 65 72 20 70 61 | screen |saver pa|
|000041d0| 72 61 6d 65 74 65 72 73 | 20 2a 2f 0a 0a 23 64 65 |rameters| */..#de|
|000041e0| 66 69 6e 65 20 49 43 4f | 4e 58 09 09 09 33 30 30 |fine ICO|NX...300|
|000041f0| 0a 23 64 65 66 69 6e 65 | 20 49 43 4f 4e 59 09 09 |.#define| ICONY..|
|00004200| 09 31 35 30 0a 23 64 65 | 66 69 6e 65 20 49 43 4f |.150.#de|fine ICO|
|00004210| 4e 57 09 09 09 36 34 0a | 23 64 65 66 69 6e 65 20 |NW...64.|#define |
|00004220| 49 43 4f 4e 48 09 09 09 | 36 34 0a 23 64 65 66 69 |ICONH...|64.#defi|
|00004230| 6e 65 20 49 43 4f 4e 4c | 4f 4f 50 53 09 09 36 30 |ne ICONL|OOPS..60|
|00004240| 30 0a 23 64 65 66 69 6e | 65 20 44 45 46 41 55 4c |0.#defin|e DEFAUL|
|00004250| 54 5f 46 4f 4e 54 4e 41 | 4d 45 09 22 4c 75 63 69 |T_FONTNA|ME."Luci|
|00004260| 64 61 53 61 6e 73 2d 32 | 34 22 0a 23 64 65 66 69 |daSans-2|4".#defi|
|00004270| 6e 65 20 42 41 43 4b 55 | 50 5f 46 4f 4e 54 4e 41 |ne BACKU|P_FONTNA|
|00004280| 4d 45 09 09 22 66 69 78 | 65 64 22 0a 23 64 65 66 |ME.."fix|ed".#def|
|00004290| 69 6e 65 20 44 45 46 41 | 55 4c 54 5f 49 4e 49 54 |ine DEFA|ULT_INIT|
|000042a0| 54 49 4d 45 09 36 30 0a | 23 64 65 66 69 6e 65 20 |TIME.60.|#define |
|000042b0| 44 45 46 41 55 4c 54 5f | 53 4b 49 50 52 4f 4f 54 |DEFAULT_|SKIPROOT|
|000042c0| 09 54 72 75 65 0a 23 64 | 65 66 69 6e 65 20 44 45 |.True.#d|efine DE|
|000042d0| 46 41 55 4c 54 5f 43 4f | 55 4e 54 09 09 31 30 30 |FAULT_CO|UNT..100|
|000042e0| 0a 23 64 65 66 69 6e 65 | 20 44 45 46 41 55 4c 54 |.#define| DEFAULT|
|000042f0| 5f 4e 49 43 45 09 09 31 | 30 0a 23 64 65 66 69 6e |_NICE..1|0.#defin|
|00004300| 65 20 44 45 46 41 55 4c | 54 5f 44 49 53 50 4c 41 |e DEFAUL|T_DISPLA|
|00004310| 59 09 09 22 3a 30 22 0a | 0a 2f 2a 20 56 41 52 41 |Y..":0".|./* VARA|
|00004320| 52 47 53 31 20 2a 2f 0a | 76 6f 69 64 0a 65 72 72 |RGS1 */.|void.err|
|00004330| 6f 72 28 73 31 2c 20 73 | 32 29 0a 20 20 20 20 63 |or(s1, s|2). c|
|00004340| 68 61 72 20 20 20 20 20 | 20 20 2a 73 31 2c 0a 09 |har | *s1,..|
|00004350| 20 20 20 20 20 20 20 2a | 73 32 3b 0a 7b 0a 20 20 | *|s2;.{. |
|00004360| 20 20 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 | fprint|f(stderr|
|00004370| 2c 20 73 31 2c 20 70 6e | 61 6d 65 2c 20 73 32 29 |, s1, pn|ame, s2)|
|00004380| 3b 0a 20 20 20 20 65 78 | 69 74 28 31 29 3b 0a 7d |;. ex|it(1);.}|
|00004390| 0a 0a 0a 69 6e 74 09 20 | 20 20 20 6f 6c 64 73 69 |...int. | oldsi|
|000043a0| 67 6d 61 73 6b 3b 0a 0a | 76 6f 69 64 0a 62 6c 6f |gmask;..|void.blo|
|000043b0| 63 6b 28 29 0a 7b 0a 20 | 20 20 20 6f 6c 64 73 69 |ck().{. | oldsi|
|000043c0| 67 6d 61 73 6b 20 3d 20 | 73 69 67 62 6c 6f 63 6b |gmask = |sigblock|
|000043d0| 28 73 69 67 6d 61 73 6b | 28 53 49 47 49 4e 54 29 |(sigmask|(SIGINT)|
|000043e0| 0a 09 09 09 20 20 7c 20 | 73 69 67 6d 61 73 6b 28 |.... | |sigmask(|
|000043f0| 53 49 47 51 55 49 54 29 | 0a 09 09 09 20 20 7c 20 |SIGQUIT)|.... | |
|00004400| 73 69 67 6d 61 73 6b 28 | 53 49 47 46 50 45 29 0a |sigmask(|SIGFPE).|
|00004410| 09 09 09 20 20 7c 20 73 | 69 67 6d 61 73 6b 28 53 |... | s|igmask(S|
|00004420| 49 47 53 45 47 56 29 29 | 3b 0a 7d 0a 0a 76 6f 69 |IGSEGV))|;.}..voi|
|00004430| 64 0a 75 6e 62 6c 6f 63 | 6b 28 29 0a 7b 0a 20 20 |d.unbloc|k().{. |
|00004440| 20 20 73 69 67 73 65 74 | 6d 61 73 6b 28 6f 6c 64 | sigset|mask(old|
|00004450| 73 69 67 6d 61 73 6b 29 | 3b 0a 7d 0a 0a 76 6f 69 |sigmask)|;.}..voi|
|00004460| 64 0a 61 6c 6c 6f 77 73 | 69 67 28 29 0a 7b 0a 20 |d.allows|ig().{. |
|00004470| 20 20 20 75 6e 62 6c 6f | 63 6b 28 29 3b 0a 20 20 | unblo|ck();. |
|00004480| 20 20 62 6c 6f 63 6b 28 | 29 3b 0a 7d 0a 0a 0a 58 | block(|);.}...X|
|00004490| 48 6f 73 74 41 64 64 72 | 65 73 73 20 2a 58 48 6f |HostAddr|ess *XHo|
|000044a0| 73 74 73 3b 0a 69 6e 74 | 09 20 20 20 20 48 6f 73 |sts;.int|. Hos|
|000044b0| 74 41 63 63 65 73 73 43 | 6f 75 6e 74 3b 0a 42 6f |tAccessC|ount;.Bo|
|000044c0| 6f 6c 09 20 20 20 20 48 | 6f 73 74 41 63 63 65 73 |ol. H|ostAcces|
|000044d0| 73 53 74 61 74 65 3b 0a | 0a 76 6f 69 64 0a 58 47 |sState;.|.void.XG|
|000044e0| 72 61 62 48 6f 73 74 73 | 28 64 73 70 29 0a 20 20 |rabHosts|(dsp). |
|000044f0| 20 20 44 69 73 70 6c 61 | 79 20 20 20 20 2a 64 73 | Displa|y *ds|
|00004500| 70 3b 0a 7b 0a 20 20 20 | 20 58 48 6f 73 74 73 20 |p;.{. | XHosts |
|00004510| 3d 20 58 4c 69 73 74 48 | 6f 73 74 73 28 64 73 70 |= XListH|osts(dsp|
|00004520| 2c 20 26 48 6f 73 74 41 | 63 63 65 73 73 43 6f 75 |, &HostA|ccessCou|
|00004530| 6e 74 2c 20 26 48 6f 73 | 74 41 63 63 65 73 73 53 |nt, &Hos|tAccessS|
|00004540| 74 61 74 65 29 3b 0a 20 | 20 20 20 58 52 65 6d 6f |tate);. | XRemo|
|00004550| 76 65 48 6f 73 74 73 28 | 64 73 70 2c 20 58 48 6f |veHosts(|dsp, XHo|
|00004560| 73 74 73 2c 20 48 6f 73 | 74 41 63 63 65 73 73 43 |sts, Hos|tAccessC|
|00004570| 6f 75 6e 74 29 3b 0a 20 | 20 20 20 58 45 6e 61 62 |ount);. | XEnab|
|00004580| 6c 65 41 63 63 65 73 73 | 43 6f 6e 74 72 6f 6c 28 |leAccess|Control(|
|00004590| 64 73 70 29 3b 0a 7d 0a | 0a 76 6f 69 64 0a 58 55 |dsp);.}.|.void.XU|
|000045a0| 6e 67 72 61 62 48 6f 73 | 74 73 28 64 73 70 29 0a |ngrabHos|ts(dsp).|
|000045b0| 20 20 20 20 44 69 73 70 | 6c 61 79 20 20 20 20 2a | Disp|lay *|
|000045c0| 64 73 70 3b 0a 7b 0a 20 | 20 20 20 58 41 64 64 48 |dsp;.{. | XAddH|
|000045d0| 6f 73 74 73 28 64 73 70 | 2c 20 58 48 6f 73 74 73 |osts(dsp|, XHosts|
|000045e0| 2c 20 48 6f 73 74 41 63 | 63 65 73 73 43 6f 75 6e |, HostAc|cessCoun|
|000045f0| 74 29 3b 0a 20 20 20 20 | 58 46 72 65 65 28 58 48 |t);. |XFree(XH|
|00004600| 6f 73 74 73 29 3b 0a 20 | 20 20 20 69 66 20 28 48 |osts);. | if (H|
|00004610| 6f 73 74 41 63 63 65 73 | 73 53 74 61 74 65 20 3d |ostAcces|sState =|
|00004620| 3d 20 46 61 6c 73 65 29 | 0a 09 58 44 69 73 61 62 |= False)|..XDisab|
|00004630| 6c 65 41 63 63 65 73 73 | 43 6f 6e 74 72 6f 6c 28 |leAccess|Control(|
|00004640| 64 73 70 29 3b 0a 7d 0a | 0a 0a 76 6f 69 64 0a 47 |dsp);.}.|..void.G|
|00004650| 72 61 62 4b 65 79 62 6f | 61 72 64 41 6e 64 4d 6f |rabKeybo|ardAndMo|
|00004660| 75 73 65 28 29 0a 7b 0a | 20 20 20 20 53 74 61 74 |use().{.| Stat|
|00004670| 75 73 09 73 74 61 74 75 | 73 3b 0a 0a 20 20 20 20 |us.statu|s;.. |
|00004680| 73 74 61 74 75 73 20 3d | 20 58 47 72 61 62 4b 65 |status =| XGrabKe|
|00004690| 79 62 6f 61 72 64 28 64 | 73 70 2c 20 77 2c 20 54 |yboard(d|sp, w, T|
|000046a0| 72 75 65 2c 0a 09 09 09 | 20 20 20 47 72 61 62 4d |rue,....| GrabM|
|000046b0| 6f 64 65 41 73 79 6e 63 | 2c 20 47 72 61 62 4d 6f |odeAsync|, GrabMo|
|000046c0| 64 65 41 73 79 6e 63 2c | 20 43 75 72 72 65 6e 74 |deAsync,| Current|
|000046d0| 54 69 6d 65 29 3b 0a 20 | 20 20 20 69 66 20 28 73 |Time);. | if (s|
|000046e0| 74 61 74 75 73 20 21 3d | 20 47 72 61 62 53 75 63 |tatus !=| GrabSuc|
|000046f0| 63 65 73 73 29 0a 09 65 | 72 72 6f 72 28 22 25 73 |cess)..e|rror("%s|
|00004700| 3a 20 63 6f 75 6c 64 6e | 27 74 20 67 72 61 62 20 |: couldn|'t grab |
|00004710| 6b 65 79 62 6f 61 72 64 | 21 20 28 25 64 29 5c 6e |keyboard|! (%d)\n|
|00004720| 22 2c 20 73 74 61 74 75 | 73 29 3b 0a 20 20 20 20 |", statu|s);. |
|00004730| 73 74 61 74 75 73 20 3d | 20 58 47 72 61 62 50 6f |status =| XGrabPo|
|00004740| 69 6e 74 65 72 28 64 73 | 70 2c 20 77 2c 20 54 72 |inter(ds|p, w, Tr|
|00004750| 75 65 2c 20 2d 31 2c 0a | 09 09 09 20 20 47 72 61 |ue, -1,.|... Gra|
|00004760| 62 4d 6f 64 65 41 73 79 | 6e 63 2c 20 47 72 61 62 |bModeAsy|nc, Grab|
|00004770| 4d 6f 64 65 41 73 79 6e | 63 2c 20 4e 6f 6e 65 2c |ModeAsyn|c, None,|
|00004780| 20 6d 79 63 75 72 73 6f | 72 2c 0a 09 09 09 20 20 | mycurso|r,.... |
|00004790| 43 75 72 72 65 6e 74 54 | 69 6d 65 29 3b 0a 20 20 |CurrentT|ime);. |
|000047a0| 20 20 69 66 20 28 73 74 | 61 74 75 73 20 21 3d 20 | if (st|atus != |
|000047b0| 47 72 61 62 53 75 63 63 | 65 73 73 29 0a 09 65 72 |GrabSucc|ess)..er|
|000047c0| 72 6f 72 28 22 25 73 3a | 20 63 6f 75 6c 64 6e 27 |ror("%s:| couldn'|
|000047d0| 74 20 67 72 61 62 20 70 | 6f 69 6e 74 65 72 21 20 |t grab p|ointer! |
|000047e0| 28 25 64 29 5c 6e 22 2c | 20 73 74 61 74 75 73 29 |(%d)\n",| status)|
|000047f0| 3b 0a 7d 0a 0a 0a 76 6f | 69 64 0a 58 43 68 61 6e |;.}...vo|id.XChan|
|00004800| 67 65 47 72 61 62 62 65 | 64 43 75 72 73 6f 72 28 |geGrabbe|dCursor(|
|00004810| 63 75 72 73 6f 72 29 0a | 20 20 20 20 43 75 72 73 |cursor).| Curs|
|00004820| 6f 72 09 63 75 72 73 6f | 72 3b 0a 7b 0a 20 20 20 |or.curso|r;.{. |
|00004830| 20 58 47 72 61 62 50 6f | 69 6e 74 65 72 28 64 73 | XGrabPo|inter(ds|
|00004840| 70 2c 20 77 2c 20 54 72 | 75 65 2c 20 2d 31 2c 0a |p, w, Tr|ue, -1,.|
|00004850| 09 09 20 47 72 61 62 4d | 6f 64 65 41 73 79 6e 63 |.. GrabM|odeAsync|
|00004860| 2c 20 47 72 61 62 4d 6f | 64 65 41 73 79 6e 63 2c |, GrabMo|deAsync,|
|00004870| 20 4e 6f 6e 65 2c 20 63 | 75 72 73 6f 72 2c 20 43 | None, c|ursor, C|
|00004880| 75 72 72 65 6e 74 54 69 | 6d 65 29 3b 0a 7d 0a 0a |urrentTi|me);.}..|
|00004890| 76 6f 69 64 0a 66 69 6e | 69 73 68 28 29 0a 7b 0a |void.fin|ish().{.|
|000048a0| 20 20 20 20 58 53 79 6e | 63 28 64 73 70 2c 20 30 | XSyn|c(dsp, 0|
|000048b0| 29 3b 0a 20 20 20 20 58 | 55 6e 67 72 61 62 48 6f |);. X|UngrabHo|
|000048c0| 73 74 73 28 64 73 70 29 | 3b 0a 20 20 20 20 58 55 |sts(dsp)|;. XU|
|000048d0| 6e 67 72 61 62 50 6f 69 | 6e 74 65 72 28 64 73 70 |ngrabPoi|nter(dsp|
|000048e0| 2c 20 43 75 72 72 65 6e | 74 54 69 6d 65 29 3b 0a |, Curren|tTime);.|
|000048f0| 20 20 20 20 58 55 6e 67 | 72 61 62 4b 65 79 62 6f | XUng|rabKeybo|
|00004900| 61 72 64 28 64 73 70 2c | 20 43 75 72 72 65 6e 74 |ard(dsp,| Current|
|00004910| 54 69 6d 65 29 3b 0a 20 | 20 20 20 58 53 65 74 53 |Time);. | XSetS|
|00004920| 63 72 65 65 6e 53 61 76 | 65 72 28 64 73 70 2c 20 |creenSav|er(dsp, |
|00004930| 74 69 6d 65 6f 75 74 2c | 20 69 6e 74 65 72 76 61 |timeout,| interva|
|00004940| 6c 2c 20 62 6c 61 6e 6b | 69 6e 67 2c 20 65 78 70 |l, blank|ing, exp|
|00004950| 6f 73 75 72 65 73 29 3b | 0a 20 20 20 20 58 44 65 |osures);|. XDe|
|00004960| 73 74 72 6f 79 57 69 6e | 64 6f 77 28 64 73 70 2c |stroyWin|dow(dsp,|
|00004970| 20 77 29 3b 0a 20 20 20 | 20 69 66 20 28 63 6f 6c | w);. | if (col|
|00004980| 6f 72 29 0a 09 58 55 6e | 69 6e 73 74 61 6c 6c 43 |or)..XUn|installC|
|00004990| 6f 6c 6f 72 6d 61 70 28 | 64 73 70 2c 20 63 6d 61 |olormap(|dsp, cma|
|000049a0| 70 29 3b 0a 20 20 20 20 | 58 46 6c 75 73 68 28 64 |p);. |XFlush(d|
|000049b0| 73 70 29 3b 0a 20 20 20 | 20 58 43 6c 6f 73 65 44 |sp);. | XCloseD|
|000049c0| 69 73 70 6c 61 79 28 64 | 73 70 29 3b 0a 7d 0a 0a |isplay(d|sp);.}..|
|000049d0| 76 6f 69 64 0a 73 69 67 | 63 61 74 63 68 28 29 0a |void.sig|catch().|
|000049e0| 7b 0a 20 20 20 20 66 69 | 6e 69 73 68 28 29 3b 0a |{. fi|nish();.|
|000049f0| 20 20 20 20 65 72 72 6f | 72 28 22 25 73 3a 20 63 | erro|r("%s: c|
|00004a00| 61 75 67 68 74 20 74 65 | 72 6d 69 6e 61 74 65 20 |aught te|rminate |
|00004a10| 73 69 67 6e 61 6c 2e 5c | 6e 41 63 63 65 73 73 20 |signal.\|nAccess |
|00004a20| 63 6f 6e 74 72 6f 6c 20 | 6c 69 73 74 20 72 65 73 |control |list res|
|00004a30| 74 6f 72 65 64 2e 5c 6e | 22 29 3b 0a 7d 0a 0a 69 |tored.\n|");.}..i|
|00004a40| 6e 74 0a 52 65 61 64 58 | 53 74 72 69 6e 67 28 73 |nt.ReadX|String(s|
|00004a50| 2c 20 73 6c 65 6e 29 0a | 20 20 20 20 63 68 61 72 |, slen).| char|
|00004a60| 20 20 20 20 20 20 20 2a | 73 3b 0a 20 20 20 20 69 | *|s;. i|
|00004a70| 6e 74 09 09 73 6c 65 6e | 3b 0a 7b 0a 20 20 20 20 |nt..slen|;.{. |
|00004a80| 58 45 76 65 6e 74 09 65 | 76 65 6e 74 3b 0a 20 20 |XEvent.e|vent;. |
|00004a90| 20 20 63 68 61 72 09 6b | 65 79 73 74 72 5b 32 30 | char.k|eystr[20|
|00004aa0| 5d 3b 0a 20 20 20 20 63 | 68 61 72 09 63 3b 0a 20 |];. c|har.c;. |
|00004ab0| 20 20 20 69 6e 74 09 09 | 69 2c 0a 09 09 62 70 2c | int..|i,...bp,|
|00004ac0| 0a 09 09 6c 65 6e 2c 0a | 09 09 6c 6f 6f 70 73 3b |...len,.|..loops;|
|00004ad0| 0a 20 20 20 20 63 68 61 | 72 20 20 20 20 20 20 20 |. cha|r |
|00004ae0| 2a 70 77 62 75 66 20 3d | 20 28 63 68 61 72 20 2a |*pwbuf =| (char *|
|00004af0| 29 20 6d 61 6c 6c 6f 63 | 28 73 6c 65 6e 29 3b 0a |) malloc|(slen);.|
|00004b00| 0a 20 20 20 20 58 53 65 | 74 46 6f 72 65 67 72 6f |. XSe|tForegro|
|00004b10| 75 6e 64 28 64 73 70 2c | 20 67 63 2c 20 42 6c 61 |und(dsp,| gc, Bla|
|00004b20| 63 6b 50 69 78 65 6c 28 | 64 73 70 2c 20 73 63 72 |ckPixel(|dsp, scr|
|00004b30| 65 65 6e 29 29 3b 0a 20 | 20 20 20 69 6e 69 74 28 |een));. | init(|
|00004b40| 64 73 70 2c 20 69 63 6f | 6e 2c 20 67 63 2c 20 63 |dsp, ico|n, gc, c|
|00004b50| 6f 6c 6f 72 2c 20 69 6e | 69 74 74 69 6d 65 2c 20 |olor, in|ittime, |
|00004b60| 63 6f 75 6e 74 29 3b 0a | 20 20 20 20 62 70 20 3d |count);.| bp =|
|00004b70| 20 30 3b 0a 20 20 20 20 | 6e 69 63 65 28 2d 6e 69 | 0;. |nice(-ni|
|00004b80| 63 65 6c 65 76 65 6c 29 | 3b 09 09 2f 2a 20 6d 61 |celevel)|;../* ma|
|00004b90| 6b 65 20 73 75 72 65 20 | 77 65 20 63 61 6e 20 72 |ke sure |we can r|
|00004ba0| 65 61 64 20 74 68 65 20 | 6b 65 79 73 74 72 6f 6b |ead the |keystrok|
|00004bb0| 65 73 2e 2e 2e 20 2a 2f | 0a 20 20 20 20 77 68 69 |es... */|. whi|
|00004bc0| 6c 65 20 28 54 72 75 65 | 29 20 7b 0a 09 6c 6f 6f |le (True|) {..loo|
|00004bd0| 70 73 20 3d 20 30 3b 0a | 09 77 68 69 6c 65 20 28 |ps = 0;.|.while (|
|00004be0| 21 58 50 65 6e 64 69 6e | 67 28 64 73 70 29 29 20 |!XPendin|g(dsp)) |
|00004bf0| 7b 0a 09 20 20 20 20 61 | 6c 6c 6f 77 73 69 67 28 |{.. a|llowsig(|
|00004c00| 29 3b 0a 09 20 20 20 20 | 63 61 6c 6c 62 61 63 6b |);.. |callback|
|00004c10| 28 29 3b 0a 09 20 20 20 | 20 69 66 20 28 72 65 69 |();.. | if (rei|
|00004c20| 6e 69 74 28 29 29 0a 09 | 09 69 6e 69 74 28 64 73 |nit())..|.init(ds|
|00004c30| 70 2c 20 69 63 6f 6e 2c | 20 67 63 2c 20 63 6f 6c |p, icon,| gc, col|
|00004c40| 6f 72 2c 20 69 6e 69 74 | 74 69 6d 65 2c 20 63 6f |or, init|time, co|
|00004c50| 75 6e 74 29 3b 0a 09 20 | 20 20 20 69 66 20 28 2b |unt);.. | if (+|
|00004c60| 2b 6c 6f 6f 70 73 20 3e | 3d 20 49 43 4f 4e 4c 4f |+loops >|= ICONLO|
|00004c70| 4f 50 53 29 20 7b 0a 09 | 09 6e 69 63 65 28 6e 69 |OPS) {..|.nice(ni|
|00004c80| 63 65 6c 65 76 65 6c 29 | 3b 0a 09 09 66 72 65 65 |celevel)|;...free|
|00004c90| 28 70 77 62 75 66 29 3b | 0a 09 09 72 65 74 75 72 |(pwbuf);|...retur|
|00004ca0| 6e 20 31 3b 0a 09 20 20 | 20 20 7d 0a 09 7d 0a 09 |n 1;.. | }..}..|
|00004cb0| 58 4e 65 78 74 45 76 65 | 6e 74 28 64 73 70 2c 20 |XNextEve|nt(dsp, |
|00004cc0| 26 65 76 65 6e 74 29 3b | 0a 09 73 77 69 74 63 68 |&event);|..switch|
|00004cd0| 20 28 65 76 65 6e 74 2e | 74 79 70 65 29 20 7b 0a | (event.|type) {.|
|00004ce0| 09 63 61 73 65 20 4b 65 | 79 50 72 65 73 73 3a 0a |.case Ke|yPress:.|
|00004cf0| 09 20 20 20 20 6c 65 6e | 20 3d 20 58 4c 6f 6f 6b |. len| = XLook|
|00004d00| 75 70 53 74 72 69 6e 67 | 28 28 58 4b 65 79 45 76 |upString|((XKeyEv|
|00004d10| 65 6e 74 20 2a 29 20 26 | 20 65 76 65 6e 74 2c 20 |ent *) &| event, |
|00004d20| 6b 65 79 73 74 72 2c 20 | 32 30 2c 20 4e 55 4c 4c |keystr, |20, NULL|
|00004d30| 2c 20 4e 55 4c 4c 29 3b | 0a 09 20 20 20 20 66 6f |, NULL);|.. fo|
|00004d40| 72 20 28 69 20 3d 20 30 | 3b 20 69 20 3c 20 6c 65 |r (i = 0|; i < le|
|00004d50| 6e 3b 20 69 2b 2b 29 20 | 7b 0a 09 09 63 20 3d 20 |n; i++) |{...c = |
|00004d60| 6b 65 79 73 74 72 5b 69 | 5d 3b 0a 09 09 73 77 69 |keystr[i|];...swi|
|00004d70| 74 63 68 20 28 63 29 20 | 7b 0a 09 09 63 61 73 65 |tch (c) |{...case|
|00004d80| 20 38 3a 09 2f 2a 20 5e | 48 20 2a 2f 0a 09 09 63 | 8:./* ^|H */...c|
|00004d90| 61 73 65 20 31 32 37 3a | 09 2f 2a 20 44 45 4c 20 |ase 127:|./* DEL |
|00004da0| 2a 2f 0a 09 09 20 20 20 | 20 69 66 20 28 62 70 20 |*/... | if (bp |
|00004db0| 3e 20 30 29 0a 09 09 09 | 62 70 2d 2d 3b 0a 09 09 |> 0)....|bp--;...|
|00004dc0| 20 20 20 20 62 72 65 61 | 6b 3b 0a 09 09 63 61 73 | brea|k;...cas|
|00004dd0| 65 20 31 30 3a 09 2f 2a | 20 5e 4a 20 2a 2f 0a 09 |e 10:./*| ^J */..|
|00004de0| 09 63 61 73 65 20 31 33 | 3a 09 2f 2a 20 5e 4d 20 |.case 13|:./* ^M |
|00004df0| 2a 2f 0a 09 09 20 20 20 | 20 73 5b 62 70 5d 20 3d |*/... | s[bp] =|
|00004e00| 20 27 5c 30 27 3b 0a 09 | 09 20 20 20 20 6e 69 63 | '\0';..|. nic|
|00004e10| 65 28 6e 69 63 65 6c 65 | 76 65 6c 29 3b 0a 09 09 |e(nicele|vel);...|
|00004e20| 20 20 20 20 66 72 65 65 | 28 70 77 62 75 66 29 3b | free|(pwbuf);|
|00004e30| 0a 09 09 20 20 20 20 72 | 65 74 75 72 6e 20 30 3b |... r|eturn 0;|
|00004e40| 0a 09 09 63 61 73 65 20 | 32 31 3a 09 2f 2a 20 5e |...case |21:./* ^|
|00004e50| 55 20 2a 2f 0a 09 09 20 | 20 20 20 62 70 20 3d 20 |U */... | bp = |
|00004e60| 30 3b 0a 09 09 20 20 20 | 20 62 72 65 61 6b 3b 0a |0;... | break;.|
|00004e70| 09 09 64 65 66 61 75 6c | 74 3a 0a 09 09 20 20 20 |..defaul|t:... |
|00004e80| 20 73 5b 62 70 5d 20 3d | 20 63 3b 0a 09 09 20 20 | s[bp] =| c;... |
|00004e90| 20 20 69 66 20 28 62 70 | 20 3c 20 73 6c 65 6e 20 | if (bp| < slen |
|00004ea0| 2d 20 31 29 0a 09 09 09 | 62 70 2b 2b 3b 0a 09 09 |- 1)....|bp++;...|
|00004eb0| 7d 0a 09 20 20 20 20 7d | 0a 09 20 20 20 20 6d 65 |}.. }|.. me|
|00004ec0| 6d 73 65 74 28 70 77 62 | 75 66 2c 20 27 3f 27 2c |mset(pwb|uf, '?',|
|00004ed0| 20 73 6c 65 6e 29 3b 0a | 09 20 20 20 20 58 53 65 | slen);.|. XSe|
|00004ee0| 74 46 6f 72 65 67 72 6f | 75 6e 64 28 64 73 70 2c |tForegro|und(dsp,|
|00004ef0| 20 67 63 2c 20 77 68 69 | 74 65 2e 70 69 78 65 6c | gc, whi|te.pixel|
|00004f00| 29 3b 0a 09 20 20 20 20 | 58 46 69 6c 6c 52 65 63 |);.. |XFillRec|
|00004f10| 74 61 6e 67 6c 65 28 64 | 73 70 2c 20 77 2c 20 67 |tangle(d|sp, w, g|
|00004f20| 63 2c 20 70 61 73 73 78 | 2c 20 70 61 73 73 79 20 |c, passx|, passy |
|00004f30| 2d 20 66 6f 6e 74 2d 3e | 61 73 63 65 6e 74 2c 0a |- font->|ascent,.|
|00004f40| 09 09 09 20 20 20 58 54 | 65 78 74 57 69 64 74 68 |... XT|extWidth|
|00004f50| 28 66 6f 6e 74 2c 20 70 | 77 62 75 66 2c 20 73 6c |(font, p|wbuf, sl|
|00004f60| 65 6e 29 2c 0a 09 09 09 | 20 20 20 66 6f 6e 74 2d |en),....| font-|
|00004f70| 3e 61 73 63 65 6e 74 20 | 2b 20 66 6f 6e 74 2d 3e |>ascent |+ font->|
|00004f80| 64 65 73 63 65 6e 74 29 | 3b 0a 09 20 20 20 20 58 |descent)|;.. X|
|00004f90| 44 72 61 77 53 74 72 69 | 6e 67 28 64 73 70 2c 20 |DrawStri|ng(dsp, |
|00004fa0| 77 2c 20 74 65 78 74 67 | 63 2c 20 70 61 73 73 78 |w, textg|c, passx|
|00004fb0| 2c 20 70 61 73 73 79 2c | 20 70 77 62 75 66 2c 20 |, passy,| pwbuf, |
|00004fc0| 62 70 29 3b 0a 09 20 20 | 20 20 62 72 65 61 6b 3b |bp);.. | break;|
|00004fd0| 0a 0a 09 63 61 73 65 20 | 42 75 74 74 6f 6e 50 72 |...case |ButtonPr|
|00004fe0| 65 73 73 3a 0a 09 20 20 | 20 20 69 66 20 28 28 28 |ess:.. | if (((|
|00004ff0| 58 42 75 74 74 6f 6e 45 | 76 65 6e 74 20 2a 29 20 |XButtonE|vent *) |
|00005000| 26 20 65 76 65 6e 74 29 | 2d 3e 77 69 6e 64 6f 77 |& event)|->window|
|00005010| 20 3d 3d 20 69 63 6f 6e | 29 20 7b 0a 09 09 6e 69 | == icon|) {...ni|
|00005020| 63 65 28 6e 69 63 65 6c | 65 76 65 6c 29 3b 0a 09 |ce(nicel|evel);..|
|00005030| 09 66 72 65 65 28 70 77 | 62 75 66 29 3b 0a 09 09 |.free(pw|buf);...|
|00005040| 72 65 74 75 72 6e 20 31 | 3b 0a 09 20 20 20 20 7d |return 1|;.. }|
|00005050| 0a 09 20 20 20 20 62 72 | 65 61 6b 3b 0a 0a 09 63 |.. br|eak;...c|
|00005060| 61 73 65 20 4b 65 79 52 | 65 6c 65 61 73 65 3a 0a |ase KeyR|elease:.|
|00005070| 09 63 61 73 65 20 42 75 | 74 74 6f 6e 52 65 6c 65 |.case Bu|ttonRele|
|00005080| 61 73 65 3a 0a 09 63 61 | 73 65 20 4d 6f 74 69 6f |ase:..ca|se Motio|
|00005090| 6e 4e 6f 74 69 66 79 3a | 0a 09 63 61 73 65 20 4c |nNotify:|..case L|
|000050a0| 65 61 76 65 4e 6f 74 69 | 66 79 3a 0a 09 63 61 73 |eaveNoti|fy:..cas|
|000050b0| 65 20 45 6e 74 65 72 4e | 6f 74 69 66 79 3a 0a 09 |e EnterN|otify:..|
|000050c0| 20 20 20 20 62 72 65 61 | 6b 3b 0a 0a 09 64 65 66 | brea|k;...def|
|000050d0| 61 75 6c 74 3a 0a 09 20 | 20 20 20 66 70 72 69 6e |ault:.. | fprin|
|000050e0| 74 66 28 73 74 64 65 72 | 72 2c 20 22 25 73 3a 20 |tf(stder|r, "%s: |
|000050f0| 75 6e 65 78 70 65 63 74 | 65 64 20 65 76 65 6e 74 |unexpect|ed event|
|00005100| 3a 20 25 64 5c 6e 22 2c | 20 70 6e 61 6d 65 2c 20 |: %d\n",| pname, |
|00005110| 65 76 65 6e 74 2e 74 79 | 70 65 29 3b 0a 09 20 20 |event.ty|pe);.. |
|00005120| 20 20 62 72 65 61 6b 3b | 0a 09 7d 0a 20 20 20 20 | break;|..}. |
|00005130| 7d 0a 7d 0a 0a 69 6e 74 | 0a 67 65 74 50 61 73 73 |}.}..int|.getPass|
|00005140| 77 6f 72 64 28 29 0a 7b | 0a 23 64 65 66 69 6e 65 |word().{|.#define|
|00005150| 20 50 41 53 53 4c 45 4e | 47 54 48 20 32 30 0a 20 | PASSLEN|GTH 20. |
|00005160| 20 20 20 63 68 61 72 09 | 62 75 66 66 65 72 5b 50 | char.|buffer[P|
|00005170| 41 53 53 4c 45 4e 47 54 | 48 5d 3b 0a 20 20 20 20 |ASSLENGT|H];. |
|00005180| 63 68 61 72 09 75 73 65 | 72 70 61 73 73 5b 50 41 |char.use|rpass[PA|
|00005190| 53 53 4c 45 4e 47 54 48 | 5d 3b 0a 20 20 20 20 63 |SSLENGTH|];. c|
|000051a0| 68 61 72 09 72 6f 6f 74 | 70 61 73 73 5b 50 41 53 |har.root|pass[PAS|
|000051b0| 53 4c 45 4e 47 54 48 5d | 3b 0a 20 20 20 20 73 74 |SLENGTH]|;. st|
|000051c0| 72 75 63 74 20 70 61 73 | 73 77 64 20 2a 70 77 3b |ruct pas|swd *pw;|
|000051d0| 0a 20 20 20 20 58 57 69 | 6e 64 6f 77 41 74 74 72 |. XWi|ndowAttr|
|000051e0| 69 62 75 74 65 73 20 78 | 67 77 61 3b 0a 20 20 20 |ibutes x|gwa;. |
|000051f0| 20 63 68 61 72 20 20 20 | 20 20 20 20 2a 75 73 65 | char | *use|
|00005200| 72 20 3d 20 67 65 74 65 | 6e 76 28 22 55 53 45 52 |r = gete|nv("USER|
|00005210| 22 29 3b 0a 20 20 20 20 | 63 68 61 72 20 20 20 20 |");. |char |
|00005220| 20 20 20 2a 6e 61 6d 65 | 20 3d 20 22 4e 61 6d 65 | *name| = "Name|
|00005230| 3a 20 22 3b 0a 20 20 20 | 20 63 68 61 72 20 20 20 |: ";. | char |
|00005240| 20 20 20 20 2a 70 61 73 | 73 20 3d 20 22 50 61 73 | *pas|s = "Pas|
|00005250| 73 77 6f 72 64 3a 20 22 | 3b 0a 20 20 20 20 63 68 |sword: "|;. ch|
|00005260| 61 72 20 20 20 20 20 20 | 20 2a 69 6e 66 6f 20 3d |ar | *info =|
|00005270| 20 22 45 6e 74 65 72 20 | 70 61 73 73 77 6f 72 64 | "Enter |password|
|00005280| 20 74 6f 20 75 6e 6c 6f | 63 6b 3b 20 73 65 6c 65 | to unlo|ck; sele|
|00005290| 63 74 20 69 63 6f 6e 20 | 74 6f 20 6c 6f 63 6b 2e |ct icon |to lock.|
|000052a0| 22 3b 0a 20 20 20 20 63 | 68 61 72 20 20 20 20 20 |";. c|har |
|000052b0| 20 20 2a 76 61 6c 69 64 | 61 74 65 20 3d 20 22 56 | *valid|ate = "V|
|000052c0| 61 6c 69 64 61 74 69 6e | 67 20 6c 6f 67 69 6e 2e |alidatin|g login.|
|000052d0| 2e 2e 22 3b 0a 20 20 20 | 20 63 68 61 72 20 20 20 |..";. | char |
|000052e0| 20 20 20 20 2a 69 6e 76 | 61 6c 69 64 20 3d 20 22 | *inv|alid = "|
|000052f0| 49 6e 76 61 6c 69 64 20 | 6c 6f 67 69 6e 2e 22 3b |Invalid |login.";|
|00005300| 0a 20 20 20 20 69 6e 74 | 09 09 79 2c 0a 09 09 6c |. int|..y,...l|
|00005310| 65 66 74 2c 0a 09 09 64 | 6f 6e 65 3b 0a 0a 20 20 |eft,...d|one;.. |
|00005320| 20 20 58 47 65 74 57 69 | 6e 64 6f 77 41 74 74 72 | XGetWi|ndowAttr|
|00005330| 69 62 75 74 65 73 28 64 | 73 70 2c 20 77 2c 20 26 |ibutes(d|sp, w, &|
|00005340| 78 67 77 61 29 3b 0a 0a | 20 20 20 20 58 43 68 61 |xgwa);..| XCha|
|00005350| 6e 67 65 47 72 61 62 62 | 65 64 43 75 72 73 6f 72 |ngeGrabb|edCursor|
|00005360| 28 58 43 72 65 61 74 65 | 46 6f 6e 74 43 75 72 73 |(XCreate|FontCurs|
|00005370| 6f 72 28 64 73 70 2c 20 | 58 43 5f 6c 65 66 74 5f |or(dsp, |XC_left_|
|00005380| 70 74 72 29 29 3b 0a 0a | 20 20 20 20 58 53 65 74 |ptr));..| XSet|
|00005390| 46 6f 72 65 67 72 6f 75 | 6e 64 28 64 73 70 2c 20 |Foregrou|nd(dsp, |
|000053a0| 67 63 2c 20 57 68 69 74 | 65 50 69 78 65 6c 28 64 |gc, Whit|ePixel(d|
|000053b0| 73 70 2c 20 73 63 72 65 | 65 6e 29 29 3b 0a 20 20 |sp, scre|en));. |
|000053c0| 20 20 58 46 69 6c 6c 52 | 65 63 74 61 6e 67 6c 65 | XFillR|ectangle|
|000053d0| 28 64 73 70 2c 20 77 2c | 20 67 63 2c 20 30 2c 20 |(dsp, w,| gc, 0, |
|000053e0| 30 2c 20 78 67 77 61 2e | 77 69 64 74 68 2c 20 78 |0, xgwa.|width, x|
|000053f0| 67 77 61 2e 68 65 69 67 | 68 74 29 3b 0a 0a 20 20 |gwa.heig|ht);.. |
|00005400| 20 20 58 4d 61 70 57 69 | 6e 64 6f 77 28 64 73 70 | XMapWi|ndow(dsp|
|00005410| 2c 20 69 63 6f 6e 29 3b | 0a 20 20 20 20 58 52 61 |, icon);|. XRa|
|00005420| 69 73 65 57 69 6e 64 6f | 77 28 64 73 70 2c 20 69 |iseWindo|w(dsp, i|
|00005430| 63 6f 6e 29 3b 0a 0a 20 | 20 20 20 6c 65 66 74 20 |con);.. | left |
|00005440| 3d 20 49 43 4f 4e 58 20 | 2b 20 49 43 4f 4e 57 20 |= ICONX |+ ICONW |
|00005450| 2b 20 66 6f 6e 74 2d 3e | 6d 61 78 5f 62 6f 75 6e |+ font->|max_boun|
|00005460| 64 73 2e 77 69 64 74 68 | 3b 0a 20 20 20 20 79 20 |ds.width|;. y |
|00005470| 3d 20 49 43 4f 4e 59 20 | 2b 20 66 6f 6e 74 2d 3e |= ICONY |+ font->|
|00005480| 61 73 63 65 6e 74 3b 0a | 0a 20 20 20 20 58 44 72 |ascent;.|. XDr|
|00005490| 61 77 53 74 72 69 6e 67 | 28 64 73 70 2c 20 77 2c |awString|(dsp, w,|
|000054a0| 20 74 65 78 74 67 63 2c | 20 6c 65 66 74 2c 20 79 | textgc,| left, y|
|000054b0| 2c 20 6e 61 6d 65 2c 20 | 73 74 72 6c 65 6e 28 6e |, name, |strlen(n|
|000054c0| 61 6d 65 29 29 3b 0a 20 | 20 20 20 58 44 72 61 77 |ame));. | XDraw|
|000054d0| 53 74 72 69 6e 67 28 64 | 73 70 2c 20 77 2c 20 74 |String(d|sp, w, t|
|000054e0| 65 78 74 67 63 2c 20 6c | 65 66 74 20 2b 20 31 2c |extgc, l|eft + 1,|
|000054f0| 20 79 2c 20 6e 61 6d 65 | 2c 20 73 74 72 6c 65 6e | y, name|, strlen|
|00005500| 28 6e 61 6d 65 29 29 3b | 0a 20 20 20 20 58 44 72 |(name));|. XDr|
|00005510| 61 77 53 74 72 69 6e 67 | 28 64 73 70 2c 20 77 2c |awString|(dsp, w,|
|00005520| 20 74 65 78 74 67 63 2c | 0a 09 09 6c 65 66 74 20 | textgc,|...left |
|00005530| 2b 20 58 54 65 78 74 57 | 69 64 74 68 28 66 6f 6e |+ XTextW|idth(fon|
|00005540| 74 2c 20 6e 61 6d 65 2c | 20 73 74 72 6c 65 6e 28 |t, name,| strlen(|
|00005550| 6e 61 6d 65 29 29 2c 20 | 79 2c 0a 09 09 75 73 65 |name)), |y,...use|
|00005560| 72 2c 20 73 74 72 6c 65 | 6e 28 75 73 65 72 29 29 |r, strle|n(user))|
|00005570| 3b 0a 0a 20 20 20 20 79 | 20 2b 3d 20 66 6f 6e 74 |;.. y| += font|
|00005580| 2d 3e 61 73 63 65 6e 74 | 20 2b 20 66 6f 6e 74 2d |->ascent| + font-|
|00005590| 3e 64 65 73 63 65 6e 74 | 20 2b 20 32 3b 0a 20 20 |>descent| + 2;. |
|000055a0| 20 20 58 44 72 61 77 53 | 74 72 69 6e 67 28 64 73 | XDrawS|tring(ds|
|000055b0| 70 2c 20 77 2c 20 74 65 | 78 74 67 63 2c 20 6c 65 |p, w, te|xtgc, le|
|000055c0| 66 74 2c 20 79 2c 20 70 | 61 73 73 2c 20 73 74 72 |ft, y, p|ass, str|
|000055d0| 6c 65 6e 28 70 61 73 73 | 29 29 3b 0a 20 20 20 20 |len(pass|));. |
|000055e0| 58 44 72 61 77 53 74 72 | 69 6e 67 28 64 73 70 2c |XDrawStr|ing(dsp,|
|000055f0| 20 77 2c 20 74 65 78 74 | 67 63 2c 20 6c 65 66 74 | w, text|gc, left|
|00005600| 20 2b 20 31 2c 20 79 2c | 20 70 61 73 73 2c 20 73 | + 1, y,| pass, s|
|00005610| 74 72 6c 65 6e 28 70 61 | 73 73 29 29 3b 0a 0a 20 |trlen(pa|ss));.. |
|00005620| 20 20 20 70 61 73 73 78 | 20 3d 20 6c 65 66 74 20 | passx| = left |
|00005630| 2b 20 31 20 2b 20 58 54 | 65 78 74 57 69 64 74 68 |+ 1 + XT|extWidth|
|00005640| 28 66 6f 6e 74 2c 20 70 | 61 73 73 2c 20 73 74 72 |(font, p|ass, str|
|00005650| 6c 65 6e 28 70 61 73 73 | 29 29 0a 09 2b 20 58 54 |len(pass|))..+ XT|
|00005660| 65 78 74 57 69 64 74 68 | 28 66 6f 6e 74 2c 20 22 |extWidth|(font, "|
|00005670| 20 22 2c 20 31 29 3b 0a | 20 20 20 20 70 61 73 73 | ", 1);.| pass|
|00005680| 79 20 3d 20 79 3b 0a 0a | 20 20 20 20 79 20 3d 20 |y = y;..| y = |
|00005690| 49 43 4f 4e 59 20 2b 20 | 49 43 4f 4e 48 20 2b 20 |ICONY + |ICONH + |
|000056a0| 66 6f 6e 74 2d 3e 61 73 | 63 65 6e 74 20 2b 20 32 |font->as|cent + 2|
|000056b0| 3b 0a 20 20 20 20 58 44 | 72 61 77 53 74 72 69 6e |;. XD|rawStrin|
|000056c0| 67 28 64 73 70 2c 20 77 | 2c 20 74 65 78 74 67 63 |g(dsp, w|, textgc|
|000056d0| 2c 20 49 43 4f 4e 58 2c | 20 79 2c 20 69 6e 66 6f |, ICONX,| y, info|
|000056e0| 2c 20 73 74 72 6c 65 6e | 28 69 6e 66 6f 29 29 3b |, strlen|(info));|
|000056f0| 0a 0a 20 20 20 20 58 46 | 6c 75 73 68 28 64 73 70 |.. XF|lush(dsp|
|00005700| 29 3b 0a 0a 20 20 20 20 | 79 20 2b 3d 20 66 6f 6e |);.. |y += fon|
|00005710| 74 2d 3e 61 73 63 65 6e | 74 20 2b 20 66 6f 6e 74 |t->ascen|t + font|
|00005720| 2d 3e 64 65 73 63 65 6e | 74 20 2b 20 32 3b 0a 0a |->descen|t + 2;..|
|00005730| 20 20 20 20 70 77 20 3d | 20 67 65 74 70 77 75 69 | pw =| getpwui|
|00005740| 64 28 30 29 3b 0a 20 20 | 20 20 73 74 72 63 70 79 |d(0);. | strcpy|
|00005750| 28 72 6f 6f 74 70 61 73 | 73 2c 20 70 77 2d 3e 70 |(rootpas|s, pw->p|
|00005760| 77 5f 70 61 73 73 77 64 | 29 3b 0a 0a 20 20 20 20 |w_passwd|);.. |
|00005770| 70 77 20 3d 20 67 65 74 | 70 77 75 69 64 28 67 65 |pw = get|pwuid(ge|
|00005780| 74 75 69 64 28 29 29 3b | 0a 20 20 20 20 73 74 72 |tuid());|. str|
|00005790| 63 70 79 28 75 73 65 72 | 70 61 73 73 2c 20 70 77 |cpy(user|pass, pw|
|000057a0| 2d 3e 70 77 5f 70 61 73 | 73 77 64 29 3b 0a 0a 20 |->pw_pas|swd);.. |
|000057b0| 20 20 20 64 6f 6e 65 20 | 3d 20 46 61 6c 73 65 3b | done |= False;|
|000057c0| 0a 20 20 20 20 77 68 69 | 6c 65 20 28 21 64 6f 6e |. whi|le (!don|
|000057d0| 65 29 20 7b 0a 0a 09 69 | 66 20 28 52 65 61 64 58 |e) {...i|f (ReadX|
|000057e0| 53 74 72 69 6e 67 28 62 | 75 66 66 65 72 2c 20 50 |String(b|uffer, P|
|000057f0| 41 53 53 4c 45 4e 47 54 | 48 29 29 20 7b 0a 09 20 |ASSLENGT|H)) {.. |
|00005800| 20 20 20 58 43 68 61 6e | 67 65 47 72 61 62 62 65 | XChan|geGrabbe|
|00005810| 64 43 75 72 73 6f 72 28 | 6d 79 63 75 72 73 6f 72 |dCursor(|mycursor|
|00005820| 29 3b 0a 09 20 20 20 20 | 58 55 6e 6d 61 70 57 69 |);.. |XUnmapWi|
|00005830| 6e 64 6f 77 28 64 73 70 | 2c 20 69 63 6f 6e 29 3b |ndow(dsp|, icon);|
|00005840| 0a 09 20 20 20 20 58 53 | 65 74 46 6f 72 65 67 72 |.. XS|etForegr|
|00005850| 6f 75 6e 64 28 64 73 70 | 2c 20 67 63 2c 20 57 68 |ound(dsp|, gc, Wh|
|00005860| 69 74 65 50 69 78 65 6c | 28 64 73 70 2c 20 73 63 |itePixel|(dsp, sc|
|00005870| 72 65 65 6e 29 29 3b 0a | 09 20 20 20 20 72 65 74 |reen));.|. ret|
|00005880| 75 72 6e 20 31 3b 0a 09 | 7d 0a 09 58 53 65 74 46 |urn 1;..|}..XSetF|
|00005890| 6f 72 65 67 72 6f 75 6e | 64 28 64 73 70 2c 20 67 |oregroun|d(dsp, g|
|000058a0| 63 2c 20 57 68 69 74 65 | 50 69 78 65 6c 28 64 73 |c, White|Pixel(ds|
|000058b0| 70 2c 20 73 63 72 65 65 | 6e 29 29 3b 0a 09 58 46 |p, scree|n));..XF|
|000058c0| 69 6c 6c 52 65 63 74 61 | 6e 67 6c 65 28 64 73 70 |illRecta|ngle(dsp|
|000058d0| 2c 20 77 2c 20 67 63 2c | 20 49 43 4f 4e 58 2c 20 |, w, gc,| ICONX, |
|000058e0| 79 20 2d 20 66 6f 6e 74 | 2d 3e 61 73 63 65 6e 74 |y - font|->ascent|
|000058f0| 2c 0a 09 09 20 20 20 20 | 20 20 20 58 54 65 78 74 |,... | XText|
|00005900| 57 69 64 74 68 28 66 6f | 6e 74 2c 20 76 61 6c 69 |Width(fo|nt, vali|
|00005910| 64 61 74 65 2c 20 73 74 | 72 6c 65 6e 28 76 61 6c |date, st|rlen(val|
|00005920| 69 64 61 74 65 29 29 2c | 0a 09 09 20 20 20 20 20 |idate)),|... |
|00005930| 20 20 66 6f 6e 74 2d 3e | 61 73 63 65 6e 74 20 2b | font->|ascent +|
|00005940| 20 66 6f 6e 74 2d 3e 64 | 65 73 63 65 6e 74 20 2b | font->d|escent +|
|00005950| 20 32 29 3b 0a 0a 09 58 | 44 72 61 77 53 74 72 69 | 2);...X|DrawStri|
|00005960| 6e 67 28 64 73 70 2c 20 | 77 2c 20 74 65 78 74 67 |ng(dsp, |w, textg|
|00005970| 63 2c 20 49 43 4f 4e 58 | 2c 20 79 2c 20 76 61 6c |c, ICONX|, y, val|
|00005980| 69 64 61 74 65 2c 20 73 | 74 72 6c 65 6e 28 76 61 |idate, s|trlen(va|
|00005990| 6c 69 64 61 74 65 29 29 | 3b 0a 0a 09 64 6f 6e 65 |lidate))|;...done|
|000059a0| 20 3d 20 21 28 28 73 74 | 72 63 6d 70 28 63 72 79 | = !((st|rcmp(cry|
|000059b0| 70 74 28 62 75 66 66 65 | 72 2c 20 75 73 65 72 70 |pt(buffe|r, userp|
|000059c0| 61 73 73 29 2c 20 75 73 | 65 72 70 61 73 73 29 29 |ass), us|erpass))|
|000059d0| 0a 09 09 20 26 26 20 28 | 73 6b 69 70 52 6f 6f 74 |... && (|skipRoot|
|000059e0| 20 7c 7c 20 73 74 72 63 | 6d 70 28 63 72 79 70 74 | || strc|mp(crypt|
|000059f0| 28 62 75 66 66 65 72 2c | 20 72 6f 6f 74 70 61 73 |(buffer,| rootpas|
|00005a00| 73 29 2c 20 72 6f 6f 74 | 70 61 73 73 29 29 29 3b |s), root|pass)));|
|00005a10| 0a 0a 09 69 66 20 28 21 | 64 6f 6e 65 29 20 7b 0a |...if (!|done) {.|
|00005a20| 09 20 20 20 20 58 46 6c | 75 73 68 28 64 73 70 29 |. XFl|ush(dsp)|
|00005a30| 3b 0a 09 20 20 20 20 73 | 6c 65 65 70 28 31 29 3b |;.. s|leep(1);|
|00005a40| 0a 09 20 20 20 20 58 46 | 69 6c 6c 52 65 63 74 61 |.. XF|illRecta|
|00005a50| 6e 67 6c 65 28 64 73 70 | 2c 20 77 2c 20 67 63 2c |ngle(dsp|, w, gc,|
|00005a60| 20 49 43 4f 4e 58 2c 20 | 79 20 2d 20 66 6f 6e 74 | ICONX, |y - font|
|00005a70| 2d 3e 61 73 63 65 6e 74 | 2c 0a 09 09 09 20 20 20 |->ascent|,.... |
|00005a80| 58 54 65 78 74 57 69 64 | 74 68 28 66 6f 6e 74 2c |XTextWid|th(font,|
|00005a90| 20 76 61 6c 69 64 61 74 | 65 2c 20 73 74 72 6c 65 | validat|e, strle|
|00005aa0| 6e 28 76 61 6c 69 64 61 | 74 65 29 29 2c 0a 09 09 |n(valida|te)),...|
|00005ab0| 09 20 20 20 66 6f 6e 74 | 2d 3e 61 73 63 65 6e 74 |. font|->ascent|
|00005ac0| 20 2b 20 66 6f 6e 74 2d | 3e 64 65 73 63 65 6e 74 | + font-|>descent|
|00005ad0| 20 2b 20 32 29 3b 0a 0a | 09 20 20 20 20 58 44 72 | + 2);..|. XDr|
|00005ae0| 61 77 53 74 72 69 6e 67 | 28 64 73 70 2c 20 77 2c |awString|(dsp, w,|
|00005af0| 20 74 65 78 74 67 63 2c | 20 49 43 4f 4e 58 2c 20 | textgc,| ICONX, |
|00005b00| 79 2c 20 69 6e 76 61 6c | 69 64 2c 20 73 74 72 6c |y, inval|id, strl|
|00005b10| 65 6e 28 69 6e 76 61 6c | 69 64 29 29 3b 0a 09 7d |en(inval|id));..}|
|00005b20| 0a 20 20 20 20 7d 0a 20 | 20 20 20 72 65 74 75 72 |. }. | retur|
|00005b30| 6e 20 30 3b 0a 7d 0a 0a | 76 6f 69 64 0a 6a 75 73 |n 0;.}..|void.jus|
|00005b40| 74 44 69 73 70 6c 61 79 | 28 29 0a 7b 0a 20 20 20 |tDisplay|().{. |
|00005b50| 20 58 45 76 65 6e 74 09 | 65 76 65 6e 74 3b 0a 0a | XEvent.|event;..|
|00005b60| 20 20 20 20 69 6e 69 74 | 28 64 73 70 2c 20 77 2c | init|(dsp, w,|
|00005b70| 20 67 63 2c 20 63 6f 6c | 6f 72 2c 20 69 6e 69 74 | gc, col|or, init|
|00005b80| 74 69 6d 65 2c 20 63 6f | 75 6e 74 29 3b 0a 20 20 |time, co|unt);. |
|00005b90| 20 20 64 6f 20 7b 0a 09 | 77 68 69 6c 65 20 28 21 | do {..|while (!|
|00005ba0| 58 50 65 6e 64 69 6e 67 | 28 64 73 70 29 29 20 7b |XPending|(dsp)) {|
|00005bb0| 0a 09 20 20 20 20 63 61 | 6c 6c 62 61 63 6b 28 29 |.. ca|llback()|
|00005bc0| 3b 0a 09 20 20 20 20 69 | 66 20 28 72 65 69 6e 69 |;.. i|f (reini|
|00005bd0| 74 28 29 29 0a 09 09 69 | 6e 69 74 28 64 73 70 2c |t())...i|nit(dsp,|
|00005be0| 20 77 2c 20 67 63 2c 20 | 63 6f 6c 6f 72 2c 20 69 | w, gc, |color, i|
|00005bf0| 6e 69 74 74 69 6d 65 2c | 20 63 6f 75 6e 74 29 3b |nittime,| count);|
|00005c00| 0a 09 7d 0a 09 58 4e 65 | 78 74 45 76 65 6e 74 28 |..}..XNe|xtEvent(|
|00005c10| 64 73 70 2c 20 26 65 76 | 65 6e 74 29 3b 0a 20 20 |dsp, &ev|ent);. |
|00005c20| 20 20 7d 20 77 68 69 6c | 65 20 28 65 76 65 6e 74 | } whil|e (event|
|00005c30| 2e 74 79 70 65 20 21 3d | 20 42 75 74 74 6f 6e 50 |.type !=| ButtonP|
|00005c40| 72 65 73 73 20 26 26 20 | 65 76 65 6e 74 2e 74 79 |ress && |event.ty|
|00005c50| 70 65 20 21 3d 20 4b 65 | 79 50 72 65 73 73 29 3b |pe != Ke|yPress);|
|00005c60| 0a 7d 0a 0a 76 6f 69 64 | 0a 6c 6f 63 6b 44 69 73 |.}..void|.lockDis|
|00005c70| 70 6c 61 79 28 29 0a 7b | 0a 20 20 20 20 64 6f 20 |play().{|. do |
|00005c80| 7b 0a 09 6a 75 73 74 44 | 69 73 70 6c 61 79 28 29 |{..justD|isplay()|
|00005c90| 3b 0a 20 20 20 20 7d 20 | 77 68 69 6c 65 20 28 67 |;. } |while (g|
|00005ca0| 65 74 50 61 73 73 77 6f | 72 64 28 29 29 3b 0a 7d |etPasswo|rd());.}|
|00005cb0| 0a 0a 76 6f 69 64 0a 75 | 73 61 67 65 28 73 29 0a |..void.u|sage(s).|
|00005cc0| 20 20 20 20 63 68 61 72 | 20 20 20 20 20 20 20 2a | char| *|
|00005cd0| 73 3b 0a 7b 0a 20 20 20 | 20 69 6e 74 09 09 69 3b |s;.{. | int..i;|
|00005ce0| 0a 0a 20 20 20 20 66 70 | 72 69 6e 74 66 28 73 74 |.. fp|rintf(st|
|00005cf0| 64 65 72 72 2c 20 22 25 | 73 5c 6e 75 73 61 67 65 |derr, "%|s\nusage|
|00005d00| 3a 20 25 73 20 5b 2d 64 | 69 73 70 6c 61 79 20 64 |: %s [-d|isplay d|
|00005d10| 73 70 5d 20 5b 2d 6d 6f | 64 65 20 25 73 22 2c 0a |sp] [-mo|de %s",.|
|00005d20| 09 20 20 20 20 73 2c 20 | 70 6e 61 6d 65 2c 20 4c |. s, |pname, L|
|00005d30| 6f 63 6b 50 72 6f 63 73 | 5b 30 5d 2e 63 6d 64 6c |ockProcs|[0].cmdl|
|00005d40| 69 6e 65 5f 61 72 67 29 | 3b 0a 20 20 20 20 66 6f |ine_arg)|;. fo|
|00005d50| 72 20 28 69 20 3d 20 31 | 3b 20 69 20 3c 20 4e 55 |r (i = 1|; i < NU|
|00005d60| 4d 50 52 4f 43 53 3b 20 | 69 2b 2b 29 0a 09 66 70 |MPROCS; |i++)..fp|
|00005d70| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 20 |rintf(st|derr, " |
|00005d80| 7c 20 25 73 22 2c 20 4c | 6f 63 6b 50 72 6f 63 73 || %s", L|ockProcs|
|00005d90| 5b 69 5d 2e 63 6d 64 6c | 69 6e 65 5f 61 72 67 29 |[i].cmdl|ine_arg)|
|00005da0| 3b 0a 20 20 20 20 66 70 | 72 69 6e 74 66 28 73 74 |;. fp|rintf(st|
|00005db0| 64 65 72 72 2c 20 22 5d | 5c 6e 22 29 3b 0a 20 20 |derr, "]|\n");. |
|00005dc0| 20 20 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 | fprint|f(stderr|
|00005dd0| 2c 20 22 5c 74 25 73 20 | 25 73 5c 6e 22 2c 0a 09 |, "\t%s |%s\n",..|
|00005de0| 20 20 20 20 22 5b 2d 74 | 69 6d 65 20 6e 5d 20 5b | "[-t|ime n] [|
|00005df0| 2d 63 6f 75 6e 74 20 6e | 5d 20 5b 2d 6e 69 63 65 |-count n|] [-nice|
|00005e00| 20 6e 5d 22 2c 0a 09 20 | 20 20 20 22 5b 2d 66 6f | n]",.. | "[-fo|
|00005e10| 6e 74 20 66 5d 20 5b 2d | 6d 6f 6e 6f 5d 20 5b 2d |nt f] [-|mono] [-|
|00005e20| 73 61 76 65 72 5d 20 5b | 2d 72 6f 6f 74 5d 20 5b |saver] [|-root] [|
|00005e30| 2d 76 5d 22 29 3b 0a 20 | 20 20 20 65 78 69 74 28 |-v]");. | exit(|
|00005e40| 31 29 3b 0a 7d 0a 0a 76 | 6f 69 64 0a 42 75 69 6c |1);.}..v|oid.Buil|
|00005e50| 64 50 6f 69 6e 74 65 72 | 73 46 72 6f 6d 53 74 72 |dPointer|sFromStr|
|00005e60| 69 6e 67 28 73 29 0a 20 | 20 20 20 63 68 61 72 20 |ing(s). | char |
|00005e70| 20 20 20 20 20 20 2a 73 | 3b 0a 7b 0a 20 20 20 20 | *s|;.{. |
|00005e80| 69 6e 74 09 09 69 3b 0a | 0a 20 20 20 20 66 6f 72 |int..i;.|. for|
|00005e90| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 20 4e 55 4d | (i = 0;| i < NUM|
|00005ea0| 50 52 4f 43 53 3b 20 69 | 2b 2b 29 20 7b 0a 09 69 |PROCS; i|++) {..i|
|00005eb0| 66 20 28 21 73 74 72 6e | 63 6d 70 28 4c 6f 63 6b |f (!strn|cmp(Lock|
|00005ec0| 50 72 6f 63 73 5b 69 5d | 2e 63 6d 64 6c 69 6e 65 |Procs[i]|.cmdline|
|00005ed0| 5f 61 72 67 2c 20 73 2c | 20 73 74 72 6c 65 6e 28 |_arg, s,| strlen(|
|00005ee0| 73 29 29 29 20 7b 0a 09 | 20 20 20 20 72 65 69 6e |s))) {..| rein|
|00005ef0| 69 74 20 3d 20 4c 6f 63 | 6b 50 72 6f 63 73 5b 69 |it = Loc|kProcs[i|
|00005f00| 5d 2e 6c 70 5f 72 65 69 | 6e 69 74 3b 0a 09 20 20 |].lp_rei|nit;.. |
|00005f10| 20 20 63 61 6c 6c 62 61 | 63 6b 20 3d 20 4c 6f 63 | callba|ck = Loc|
|00005f20| 6b 50 72 6f 63 73 5b 69 | 5d 2e 6c 70 5f 63 61 6c |kProcs[i|].lp_cal|
|00005f30| 6c 62 61 63 6b 3b 0a 09 | 20 20 20 20 69 6e 69 74 |lback;..| init|
|00005f40| 20 3d 20 4c 6f 63 6b 50 | 72 6f 63 73 5b 69 5d 2e | = LockP|rocs[i].|
|00005f50| 6c 70 5f 69 6e 69 74 3b | 0a 09 20 20 20 20 69 66 |lp_init;|.. if|
|00005f60| 20 28 76 65 72 62 6f 73 | 65 29 0a 09 09 66 70 72 | (verbos|e)...fpr|
|00005f70| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 4d 6f |intf(std|err, "Mo|
|00005f80| 64 65 3a 20 25 73 5c 6e | 22 2c 20 73 29 3b 0a 09 |de: %s\n|", s);..|
|00005f90| 20 20 20 20 72 65 74 75 | 72 6e 3b 0a 09 7d 0a 20 | retu|rn;..}. |
|00005fa0| 20 20 20 7d 0a 20 20 20 | 20 75 73 61 67 65 28 22 | }. | usage("|
|00005fb0| 55 6e 6b 6e 6f 77 6e 20 | 4d 6f 64 65 2e 22 29 3b |Unknown |Mode.");|
|00005fc0| 0a 7d 0a 0a 6d 61 69 6e | 28 61 72 67 63 2c 20 61 |.}..main|(argc, a|
|00005fd0| 72 67 76 29 0a 20 20 20 | 20 69 6e 74 09 09 61 72 |rgv). | int..ar|
|00005fe0| 67 63 3b 0a 20 20 20 20 | 63 68 61 72 20 20 20 20 |gc;. |char |
|00005ff0| 20 20 20 2a 61 72 67 76 | 5b 5d 3b 0a 7b 0a 20 20 | *argv|[];.{. |
|00006000| 20 20 58 53 65 74 57 69 | 6e 64 6f 77 41 74 74 72 | XSetWi|ndowAttr|
|00006010| 69 62 75 74 65 73 20 78 | 73 77 61 3b 0a 20 20 20 |ibutes x|swa;. |
|00006020| 20 58 47 43 56 61 6c 75 | 65 73 09 78 67 63 76 3b | XGCValu|es.xgcv;|
|00006030| 0a 20 20 20 20 69 6e 74 | 09 09 69 3b 0a 20 20 20 |. int|..i;. |
|00006040| 20 63 68 61 72 20 20 20 | 20 20 20 20 2a 73 3b 0a | char | *s;.|
|00006050| 20 20 20 20 69 6e 74 09 | 09 6e 3b 0a 0a 20 20 20 | int.|.n;.. |
|00006060| 20 70 6e 61 6d 65 20 3d | 20 61 72 67 76 5b 30 5d | pname =| argv[0]|
|00006070| 3b 0a 20 20 20 20 63 6f | 6c 6f 72 20 3d 20 54 72 |;. co|lor = Tr|
|00006080| 75 65 3b 0a 20 20 20 20 | 6c 6f 63 6b 20 3d 20 54 |ue;. |lock = T|
|00006090| 72 75 65 3b 0a 20 20 20 | 20 73 6b 69 70 52 6f 6f |rue;. | skipRoo|
|000060a0| 74 20 3d 20 2d 31 3b 0a | 0a 20 20 20 20 66 6f 72 |t = -1;.|. for|
|000060b0| 20 28 69 20 3d 20 31 3b | 20 69 20 3c 20 61 72 67 | (i = 1;| i < arg|
|000060c0| 63 3b 20 69 2b 2b 29 20 | 7b 0a 09 73 20 3d 20 61 |c; i++) |{..s = a|
|000060d0| 72 67 76 5b 69 5d 3b 0a | 09 6e 20 3d 20 73 74 72 |rgv[i];.|.n = str|
|000060e0| 6c 65 6e 28 73 29 3b 0a | 09 69 66 20 28 21 73 74 |len(s);.|.if (!st|
|000060f0| 72 6e 63 6d 70 28 22 2d | 64 69 73 70 6c 61 79 22 |rncmp("-|display"|
|00006100| 2c 20 73 2c 20 6e 29 29 | 20 7b 0a 09 20 20 20 20 |, s, n))| {.. |
|00006110| 69 66 20 28 2b 2b 69 20 | 3e 3d 20 61 72 67 63 29 |if (++i |>= argc)|
|00006120| 0a 09 09 75 73 61 67 65 | 28 73 29 3b 0a 09 20 20 |...usage|(s);.. |
|00006130| 20 20 64 69 73 70 6c 61 | 79 20 3d 20 61 72 67 76 | displa|y = argv|
|00006140| 5b 69 5d 3b 0a 09 7d 20 | 65 6c 73 65 20 69 66 20 |[i];..} |else if |
|00006150| 28 21 73 74 72 6e 63 6d | 70 28 22 2d 6d 6f 6e 6f |(!strncm|p("-mono|
|00006160| 22 2c 20 73 2c 20 6e 29 | 29 20 7b 0a 09 20 20 20 |", s, n)|) {.. |
|00006170| 20 63 6f 6c 6f 72 20 3d | 20 46 61 6c 73 65 3b 0a | color =| False;.|
|00006180| 09 7d 20 65 6c 73 65 20 | 69 66 20 28 21 73 74 72 |.} else |if (!str|
|00006190| 6e 63 6d 70 28 22 2d 73 | 61 76 65 72 22 2c 20 73 |ncmp("-s|aver", s|
|000061a0| 2c 20 6e 29 29 20 7b 0a | 09 20 20 20 20 6c 6f 63 |, n)) {.|. loc|
|000061b0| 6b 20 3d 20 46 61 6c 73 | 65 3b 0a 09 7d 20 65 6c |k = Fals|e;..} el|
|000061c0| 73 65 20 69 66 20 28 21 | 73 74 72 6e 63 6d 70 28 |se if (!|strncmp(|
|000061d0| 22 2d 72 6f 6f 74 22 2c | 20 73 2c 20 6e 29 29 20 |"-root",| s, n)) |
|000061e0| 7b 0a 09 20 20 20 20 73 | 6b 69 70 52 6f 6f 74 20 |{.. s|kipRoot |
|000061f0| 3d 20 46 61 6c 73 65 3b | 0a 09 7d 20 65 6c 73 65 |= False;|..} else|
|00006200| 20 69 66 20 28 21 73 74 | 72 6e 63 6d 70 28 22 2d | if (!st|rncmp("-|
|00006210| 76 65 72 62 6f 73 65 22 | 2c 20 73 2c 20 6e 29 29 |verbose"|, s, n))|
|00006220| 20 7b 0a 09 20 20 20 20 | 76 65 72 62 6f 73 65 20 | {.. |verbose |
|00006230| 3d 20 54 72 75 65 3b 0a | 09 7d 20 65 6c 73 65 20 |= True;.|.} else |
|00006240| 69 66 20 28 21 73 74 72 | 6e 63 6d 70 28 22 2d 74 |if (!str|ncmp("-t|
|00006250| 69 6d 65 22 2c 20 73 2c | 20 6e 29 29 20 7b 0a 09 |ime", s,| n)) {..|
|00006260| 20 20 20 20 69 66 20 28 | 2b 2b 69 20 3e 3d 20 61 | if (|++i >= a|
|00006270| 72 67 63 29 0a 09 09 75 | 73 61 67 65 28 73 29 3b |rgc)...u|sage(s);|
|00006280| 0a 09 20 20 20 20 69 6e | 69 74 74 69 6d 65 20 3d |.. in|ittime =|
|00006290| 20 61 74 6f 69 28 61 72 | 67 76 5b 69 5d 29 3b 0a | atoi(ar|gv[i]);.|
|000062a0| 09 20 20 20 20 69 66 20 | 28 69 6e 69 74 74 69 6d |. if |(inittim|
|000062b0| 65 20 3c 20 31 29 0a 09 | 09 75 73 61 67 65 28 22 |e < 1)..|.usage("|
|000062c0| 2d 74 69 6d 65 20 61 72 | 67 75 6d 65 6e 74 20 6d |-time ar|gument m|
|000062d0| 75 73 74 20 62 65 20 70 | 6f 73 69 74 69 76 65 2e |ust be p|ositive.|
|000062e0| 22 29 3b 0a 09 7d 20 65 | 6c 73 65 20 69 66 20 28 |");..} e|lse if (|
|000062f0| 21 73 74 72 6e 63 6d 70 | 28 22 2d 63 6f 75 6e 74 |!strncmp|("-count|
|00006300| 22 2c 20 73 2c 20 6e 29 | 29 20 7b 0a 09 20 20 20 |", s, n)|) {.. |
|00006310| 20 69 66 20 28 2b 2b 69 | 20 3e 3d 20 61 72 67 63 | if (++i| >= argc|
|00006320| 29 0a 09 09 75 73 61 67 | 65 28 73 29 3b 0a 09 20 |)...usag|e(s);.. |
|00006330| 20 20 20 63 6f 75 6e 74 | 20 3d 20 61 74 6f 69 28 | count| = atoi(|
|00006340| 61 72 67 76 5b 69 5d 29 | 3b 0a 09 20 20 20 20 69 |argv[i])|;.. i|
|00006350| 66 20 28 63 6f 75 6e 74 | 20 3c 20 31 29 0a 09 09 |f (count| < 1)...|
|00006360| 75 73 61 67 65 28 22 2d | 63 6f 75 6e 74 20 61 72 |usage("-|count ar|
|00006370| 67 75 6d 65 6e 74 20 6d | 75 73 74 20 62 65 20 70 |gument m|ust be p|
|00006380| 6f 73 69 74 69 76 65 2e | 5c 6e 22 29 3b 0a 09 7d |ositive.|\n");..}|
|00006390| 20 65 6c 73 65 20 69 66 | 20 28 21 73 74 72 6e 63 | else if| (!strnc|
|000063a0| 6d 70 28 22 2d 6e 69 63 | 65 22 2c 20 73 2c 20 6e |mp("-nic|e", s, n|
|000063b0| 29 29 20 7b 0a 09 20 20 | 20 20 69 66 20 28 2b 2b |)) {.. | if (++|
|000063c0| 69 20 3e 3d 20 61 72 67 | 63 29 0a 09 09 75 73 61 |i >= arg|c)...usa|
|000063d0| 67 65 28 73 29 3b 0a 09 | 20 20 20 20 6e 69 63 65 |ge(s);..| nice|
|000063e0| 6c 65 76 65 6c 20 3d 20 | 61 74 6f 69 28 61 72 67 |level = |atoi(arg|
|000063f0| 76 5b 69 5d 29 3b 0a 09 | 7d 20 65 6c 73 65 20 69 |v[i]);..|} else i|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.