home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / disk-man / eject-1.3 / eject-1
Tape Archive  |  1996-07-12  |  40.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: eject-1

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory eject-1.3/, mode 40755 , uid 765 , gid 144 , size 0 , seconds 6171220672, user bgallia, group users default
98% file data default
62% TrID TAR - Tape ARchive (GNU) default
37% TrID TAR - Tape ARchive (directory) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU), owner user name: "3/" default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 65 6a 65 63 74 2d 31 2e | 33 2f 00 00 00 00 00 00 |eject-1.|3/......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 37 |.... 407|55 . 7|
|00000070| 36 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |65 . 1|44 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 36 31 37 31 32 32 30 | 0 | 6171220|
|00000090| 36 37 32 20 20 31 31 33 | 35 35 00 20 35 00 00 00 |672 113|55. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 62 67 61 6c 6c 69 61 |.ustar |.bgallia|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 65 6a 65 63 74 2d 31 2e | 33 2f 65 6a 65 63 74 2e |eject-1.|3/eject.|
|00000210| 31 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |1.......|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 37 |....1006|44 . 7|
|00000270| 36 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |65 . 1|44 . |
|00000280| 20 20 20 37 31 34 34 20 | 20 36 31 37 31 32 32 31 | 7144 | 6171221|
|00000290| 33 37 30 20 20 31 32 36 | 33 30 00 20 30 00 00 00 |370 126|30. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 62 67 61 6c 6c 69 61 |.ustar |.bgallia|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 2e 5c 22 20 54 68 69 73 | 20 66 69 6c 65 20 43 6f |.\" This| file Co|
|00000410| 70 79 72 69 67 68 74 20 | 28 43 29 20 31 39 39 34 |pyright |(C) 1994|
|00000420| 2d 39 35 20 4a 65 66 66 | 20 54 72 61 6e 74 65 72 |-95 Jeff| Tranter|
|00000430| 0a 2e 5c 22 20 28 4a 65 | 66 66 5f 54 72 61 6e 74 |..\" (Je|ff_Trant|
|00000440| 65 72 40 4d 69 74 65 6c | 2e 43 4f 4d 29 0a 2e 5c |er@Mitel|.COM)..\|
|00000450| 22 20 49 74 20 6d 61 79 | 20 62 65 20 64 69 73 74 |" It may| be dist|
|00000460| 72 69 62 75 74 65 64 20 | 75 6e 64 65 72 20 74 68 |ributed |under th|
|00000470| 65 20 47 4e 55 20 50 75 | 62 6c 69 63 20 4c 69 63 |e GNU Pu|blic Lic|
|00000480| 65 6e 73 65 2c 20 76 65 | 72 73 69 6f 6e 20 32 2c |ense, ve|rsion 2,|
|00000490| 20 6f 72 0a 2e 5c 22 20 | 61 6e 79 20 68 69 67 68 | or..\" |any high|
|000004a0| 65 72 20 76 65 72 73 69 | 6f 6e 2e 20 20 53 65 65 |er versi|on. See|
|000004b0| 20 73 65 63 74 69 6f 6e | 20 43 4f 50 59 49 4e 47 | section| COPYING|
|000004c0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 50 75 62 6c | of the |GNU Publ|
|000004d0| 69 63 20 6c 69 63 65 6e | 73 65 0a 2e 5c 22 20 66 |ic licen|se..\" f|
|000004e0| 6f 72 20 63 6f 6e 64 69 | 74 69 6f 6e 73 20 75 6e |or condi|tions un|
|000004f0| 64 65 72 20 77 68 69 63 | 68 20 74 68 69 73 20 66 |der whic|h this f|
|00000500| 69 6c 65 20 6d 61 79 20 | 62 65 20 72 65 64 69 73 |ile may |be redis|
|00000510| 74 72 69 62 75 74 65 64 | 2e 0a 2e 54 48 20 45 4a |tributed|...TH EJ|
|00000520| 45 43 54 20 31 20 22 31 | 36 20 44 65 63 65 6d 62 |ECT 1 "1|6 Decemb|
|00000530| 65 72 20 31 39 39 34 22 | 20 22 4c 69 6e 75 78 22 |er 1994"| "Linux"|
|00000540| 20 22 55 73 65 72 20 43 | 6f 6d 6d 61 6e 64 73 22 | "User C|ommands"|
|00000550| 0a 2e 53 48 20 4e 41 4d | 45 0a 65 6a 65 63 74 20 |..SH NAM|E.eject |
|00000560| 5c 2d 20 65 6a 65 63 74 | 20 43 44 2d 52 4f 4d 20 |\- eject| CD-ROM |
|00000570| 64 69 73 63 20 66 72 6f | 6d 20 64 72 69 76 65 0a |disc fro|m drive.|
|00000580| 2e 53 48 20 53 59 4e 4f | 50 53 49 53 0a 0a 65 6a |.SH SYNO|PSIS..ej|
|00000590| 65 63 74 20 5b 2d 66 5d | 5b 2d 75 5d 5b 2d 76 5d |ect [-f]|[-u][-v]|
|000005a0| 0a 2e 62 72 0a 65 6a 65 | 63 74 20 5b 2d 66 5d 5b |..br.eje|ct [-f][|
|000005b0| 2d 75 5d 5b 2d 76 5d 20 | 3c 6e 69 63 6b 6e 61 6d |-u][-v] |<nicknam|
|000005c0| 65 3e 0a 2e 62 72 0a 65 | 6a 65 63 74 20 5b 2d 66 |e>..br.e|ject [-f|
|000005d0| 5d 5b 2d 75 5d 5b 2d 76 | 5d 20 3c 64 65 76 69 63 |][-u][-v|] <devic|
|000005e0| 65 2d 6e 61 6d 65 3e 0a | 2e 62 72 0a 65 6a 65 63 |e-name>.|.br.ejec|
|000005f0| 74 20 2d 64 0a 2e 62 72 | 0a 65 6a 65 63 74 20 2d |t -d..br|.eject -|
|00000600| 6e 0a 2e 62 72 0a 65 6a | 65 63 74 20 2d 61 20 6f |n..br.ej|ect -a o|
|00000610| 6e 7c 31 7c 6f 66 66 7c | 30 20 5b 2d 76 5d 0a 2e |n|1|off||0 [-v]..|
|00000620| 62 72 0a 65 6a 65 63 74 | 20 2d 63 20 3c 73 6c 6f |br.eject| -c <slo|
|00000630| 74 3e 20 5b 2d 76 5d 0a | 0a 2e 53 48 20 44 45 53 |t> [-v].|..SH DES|
|00000640| 43 52 49 50 54 49 4f 4e | 0a 0a 2e 42 20 45 6a 65 |CRIPTION|...B Eje|
|00000650| 63 74 0a 61 6c 6c 6f 77 | 73 20 72 65 6d 6f 76 61 |ct.allow|s remova|
|00000660| 62 6c 65 20 6d 65 64 69 | 61 20 28 75 73 75 61 6c |ble medi|a (usual|
|00000670| 6c 79 20 61 20 43 44 2d | 52 4f 4d 29 20 74 6f 20 |ly a CD-|ROM) to |
|00000680| 62 65 20 65 6a 65 63 74 | 65 64 20 75 6e 64 65 72 |be eject|ed under|
|00000690| 20 73 6f 66 74 77 61 72 | 65 0a 63 6f 6e 74 72 6f | softwar|e.contro|
|000006a0| 6c 2e 20 54 68 65 20 63 | 6f 6d 6d 61 6e 64 20 63 |l. The c|ommand c|
|000006b0| 61 6e 20 61 6c 73 6f 20 | 63 6f 6e 74 72 6f 6c 20 |an also |control |
|000006c0| 74 68 65 20 61 75 74 6f | 2d 65 6a 65 63 74 20 66 |the auto|-eject f|
|000006d0| 65 61 74 75 72 65 20 73 | 75 70 70 6f 72 74 65 64 |eature s|upported|
|000006e0| 0a 62 79 20 73 6f 6d 65 | 20 64 65 76 69 63 65 73 |.by some| devices|
|000006f0| 2e 0a 0a 49 66 20 6e 6f | 20 64 65 76 69 63 65 20 |...If no| device |
|00000700| 69 73 20 73 70 65 63 69 | 66 69 65 64 2c 20 61 20 |is speci|fied, a |
|00000710| 64 65 66 61 75 6c 74 20 | 64 65 76 69 63 65 20 69 |default |device i|
|00000720| 73 20 75 73 65 64 2e 20 | 54 68 65 20 65 6e 76 69 |s used. |The envi|
|00000730| 72 6f 6e 6d 65 6e 74 0a | 76 61 72 69 61 62 6c 65 |ronment.|variable|
|00000740| 20 43 44 52 4f 4d 20 63 | 61 6e 20 62 65 20 75 73 | CDROM c|an be us|
|00000750| 65 64 20 74 6f 20 73 65 | 74 20 74 68 65 20 64 65 |ed to se|t the de|
|00000760| 66 61 75 6c 74 20 64 65 | 76 69 63 65 2c 20 6f 74 |fault de|vice, ot|
|00000770| 68 65 72 77 69 73 65 20 | 74 68 65 0a 63 6f 6d 70 |herwise |the.comp|
|00000780| 69 6c 65 64 20 69 6e 20 | 64 65 66 61 75 6c 74 20 |iled in |default |
|00000790| 69 73 20 75 73 65 64 2e | 0a 0a 4f 74 68 65 72 20 |is used.|..Other |
|000007a0| 64 65 76 69 63 65 73 20 | 63 61 6e 20 62 65 20 73 |devices |can be s|
|000007b0| 70 65 63 69 66 69 65 64 | 20 65 69 74 68 65 72 20 |pecified| either |
|000007c0| 75 73 69 6e 67 20 74 68 | 65 20 66 75 6c 6c 20 64 |using th|e full d|
|000007d0| 65 76 69 63 65 20 6e 61 | 6d 65 0a 28 65 2e 67 2e |evice na|me.(e.g.|
|000007e0| 20 2f 64 65 76 2f 63 64 | 72 6f 6d 29 20 6f 72 20 | /dev/cd|rom) or |
|000007f0| 61 20 6e 69 63 6b 6e 61 | 6d 65 2e 0a 0a 2e 50 50 |a nickna|me....PP|
|00000800| 0a 2e 53 48 20 22 43 4f | 4d 4d 41 4e 44 5c 2d 4c |..SH "CO|MMAND\-L|
|00000810| 49 4e 45 20 4f 50 54 49 | 4f 4e 53 22 0a 2e 54 50 |INE OPTI|ONS"..TP|
|00000820| 20 30 2e 35 69 0a 2e 42 | 20 2d 66 0a 4e 6f 72 6d | 0.5i..B| -f.Norm|
|00000830| 61 6c 6c 79 0a 2e 42 20 | 65 6a 65 63 74 0a 77 69 |ally..B |eject.wi|
|00000840| 6c 6c 20 6e 6f 74 20 65 | 6a 65 63 74 20 61 20 64 |ll not e|ject a d|
|00000850| 65 76 69 63 65 20 69 66 | 20 69 74 20 68 61 73 20 |evice if| it has |
|00000860| 64 65 74 65 72 6d 69 6e | 65 64 20 74 68 61 74 20 |determin|ed that |
|00000870| 74 68 65 0a 64 65 76 69 | 63 65 20 69 73 20 62 65 |the.devi|ce is be|
|00000880| 69 6e 67 20 75 73 65 64 | 20 66 6f 72 20 61 20 6d |ing used| for a m|
|00000890| 6f 75 6e 74 65 64 20 66 | 69 6c 65 20 73 79 73 74 |ounted f|ile syst|
|000008a0| 65 6d 2e 20 54 68 69 73 | 20 6f 70 74 69 6f 6e 20 |em. This| option |
|000008b0| 6f 76 65 72 72 69 64 65 | 73 0a 74 68 61 74 20 62 |override|s.that b|
|000008c0| 65 68 61 76 69 6f 75 72 | 2c 20 61 6e 64 20 61 74 |ehaviour|, and at|
|000008d0| 74 65 6d 70 74 73 20 74 | 6f 20 66 6f 72 63 65 20 |tempts t|o force |
|000008e0| 61 6e 20 65 6a 65 63 74 | 20 65 76 65 6e 20 66 6f |an eject| even fo|
|000008f0| 72 20 61 20 6d 6f 75 6e | 74 65 64 0a 64 65 76 69 |r a moun|ted.devi|
|00000900| 63 65 2e 0a 0a 2e 54 50 | 20 30 2e 35 69 0a 2e 42 |ce....TP| 0.5i..B|
|00000910| 20 2d 75 0a 57 68 65 6e | 20 65 6a 65 63 74 69 6e | -u.When| ejectin|
|00000920| 67 20 61 20 6d 6f 75 6e | 74 65 64 20 64 65 76 69 |g a moun|ted devi|
|00000930| 63 65 20 75 73 69 6e 67 | 20 74 68 65 20 2d 66 20 |ce using| the -f |
|00000940| 6f 70 74 69 6f 6e 2c 20 | 74 68 69 73 20 6f 70 74 |option, |this opt|
|00000950| 69 6f 6e 0a 69 6e 73 74 | 72 75 63 74 73 0a 2e 42 |ion.inst|ructs..B|
|00000960| 20 65 6a 65 63 74 0a 74 | 6f 20 66 69 72 73 74 20 | eject.t|o first |
|00000970| 74 72 79 20 74 6f 20 75 | 6e 6d 6f 75 6e 74 20 74 |try to u|nmount t|
|00000980| 68 65 20 64 65 76 69 63 | 65 2e 0a 0a 2e 54 50 20 |he devic|e....TP |
|00000990| 30 2e 35 69 0a 2e 42 20 | 2d 76 0a 54 68 69 73 20 |0.5i..B |-v.This |
|000009a0| 6d 61 6b 65 73 0a 2e 65 | 6a 65 63 74 0a 72 75 6e |makes..e|ject.run|
|000009b0| 20 69 6e 20 76 65 72 62 | 6f 73 65 20 6d 6f 64 65 | in verb|ose mode|
|000009c0| 3b 20 6d 6f 72 65 20 69 | 6e 66 6f 72 6d 61 74 69 |; more i|nformati|
|000009d0| 6f 6e 20 69 73 20 64 69 | 73 70 6c 61 79 65 64 20 |on is di|splayed |
|000009e0| 61 62 6f 75 74 20 77 68 | 61 74 20 74 68 65 0a 63 |about wh|at the.c|
|000009f0| 6f 6d 6d 61 6e 64 20 69 | 73 20 64 6f 69 6e 67 2e |ommand i|s doing.|
|00000a00| 0a 0a 2e 54 50 20 30 2e | 35 69 0a 2e 42 20 2d 64 |...TP 0.|5i..B -d|
|00000a10| 0a 49 66 20 69 6e 76 6f | 6b 65 64 20 77 69 74 68 |.If invo|ked with|
|00000a20| 20 74 68 69 73 20 6f 70 | 74 69 6f 6e 2c 0a 2e 42 | this op|tion,..B|
|00000a30| 20 65 6a 65 63 74 0a 6c | 69 73 74 73 20 74 68 65 | eject.l|ists the|
|00000a40| 20 64 65 66 61 75 6c 74 | 20 64 65 76 69 63 65 2e | default| device.|
|00000a50| 0a 0a 2e 54 50 20 30 2e | 35 69 0a 2e 42 20 2d 6e |...TP 0.|5i..B -n|
|00000a60| 0a 49 66 20 74 68 69 73 | 20 6f 70 74 69 6f 6e 20 |.If this| option |
|00000a70| 69 73 20 75 73 65 64 2c | 0a 2e 42 20 65 6a 65 63 |is used,|..B ejec|
|00000a80| 74 0a 77 69 6c 6c 20 6c | 69 73 74 20 74 68 65 20 |t.will l|ist the |
|00000a90| 73 75 70 70 6f 72 74 65 | 64 20 6e 69 63 6b 6e 61 |supporte|d nickna|
|00000aa0| 6d 65 73 20 61 6e 64 20 | 63 6f 72 72 65 73 70 6f |mes and |correspo|
|00000ab0| 6e 64 69 6e 67 20 64 65 | 76 69 63 65 73 2e 0a 0a |nding de|vices...|
|00000ac0| 2e 54 50 20 30 2e 35 69 | 0a 2e 42 20 2d 61 20 6f |.TP 0.5i|..B -a o|
|00000ad0| 6e 7c 31 7c 6f 66 66 7c | 30 0a 54 68 69 73 20 6f |n|1|off||0.This o|
|00000ae0| 70 74 69 6f 6e 20 63 6f | 6e 74 72 6f 6c 73 20 74 |ption co|ntrols t|
|00000af0| 68 65 20 61 75 74 6f 2d | 65 6a 65 63 74 20 6d 6f |he auto-|eject mo|
|00000b00| 64 65 2c 20 73 75 70 70 | 6f 72 74 65 64 20 62 79 |de, supp|orted by|
|00000b10| 20 73 6f 6d 65 20 64 65 | 76 69 63 65 73 2e 0a 0a | some de|vices...|
|00000b20| 2e 54 50 20 30 2e 35 69 | 0a 2e 42 20 2d 63 20 3c |.TP 0.5i|..B -c <|
|00000b30| 73 6c 6f 74 3e 0a 57 69 | 74 68 20 74 68 69 73 20 |slot>.Wi|th this |
|00000b40| 6f 70 74 69 6f 6e 20 61 | 20 43 44 20 73 6c 6f 74 |option a| CD slot|
|00000b50| 20 63 61 6e 20 62 65 20 | 73 65 6c 65 63 74 65 64 | can be |selected|
|00000b60| 20 66 72 6f 6d 20 61 6e | 20 41 54 41 50 49 2f 49 | from an| ATAPI/I|
|00000b70| 44 45 20 43 44 2d 52 4f | 4d 20 63 68 61 6e 67 65 |DE CD-RO|M change|
|00000b80| 72 2e 0a 4c 69 6e 75 78 | 20 32 2e 30 20 6f 72 20 |r..Linux| 2.0 or |
|00000b90| 68 69 67 68 65 72 20 69 | 73 20 72 65 71 75 69 72 |higher i|s requir|
|00000ba0| 65 64 20 74 6f 20 75 73 | 65 20 74 68 69 73 20 66 |ed to us|e this f|
|00000bb0| 65 61 74 75 72 65 2e 20 | 20 54 68 65 20 43 44 52 |eature. | The CDR|
|00000bc0| 4f 4d 20 64 72 69 76 65 | 20 68 61 73 20 0a 63 61 |OM drive| has .ca|
|00000bd0| 6e 20 6e 6f 74 20 62 65 | 20 69 6e 20 75 73 65 20 |n not be| in use |
|00000be0| 28 6d 6f 75 6e 74 65 64 | 20 64 61 74 61 20 43 44 |(mounted| data CD|
|00000bf0| 20 6f 72 20 70 6c 61 79 | 69 6e 67 20 61 20 6d 75 | or play|ing a mu|
|00000c00| 73 69 63 20 43 44 29 20 | 66 6f 72 20 61 20 63 68 |sic CD) |for a ch|
|00000c10| 61 6e 67 65 20 0a 72 65 | 71 75 65 73 74 20 74 6f |ange .re|quest to|
|00000c20| 20 77 6f 72 6b 2e 20 20 | 50 6c 65 61 73 65 20 61 | work. |Please a|
|00000c30| 6c 73 6f 20 6e 6f 74 65 | 20 74 68 61 74 20 74 68 |lso note| that th|
|00000c40| 65 20 66 69 72 73 74 20 | 73 6c 6f 74 20 6f 66 20 |e first |slot of |
|00000c50| 74 68 65 20 63 68 61 6e | 67 65 72 20 69 73 20 0a |the chan|ger is .|
|00000c60| 72 65 66 65 72 65 64 20 | 74 6f 20 61 73 20 30 20 |refered |to as 0 |
|00000c70| 2d 2d 20 6e 6f 74 20 31 | 2e 0a 0a 2e 53 48 20 42 |-- not 1|....SH B|
|00000c80| 55 47 53 2f 4c 49 4d 49 | 54 41 54 49 4f 4e 53 0a |UGS/LIMI|TATIONS.|
|00000c90| 2e 50 50 0a 0a 2e 42 20 | 45 6a 65 63 74 0a 6f 6e |.PP...B |Eject.on|
|00000ca0| 6c 79 20 77 6f 72 6b 73 | 20 77 69 74 68 20 64 72 |ly works| with dr|
|00000cb0| 69 76 65 73 20 74 68 61 | 74 20 73 75 70 70 6f 72 |ives tha|t suppor|
|00000cc0| 74 20 74 68 65 20 43 44 | 52 4f 4d 45 4a 45 43 54 |t the CD|ROMEJECT|
|00000cd0| 20 69 6f 63 74 6c 2e 0a | 0a 2e 42 20 45 6a 65 63 | ioctl..|..B Ejec|
|00000ce0| 74 0a 6d 61 79 20 6e 6f | 74 20 61 6c 77 61 79 73 |t.may no|t always|
|00000cf0| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 64 65 74 65 | be able| to dete|
|00000d00| 72 6d 69 6e 65 20 69 66 | 20 74 68 65 20 64 65 76 |rmine if| the dev|
|00000d10| 69 63 65 20 69 73 20 6d | 6f 75 6e 74 65 64 0a 28 |ice is m|ounted.(|
|00000d20| 65 2e 67 2e 20 69 66 20 | 69 74 20 68 61 73 20 73 |e.g. if |it has s|
|00000d30| 65 76 65 72 61 6c 20 6e | 61 6d 65 73 29 2e 0a 49 |everal n|ames)..I|
|00000d40| 66 20 74 68 65 20 64 65 | 76 69 63 65 20 6e 61 6d |f the de|vice nam|
|00000d50| 65 20 69 73 20 61 20 73 | 79 6d 62 6f 6c 69 63 20 |e is a s|ymbolic |
|00000d60| 6c 69 6e 6b 2c 0a 2e 42 | 20 65 6a 65 63 74 0a 77 |link,..B| eject.w|
|00000d70| 69 6c 6c 20 66 6f 6c 6c | 6f 77 20 74 68 65 20 6c |ill foll|ow the l|
|00000d80| 69 6e 6b 20 61 6e 64 20 | 75 73 65 20 74 68 65 20 |ink and |use the |
|00000d90| 64 65 76 69 63 65 20 74 | 68 61 74 20 69 74 20 70 |device t|hat it p|
|00000da0| 6f 69 6e 74 73 20 74 6f | 2e 0a 0a 49 66 20 74 68 |oints to|...If th|
|00000db0| 65 20 61 75 74 6f 2d 65 | 6a 65 63 74 20 66 65 61 |e auto-e|ject fea|
|00000dc0| 74 75 72 65 20 69 73 20 | 65 6e 61 62 6c 65 64 2c |ture is |enabled,|
|00000dd0| 20 74 68 65 6e 20 74 68 | 65 20 64 72 69 76 65 20 | then th|e drive |
|00000de0| 77 69 6c 6c 20 61 6c 77 | 61 79 73 20 62 65 0a 65 |will alw|ays be.e|
|00000df0| 6a 65 63 74 65 64 20 61 | 66 74 65 72 20 72 75 6e |jected a|fter run|
|00000e00| 6e 69 6e 67 20 74 68 69 | 73 20 63 6f 6d 6d 61 6e |ning thi|s comman|
|00000e10| 64 2c 20 65 76 65 6e 20 | 69 66 20 69 74 20 69 73 |d, even |if it is|
|00000e20| 20 6d 6f 75 6e 74 65 64 | 20 61 6e 64 20 74 68 65 | mounted| and the|
|00000e30| 20 2d 66 0a 6f 70 74 69 | 6f 6e 20 69 73 20 75 73 | -f.opti|on is us|
|00000e40| 65 64 2e 20 43 75 72 72 | 65 6e 74 6c 79 20 6f 6e |ed. Curr|ently on|
|00000e50| 6c 79 20 74 68 65 20 73 | 62 70 63 64 20 28 50 61 |ly the s|bpcd (Pa|
|00000e60| 6e 61 73 6f 6e 69 63 2f | 4d 61 74 73 75 73 68 69 |nasonic/|Matsushi|
|00000e70| 74 61 29 20 64 72 69 76 | 65 72 0a 73 75 70 70 6f |ta) driv|er.suppo|
|00000e80| 72 74 73 20 74 68 65 20 | 61 75 74 6f 2d 65 6a 65 |rts the |auto-eje|
|00000e90| 63 74 20 6d 6f 64 65 2e | 0a 0a 54 68 65 20 6e 69 |ct mode.|..The ni|
|00000ea0| 63 6b 6e 61 6d 65 73 20 | 61 72 65 20 73 65 74 20 |cknames |are set |
|00000eb0| 77 68 65 6e 0a 2e 42 20 | 65 6a 65 63 74 0a 69 73 |when..B |eject.is|
|00000ec0| 20 63 6f 6d 70 69 6c 65 | 64 2e 0a 0a 54 68 65 72 | compile|d...Ther|
|00000ed0| 65 20 69 73 20 6e 6f 20 | 77 61 79 20 74 6f 20 66 |e is no |way to f|
|00000ee0| 69 6e 64 20 6f 75 74 20 | 74 68 65 20 73 74 61 74 |ind out |the stat|
|00000ef0| 65 20 6f 66 20 74 68 65 | 20 61 75 74 6f 2d 65 6a |e of the| auto-ej|
|00000f00| 65 63 74 20 6d 6f 64 65 | 2e 0a 0a 59 6f 75 20 70 |ect mode|...You p|
|00000f10| 72 6f 62 61 62 6c 79 20 | 73 68 6f 75 6c 64 6e 27 |robably |shouldn'|
|00000f20| 74 20 62 65 20 61 62 6c | 65 20 74 6f 20 65 6a 65 |t be abl|e to eje|
|00000f30| 63 74 20 61 20 6d 6f 75 | 6e 74 65 64 20 64 69 73 |ct a mou|nted dis|
|00000f40| 63 2c 20 62 75 74 20 6d | 6f 73 74 0a 6b 65 72 6e |c, but m|ost.kern|
|00000f50| 65 6c 20 64 72 69 76 65 | 72 73 20 61 6c 6c 6f 77 |el drive|rs allow|
|00000f60| 20 69 74 2e 0a 0a 54 68 | 65 20 2d 75 20 6f 70 74 | it...Th|e -u opt|
|00000f70| 69 6f 6e 20 77 69 6c 6c | 20 6f 6e 6c 79 20 73 75 |ion will| only su|
|00000f80| 63 63 65 65 64 20 69 6e | 20 75 6e 6d 6f 75 6e 74 |cceed in| unmount|
|00000f90| 69 6e 67 20 69 66 20 74 | 68 65 20 75 73 65 72 20 |ing if t|he user |
|00000fa0| 68 61 73 0a 70 72 69 76 | 69 6c 65 67 65 73 20 74 |has.priv|ileges t|
|00000fb0| 6f 20 72 75 6e 20 75 6d | 6f 75 6e 74 28 38 29 2c |o run um|ount(8),|
|00000fc0| 20 6f 72 0a 2e 42 20 65 | 6a 65 63 74 0a 69 73 20 | or..B e|ject.is |
|00000fd0| 69 6e 73 74 61 6c 6c 65 | 64 20 73 65 74 75 69 64 |installe|d setuid|
|00000fe0| 20 72 6f 6f 74 2c 20 61 | 6e 64 20 69 74 20 69 73 | root, a|nd it is|
|00000ff0| 20 6e 6f 74 20 62 75 73 | 79 2e 0a 0a 2e 53 48 20 | not bus|y....SH |
|00001000| 41 55 54 48 4f 52 0a 2e | 42 20 45 6a 65 63 74 0a |AUTHOR..|B Eject.|
|00001010| 77 61 73 20 77 72 69 74 | 74 65 6e 20 62 79 20 4a |was writ|ten by J|
|00001020| 65 66 66 20 54 72 61 6e | 74 65 72 20 28 4a 65 66 |eff Tran|ter (Jef|
|00001030| 66 5f 54 72 61 6e 74 65 | 72 40 4d 69 74 65 6c 2e |f_Trante|r@Mitel.|
|00001040| 43 4f 4d 29 20 61 6e 64 | 20 69 73 20 72 65 6c 65 |COM) and| is rele|
|00001050| 61 73 65 64 0a 75 6e 64 | 65 72 20 74 68 65 20 63 |ased.und|er the c|
|00001060| 6f 6e 64 69 74 69 6f 6e | 73 20 6f 66 20 74 68 65 |ondition|s of the|
|00001070| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00001080| 6c 69 63 20 4c 69 63 65 | 6e 73 65 2e 20 20 53 65 |lic Lice|nse. Se|
|00001090| 65 20 74 68 65 20 66 69 | 6c 65 0a 43 4f 50 59 49 |e the fi|le.COPYI|
|000010a0| 4e 47 20 61 6e 64 20 6e | 6f 74 65 73 20 69 6e 20 |NG and n|otes in |
|000010b0| 74 68 65 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |the sour|ce code |
|000010c0| 66 6f 72 20 64 65 74 61 | 69 6c 73 2e 0a 2e 62 72 |for deta|ils...br|
|000010d0| 0a 2e 54 50 20 30 2e 35 | 69 0a 46 6f 72 20 73 75 |..TP 0.5|i.For su|
|000010e0| 67 67 65 73 74 69 6f 6e | 73 20 61 6e 64 20 70 61 |ggestion|s and pa|
|000010f0| 74 63 68 65 73 2c 20 73 | 70 65 63 69 61 6c 20 74 |tches, s|pecial t|
|00001100| 68 61 6e 6b 73 20 67 6f | 20 6f 75 74 20 74 6f 3a |hanks go| out to:|
|00001110| 20 20 20 0a 2e 62 72 0a | 44 69 63 6b 20 53 74 72 | ..br.|Dick Str|
|00001120| 65 65 66 6c 61 6e 64 2c | 0a 2e 62 72 0a 4d 61 72 |eefland,|..br.Mar|
|00001130| 6b 20 4c 6f 72 64 2c 0a | 2e 62 72 0a 44 6f 75 67 |k Lord,.|.br.Doug|
|00001140| 20 4c 2e 20 48 6f 66 66 | 6d 61 6e 20 28 68 6f 66 | L. Hoff|man (hof|
|00001150| 66 6d 61 6e 40 63 73 2e | 75 6e 63 2e 65 64 75 29 |fman@cs.|unc.edu)|
|00001160| 2c 0a 2e 62 72 0a 42 65 | 6e 20 47 61 6c 6c 69 61 |,..br.Be|n Gallia|
|00001170| 72 74 20 28 62 67 61 6c | 6c 69 61 40 6c 75 63 2e |rt (bgal|lia@luc.|
|00001180| 65 64 75 29 2c 0a 2e 62 | 72 0a 61 6e 64 20 4d 61 |edu),..b|r.and Ma|
|00001190| 72 6b 75 73 20 50 69 6c | 7a 65 63 6b 65 72 20 0a |rkus Pil|zecker .|
|000011a0| 2e 62 72 0a 28 6d 61 72 | 6b 75 73 2e 70 69 6c 7a |.br.(mar|kus.pilz|
|000011b0| 65 63 6b 65 72 40 72 68 | 65 69 6e 2d 6e 65 63 6b |ecker@rh|ein-neck|
|000011c0| 61 72 2e 6e 65 74 73 75 | 72 66 2e 64 65 29 2e 0a |ar.netsu|rf.de)..|
|000011d0| 0a 2e 53 48 20 53 45 45 | 20 41 4c 53 4f 0a 0a 6d |..SH SEE| ALSO..m|
|000011e0| 6f 75 6e 74 28 32 29 2c | 20 75 6d 6f 75 6e 74 28 |ount(2),| umount(|
|000011f0| 32 29 2c 20 6d 6f 75 6e | 74 28 38 29 2c 20 75 6d |2), moun|t(8), um|
|00001200| 6f 75 6e 74 28 38 29 0a | 2e 62 72 0a 2f 75 73 72 |ount(8).|.br./usr|
|00001210| 2f 73 72 63 2f 6c 69 6e | 75 78 2f 64 72 69 76 65 |/src/lin|ux/drive|
|00001220| 72 73 2f 62 6c 6f 63 6b | 2f 52 45 41 44 4d 45 2e |rs/block|/README.|
|00001230| 73 62 70 63 64 0a 2e 62 | 72 0a 2f 75 73 72 2f 73 |sbpcd..b|r./usr/s|
|00001240| 72 63 2f 6c 69 6e 75 78 | 2f 44 6f 63 75 6d 65 6e |rc/linux|/Documen|
|00001250| 74 61 74 69 6f 6e 2f 63 | 64 72 6f 6d 2f 73 62 70 |tation/c|drom/sbp|
|00001260| 63 64 0a 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |cd......|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 65 6a 65 63 74 2d 31 2e | 33 2f 65 6a 65 63 74 2e |eject-1.|3/eject.|
|00001410| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 37 |....1006|44 . 7|
|00001470| 36 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |65 . 1|44 . |
|00001480| 20 20 32 34 30 32 36 20 | 20 36 31 37 31 31 31 32 | 24026 | 6171112|
|00001490| 30 34 34 20 20 31 32 37 | 32 35 00 20 30 00 00 00 |044 127|25. 0...|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 75 73 74 61 72 20 20 | 00 62 67 61 6c 6c 69 61 |.ustar |.bgallia|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 2f 2a 0a 20 2a 09 09 4c | 20 49 20 4e 20 55 20 58 |/*. *..L| I N U X|
|00001610| 20 20 20 45 20 4a 20 45 | 20 43 20 54 20 20 20 43 | E J E| C T C|
|00001620| 20 4f 20 4d 20 4d 20 41 | 20 4e 20 44 0a 20 2a 0a | O M M A| N D. *.|
|00001630| 20 2a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | * | b|
|00001640| 79 20 4a 65 66 66 20 54 | 72 61 6e 74 65 72 20 28 |y Jeff T|ranter (|
|00001650| 4a 65 66 66 5f 54 72 61 | 6e 74 65 72 40 4d 69 74 |Jeff_Tra|nter@Mit|
|00001660| 65 6c 2e 43 4f 4d 29 0a | 20 2a 0a 20 2a 20 20 20 |el.COM).| *. * |
|00001670| 20 20 20 20 20 55 70 64 | 61 74 65 64 20 77 69 74 | Upd|ated wit|
|00001680| 68 20 74 68 65 20 68 65 | 6c 70 20 6f 66 20 44 69 |h the he|lp of Di|
|00001690| 63 6b 20 53 74 72 65 65 | 66 6c 61 6e 64 2c 20 4d |ck Stree|fland, M|
|000016a0| 61 72 6b 20 4c 6f 72 64 | 2c 0a 20 2a 20 20 20 20 |ark Lord|,. * |
|000016b0| 20 20 20 20 20 20 20 20 | 20 20 20 44 6f 75 67 20 | | Doug |
|000016c0| 4c 2e 20 48 6f 66 66 6d | 61 6e 20 28 68 6f 66 66 |L. Hoffm|an (hoff|
|000016d0| 6d 61 6e 40 63 73 2e 75 | 6e 63 2e 65 64 75 29 2c |man@cs.u|nc.edu),|
|000016e0| 0a 20 2a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. * | |
|000016f0| 20 20 20 20 20 42 65 6e | 20 47 61 6c 6c 69 61 72 | Ben| Galliar|
|00001700| 74 20 28 62 67 61 6c 6c | 69 61 40 6c 75 63 2e 65 |t (bgall|ia@luc.e|
|00001710| 64 75 29 2c 0a 20 2a 20 | 20 61 6e 64 20 4d 61 72 |du),. * | and Mar|
|00001720| 6b 75 73 20 50 69 6c 7a | 65 63 6b 65 72 20 28 6d |kus Pilz|ecker (m|
|00001730| 61 72 6b 75 73 2e 70 69 | 6c 7a 65 63 6b 65 72 40 |arkus.pi|lzecker@|
|00001740| 72 68 65 69 6e 2d 6e 65 | 63 6b 61 72 2e 6e 65 74 |rhein-ne|ckar.net|
|00001750| 73 75 72 66 2e 64 65 29 | 0a 20 2a 0a 20 2a 2a 2a |surf.de)|. *. ***|
|00001760| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001770| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001780| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001790| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017a0| 2a 0a 20 2a 0a 20 2a 20 | 43 6f 70 79 72 69 67 68 |*. *. * |Copyrigh|
|000017b0| 74 20 28 43 29 20 31 39 | 39 34 2d 39 35 20 4a 65 |t (C) 19|94-95 Je|
|000017c0| 66 66 20 54 72 61 6e 74 | 65 72 20 28 4a 65 66 66 |ff Trant|er (Jeff|
|000017d0| 5f 54 72 61 6e 74 65 72 | 40 4d 69 74 65 6c 2e 43 |_Tranter|@Mitel.C|
|000017e0| 4f 4d 29 0a 20 2a 0a 20 | 2a 20 54 68 69 73 20 70 |OM). *. |* This p|
|000017f0| 72 6f 67 72 61 6d 20 69 | 73 20 66 72 65 65 20 73 |rogram i|s free s|
|00001800| 6f 66 74 77 61 72 65 3b | 20 79 6f 75 20 63 61 6e |oftware;| you can|
|00001810| 20 72 65 64 69 73 74 72 | 69 62 75 74 65 20 69 74 | redistr|ibute it|
|00001820| 20 61 6e 64 2f 6f 72 20 | 6d 6f 64 69 66 79 0a 20 | and/or |modify. |
|00001830| 2a 20 69 74 20 75 6e 64 | 65 72 20 74 68 65 20 74 |* it und|er the t|
|00001840| 65 72 6d 73 20 6f 66 20 | 74 68 65 20 47 4e 55 20 |erms of |the GNU |
|00001850| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00001860| 69 63 65 6e 73 65 20 61 | 73 20 70 75 62 6c 69 73 |icense a|s publis|
|00001870| 68 65 64 20 62 79 0a 20 | 2a 20 74 68 65 20 46 72 |hed by. |* the Fr|
|00001880| 65 65 20 53 6f 66 74 77 | 61 72 65 20 46 6f 75 6e |ee Softw|are Foun|
|00001890| 64 61 74 69 6f 6e 3b 20 | 65 69 74 68 65 72 20 76 |dation; |either v|
|000018a0| 65 72 73 69 6f 6e 20 32 | 20 6f 66 20 74 68 65 20 |ersion 2| of the |
|000018b0| 4c 69 63 65 6e 73 65 2c | 20 6f 72 0a 20 2a 20 28 |License,| or. * (|
|000018c0| 61 74 20 79 6f 75 72 20 | 6f 70 74 69 6f 6e 29 20 |at your |option) |
|000018d0| 61 6e 79 20 6c 61 74 65 | 72 20 76 65 72 73 69 6f |any late|r versio|
|000018e0| 6e 2e 0a 20 2a 0a 20 2a | 20 54 68 69 73 20 70 72 |n.. *. *| This pr|
|000018f0| 6f 67 72 61 6d 20 69 73 | 20 64 69 73 74 72 69 62 |ogram is| distrib|
|00001900| 75 74 65 64 20 69 6e 20 | 74 68 65 20 68 6f 70 65 |uted in |the hope|
|00001910| 20 74 68 61 74 20 69 74 | 20 77 69 6c 6c 20 62 65 | that it| will be|
|00001920| 20 75 73 65 66 75 6c 2c | 0a 20 2a 20 62 75 74 20 | useful,|. * but |
|00001930| 57 49 54 48 4f 55 54 20 | 41 4e 59 20 57 41 52 52 |WITHOUT |ANY WARR|
|00001940| 41 4e 54 59 3b 20 77 69 | 74 68 6f 75 74 20 65 76 |ANTY; wi|thout ev|
|00001950| 65 6e 20 74 68 65 20 69 | 6d 70 6c 69 65 64 20 77 |en the i|mplied w|
|00001960| 61 72 72 61 6e 74 79 20 | 6f 66 0a 20 2a 20 4d 45 |arranty |of. * ME|
|00001970| 52 43 48 41 4e 54 41 42 | 49 4c 49 54 59 20 6f 72 |RCHANTAB|ILITY or|
|00001980| 20 46 49 54 4e 45 53 53 | 20 46 4f 52 20 41 20 50 | FITNESS| FOR A P|
|00001990| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS|
|000019a0| 45 2e 20 20 53 65 65 20 | 74 68 65 0a 20 2a 20 47 |E. See |the. * G|
|000019b0| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|000019c0| 63 20 4c 69 63 65 6e 73 | 65 20 66 6f 72 20 6d 6f |c Licens|e for mo|
|000019d0| 72 65 20 64 65 74 61 69 | 6c 73 2e 0a 20 2a 0a 20 |re detai|ls.. *. |
|000019e0| 2a 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 68 61 76 |* You sh|ould hav|
|000019f0| 65 20 72 65 63 65 69 76 | 65 64 20 61 20 63 6f 70 |e receiv|ed a cop|
|00001a00| 79 20 6f 66 20 74 68 65 | 20 47 4e 55 20 47 65 6e |y of the| GNU Gen|
|00001a10| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|00001a20| 6e 73 65 0a 20 2a 20 61 | 6c 6f 6e 67 20 77 69 74 |nse. * a|long wit|
|00001a30| 68 20 74 68 69 73 20 70 | 72 6f 67 72 61 6d 3b 20 |h this p|rogram; |
|00001a40| 69 66 20 6e 6f 74 2c 20 | 77 72 69 74 65 20 74 6f |if not, |write to|
|00001a50| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|00001a60| 72 65 0a 20 2a 20 46 6f | 75 6e 64 61 74 69 6f 6e |re. * Fo|undation|
|00001a70| 2c 20 49 6e 63 2e 2c 20 | 36 37 35 20 4d 61 73 73 |, Inc., |675 Mass|
|00001a80| 20 41 76 65 2c 20 43 61 | 6d 62 72 69 64 67 65 2c | Ave, Ca|mbridge,|
|00001a90| 20 4d 41 20 30 32 31 33 | 39 2c 20 55 53 41 2e 0a | MA 0213|9, USA..|
|00001aa0| 20 2a 0a 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *. ****|********|
|00001ab0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ac0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ad0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ae0| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 20 2a 0a 20 2a 20 53 |********|. *. * S|
|00001af0| 65 65 20 74 68 65 20 6d | 61 6e 20 70 61 67 65 20 |ee the m|an page |
|00001b00| 66 6f 72 20 61 20 64 65 | 73 63 72 69 70 74 69 6f |for a de|scriptio|
|00001b10| 6e 20 6f 66 20 77 68 61 | 74 20 74 68 69 73 20 70 |n of wha|t this p|
|00001b20| 72 6f 67 72 61 6d 20 64 | 6f 65 73 20 61 6e 64 20 |rogram d|oes and |
|00001b30| 77 68 61 74 0a 20 2a 20 | 74 68 65 20 72 65 71 75 |what. * |the requ|
|00001b40| 69 72 65 6d 65 6e 74 73 | 20 74 6f 20 72 75 6e 20 |irements| to run |
|00001b50| 69 74 20 61 72 65 2e 0a | 20 2a 20 0a 20 2a 20 49 |it are..| * . * I|
|00001b60| 74 20 77 61 73 20 64 65 | 76 65 6c 6f 70 65 64 20 |t was de|veloped |
|00001b70| 75 73 69 6e 67 3a 0a 20 | 2a 20 2d 20 4c 69 6e 75 |using:. |* - Linu|
|00001b80| 78 20 6b 65 72 6e 65 6c | 20 31 2e 31 2e 37 32 0a |x kernel| 1.1.72.|
|00001b90| 20 2a 20 2d 20 67 63 63 | 20 32 2e 35 2e 38 0a 20 | * - gcc| 2.5.8. |
|00001ba0| 2a 20 2d 20 50 61 6e 61 | 73 6f 6e 69 63 20 43 52 |* - Pana|sonic CR|
|00001bb0| 2d 35 36 32 2d 42 20 43 | 44 2d 52 4f 4d 20 64 72 |-562-B C|D-ROM dr|
|00001bc0| 69 76 65 0a 20 2a 0a 20 | 2a 20 4a 65 66 66 20 54 |ive. *. |* Jeff T|
|00001bd0| 72 61 6e 74 65 72 20 28 | 4a 65 66 66 5f 54 72 61 |ranter (|Jeff_Tra|
|00001be0| 6e 74 65 72 40 4d 69 74 | 65 6c 2e 43 4f 4d 29 0a |nter@Mit|el.COM).|
|00001bf0| 20 2a 0a 20 2a 20 43 68 | 61 6e 67 65 72 20 73 75 | *. * Ch|anger su|
|00001c00| 70 70 6f 72 74 20 77 61 | 73 20 64 65 76 65 6c 6f |pport wa|s develo|
|00001c10| 70 65 64 20 75 73 69 6e | 67 3a 0a 20 2a 20 2d 20 |ped usin|g:. * - |
|00001c20| 4c 69 6e 75 78 20 6b 65 | 72 6e 65 6c 20 32 2e 30 |Linux ke|rnel 2.0|
|00001c30| 2e 34 0a 20 2a 20 2d 20 | 67 63 63 20 32 2e 36 2e |.4. * - |gcc 2.6.|
|00001c40| 33 0a 20 2a 20 2d 20 53 | 61 6e 79 6f 20 33 2d 43 |3. * - S|anyo 3-C|
|00001c50| 44 20 34 78 20 63 68 61 | 6e 67 65 72 0a 20 2a 0a |D 4x cha|nger. *.|
|00001c60| 20 2a 20 42 65 6e 20 47 | 61 6c 6c 69 61 72 74 20 | * Ben G|alliart |
|00001c70| 28 62 67 61 6c 6c 69 61 | 40 6c 75 63 2e 65 64 75 |(bgallia|@luc.edu|
|00001c80| 29 0a 20 2a 2f 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |). */..#|include |
|00001c90| 3c 73 74 64 6c 69 62 2e | 68 3e 0a 23 69 6e 63 6c |<stdlib.|h>.#incl|
|00001ca0| 75 64 65 20 3c 73 79 73 | 2f 74 79 70 65 73 2e 68 |ude <sys|/types.h|
|00001cb0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00001cc0| 69 6f 63 74 6c 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |ioctl.h>|.#includ|
|00001cd0| 65 20 3c 66 63 6e 74 6c | 2e 68 3e 0a 23 69 6e 63 |e <fcntl|.h>.#inc|
|00001ce0| 6c 75 64 65 20 3c 65 72 | 72 6e 6f 2e 68 3e 0a 23 |lude <er|rno.h>.#|
|00001cf0| 69 6e 63 6c 75 64 65 20 | 3c 75 6e 69 73 74 64 2e |include |<unistd.|
|00001d00| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|00001d10| 69 6f 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |io.h>.#i|nclude <|
|00001d20| 73 74 72 69 6e 67 2e 68 | 3e 0a 23 69 6e 63 6c 75 |string.h|>.#inclu|
|00001d30| 64 65 20 3c 73 79 73 2f | 6d 6f 75 6e 74 2e 68 3e |de <sys/|mount.h>|
|00001d40| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 6c 69 6e 75 78 |.#includ|e <linux|
|00001d50| 2f 63 64 72 6f 6d 2e 68 | 3e 0a 0a 2f 2a 20 73 65 |/cdrom.h|>../* se|
|00001d60| 74 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 64 65 |t the de|fault de|
|00001d70| 76 69 63 65 20 68 65 72 | 65 20 2a 2f 0a 63 68 61 |vice her|e */.cha|
|00001d80| 72 20 64 65 66 61 75 6c | 74 5f 64 65 76 69 63 65 |r defaul|t_device|
|00001d90| 5b 31 30 32 34 5d 3b 0a | 0a 2f 2a 20 64 65 66 61 |[1024];.|./* defa|
|00001da0| 75 6c 74 20 6f 70 74 69 | 6f 6e 73 20 2a 2f 0a 69 |ult opti|ons */.i|
|00001db0| 6e 74 20 66 5f 6f 70 74 | 69 6f 6e 20 3d 20 30 3b |nt f_opt|ion = 0;|
|00001dc0| 20 20 2f 2a 20 66 6f 72 | 63 65 20 65 6a 65 63 74 | /* for|ce eject|
|00001dd0| 20 65 76 65 6e 20 69 66 | 20 6d 6f 75 6e 74 65 64 | even if| mounted|
|00001de0| 20 2a 2f 0a 69 6e 74 20 | 64 5f 6f 70 74 69 6f 6e | */.int |d_option|
|00001df0| 20 3d 20 30 3b 20 20 2f | 2a 20 64 69 73 70 6c 61 | = 0; /|* displa|
|00001e00| 79 20 64 65 66 61 75 6c | 74 20 64 65 76 69 63 65 |y defaul|t device|
|00001e10| 20 2a 2f 0a 69 6e 74 20 | 6e 5f 6f 70 74 69 6f 6e | */.int |n_option|
|00001e20| 20 3d 20 30 3b 20 20 2f | 2a 20 64 69 73 70 6c 61 | = 0; /|* displa|
|00001e30| 79 20 6e 69 63 6b 6e 61 | 6d 65 73 20 2a 2f 0a 69 |y nickna|mes */.i|
|00001e40| 6e 74 20 61 5f 6f 70 74 | 69 6f 6e 20 3d 20 30 3b |nt a_opt|ion = 0;|
|00001e50| 20 20 2f 2a 20 61 75 74 | 6f 2d 65 6a 65 63 74 20 | /* aut|o-eject |
|00001e60| 2a 2f 0a 69 6e 74 20 61 | 5f 61 72 67 20 3d 20 30 |*/.int a|_arg = 0|
|00001e70| 3b 20 20 20 20 20 2f 2a | 20 61 72 67 75 6d 65 6e |; /*| argumen|
|00001e80| 74 20 74 6f 20 2d 61 20 | 6f 70 74 69 6f 6e 20 2a |t to -a |option *|
|00001e90| 2f 0a 69 6e 74 20 76 5f | 6f 70 74 69 6f 6e 20 3d |/.int v_|option =|
|00001ea0| 20 30 3b 20 20 2f 2a 20 | 76 65 72 62 6f 73 65 20 | 0; /* |verbose |
|00001eb0| 6d 6f 64 65 20 2a 2f 0a | 69 6e 74 20 75 5f 6f 70 |mode */.|int u_op|
|00001ec0| 74 69 6f 6e 20 3d 20 30 | 3b 20 20 2f 2a 20 75 6e |tion = 0|; /* un|
|00001ed0| 6d 6f 75 6e 74 20 66 69 | 72 73 74 20 2a 2f 0a 69 |mount fi|rst */.i|
|00001ee0| 6e 74 20 68 5f 6f 70 74 | 69 6f 6e 20 3d 20 30 3b |nt h_opt|ion = 0;|
|00001ef0| 20 20 2f 2a 20 72 65 71 | 75 65 73 74 20 68 65 6c | /* req|uest hel|
|00001f00| 70 20 2a 2f 0a 69 6e 74 | 20 63 5f 6f 70 74 69 6f |p */.int| c_optio|
|00001f10| 6e 20 3d 20 30 3b 20 20 | 2f 2a 20 63 68 6f 6f 73 |n = 0; |/* choos|
|00001f20| 65 20 74 6f 20 6c 6f 61 | 64 20 61 20 43 44 20 73 |e to loa|d a CD s|
|00001f30| 6c 6f 74 20 6f 6e 20 61 | 20 49 44 45 2f 41 54 41 |lot on a| IDE/ATA|
|00001f40| 50 49 20 63 68 61 6e 67 | 65 72 20 2a 2f 0a 69 6e |PI chang|er */.in|
|00001f50| 74 20 63 5f 61 72 67 20 | 3d 20 30 3b 20 20 20 20 |t c_arg |= 0; |
|00001f60| 20 2f 2a 20 61 72 67 75 | 6d 65 6e 74 20 74 6f 20 | /* argu|ment to |
|00001f70| 2d 63 20 6f 70 74 69 6f | 6e 20 2a 2f 0a 63 68 61 |-c optio|n */.cha|
|00001f80| 72 20 64 65 76 69 63 65 | 5b 31 30 32 34 5d 3b 20 |r device|[1024]; |
|00001f90| 20 2f 2a 20 64 65 76 69 | 63 65 20 6e 61 6d 65 20 | /* devi|ce name |
|00001fa0| 2a 2f 0a 0a 74 79 70 65 | 64 65 66 20 73 74 72 75 |*/..type|def stru|
|00001fb0| 63 74 20 7b 0a 20 20 63 | 68 61 72 20 2a 6e 61 6d |ct {. c|har *nam|
|00001fc0| 65 3b 0a 20 20 63 68 61 | 72 20 2a 64 65 76 69 63 |e;. cha|r *devic|
|00001fd0| 65 3b 0a 7d 20 6e 69 63 | 6b 6e 61 6d 65 5f 74 3b |e;.} nic|kname_t;|
|00001fe0| 0a 0a 2f 2a 20 74 61 62 | 6c 65 20 6f 66 20 64 65 |../* tab|le of de|
|00001ff0| 76 69 63 65 20 6e 69 63 | 6b 6e 61 6d 65 73 20 2a |vice nic|knames *|
|00002000| 2f 0a 6e 69 63 6b 6e 61 | 6d 65 5f 74 20 6e 69 63 |/.nickna|me_t nic|
|00002010| 6b 6e 61 6d 65 5b 5d 20 | 3d 20 7b 20 0a 20 20 7b |kname[] |= { . {|
|00002020| 20 22 63 64 72 6f 6d 22 | 2c 20 20 22 2f 64 65 76 | "cdrom"|, "/dev|
|00002030| 2f 63 64 72 6f 6d 22 20 | 7d 2c 0a 20 20 7b 20 22 |/cdrom" |},. { "|
|00002040| 73 62 70 63 64 22 20 2c | 20 22 2f 64 65 76 2f 73 |sbpcd" ,| "/dev/s|
|00002050| 62 70 63 64 22 20 7d 2c | 0a 20 20 7b 20 22 73 62 |bpcd" },|. { "sb|
|00002060| 70 63 64 30 22 2c 20 22 | 2f 64 65 76 2f 73 62 70 |pcd0", "|/dev/sbp|
|00002070| 63 64 30 22 20 7d 2c 0a | 20 20 7b 20 22 73 62 70 |cd0" },.| { "sbp|
|00002080| 63 64 31 22 2c 20 22 2f | 64 65 76 2f 73 62 70 63 |cd1", "/|dev/sbpc|
|00002090| 64 31 22 20 7d 2c 0a 20 | 20 7b 20 22 73 62 70 63 |d1" },. | { "sbpc|
|000020a0| 64 32 22 2c 20 22 2f 64 | 65 76 2f 73 62 70 63 64 |d2", "/d|ev/sbpcd|
|000020b0| 32 22 20 7d 2c 0a 20 20 | 7b 20 22 73 62 70 63 64 |2" },. |{ "sbpcd|
|000020c0| 33 22 2c 20 22 2f 64 65 | 76 2f 73 62 70 63 64 33 |3", "/de|v/sbpcd3|
|000020d0| 22 20 7d 2c 0a 20 20 7b | 20 22 63 64 75 33 31 61 |" },. {| "cdu31a|
|000020e0| 22 2c 20 22 2f 64 65 76 | 2f 63 64 75 33 31 61 22 |", "/dev|/cdu31a"|
|000020f0| 20 7d 2c 0a 20 20 7b 20 | 22 63 64 75 35 33 35 22 | },. { |"cdu535"|
|00002100| 2c 20 22 2f 64 65 76 2f | 63 64 75 35 33 35 22 20 |, "/dev/|cdu535" |
|00002110| 7d 2c 0a 20 20 7b 20 22 | 6d 63 64 22 2c 20 20 20 |},. { "|mcd", |
|00002120| 20 22 2f 64 65 76 2f 6d | 63 64 22 20 7d 2c 0a 20 | "/dev/m|cd" },. |
|00002130| 20 7b 20 22 6c 6d 73 63 | 64 22 2c 20 20 22 2f 64 | { "lmsc|d", "/d|
|00002140| 65 76 2f 6c 6d 73 63 64 | 22 20 7d 2c 0a 20 20 7b |ev/lmscd|" },. {|
|00002150| 20 22 73 63 64 30 22 2c | 20 20 20 22 2f 64 65 76 | "scd0",| "/dev|
|00002160| 2f 73 63 64 30 22 20 7d | 2c 0a 20 20 7b 20 22 73 |/scd0" }|,. { "s|
|00002170| 63 64 31 22 2c 20 20 20 | 22 2f 64 65 76 2f 73 63 |cd1", |"/dev/sc|
|00002180| 64 31 22 20 7d 2c 0a 20 | 20 7b 20 22 63 64 30 22 |d1" },. | { "cd0"|
|00002190| 2c 20 20 20 20 22 2f 64 | 65 76 2f 63 64 30 22 20 |, "/d|ev/cd0" |
|000021a0| 7d 2c 0a 20 20 7b 20 22 | 63 64 31 22 2c 20 20 20 |},. { "|cd1", |
|000021b0| 20 22 2f 64 65 76 2f 63 | 64 31 22 20 7d 2c 0a 20 | "/dev/c|d1" },. |
|000021c0| 20 7b 20 22 73 72 30 22 | 2c 20 20 20 20 22 2f 64 | { "sr0"|, "/d|
|000021d0| 65 76 2f 73 72 30 22 20 | 7d 2c 0a 20 20 7b 20 22 |ev/sr0" |},. { "|
|000021e0| 73 72 31 22 2c 20 20 20 | 20 22 2f 64 65 76 2f 73 |sr1", | "/dev/s|
|000021f0| 72 31 22 20 7d 2c 0a 20 | 20 7b 20 22 73 72 61 22 |r1" },. | { "sra"|
|00002200| 2c 20 20 20 20 22 2f 64 | 65 76 2f 73 72 61 22 20 |, "/d|ev/sra" |
|00002210| 7d 2c 0a 20 20 7b 20 22 | 73 72 62 22 2c 20 20 20 |},. { "|srb", |
|00002220| 20 22 2f 64 65 76 2f 73 | 72 62 22 20 7d 2c 0a 20 | "/dev/s|rb" },. |
|00002230| 20 2f 2a 20 6e 65 78 74 | 20 65 6e 74 72 79 20 69 | /* next| entry i|
|00002240| 6e 64 69 63 61 74 65 73 | 20 65 6e 64 20 6f 66 20 |ndicates| end of |
|00002250| 74 61 62 6c 65 20 2a 2f | 0a 20 20 7b 20 30 2c 20 |table */|. { 0, |
|00002260| 30 20 7d 0a 7d 3b 0a 0a | 2f 2a 20 64 69 73 70 6c |0 }.};..|/* displ|
|00002270| 61 79 20 63 6f 6d 6d 61 | 6e 64 20 75 73 61 67 65 |ay comma|nd usage|
|00002280| 20 6f 6e 20 73 74 61 6e | 64 61 72 64 20 65 72 72 | on stan|dard err|
|00002290| 6f 72 20 61 6e 64 20 65 | 78 69 74 20 2a 2f 0a 76 |or and e|xit */.v|
|000022a0| 6f 69 64 20 75 73 61 67 | 65 28 29 0a 7b 0a 20 20 |oid usag|e().{. |
|000022b0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 0a |fprintf(|stderr,.|
|000022c0| 20 20 20 20 20 20 20 20 | 20 20 22 45 6a 65 63 74 | | "Eject|
|000022d0| 20 76 65 72 73 69 6f 6e | 20 31 2e 33 20 62 79 20 | version| 1.3 by |
|000022e0| 4a 65 66 66 20 54 72 61 | 6e 74 65 72 20 28 4a 65 |Jeff Tra|nter (Je|
|000022f0| 66 66 5f 54 72 61 6e 74 | 65 72 40 4d 69 74 65 6c |ff_Trant|er@Mitel|
|00002300| 2e 43 4f 4d 29 5c 6e 22 | 0a 20 20 20 20 20 20 20 |.COM)\n"|. |
|00002310| 20 20 20 22 20 20 77 69 | 74 68 20 73 75 67 67 65 | " wi|th sugge|
|00002320| 73 74 69 6f 6e 73 2f 70 | 61 74 63 68 65 73 20 61 |stions/p|atches a|
|00002330| 64 64 65 64 20 62 79 20 | 44 69 63 6b 20 53 74 72 |dded by |Dick Str|
|00002340| 65 65 66 6c 61 6e 64 2c | 20 4d 61 72 6b 20 4c 6f |eefland,| Mark Lo|
|00002350| 72 64 2c 5c 6e 22 0a 20 | 20 20 20 20 20 20 20 20 |rd,\n". | |
|00002360| 20 22 20 20 44 6f 75 67 | 20 4c 2e 20 48 6f 66 66 | " Doug| L. Hoff|
|00002370| 6d 61 6e 20 28 68 6f 66 | 66 6d 61 6e 40 63 73 2e |man (hof|fman@cs.|
|00002380| 75 6e 63 2e 65 64 75 29 | 2c 20 42 65 6e 20 47 61 |unc.edu)|, Ben Ga|
|00002390| 6c 6c 69 61 72 74 20 28 | 62 67 61 6c 6c 69 61 40 |lliart (|bgallia@|
|000023a0| 6c 75 63 2e 65 64 75 29 | 5c 6e 22 0a 20 20 20 20 |luc.edu)|\n". |
|000023b0| 20 20 20 20 20 20 22 20 | 20 61 6e 64 20 4d 61 72 | " | and Mar|
|000023c0| 6b 75 73 20 50 69 6c 7a | 65 63 6b 65 72 20 28 6d |kus Pilz|ecker (m|
|000023d0| 61 72 6b 75 73 2e 70 69 | 6c 7a 65 63 6b 65 72 40 |arkus.pi|lzecker@|
|000023e0| 72 68 65 69 6e 2d 6e 65 | 63 6b 61 72 2e 6e 65 74 |rhein-ne|ckar.net|
|000023f0| 73 75 72 66 2e 64 65 29 | 5c 6e 22 0a 20 20 20 20 |surf.de)|\n". |
|00002400| 20 20 20 20 20 20 22 5c | 6e 22 0a 20 20 20 20 20 | "\|n". |
|00002410| 20 20 20 20 20 22 55 73 | 61 67 65 3a 5c 6e 22 0a | "Us|age:\n".|
|00002420| 20 20 20 20 20 20 20 20 | 20 20 22 20 20 65 6a 65 | | " eje|
|00002430| 63 74 20 2d 68 20 20 20 | 20 20 20 20 20 20 20 20 |ct -h | |
|00002440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002450| 2d 2d 20 64 69 73 70 6c | 61 79 20 74 68 69 73 20 |-- displ|ay this |
|00002460| 73 63 72 65 65 6e 20 61 | 6e 64 20 65 78 69 74 5c |screen a|nd exit\|
|00002470| 6e 22 0a 09 20 20 22 20 | 20 65 6a 65 63 74 20 5b |n".. " | eject [|
|00002480| 2d 66 5d 5b 2d 75 5d 5b | 2d 76 5d 20 20 20 20 20 |-f][-u][|-v] |
|00002490| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 2d 20 65 | | -- e|
|000024a0| 6a 65 63 74 20 64 65 66 | 61 75 6c 74 20 64 65 76 |ject def|ault dev|
|000024b0| 69 63 65 5c 6e 22 0a 09 | 20 20 22 20 20 65 6a 65 |ice\n"..| " eje|
|000024c0| 63 74 20 5b 2d 66 5d 5b | 2d 75 5d 5b 2d 76 5d 20 |ct [-f][|-u][-v] |
|000024d0| 3c 6e 69 63 6b 6e 61 6d | 65 3e 20 20 20 20 20 20 |<nicknam|e> |
|000024e0| 2d 2d 20 65 6a 65 63 74 | 20 64 65 76 69 63 65 20 |-- eject| device |
|000024f0| 62 79 20 6e 69 63 6b 6e | 61 6d 65 5c 6e 22 0a 09 |by nickn|ame\n"..|
|00002500| 20 20 22 20 20 65 6a 65 | 63 74 20 5b 2d 66 5d 5b | " eje|ct [-f][|
|00002510| 2d 75 5d 5b 2d 76 5d 20 | 3c 64 65 76 69 63 65 2d |-u][-v] |<device-|
|00002520| 6e 61 6d 65 3e 20 20 20 | 2d 2d 20 65 6a 65 63 74 |name> |-- eject|
|00002530| 20 64 65 76 69 63 65 20 | 62 79 20 64 65 76 69 63 | device |by devic|
|00002540| 65 20 6e 61 6d 65 5c 6e | 22 0a 09 20 20 22 20 20 |e name\n|".. " |
|00002550| 65 6a 65 63 74 20 2d 64 | 20 20 20 20 20 20 20 20 |eject -d| |
|00002560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002570| 20 20 20 2d 2d 20 64 69 | 73 70 6c 61 79 20 64 65 | -- di|splay de|
|00002580| 66 61 75 6c 74 20 64 65 | 76 69 63 65 5c 6e 22 0a |fault de|vice\n".|
|00002590| 09 20 20 22 20 20 65 6a | 65 63 74 20 2d 6e 20 20 |. " ej|ect -n |
|000025a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025b0| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 64 69 73 70 | | -- disp|
|000025c0| 6c 61 79 20 64 65 76 69 | 63 65 20 6e 69 63 6b 6e |lay devi|ce nickn|
|000025d0| 61 6d 65 73 5c 6e 22 0a | 09 20 20 22 20 20 65 6a |ames\n".|. " ej|
|000025e0| 65 63 74 20 2d 61 20 5b | 6f 6e 7c 6f 66 66 7c 31 |ect -a [|on|off|1|
|000025f0| 7c 30 5d 20 5b 2d 76 5d | 20 20 20 20 20 20 20 20 ||0] [-v]| |
|00002600| 20 2d 2d 20 74 75 72 6e | 20 61 75 74 6f 2d 65 6a | -- turn| auto-ej|
|00002610| 65 63 74 20 66 65 61 74 | 75 72 65 20 6f 6e 20 6f |ect feat|ure on o|
|00002620| 72 20 6f 66 66 5c 6e 22 | 0a 20 20 20 20 20 20 20 |r off\n"|. |
|00002630| 20 20 20 22 20 20 65 6a | 65 63 74 20 2d 63 20 3c | " ej|ect -c <|
|00002640| 73 6c 6f 74 3e 20 5b 2d | 76 5d 20 20 20 20 20 20 |slot> [-|v] |
|00002650| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 73 77 69 74 | | -- swit|
|00002660| 63 68 20 43 44 73 20 6f | 6e 20 61 6e 20 49 44 45 |ch CDs o|n an IDE|
|00002670| 20 63 64 72 6f 6d 20 63 | 68 61 6e 67 65 72 5c 6e | cdrom c|hanger\n|
|00002680| 22 0a 09 20 20 22 5c 6e | 22 0a 09 20 20 22 4f 70 |".. "\n|".. "Op|
|00002690| 74 69 6f 6e 73 3a 5c 6e | 22 0a 09 20 20 22 20 20 |tions:\n|".. " |
|000026a0| 20 20 2d 66 20 20 66 6f | 72 63 65 20 65 6a 65 63 | -f fo|rce ejec|
|000026b0| 74 20 65 76 65 6e 20 69 | 66 20 64 65 76 69 63 65 |t even i|f device|
|000026c0| 20 69 73 20 6d 6f 75 6e | 74 65 64 2e 5c 6e 22 0a | is moun|ted.\n".|
|000026d0| 09 20 20 22 20 20 20 20 | 2d 75 20 20 75 6e 6d 6f |. " |-u unmo|
|000026e0| 75 6e 74 20 62 65 66 6f | 72 65 20 66 6f 72 63 69 |unt befo|re forci|
|000026f0| 6e 67 20 61 6e 20 65 6a | 65 63 74 2e 5c 6e 22 0a |ng an ej|ect.\n".|
|00002700| 09 20 20 22 20 20 20 20 | 2d 76 20 20 65 6e 61 62 |. " |-v enab|
|00002710| 6c 65 73 20 76 65 72 62 | 6f 73 65 20 6f 75 74 70 |les verb|ose outp|
|00002720| 75 74 2e 5c 6e 22 0a 09 | 20 20 29 3b 0a 20 20 65 |ut.\n"..| );. e|
|00002730| 78 69 74 28 31 29 3b 0a | 7d 0a 0a 2f 2a 20 68 61 |xit(1);.|}../* ha|
|00002740| 6e 64 6c 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |ndle com|mand lin|
|00002750| 65 20 6f 70 74 69 6f 6e | 73 20 2a 2f 0a 76 6f 69 |e option|s */.voi|
|00002760| 64 20 70 61 72 73 65 5f | 61 72 67 73 28 69 6e 74 |d parse_|args(int|
|00002770| 20 61 72 67 63 2c 20 63 | 68 61 72 20 2a 2a 61 72 | argc, c|har **ar|
|00002780| 67 76 29 0a 7b 0a 20 20 | 63 6f 6e 73 74 20 63 68 |gv).{. |const ch|
|00002790| 61 72 20 20 20 20 20 2a | 66 6c 61 67 73 20 3d 20 |ar *|flags = |
|000027a0| 22 68 66 64 6e 61 3a 63 | 3a 75 76 22 3b 0a 20 20 |"hfdna:c|:uv";. |
|000027b0| 69 6e 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |int | |
|000027c0| 63 3b 0a 0a 20 20 77 68 | 69 6c 65 20 28 28 63 20 |c;.. wh|ile ((c |
|000027d0| 3d 20 67 65 74 6f 70 74 | 28 61 72 67 63 2c 20 61 |= getopt|(argc, a|
|000027e0| 72 67 76 2c 20 66 6c 61 | 67 73 29 29 20 21 3d 20 |rgv, fla|gs)) != |
|000027f0| 45 4f 46 29 20 7b 0a 20 | 20 20 20 73 77 69 74 63 |EOF) {. | switc|
|00002800| 68 20 28 63 29 20 7b 0a | 20 20 20 20 63 61 73 65 |h (c) {.| case|
|00002810| 20 27 68 27 3a 0a 20 20 | 20 20 20 20 75 73 61 67 | 'h':. | usag|
|00002820| 65 28 29 3b 0a 20 20 20 | 20 20 20 62 72 65 61 6b |e();. | break|
|00002830| 3b 0a 20 20 20 20 63 61 | 73 65 20 27 66 27 3a 0a |;. ca|se 'f':.|
|00002840| 20 20 20 20 20 20 66 5f | 6f 70 74 69 6f 6e 20 3d | f_|option =|
|00002850| 20 31 3b 0a 20 20 20 20 | 20 20 62 72 65 61 6b 3b | 1;. | break;|
|00002860| 0a 20 20 20 20 63 61 73 | 65 20 27 64 27 3a 0a 20 |. cas|e 'd':. |
|00002870| 20 20 20 20 20 64 5f 6f | 70 74 69 6f 6e 20 3d 20 | d_o|ption = |
|00002880| 31 3b 0a 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a |1;. | break;.|
|00002890| 20 20 20 20 63 61 73 65 | 20 27 6e 27 3a 0a 20 20 | case| 'n':. |
|000028a0| 20 20 20 20 6e 5f 6f 70 | 74 69 6f 6e 20 3d 20 31 | n_op|tion = 1|
|000028b0| 3b 0a 20 20 20 20 20 20 | 62 72 65 61 6b 3b 0a 20 |;. |break;. |
|000028c0| 20 20 20 63 61 73 65 20 | 27 61 27 3a 0a 20 20 20 | case |'a':. |
|000028d0| 20 20 20 61 5f 6f 70 74 | 69 6f 6e 20 3d 20 31 3b | a_opt|ion = 1;|
|000028e0| 0a 20 20 20 20 20 20 2f | 2a 20 6d 61 6b 65 20 73 |. /|* make s|
|000028f0| 6f 6d 65 20 70 6f 6f 72 | 20 67 75 65 73 73 65 73 |ome poor| guesses|
|00002900| 20 61 74 20 77 68 61 74 | 20 6d 65 61 6e 73 20 6f | at what| means o|
|00002910| 6e 20 61 6e 64 20 6f 66 | 66 20 2a 2f 0a 20 20 20 |n and of|f */. |
|00002920| 20 20 20 69 66 20 28 21 | 73 74 72 63 6d 70 28 6f | if (!|strcmp(o|
|00002930| 70 74 61 72 67 2c 20 22 | 30 22 29 29 0a 09 61 5f |ptarg, "|0"))..a_|
|00002940| 61 72 67 20 3d 20 30 3b | 0a 20 20 20 20 20 20 65 |arg = 0;|. e|
|00002950| 6c 73 65 20 69 66 20 28 | 21 73 74 72 63 6d 70 28 |lse if (|!strcmp(|
|00002960| 6f 70 74 61 72 67 2c 20 | 22 6f 66 66 22 29 29 0a |optarg, |"off")).|
|00002970| 09 61 5f 61 72 67 20 3d | 20 30 3b 0a 20 20 20 20 |.a_arg =| 0;. |
|00002980| 20 20 65 6c 73 65 20 69 | 66 20 28 21 73 74 72 63 | else i|f (!strc|
|00002990| 6d 70 28 6f 70 74 61 72 | 67 2c 20 22 61 75 73 22 |mp(optar|g, "aus"|
|000029a0| 29 29 0a 09 61 5f 61 72 | 67 20 3d 20 30 3b 0a 20 |))..a_ar|g = 0;. |
|000029b0| 20 20 20 20 20 65 6c 73 | 65 20 69 66 20 28 21 73 | els|e if (!s|
|000029c0| 74 72 63 6d 70 28 6f 70 | 74 61 72 67 2c 20 22 66 |trcmp(op|targ, "f|
|000029d0| 65 72 6d 65 22 29 29 0a | 09 61 5f 61 72 67 20 3d |erme")).|.a_arg =|
|000029e0| 20 30 3b 0a 20 20 20 20 | 20 20 65 6c 73 65 20 69 | 0;. | else i|
|000029f0| 66 20 28 21 73 74 72 63 | 6d 70 28 6f 70 74 61 72 |f (!strc|mp(optar|
|00002a00| 67 2c 20 22 31 22 29 29 | 0a 09 61 5f 61 72 67 20 |g, "1"))|..a_arg |
|00002a10| 3d 20 31 3b 0a 20 20 20 | 20 20 20 65 6c 73 65 20 |= 1;. | else |
|00002a20| 69 66 20 28 21 73 74 72 | 63 6d 70 28 6f 70 74 61 |if (!str|cmp(opta|
|00002a30| 72 67 2c 20 22 6f 6e 22 | 29 29 0a 09 61 5f 61 72 |rg, "on"|))..a_ar|
|00002a40| 67 20 3d 20 31 3b 0a 20 | 20 20 20 20 20 65 6c 73 |g = 1;. | els|
|00002a50| 65 20 69 66 20 28 21 73 | 74 72 63 6d 70 28 6f 70 |e if (!s|trcmp(op|
|00002a60| 74 61 72 67 2c 20 22 61 | 75 66 22 29 29 0a 09 61 |targ, "a|uf"))..a|
|00002a70| 5f 61 72 67 20 3d 20 31 | 3b 0a 20 20 20 20 20 20 |_arg = 1|;. |
|00002a80| 65 6c 73 65 20 69 66 20 | 28 21 73 74 72 63 6d 70 |else if |(!strcmp|
|00002a90| 28 6f 70 74 61 72 67 2c | 20 22 61 6c 6c 75 6d 65 |(optarg,| "allume|
|00002aa0| 65 22 29 29 0a 09 61 5f | 61 72 67 20 3d 20 31 3b |e"))..a_|arg = 1;|
|00002ab0| 0a 20 20 20 20 20 20 65 | 6c 73 65 0a 09 75 73 61 |. e|lse..usa|
|00002ac0| 67 65 28 29 3b 0a 20 20 | 20 20 20 20 62 72 65 61 |ge();. | brea|
|00002ad0| 6b 3b 0a 20 20 20 20 63 | 61 73 65 20 27 63 27 3a |k;. c|ase 'c':|
|00002ae0| 0a 20 20 20 20 20 20 63 | 5f 6f 70 74 69 6f 6e 20 |. c|_option |
|00002af0| 3d 20 31 3b 0a 20 20 20 | 20 20 20 63 5f 61 72 67 |= 1;. | c_arg|
|00002b00| 20 3d 20 61 74 6f 69 28 | 6f 70 74 61 72 67 29 3b | = atoi(|optarg);|
|00002b10| 0a 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0a 20 20 |. b|reak;. |
|00002b20| 20 20 63 61 73 65 20 27 | 75 27 3a 0a 20 20 20 20 | case '|u':. |
|00002b30| 20 20 75 5f 6f 70 74 69 | 6f 6e 20 3d 20 31 3b 0a | u_opti|on = 1;.|
|00002b40| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0a 20 20 20 | br|eak;. |
|00002b50| 20 63 61 73 65 20 27 76 | 27 3a 0a 20 20 20 20 20 | case 'v|':. |
|00002b60| 20 76 5f 6f 70 74 69 6f | 6e 20 3d 20 31 3b 0a 20 | v_optio|n = 1;. |
|00002b70| 20 20 20 20 20 62 72 65 | 61 6b 3b 0a 20 20 20 20 | bre|ak;. |
|00002b80| 63 61 73 65 20 27 3f 27 | 3a 0a 20 20 20 20 20 20 |case '?'|:. |
|00002b90| 75 73 61 67 65 28 29 3b | 0a 20 20 20 20 20 20 62 |usage();|. b|
|00002ba0| 72 65 61 6b 3b 0a 20 20 | 20 20 7d 0a 20 20 7d 0a |reak;. | }. }.|
|00002bb0| 0a 20 20 2f 2a 20 63 68 | 65 63 6b 20 66 6f 72 20 |. /* ch|eck for |
|00002bc0| 61 20 73 69 6e 67 6c 65 | 20 61 64 64 69 74 69 6f |a single| additio|
|00002bd0| 6e 61 6c 20 61 72 67 75 | 6d 65 6e 74 20 2a 2f 0a |nal argu|ment */.|
|00002be0| 20 20 69 66 20 28 28 61 | 72 67 63 20 2d 20 6f 70 | if ((a|rgc - op|
|00002bf0| 74 69 6e 64 29 20 3e 20 | 31 29 0a 20 20 20 20 75 |tind) > |1). u|
|00002c00| 73 61 67 65 28 29 3b 20 | 2f 2a 20 74 6f 6f 20 6d |sage(); |/* too m|
|00002c10| 61 6e 79 20 61 72 67 75 | 6d 65 6e 74 73 20 2a 2f |any argu|ments */|
|00002c20| 0a 20 20 0a 20 20 69 66 | 20 28 28 61 72 67 63 20 |. . if| ((argc |
|00002c30| 2d 20 6f 70 74 69 6e 64 | 29 20 3d 3d 20 31 29 0a |- optind|) == 1).|
|00002c40| 20 20 20 20 73 74 72 6e | 63 70 79 28 64 65 76 69 | strn|cpy(devi|
|00002c50| 63 65 2c 20 61 72 67 76 | 5b 6f 70 74 69 6e 64 5d |ce, argv|[optind]|
|00002c60| 2c 20 31 30 32 34 29 3b | 20 2f 2a 20 6f 6e 65 20 |, 1024);| /* one |
|00002c70| 61 72 67 75 6d 65 6e 74 | 20 2a 2f 0a 7d 0a 0a 69 |argument| */.}..i|
|00002c80| 6e 74 0a 6d 61 69 6e 28 | 69 6e 74 20 61 72 67 63 |nt.main(|int argc|
|00002c90| 2c 20 63 68 61 72 20 2a | 2a 61 72 67 76 29 0a 7b |, char *|*argv).{|
|00002ca0| 0a 20 20 69 6e 74 20 66 | 64 3b 20 20 20 20 20 20 |. int f|d; |
|00002cb0| 20 20 20 20 20 2f 2a 20 | 66 69 6c 65 20 64 65 73 | /* |file des|
|00002cc0| 63 72 69 70 74 6f 72 20 | 66 6f 72 20 43 44 2d 52 |criptor |for CD-R|
|00002cd0| 4f 4d 20 64 65 76 69 63 | 65 20 2a 2f 0a 20 20 69 |OM devic|e */. i|
|00002ce0| 6e 74 20 73 74 61 74 75 | 73 3b 20 20 20 20 20 20 |nt statu|s; |
|00002cf0| 20 2f 2a 20 72 65 74 75 | 72 6e 20 73 74 61 74 75 | /* retu|rn statu|
|00002d00| 73 20 66 6f 72 20 73 79 | 73 74 65 6d 20 63 61 6c |s for sy|stem cal|
|00002d10| 6c 73 20 2a 2f 0a 20 20 | 69 6e 74 20 69 3b 20 20 |ls */. |int i; |
|00002d20| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 6c 6f 6f | | /* loo|
|00002d30| 70 20 63 6f 75 6e 74 65 | 72 20 2a 2f 0a 20 20 63 |p counte|r */. c|
|00002d40| 68 61 72 20 73 5b 32 35 | 35 5d 3b 20 20 20 20 20 |har s[25|5]; |
|00002d50| 20 2f 2a 20 66 6f 72 20 | 65 72 72 6f 72 20 6d 65 | /* for |error me|
|00002d60| 73 73 61 67 65 73 20 2a | 2f 0a 20 20 63 68 61 72 |ssages *|/. char|
|00002d70| 20 73 31 5b 31 30 32 34 | 5d 20 3d 20 7b 20 31 30 | s1[1024|] = { 10|
|00002d80| 32 34 2a 27 5c 30 27 7d | 3b 20 20 20 20 20 2f 2a |24*'\0'}|; /*|
|00002d90| 20 66 6f 72 20 72 65 61 | 64 69 6e 67 20 2f 65 74 | for rea|ding /et|
|00002da0| 63 2f 6d 74 61 62 20 2a | 2f 0a 20 20 63 68 61 72 |c/mtab *|/. char|
|00002db0| 20 73 32 5b 31 30 32 34 | 5d 20 3d 20 7b 20 31 30 | s2[1024|] = { 10|
|00002dc0| 32 34 2a 27 5c 30 27 7d | 3b 20 20 20 20 20 2f 2a |24*'\0'}|; /*|
|00002dd0| 20 22 20 20 20 22 20 20 | 20 20 20 20 20 22 20 20 | " " | " |
|00002de0| 20 20 20 20 20 20 20 2a | 2f 0a 20 20 63 68 61 72 | *|/. char|
|00002df0| 20 64 75 6d 6d 79 5b 32 | 35 36 5d 3b 20 20 2f 2a | dummy[2|56]; /*|
|00002e00| 20 22 20 20 20 22 20 20 | 20 20 20 20 20 22 20 20 | " " | " |
|00002e10| 20 20 20 20 20 20 20 2a | 2f 0a 20 20 63 68 61 72 | *|/. char|
|00002e20| 20 75 6d 6f 75 6e 74 5f | 63 6d 64 5b 31 30 32 34 | umount_|cmd[1024|
|00002e30| 5d 20 3d 20 22 2f 62 69 | 6e 2f 75 6d 6f 75 6e 74 |] = "/bi|n/umount|
|00002e40| 20 22 3b 20 2f 2a 20 75 | 6d 6f 75 6e 74 20 63 6f | "; /* u|mount co|
|00002e50| 6d 6d 61 6e 64 20 73 74 | 72 69 6e 67 20 2a 2f 0a |mmand st|ring */.|
|00002e60| 20 20 63 68 61 72 20 2a | 73 33 3b 20 20 20 20 20 | char *|s3; |
|00002e70| 20 20 20 20 2f 2a 20 67 | 65 6e 65 72 61 6c 20 70 | /* g|eneral p|
|00002e80| 75 72 70 6f 73 65 20 2a | 2f 0a 20 20 46 49 4c 45 |urpose *|/. FILE|
|00002e90| 20 2a 66 70 3b 20 20 20 | 20 20 20 20 20 20 2f 2a | *fp; | /*|
|00002ea0| 20 66 6f 72 20 72 65 61 | 64 69 6e 67 20 2f 65 74 | for rea|ding /et|
|00002eb0| 63 2f 6d 74 61 62 20 2a | 2f 0a 0a 20 20 2f 2a 20 |c/mtab *|/.. /* |
|00002ec0| 67 65 74 20 64 65 66 61 | 75 6c 74 20 64 65 76 69 |get defa|ult devi|
|00002ed0| 63 65 20 66 72 6f 6d 20 | 24 43 44 52 4f 4d 20 65 |ce from |$CDROM e|
|00002ee0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 76 61 72 69 61 |nvironme|nt varia|
|00002ef0| 62 6c 65 3b 20 69 66 20 | 6e 6f 74 20 73 65 74 20 |ble; if |not set |
|00002f00| 74 68 65 6e 20 75 73 65 | 20 63 6f 6d 70 69 6c 65 |then use| compile|
|00002f10| 64 20 69 6e 20 64 65 66 | 61 75 6c 74 20 2a 2f 0a |d in def|ault */.|
|00002f20| 20 20 73 33 20 3d 20 67 | 65 74 65 6e 76 28 22 43 | s3 = g|etenv("C|
|00002f30| 44 52 4f 4d 22 29 3b 0a | 20 20 69 66 20 28 73 33 |DROM");.| if (s3|
|00002f40| 20 21 3d 20 4e 55 4c 4c | 29 0a 20 20 20 20 73 74 | != NULL|). st|
|00002f50| 72 6e 63 70 79 28 64 65 | 66 61 75 6c 74 5f 64 65 |rncpy(de|fault_de|
|00002f60| 76 69 63 65 2c 20 73 33 | 2c 20 31 30 32 34 29 3b |vice, s3|, 1024);|
|00002f70| 0a 20 20 65 6c 73 65 0a | 20 20 20 20 73 74 72 6e |. else.| strn|
|00002f80| 63 70 79 28 64 65 66 61 | 75 6c 74 5f 64 65 76 69 |cpy(defa|ult_devi|
|00002f90| 63 65 2c 20 22 2f 64 65 | 76 2f 63 64 72 6f 6d 22 |ce, "/de|v/cdrom"|
|00002fa0| 2c 20 31 30 32 34 29 3b | 0a 20 20 0a 20 20 2f 2a |, 1024);|. . /*|
|00002fb0| 20 6d 61 6b 65 20 64 65 | 66 61 75 6c 74 20 64 65 | make de|fault de|
|00002fc0| 76 69 63 65 20 74 68 65 | 20 64 65 66 61 75 6c 74 |vice the| default|
|00002fd0| 20 2a 2f 0a 20 20 73 74 | 72 6e 63 70 79 28 64 65 | */. st|rncpy(de|
|00002fe0| 76 69 63 65 2c 20 64 65 | 66 61 75 6c 74 5f 64 65 |vice, de|fault_de|
|00002ff0| 76 69 63 65 2c 20 31 30 | 32 34 29 3b 0a 20 20 0a |vice, 10|24);. .|
|00003000| 20 20 2f 2a 20 70 61 72 | 73 65 20 74 68 65 20 63 | /* par|se the c|
|00003010| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 61 72 67 75 |ommand l|ine argu|
|00003020| 6d 65 6e 74 73 20 2a 2f | 0a 20 20 70 61 72 73 65 |ments */|. parse|
|00003030| 5f 61 72 67 73 28 61 72 | 67 63 2c 20 61 72 67 76 |_args(ar|gc, argv|
|00003040| 29 3b 0a 20 20 0a 20 20 | 2f 2a 20 68 61 6e 64 6c |);. . |/* handl|
|00003050| 65 20 2d 64 20 6f 70 74 | 69 6f 6e 20 2a 2f 0a 20 |e -d opt|ion */. |
|00003060| 20 69 66 20 28 64 5f 6f | 70 74 69 6f 6e 29 20 7b | if (d_o|ption) {|
|00003070| 0a 20 20 20 20 70 72 69 | 6e 74 66 28 22 65 6a 65 |. pri|ntf("eje|
|00003080| 63 74 3a 20 64 65 66 61 | 75 6c 74 20 64 65 76 69 |ct: defa|ult devi|
|00003090| 63 65 20 69 73 20 60 25 | 73 27 5c 6e 22 2c 20 64 |ce is `%|s'\n", d|
|000030a0| 65 66 61 75 6c 74 5f 64 | 65 76 69 63 65 29 3b 0a |efault_d|evice);.|
|000030b0| 20 20 20 20 65 78 69 74 | 28 30 29 3b 0a 20 20 7d | exit|(0);. }|
|000030c0| 0a 0a 20 20 2f 2a 20 68 | 61 6e 64 6c 65 20 2d 6e |.. /* h|andle -n|
|000030d0| 20 6f 70 74 69 6f 6e 20 | 2a 2f 20 20 0a 20 20 69 | option |*/ . i|
|000030e0| 66 20 28 6e 5f 6f 70 74 | 69 6f 6e 29 20 7b 0a 20 |f (n_opt|ion) {. |
|000030f0| 20 20 20 70 72 69 6e 74 | 66 28 22 65 6a 65 63 74 | print|f("eject|
|00003100| 3a 20 64 65 76 69 63 65 | 20 6e 69 63 6b 6e 61 6d |: device| nicknam|
|00003110| 65 73 3a 5c 6e 22 29 3b | 0a 20 20 20 20 70 72 69 |es:\n");|. pri|
|00003120| 6e 74 66 28 22 4e 69 63 | 6b 6e 61 6d 65 20 20 44 |ntf("Nic|kname D|
|00003130| 65 76 69 63 65 5c 6e 22 | 29 3b 0a 20 20 20 20 70 |evice\n"|);. p|
|00003140| 72 69 6e 74 66 28 22 2d | 2d 2d 2d 2d 2d 2d 2d 20 |rintf("-|------- |
|00003150| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 5c 6e 22 29 3b | -------|---\n");|
|00003160| 0a 20 20 20 20 66 6f 72 | 20 28 69 20 3d 20 30 20 |. for| (i = 0 |
|00003170| 3b 20 6e 69 63 6b 6e 61 | 6d 65 5b 69 5d 2e 6e 61 |; nickna|me[i].na|
|00003180| 6d 65 20 21 3d 20 30 20 | 3b 20 69 2b 2b 29 0a 20 |me != 0 |; i++). |
|00003190| 20 20 20 20 20 70 72 69 | 6e 74 66 28 22 25 2d 38 | pri|ntf("%-8|
|000031a0| 73 20 20 25 2d 38 73 5c | 6e 22 2c 20 6e 69 63 6b |s %-8s\|n", nick|
|000031b0| 6e 61 6d 65 5b 69 5d 2e | 6e 61 6d 65 2c 20 6e 69 |name[i].|name, ni|
|000031c0| 63 6b 6e 61 6d 65 5b 69 | 5d 2e 64 65 76 69 63 65 |ckname[i|].device|
|000031d0| 29 3b 0a 20 20 20 20 65 | 78 69 74 28 30 29 3b 0a |);. e|xit(0);.|
|000031e0| 20 20 7d 0a 0a 20 20 69 | 66 20 28 76 5f 6f 70 74 | }.. i|f (v_opt|
|000031f0| 69 6f 6e 29 0a 20 20 20 | 20 70 72 69 6e 74 66 28 |ion). | printf(|
|00003200| 22 65 6a 65 63 74 3a 20 | 64 65 76 69 63 65 20 6e |"eject: |device n|
|00003210| 61 6d 65 20 69 73 20 60 | 25 73 27 5c 6e 22 2c 20 |ame is `|%s'\n", |
|00003220| 64 65 76 69 63 65 29 3b | 0a 0a 20 20 2f 2a 20 63 |device);|.. /* c|
|00003230| 68 65 63 6b 20 69 66 20 | 64 65 76 69 63 65 20 69 |heck if |device i|
|00003240| 73 20 61 20 6e 69 63 6b | 6e 61 6d 65 20 2a 2f 0a |s a nick|name */.|
|00003250| 20 20 66 6f 72 20 28 69 | 20 3d 20 30 20 3b 20 6e | for (i| = 0 ; n|
|00003260| 69 63 6b 6e 61 6d 65 5b | 69 5d 2e 6e 61 6d 65 20 |ickname[|i].name |
|00003270| 21 3d 20 30 20 3b 20 69 | 2b 2b 29 0a 20 20 20 20 |!= 0 ; i|++). |
|00003280| 69 66 20 28 21 73 74 72 | 63 6d 70 28 64 65 76 69 |if (!str|cmp(devi|
|00003290| 63 65 2c 20 6e 69 63 6b | 6e 61 6d 65 5b 69 5d 2e |ce, nick|name[i].|
|000032a0| 6e 61 6d 65 29 29 20 7b | 0a 20 20 20 20 20 20 69 |name)) {|. i|
|000032b0| 66 20 28 76 5f 6f 70 74 | 69 6f 6e 29 0a 09 70 72 |f (v_opt|ion)..pr|
|000032c0| 69 6e 74 66 28 22 65 6a | 65 63 74 3a 20 60 25 73 |intf("ej|ect: `%s|
|000032d0| 27 20 69 73 20 61 20 6e | 69 63 6b 6e 61 6d 65 20 |' is a n|ickname |
|000032e0| 66 6f 72 20 60 25 73 27 | 5c 6e 22 2c 20 64 65 76 |for `%s'|\n", dev|
|000032f0| 69 63 65 2c 20 6e 69 63 | 6b 6e 61 6d 65 5b 69 5d |ice, nic|kname[i]|
|00003300| 2e 64 65 76 69 63 65 29 | 3b 0a 20 20 20 20 20 20 |.device)|;. |
|00003310| 73 74 72 6e 63 70 79 28 | 64 65 76 69 63 65 2c 20 |strncpy(|device, |
|00003320| 6e 69 63 6b 6e 61 6d 65 | 5b 69 5d 2e 64 65 76 69 |nickname|[i].devi|
|00003330| 63 65 2c 20 31 30 32 34 | 29 3b 0a 20 20 20 20 20 |ce, 1024|);. |
|00003340| 20 62 72 65 61 6b 3b 0a | 20 20 20 20 7d 0a 0a 20 | break;.| }.. |
|00003350| 20 2f 2a 20 63 68 65 63 | 6b 20 69 66 20 64 65 76 | /* chec|k if dev|
|00003360| 69 63 65 20 69 73 20 61 | 20 73 79 6d 62 6f 6c 69 |ice is a| symboli|
|00003370| 63 20 6c 69 6e 6b 2e 20 | 49 66 20 73 6f 2c 20 66 |c link. |If so, f|
|00003380| 69 6e 64 20 6f 75 74 20 | 77 68 61 74 20 69 74 20 |ind out |what it |
|00003390| 70 6f 69 6e 74 73 20 74 | 6f 20 2a 2f 0a 20 20 73 |points t|o */. s|
|000033a0| 74 61 74 75 73 20 3d 20 | 72 65 61 64 6c 69 6e 6b |tatus = |readlink|
|000033b0| 28 64 65 76 69 63 65 2c | 20 73 31 2c 20 73 69 7a |(device,| s1, siz|
|000033c0| 65 6f 66 28 73 31 29 29 | 3b 0a 20 20 69 66 20 28 |eof(s1))|;. if (|
|000033d0| 73 74 61 74 75 73 20 21 | 3d 20 2d 31 29 20 7b 0a |status !|= -1) {.|
|000033e0| 20 20 20 20 73 31 5b 73 | 74 61 74 75 73 5d 20 3d | s1[s|tatus] =|
|000033f0| 20 30 3b 0a 20 20 20 20 | 69 66 20 28 73 31 5b 30 | 0;. |if (s1[0|
|00003400| 5d 20 3d 3d 20 27 2f 27 | 29 20 7b 0a 20 20 20 20 |] == '/'|) {. |
|00003410| 20 20 2f 2a 20 61 62 73 | 6f 6c 75 74 65 20 6c 69 | /* abs|olute li|
|00003420| 6e 6b 20 2a 2f 0a 20 20 | 20 20 20 20 73 74 72 6e |nk */. | strn|
|00003430| 63 70 79 28 73 32 2c 20 | 73 31 2c 20 31 30 32 34 |cpy(s2, |s1, 1024|
|00003440| 29 3b 0a 20 20 20 20 7d | 20 65 6c 73 65 20 7b 0a |);. }| else {.|
|00003450| 20 20 20 20 20 20 2f 2a | 20 61 20 72 65 6c 61 74 | /*| a relat|
|00003460| 69 76 65 20 6c 69 6e 6b | 20 2a 2f 0a 20 20 20 20 |ive link| */. |
|00003470| 20 20 73 74 72 6e 63 70 | 79 28 73 32 2c 20 64 65 | strncp|y(s2, de|
|00003480| 76 69 63 65 2c 20 31 30 | 32 34 29 3b 0a 20 20 20 |vice, 10|24);. |
|00003490| 20 20 20 73 33 20 3d 20 | 73 74 72 72 63 68 72 28 | s3 = |strrchr(|
|000034a0| 73 32 2c 20 27 2f 27 29 | 3b 0a 20 20 20 20 20 20 |s2, '/')|;. |
|000034b0| 69 66 20 28 73 33 20 21 | 3d 20 30 29 20 7b 0a 09 |if (s3 !|= 0) {..|
|000034c0| 73 33 5b 31 5d 20 3d 20 | 30 3b 0a 09 73 74 72 63 |s3[1] = |0;..strc|
|000034d0| 61 74 28 73 32 2c 20 73 | 31 29 3b 0a 20 20 20 20 |at(s2, s|1);. |
|000034e0| 20 20 7d 0a 20 20 20 20 | 7d 0a 20 20 20 20 69 66 | }. |}. if|
|000034f0| 20 28 76 5f 6f 70 74 69 | 6f 6e 29 0a 20 20 20 20 | (v_opti|on). |
|00003500| 20 20 70 72 69 6e 74 66 | 28 22 65 6a 65 63 74 3a | printf|("eject:|
|00003510| 20 60 25 73 27 20 69 73 | 20 61 20 6c 69 6e 6b 20 | `%s' is| a link |
|00003520| 74 6f 20 60 25 73 27 5c | 6e 22 2c 20 64 65 76 69 |to `%s'\|n", devi|
|00003530| 63 65 2c 20 73 32 29 3b | 0a 20 20 20 20 73 74 72 |ce, s2);|. str|
|00003540| 6e 63 70 79 28 64 65 76 | 69 63 65 2c 20 73 32 2c |ncpy(dev|ice, s2,|
|00003550| 20 31 30 32 34 29 3b 0a | 20 20 7d 0a 0a 20 20 2f | 1024);.| }.. /|
|00003560| 2a 20 6f 70 65 6e 20 64 | 65 76 69 63 65 20 2a 2f |* open d|evice */|
|00003570| 20 20 0a 20 20 66 64 20 | 3d 20 6f 70 65 6e 28 64 | . fd |= open(d|
|00003580| 65 76 69 63 65 2c 20 4f | 5f 52 44 4f 4e 4c 59 29 |evice, O|_RDONLY)|
|00003590| 3b 0a 20 20 69 66 20 28 | 66 64 20 3c 20 30 29 20 |;. if (|fd < 0) |
|000035a0| 7b 0a 20 20 20 20 73 70 | 72 69 6e 74 66 28 73 2c |{. sp|rintf(s,|
|000035b0| 20 22 65 6a 65 63 74 3a | 20 6f 70 65 6e 20 66 61 | "eject:| open fa|
|000035c0| 69 6c 65 64 20 66 6f 72 | 20 60 25 73 27 22 2c 20 |iled for| `%s'", |
|000035d0| 64 65 76 69 63 65 29 3b | 0a 20 20 20 20 70 65 72 |device);|. per|
|000035e0| 72 6f 72 28 73 29 3b 0a | 20 20 20 20 65 78 69 74 |ror(s);.| exit|
|000035f0| 28 31 29 3b 0a 20 20 7d | 0a 0a 20 20 2f 2a 20 68 |(1);. }|.. /* h|
|00003600| 61 6e 64 6c 65 20 61 75 | 74 6f 2d 65 6a 65 63 74 |andle au|to-eject|
|00003610| 20 6f 70 74 69 6f 6e 20 | 2a 2f 0a 20 20 69 66 20 | option |*/. if |
|00003620| 28 61 5f 6f 70 74 69 6f | 6e 29 20 7b 0a 23 69 66 |(a_optio|n) {.#if|
|00003630| 64 65 66 20 43 44 52 4f | 4d 45 4a 45 43 54 5f 53 |def CDRO|MEJECT_S|
|00003640| 57 0a 20 20 20 20 69 66 | 20 28 76 5f 6f 70 74 69 |W. if| (v_opti|
|00003650| 6f 6e 29 0a 20 20 20 20 | 20 20 69 66 20 28 61 5f |on). | if (a_|
|00003660| 61 72 67 29 0a 09 70 72 | 69 6e 74 66 28 22 65 6a |arg)..pr|intf("ej|
|00003670| 65 63 74 3a 20 65 6e 61 | 62 6c 69 6e 67 20 61 75 |ect: ena|bling au|
|00003680| 74 6f 2d 65 6a 65 63 74 | 20 6d 6f 64 65 5c 6e 22 |to-eject| mode\n"|
|00003690| 29 3b 0a 20 20 20 20 20 | 20 65 6c 73 65 0a 09 70 |);. | else..p|
|000036a0| 72 69 6e 74 66 28 22 65 | 6a 65 63 74 3a 20 64 69 |rintf("e|ject: di|
|000036b0| 73 61 62 6c 69 6e 67 20 | 61 75 74 6f 2d 65 6a 65 |sabling |auto-eje|
|000036c0| 63 74 20 6d 6f 64 65 5c | 6e 22 29 3b 0a 20 20 20 |ct mode\|n");. |
|000036d0| 20 73 74 61 74 75 73 20 | 3d 20 69 6f 63 74 6c 28 | status |= ioctl(|
|000036e0| 66 64 2c 20 43 44 52 4f | 4d 45 4a 45 43 54 5f 53 |fd, CDRO|MEJECT_S|
|000036f0| 57 2c 20 61 5f 61 72 67 | 29 3b 0a 20 20 20 20 69 |W, a_arg|);. i|
|00003700| 66 20 28 73 74 61 74 75 | 73 20 21 3d 20 30 29 20 |f (statu|s != 0) |
|00003710| 7b 0a 20 20 20 20 20 20 | 73 70 72 69 6e 74 66 28 |{. |sprintf(|
|00003720| 73 2c 20 22 65 6a 65 63 | 74 3a 20 43 44 52 4f 4d |s, "ejec|t: CDROM|
|00003730| 45 4a 45 43 54 5f 53 57 | 20 69 6f 63 74 6c 20 66 |EJECT_SW| ioctl f|
|00003740| 61 69 6c 65 64 20 66 6f | 72 20 60 25 73 27 22 2c |ailed fo|r `%s'",|
|00003750| 20 64 65 76 69 63 65 29 | 3b 0a 20 20 20 20 20 20 | device)|;. |
|00003760| 70 65 72 72 6f 72 28 73 | 29 3b 0a 20 20 20 20 20 |perror(s|);. |
|00003770| 20 65 78 69 74 28 31 29 | 3b 0a 20 20 20 20 7d 0a | exit(1)|;. }.|
|00003780| 23 65 6c 73 65 0a 20 20 | 20 20 70 72 69 6e 74 66 |#else. | printf|
|00003790| 28 22 65 6a 65 63 74 3a | 20 61 75 74 6f 2d 65 6a |("eject:| auto-ej|
|000037a0| 65 63 74 20 6e 6f 74 20 | 73 75 70 70 6f 72 74 65 |ect not |supporte|
|000037b0| 64 20 62 79 20 6b 65 72 | 6e 65 6c 5c 6e 22 29 3b |d by ker|nel\n");|
|000037c0| 0a 23 65 6e 64 69 66 0a | 20 20 20 20 65 78 69 74 |.#endif.| exit|
|000037d0| 28 30 29 3b 0a 20 20 7d | 0a 0a 20 20 2f 2a 20 68 |(0);. }|.. /* h|
|000037e0| 61 6e 64 6c 65 20 49 44 | 45 2f 41 54 41 50 49 20 |andle ID|E/ATAPI |
|000037f0| 43 44 52 4f 4d 20 63 68 | 61 6e 67 65 72 20 6f 70 |CDROM ch|anger op|
|00003800| 74 69 6f 6e 20 2a 2f 0a | 20 20 69 66 20 28 63 5f |tion */.| if (c_|
|00003810| 6f 70 74 69 6f 6e 29 20 | 7b 0a 23 69 66 64 65 66 |option) |{.#ifdef|
|00003820| 20 43 44 52 4f 4d 4c 4f | 41 44 46 52 4f 4d 53 4c | CDROMLO|ADFROMSL|
|00003830| 4f 54 0a 20 20 20 20 69 | 66 20 28 76 5f 6f 70 74 |OT. i|f (v_opt|
|00003840| 69 6f 6e 29 0a 20 20 20 | 20 20 20 70 72 69 6e 74 |ion). | print|
|00003850| 66 28 22 65 6a 65 63 74 | 3a 20 73 77 69 74 63 68 |f("eject|: switch|
|00003860| 20 74 6f 20 43 44 52 4f | 4d 20 73 6c 6f 74 20 23 | to CDRO|M slot #|
|00003870| 25 69 5c 6e 22 2c 20 63 | 5f 61 72 67 29 3b 0a 20 |%i\n", c|_arg);. |
|00003880| 20 20 20 73 74 61 74 75 | 73 20 3d 20 69 6f 63 74 | statu|s = ioct|
|00003890| 6c 28 66 64 2c 20 43 44 | 52 4f 4d 4c 4f 41 44 46 |l(fd, CD|ROMLOADF|
|000038a0| 52 4f 4d 53 4c 4f 54 2c | 20 63 5f 61 72 67 29 3b |ROMSLOT,| c_arg);|
|000038b0| 0a 20 20 20 20 69 66 20 | 28 73 74 61 74 75 73 20 |. if |(status |
|000038c0| 21 3d 20 30 29 20 7b 0a | 20 20 20 20 20 20 73 70 |!= 0) {.| sp|
|000038d0| 72 69 6e 74 66 28 73 2c | 20 22 65 6a 65 63 74 3a |rintf(s,| "eject:|
|000038e0| 20 43 44 52 4f 4d 4c 4f | 41 44 46 52 4f 4d 53 4c | CDROMLO|ADFROMSL|
|000038f0| 4f 54 20 69 6f 63 74 6c | 20 66 61 69 6c 65 64 20 |OT ioctl| failed |
|00003900| 66 6f 72 20 60 25 73 27 | 20 28 73 6c 6f 74 20 25 |for `%s'| (slot %|
|00003910| 69 29 22 2c 20 0a 20 20 | 20 20 20 20 20 20 64 65 |i)", . | de|
|00003920| 76 69 63 65 2c 20 63 5f | 61 72 67 29 3b 0a 20 20 |vice, c_|arg);. |
|00003930| 20 20 20 20 70 65 72 72 | 6f 72 28 73 29 3b 0a 20 | perr|or(s);. |
|00003940| 20 20 20 20 20 65 78 69 | 74 28 31 29 3b 0a 20 20 | exi|t(1);. |
|00003950| 20 20 7d 0a 23 65 6c 73 | 65 0a 20 20 20 20 70 72 | }.#els|e. pr|
|00003960| 69 6e 74 66 28 22 65 6a | 65 63 74 3a 20 49 44 45 |intf("ej|ect: IDE|
|00003970| 2f 41 54 41 50 49 20 63 | 64 72 6f 6d 20 63 68 61 |/ATAPI c|drom cha|
|00003980| 6e 67 65 72 20 69 73 20 | 6e 6f 74 20 73 75 70 70 |nger is |not supp|
|00003990| 6f 72 74 65 64 20 62 79 | 20 74 68 69 73 20 6b 65 |orted by| this ke|
|000039a0| 72 6e 65 6c 5c 6e 22 29 | 3b 0a 23 65 6e 64 69 66 |rnel\n")|;.#endif|
|000039b0| 0a 20 20 20 20 65 78 69 | 74 28 30 29 3b 0a 20 20 |. exi|t(0);. |
|000039c0| 7d 0a 20 20 0a 20 20 2f | 2a 20 73 65 65 20 69 66 |}. . /|* see if|
|000039d0| 20 64 65 76 69 63 65 20 | 68 61 73 20 62 65 65 6e | device |has been|
|000039e0| 20 6d 6f 75 6e 74 65 64 | 20 62 79 20 6c 6f 6f 6b | mounted| by look|
|000039f0| 69 6e 67 20 69 6e 20 2f | 65 74 63 2f 6d 74 61 62 |ing in /|etc/mtab|
|00003a00| 20 2a 2f 0a 20 20 66 70 | 20 3d 20 66 6f 70 65 6e | */. fp| = fopen|
|00003a10| 28 22 2f 65 74 63 2f 6d | 74 61 62 22 2c 20 22 72 |("/etc/m|tab", "r|
|00003a20| 22 29 3b 0a 20 20 77 68 | 69 6c 65 20 28 21 66 65 |");. wh|ile (!fe|
|00003a30| 6f 66 28 66 70 29 29 20 | 7b 0a 20 20 20 20 66 73 |of(fp)) |{. fs|
|00003a40| 63 61 6e 66 28 66 70 2c | 20 22 25 73 20 25 73 20 |canf(fp,| "%s %s |
|00003a50| 25 73 20 25 73 20 25 73 | 20 25 73 22 2c 20 73 31 |%s %s %s| %s", s1|
|00003a60| 2c 20 73 32 2c 20 64 75 | 6d 6d 79 2c 20 64 75 6d |, s2, du|mmy, dum|
|00003a70| 6d 79 2c 20 64 75 6d 6d | 79 2c 20 64 75 6d 6d 79 |my, dumm|y, dummy|
|00003a80| 29 3b 0a 20 20 20 20 69 | 66 20 28 21 73 74 72 63 |);. i|f (!strc|
|00003a90| 6d 70 28 73 31 2c 20 64 | 65 76 69 63 65 29 29 20 |mp(s1, d|evice)) |
|00003aa0| 7b 0a 20 20 20 20 20 20 | 69 66 20 28 21 66 5f 6f |{. |if (!f_o|
|00003ab0| 70 74 69 6f 6e 29 20 7b | 0a 09 70 72 69 6e 74 66 |ption) {|..printf|
|00003ac0| 28 22 65 6a 65 63 74 3a | 20 60 25 73 27 20 69 73 |("eject:| `%s' is|
|00003ad0| 20 6d 6f 75 6e 74 65 64 | 20 61 74 20 60 25 73 27 | mounted| at `%s'|
|00003ae0| 2c 20 6e 6f 74 20 65 6a | 65 63 74 65 64 5c 6e 22 |, not ej|ected\n"|
|00003af0| 2c 20 73 31 2c 20 73 32 | 29 3b 0a 09 65 78 69 74 |, s1, s2|);..exit|
|00003b00| 28 31 29 3b 0a 20 20 20 | 20 20 20 7d 20 65 6c 73 |(1);. | } els|
|00003b10| 65 20 7b 0a 09 69 66 20 | 28 76 5f 6f 70 74 69 6f |e {..if |(v_optio|
|00003b20| 6e 29 0a 09 20 20 70 72 | 69 6e 74 66 28 22 65 6a |n).. pr|intf("ej|
|00003b30| 65 63 74 3a 20 60 25 73 | 27 20 69 73 20 6d 6f 75 |ect: `%s|' is mou|
|00003b40| 6e 74 65 64 20 61 74 20 | 60 25 73 27 5c 6e 22 2c |nted at |`%s'\n",|
|00003b50| 20 73 31 2c 20 73 32 29 | 3b 0a 09 69 66 20 28 75 | s1, s2)|;..if (u|
|00003b60| 5f 6f 70 74 69 6f 6e 29 | 20 7b 0a 09 20 20 69 66 |_option)| {.. if|
|00003b70| 20 28 76 5f 6f 70 74 69 | 6f 6e 29 0a 09 20 20 20 | (v_opti|on).. |
|00003b80| 20 70 72 69 6e 74 66 28 | 22 65 6a 65 63 74 3a 20 | printf(|"eject: |
|00003b90| 74 72 79 69 6e 67 20 74 | 6f 20 75 6e 6d 6f 75 6e |trying t|o unmoun|
|00003ba0| 74 20 60 25 73 27 5c 6e | 22 2c 20 73 31 29 3b 0a |t `%s'\n|", s1);.|
|00003bb0| 09 20 20 73 74 72 63 61 | 74 28 75 6d 6f 75 6e 74 |. strca|t(umount|
|00003bc0| 5f 63 6d 64 2c 20 73 31 | 29 3b 20 20 20 20 20 20 |_cmd, s1|); |
|00003bd0| 2f 2a 20 73 65 74 75 70 | 20 75 6d 6f 75 6e 74 20 |/* setup| umount |
|00003be0| 63 6f 6d 6d 61 6e 64 20 | 2a 2f 0a 09 20 20 73 74 |command |*/.. st|
|00003bf0| 61 74 75 73 20 3d 20 73 | 79 73 74 65 6d 28 75 6d |atus = s|ystem(um|
|00003c00| 6f 75 6e 74 5f 63 6d 64 | 29 3b 20 2f 2a 20 64 6f |ount_cmd|); /* do|
|00003c10| 20 69 74 20 2a 2f 0a 09 | 20 20 69 66 20 28 28 73 | it */..| if ((s|
|00003c20| 74 61 74 75 73 20 3d 3d | 20 2d 31 29 20 7c 7c 20 |tatus ==| -1) || |
|00003c30| 28 73 74 61 74 75 73 20 | 3d 3d 20 31 32 37 29 29 |(status |== 127))|
|00003c40| 20 7b 0a 09 20 20 20 20 | 73 70 72 69 6e 74 66 28 | {.. |sprintf(|
|00003c50| 73 2c 20 22 65 6a 65 63 | 74 3a 20 75 6e 6d 6f 75 |s, "ejec|t: unmou|
|00003c60| 6e 74 20 6f 66 20 60 25 | 73 27 20 66 61 69 6c 65 |nt of `%|s' faile|
|00003c70| 64 22 2c 20 73 31 29 3b | 0a 09 20 20 20 20 70 65 |d", s1);|.. pe|
|00003c80| 72 72 6f 72 28 73 29 3b | 0a 09 20 20 7d 0a 09 7d |rror(s);|.. }..}|
|00003c90| 0a 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 62 |. }|. b|
|00003ca0| 72 65 61 6b 3b 0a 20 20 | 20 20 7d 0a 20 20 7d 0a |reak;. | }. }.|
|00003cb0| 20 20 66 63 6c 6f 73 65 | 28 66 70 29 3b 0a 20 20 | fclose|(fp);. |
|00003cc0| 0a 20 20 2f 2a 20 65 6a | 65 63 74 20 2a 2f 20 20 |. /* ej|ect */ |
|00003cd0| 0a 20 20 73 74 61 74 75 | 73 20 3d 20 69 6f 63 74 |. statu|s = ioct|
|00003ce0| 6c 28 66 64 2c 20 43 44 | 52 4f 4d 45 4a 45 43 54 |l(fd, CD|ROMEJECT|
|00003cf0| 29 3b 0a 20 20 69 66 20 | 28 73 74 61 74 75 73 20 |);. if |(status |
|00003d00| 21 3d 20 30 29 20 7b 0a | 20 20 20 20 73 70 72 69 |!= 0) {.| spri|
|00003d10| 6e 74 66 28 73 2c 20 22 | 65 6a 65 63 74 3a 20 43 |ntf(s, "|eject: C|
|00003d20| 44 52 4f 4d 45 4a 45 43 | 54 20 69 6f 63 74 6c 20 |DROMEJEC|T ioctl |
|00003d30| 66 61 69 6c 65 64 20 66 | 6f 72 20 60 25 73 27 22 |failed f|or `%s'"|
|00003d40| 2c 20 64 65 76 69 63 65 | 29 3b 0a 20 20 20 20 70 |, device|);. p|
|00003d50| 65 72 72 6f 72 28 73 29 | 3b 0a 20 20 20 20 65 78 |error(s)|;. ex|
|00003d60| 69 74 28 31 29 3b 0a 20 | 20 7d 0a 20 20 0a 20 20 |it(1);. | }. . |
|00003d70| 2f 2a 20 63 6c 6f 73 65 | 20 64 65 76 69 63 65 20 |/* close| device |
|00003d80| 2a 2f 0a 20 20 73 74 61 | 74 75 73 20 3d 20 63 6c |*/. sta|tus = cl|
|00003d90| 6f 73 65 28 66 64 29 3b | 0a 20 20 69 66 20 28 73 |ose(fd);|. if (s|
|00003da0| 74 61 74 75 73 20 21 3d | 20 30 29 20 7b 0a 20 20 |tatus !=| 0) {. |
|00003db0| 20 20 73 70 72 69 6e 74 | 66 28 73 2c 20 22 65 6a | sprint|f(s, "ej|
|00003dc0| 65 63 74 3a 20 63 6c 6f | 73 65 20 66 61 69 6c 65 |ect: clo|se faile|
|00003dd0| 64 20 66 6f 72 20 60 25 | 73 27 22 2c 20 64 65 76 |d for `%|s'", dev|
|00003de0| 69 63 65 29 3b 0a 20 20 | 20 20 70 65 72 72 6f 72 |ice);. | perror|
|00003df0| 28 73 29 3b 0a 20 20 20 | 20 65 78 69 74 28 31 29 |(s);. | exit(1)|
|00003e00| 3b 0a 20 20 7d 0a 20 20 | 0a 20 20 65 78 69 74 28 |;. }. |. exit(|
|00003e10| 30 29 3b 0a 7d 0a 00 00 | 00 00 00 00 00 00 00 00 |0);.}...|........|
|00003e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 65 6a 65 63 74 2d 31 2e | 33 2f 4d 61 6b 65 66 69 |eject-1.|3/Makefi|
|00004010| 6c 65 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |le......|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004060| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 37 |....1006|44 . 7|
|00004070| 36 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |65 . 1|44 . |
|00004080| 20 20 20 31 30 37 36 20 | 20 36 31 37 31 32 32 30 | 1076 | 6171220|
|00004090| 33 30 33 20 20 31 33 31 | 30 35 00 20 30 00 00 00 |303 131|05. 0...|
|000040a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 75 73 74 61 72 20 20 | 00 62 67 61 6c 6c 69 61 |.ustar |.bgallia|
|00004110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 43 43 09 3d 20 67 63 63 | 0a 4c 44 09 3d 20 67 63 |CC.= gcc|.LD.= gc|
|00004210| 63 0a 0a 23 20 66 6f 72 | 20 64 65 62 75 67 0a 23 |c..# for| debug.#|
|00004220| 43 46 4c 41 47 53 09 3d | 20 2d 57 61 6c 6c 20 2d |CFLAGS.=| -Wall -|
|00004230| 67 0a 23 4c 44 46 4c 41 | 47 53 20 3d 20 2d 4e 0a |g.#LDFLA|GS = -N.|
|00004240| 0a 23 20 66 6f 72 20 70 | 72 6f 64 75 63 74 69 6f |.# for p|roductio|
|00004250| 6e 20 63 6f 64 65 0a 43 | 46 4c 41 47 53 09 3d 20 |n code.C|FLAGS.= |
|00004260| 2d 57 61 6c 6c 20 2d 4f | 33 0a 4c 44 46 4c 41 47 |-Wall -O|3.LDFLAG|
|00004270| 53 20 3d 20 2d 73 20 2d | 4e 0a 0a 65 6a 65 63 74 |S = -s -|N..eject|
|00004280| 3a 09 65 6a 65 63 74 2e | 6f 0a 09 24 28 4c 44 29 |:.eject.|o..$(LD)|
|00004290| 20 24 28 4c 44 46 4c 41 | 47 53 29 20 2d 6f 20 65 | $(LDFLA|GS) -o e|
|000042a0| 6a 65 63 74 20 65 6a 65 | 63 74 2e 6f 0a 0a 65 6a |ject eje|ct.o..ej|
|000042b0| 65 63 74 2e 6f 3a 20 65 | 6a 65 63 74 2e 63 0a 09 |ect.o: e|ject.c..|
|000042c0| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|000042d0| 2d 63 20 65 6a 65 63 74 | 2e 63 0a 0a 23 20 79 6f |-c eject|.c..# yo|
|000042e0| 75 20 6d 61 79 20 70 72 | 65 66 65 72 20 74 6f 20 |u may pr|efer to |
|000042f0| 69 6e 73 74 61 6c 6c 20 | 70 72 6f 67 72 61 6d 20 |install |program |
|00004300| 69 6e 20 2f 75 73 72 2f | 62 69 6e 20 6f 72 20 2f |in /usr/|bin or /|
|00004310| 75 73 72 2f 6c 6f 63 61 | 6c 2f 62 69 6e 20 6f 72 |usr/loca|l/bin or|
|00004320| 0a 23 20 65 76 65 6e 20 | 2f 73 62 69 6e 0a 69 6e |.# even |/sbin.in|
|00004330| 73 74 61 6c 6c 3a 20 65 | 6a 65 63 74 0a 09 69 6e |stall: e|ject..in|
|00004340| 73 74 61 6c 6c 20 2d 6d | 20 35 35 35 20 65 6a 65 |stall -m| 555 eje|
|00004350| 63 74 20 2f 75 73 72 2f | 6c 6f 63 61 6c 2f 62 69 |ct /usr/|local/bi|
|00004360| 6e 2f 65 6a 65 63 74 0a | 09 69 6e 73 74 61 6c 6c |n/eject.|.install|
|00004370| 20 2d 6d 20 34 34 34 20 | 65 6a 65 63 74 2e 31 20 | -m 444 |eject.1 |
|00004380| 2f 75 73 72 2f 6d 61 6e | 2f 6d 61 6e 31 2f 65 6a |/usr/man|/man1/ej|
|00004390| 65 63 74 2e 31 0a 0a 63 | 6c 65 61 6e 3a 0a 09 24 |ect.1..c|lean:..$|
|000043a0| 28 52 4d 29 20 65 6a 65 | 63 74 20 65 6a 65 63 74 |(RM) eje|ct eject|
|000043b0| 2e 6f 20 63 6f 72 65 20 | 2a 7e 0a 0a 64 69 73 74 |.o core |*~..dist|
|000043c0| 3a 09 65 6a 65 63 74 2e | 63 20 4d 61 6b 65 66 69 |:.eject.|c Makefi|
|000043d0| 6c 65 20 65 6a 65 63 74 | 2e 31 20 52 45 41 44 4d |le eject|.1 READM|
|000043e0| 45 0a 09 24 28 52 4d 29 | 20 65 6a 65 63 74 20 65 |E..$(RM)| eject e|
|000043f0| 6a 65 63 74 2e 6f 20 63 | 6f 72 65 20 65 6a 65 63 |ject.o c|ore ejec|
|00004400| 74 2d 31 2e 32 2e 74 61 | 72 2e 67 7a 20 2a 7e 0a |t-1.2.ta|r.gz *~.|
|00004410| 09 63 64 20 2e 2e 20 3b | 20 74 61 72 20 2d 63 7a |.cd .. ;| tar -cz|
|00004420| 76 66 20 65 6a 65 63 74 | 2d 31 2e 32 2e 74 61 72 |vf eject|-1.2.tar|
|00004430| 2e 67 7a 20 65 6a 65 63 | 74 2d 31 2e 32 0a 00 00 |.gz ejec|t-1.2...|
|00004440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004600| 65 6a 65 63 74 2d 31 2e | 33 2f 52 45 41 44 4d 45 |eject-1.|3/README|
|00004610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 37 |....1006|44 . 7|
|00004670| 36 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |65 . 1|44 . |
|00004680| 20 20 20 31 33 33 36 20 | 20 36 30 34 36 33 30 37 | 1336 | 6046307|
|00004690| 33 36 35 20 20 31 32 33 | 34 33 00 20 30 00 00 00 |365 123|43. 0...|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004700| 00 75 73 74 61 72 20 20 | 00 62 67 61 6c 6c 69 61 |.ustar |.bgallia|
|00004710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 54 68 69 73 20 6c 69 74 | 74 6c 65 20 70 72 6f 67 |This lit|tle prog|
|00004810| 72 61 6d 20 77 69 6c 6c | 20 65 6a 65 63 74 20 43 |ram will| eject C|
|00004820| 44 2d 52 4f 4d 73 20 28 | 61 73 73 75 6d 69 6e 67 |D-ROMs (|assuming|
|00004830| 20 79 6f 75 72 20 64 72 | 69 76 65 20 73 75 70 70 | your dr|ive supp|
|00004840| 6f 72 74 73 0a 74 68 65 | 20 43 44 52 4f 4d 45 4a |orts.the| CDROMEJ|
|00004850| 45 43 54 20 69 6f 63 74 | 6c 29 2e 20 49 74 20 61 |ECT ioct|l). It a|
|00004860| 6c 73 6f 20 61 6c 6c 6f | 77 73 20 73 65 74 74 69 |lso allo|ws setti|
|00004870| 6e 67 20 74 68 65 20 61 | 75 74 6f 65 6a 65 63 74 |ng the a|utoeject|
|00004880| 20 66 65 61 74 75 72 65 | 2c 0a 63 75 72 72 65 6e | feature|,.curren|
|00004890| 74 6c 79 20 73 75 70 70 | 6f 72 74 65 64 20 62 79 |tly supp|orted by|
|000048a0| 20 61 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 | a numbe|r of the|
|000048b0| 20 4c 69 6e 75 78 20 43 | 44 2d 52 4f 4d 20 64 72 | Linux C|D-ROM dr|
|000048c0| 69 76 65 72 73 2e 20 53 | 65 65 20 74 68 65 0a 66 |ivers. S|ee the.f|
|000048d0| 69 6c 65 20 2f 75 73 72 | 2f 73 72 63 2f 6c 69 6e |ile /usr|/src/lin|
|000048e0| 75 78 2f 64 72 69 76 65 | 72 73 2f 62 6c 6f 63 6b |ux/drive|rs/block|
|000048f0| 2f 52 45 41 44 4d 45 2e | 73 62 70 63 64 20 28 6f |/README.|sbpcd (o|
|00004900| 72 0a 2f 75 73 72 2f 73 | 72 63 2f 6c 69 6e 75 78 |r./usr/s|rc/linux|
|00004910| 2f 44 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 2f 63 |/Documen|tation/c|
|00004920| 64 72 6f 6d 2f 73 62 70 | 63 64 20 64 65 70 65 6e |drom/sbp|cd depen|
|00004930| 64 69 6e 67 20 6f 6e 20 | 79 6f 75 72 20 6b 65 72 |ding on |your ker|
|00004940| 6e 65 6c 0a 76 65 72 73 | 69 6f 6e 29 20 66 6f 72 |nel.vers|ion) for|
|00004950| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00004960| 6e 20 6f 6e 20 74 68 65 | 20 61 75 74 6f 65 6a 65 |n on the| autoeje|
|00004970| 63 74 20 66 65 61 74 75 | 72 65 2e 20 59 6f 75 20 |ct featu|re. You |
|00004980| 6e 65 65 64 0a 76 65 72 | 73 69 6f 6e 20 32 2e 37 |need.ver|sion 2.7|
|00004990| 20 6f 72 20 6c 61 74 65 | 72 20 6f 66 20 74 68 65 | or late|r of the|
|000049a0| 20 73 62 70 63 64 20 64 | 72 69 76 65 72 20 66 6f | sbpcd d|river fo|
|000049b0| 72 20 74 68 69 73 2e 0a | 0a 49 74 20 69 73 20 6c |r this..|.It is l|
|000049c0| 6f 6f 73 65 6c 79 20 62 | 61 73 65 64 20 6f 6e 20 |oosely b|ased on |
|000049d0| 74 68 65 20 53 75 6e 4f | 53 20 65 6a 65 63 74 20 |the SunO|S eject |
|000049e0| 63 6f 6d 6d 61 6e 64 2e | 0a 0a 42 75 69 6c 64 20 |command.|..Build |
|000049f0| 69 74 20 62 79 20 72 75 | 6e 6e 69 6e 67 20 27 6d |it by ru|nning 'm|
|00004a00| 61 6b 65 27 2c 20 61 6e | 64 20 74 68 65 6e 20 72 |ake', an|d then r|
|00004a10| 75 6e 20 27 6d 61 6b 65 | 20 69 6e 73 74 61 6c 6c |un 'make| install|
|00004a20| 27 20 61 73 20 72 6f 6f | 74 2e 20 43 68 65 63 6b |' as roo|t. Check|
|00004a30| 0a 74 68 65 20 6d 61 6b | 65 20 66 69 6c 65 20 74 |.the mak|e file t|
|00004a40| 6f 20 62 65 20 73 75 72 | 65 20 69 74 20 70 75 74 |o be sur|e it put|
|00004a50| 73 20 74 68 65 20 62 69 | 6e 61 72 79 20 61 6e 64 |s the bi|nary and|
|00004a60| 20 6d 61 6e 20 70 61 67 | 65 20 77 68 65 72 65 20 | man pag|e where |
|00004a70| 79 6f 75 0a 77 61 6e 74 | 20 74 68 65 6d 2e 0a 0a |you.want| them...|
|00004a80| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 6e 79 20 |If you h|ave any |
|00004a90| 70 72 6f 62 6c 65 6d 73 | 20 6f 72 20 73 75 67 67 |problems| or sugg|
|00004aa0| 65 73 74 69 6f 6e 73 2c | 20 64 72 6f 70 20 6d 65 |estions,| drop me|
|00004ab0| 20 61 20 6c 69 6e 65 2e | 0a 0a 4a 65 66 66 20 54 | a line.|..Jeff T|
|00004ac0| 72 61 6e 74 65 72 0a 4a | 65 66 66 5f 54 72 61 6e |ranter.J|eff_Tran|
|00004ad0| 74 65 72 40 4d 69 74 65 | 6c 2e 43 4f 4d 0a 00 00 |ter@Mite|l.COM...|
|00004ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 65 6a 65 63 74 2d 31 2e | 33 2f 43 4f 50 59 49 4e |eject-1.|3/COPYIN|
|00004c10| 47 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |G.......|........|
|00004c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 37 |....1006|44 . 7|
|00004c70| 36 35 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |65 . 1|44 . |
|00004c80| 20 20 34 33 30 37 36 20 | 20 35 36 37 34 37 31 37 | 43076 | 5674717|
|00004c90| 33 33 35 20 20 31 32 35 | 35 35 00 20 30 00 00 00 |335 125|55. 0...|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 75 73 74 61 72 20 20 | 00 62 67 61 6c 6c 69 61 |.ustar |.bgallia|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 09 09 20 20 20 20 47 4e | 55 20 47 45 4e 45 52 41 |.. GN|U GENERA|
|00004e10| 4c 20 50 55 42 4c 49 43 | 20 4c 49 43 45 4e 53 45 |L PUBLIC| LICENSE|
|00004e20| 0a 09 09 20 20 20 20 20 | 20 20 56 65 72 73 69 6f |... | Versio|
|00004e30| 6e 20 32 2c 20 4a 75 6e | 65 20 31 39 39 31 0a 0a |n 2, Jun|e 1991..|
|00004e40| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|00004e50| 39 38 39 2c 20 31 39 39 | 31 20 46 72 65 65 20 53 |989, 199|1 Free S|
|00004e60| 6f 66 74 77 61 72 65 20 | 46 6f 75 6e 64 61 74 69 |oftware |Foundati|
|00004e70| 6f 6e 2c 20 49 6e 63 2e | 0a 20 20 20 20 20 20 20 |on, Inc.|. |
|00004e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e90| 20 20 20 36 37 35 20 4d | 61 73 73 20 41 76 65 2c | 675 M|ass Ave,|
|00004ea0| 20 43 61 6d 62 72 69 64 | 67 65 2c 20 4d 41 20 30 | Cambrid|ge, MA 0|
|00004eb0| 32 31 33 39 2c 20 55 53 | 41 0a 20 45 76 65 72 79 |2139, US|A. Every|
|00004ec0| 6f 6e 65 20 69 73 20 70 | 65 72 6d 69 74 74 65 64 |one is p|ermitted|
|00004ed0| 20 74 6f 20 63 6f 70 79 | 20 61 6e 64 20 64 69 73 | to copy| and dis|
|00004ee0| 74 72 69 62 75 74 65 20 | 76 65 72 62 61 74 69 6d |tribute |verbatim|
|00004ef0| 20 63 6f 70 69 65 73 0a | 20 6f 66 20 74 68 69 73 | copies.| of this|
|00004f00| 20 6c 69 63 65 6e 73 65 | 20 64 6f 63 75 6d 65 6e | license| documen|
|00004f10| 74 2c 20 62 75 74 20 63 | 68 61 6e 67 69 6e 67 20 |t, but c|hanging |
|00004f20| 69 74 20 69 73 20 6e 6f | 74 20 61 6c 6c 6f 77 65 |it is no|t allowe|
|00004f30| 64 2e 0a 0a 09 09 09 20 | 20 20 20 50 72 65 61 6d |d...... | Pream|
|00004f40| 62 6c 65 0a 0a 20 20 54 | 68 65 20 6c 69 63 65 6e |ble.. T|he licen|
|00004f50| 73 65 73 20 66 6f 72 20 | 6d 6f 73 74 20 73 6f 66 |ses for |most sof|
|00004f60| 74 77 61 72 65 20 61 72 | 65 20 64 65 73 69 67 6e |tware ar|e design|
|00004f70| 65 64 20 74 6f 20 74 61 | 6b 65 20 61 77 61 79 20 |ed to ta|ke away |
|00004f80| 79 6f 75 72 0a 66 72 65 | 65 64 6f 6d 20 74 6f 20 |your.fre|edom to |
|00004f90| 73 68 61 72 65 20 61 6e | 64 20 63 68 61 6e 67 65 |share an|d change|
|00004fa0| 20 69 74 2e 20 20 42 79 | 20 63 6f 6e 74 72 61 73 | it. By| contras|
|00004fb0| 74 2c 20 74 68 65 20 47 | 4e 55 20 47 65 6e 65 72 |t, the G|NU Gener|
|00004fc0| 61 6c 20 50 75 62 6c 69 | 63 0a 4c 69 63 65 6e 73 |al Publi|c.Licens|
|00004fd0| 65 20 69 73 20 69 6e 74 | 65 6e 64 65 64 20 74 6f |e is int|ended to|
|00004fe0| 20 67 75 61 72 61 6e 74 | 65 65 20 79 6f 75 72 20 | guarant|ee your |
|00004ff0| 66 72 65 65 64 6f 6d 20 | 74 6f 20 73 68 61 72 65 |freedom |to share|
|00005000| 20 61 6e 64 20 63 68 61 | 6e 67 65 20 66 72 65 65 | and cha|nge free|
|00005010| 0a 73 6f 66 74 77 61 72 | 65 2d 2d 74 6f 20 6d 61 |.softwar|e--to ma|
|00005020| 6b 65 20 73 75 72 65 20 | 74 68 65 20 73 6f 66 74 |ke sure |the soft|
|00005030| 77 61 72 65 20 69 73 20 | 66 72 65 65 20 66 6f 72 |ware is |free for|
|00005040| 20 61 6c 6c 20 69 74 73 | 20 75 73 65 72 73 2e 20 | all its| users. |
|00005050| 20 54 68 69 73 0a 47 65 | 6e 65 72 61 6c 20 50 75 | This.Ge|neral Pu|
|00005060| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 20 61 70 70 |blic Lic|ense app|
|00005070| 6c 69 65 73 20 74 6f 20 | 6d 6f 73 74 20 6f 66 20 |lies to |most of |
|00005080| 74 68 65 20 46 72 65 65 | 20 53 6f 66 74 77 61 72 |the Free| Softwar|
|00005090| 65 0a 46 6f 75 6e 64 61 | 74 69 6f 6e 27 73 20 73 |e.Founda|tion's s|
|000050a0| 6f 66 74 77 61 72 65 20 | 61 6e 64 20 74 6f 20 61 |oftware |and to a|
|000050b0| 6e 79 20 6f 74 68 65 72 | 20 70 72 6f 67 72 61 6d |ny other| program|
|000050c0| 20 77 68 6f 73 65 20 61 | 75 74 68 6f 72 73 20 63 | whose a|uthors c|
|000050d0| 6f 6d 6d 69 74 20 74 6f | 0a 75 73 69 6e 67 20 69 |ommit to|.using i|
|000050e0| 74 2e 20 20 28 53 6f 6d | 65 20 6f 74 68 65 72 20 |t. (Som|e other |
|000050f0| 46 72 65 65 20 53 6f 66 | 74 77 61 72 65 20 46 6f |Free Sof|tware Fo|
|00005100| 75 6e 64 61 74 69 6f 6e | 20 73 6f 66 74 77 61 72 |undation| softwar|
|00005110| 65 20 69 73 20 63 6f 76 | 65 72 65 64 20 62 79 0a |e is cov|ered by.|
|00005120| 74 68 65 20 47 4e 55 20 | 4c 69 62 72 61 72 79 20 |the GNU |Library |
|00005130| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00005140| 69 63 65 6e 73 65 20 69 | 6e 73 74 65 61 64 2e 29 |icense i|nstead.)|
|00005150| 20 20 59 6f 75 20 63 61 | 6e 20 61 70 70 6c 79 20 | You ca|n apply |
|00005160| 69 74 20 74 6f 0a 79 6f | 75 72 20 70 72 6f 67 72 |it to.yo|ur progr|
|00005170| 61 6d 73 2c 20 74 6f 6f | 2e 0a 0a 20 20 57 68 65 |ams, too|... Whe|
|00005180| 6e 20 77 65 20 73 70 65 | 61 6b 20 6f 66 20 66 72 |n we spe|ak of fr|
|00005190| 65 65 20 73 6f 66 74 77 | 61 72 65 2c 20 77 65 20 |ee softw|are, we |
|000051a0| 61 72 65 20 72 65 66 65 | 72 72 69 6e 67 20 74 6f |are refe|rring to|
|000051b0| 20 66 72 65 65 64 6f 6d | 2c 20 6e 6f 74 0a 70 72 | freedom|, not.pr|
|000051c0| 69 63 65 2e 20 20 4f 75 | 72 20 47 65 6e 65 72 61 |ice. Ou|r Genera|
|000051d0| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|000051e0| 73 20 61 72 65 20 64 65 | 73 69 67 6e 65 64 20 74 |s are de|signed t|
|000051f0| 6f 20 6d 61 6b 65 20 73 | 75 72 65 20 74 68 61 74 |o make s|ure that|
|00005200| 20 79 6f 75 0a 68 61 76 | 65 20 74 68 65 20 66 72 | you.hav|e the fr|
|00005210| 65 65 64 6f 6d 20 74 6f | 20 64 69 73 74 72 69 62 |eedom to| distrib|
|00005220| 75 74 65 20 63 6f 70 69 | 65 73 20 6f 66 20 66 72 |ute copi|es of fr|
|00005230| 65 65 20 73 6f 66 74 77 | 61 72 65 20 28 61 6e 64 |ee softw|are (and|
|00005240| 20 63 68 61 72 67 65 20 | 66 6f 72 0a 74 68 69 73 | charge |for.this|
|00005250| 20 73 65 72 76 69 63 65 | 20 69 66 20 79 6f 75 20 | service| if you |
|00005260| 77 69 73 68 29 2c 20 74 | 68 61 74 20 79 6f 75 20 |wish), t|hat you |
|00005270| 72 65 63 65 69 76 65 20 | 73 6f 75 72 63 65 20 63 |receive |source c|
|00005280| 6f 64 65 20 6f 72 20 63 | 61 6e 20 67 65 74 20 69 |ode or c|an get i|
|00005290| 74 0a 69 66 20 79 6f 75 | 20 77 61 6e 74 20 69 74 |t.if you| want it|
|000052a0| 2c 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 63 |, that y|ou can c|
|000052b0| 68 61 6e 67 65 20 74 68 | 65 20 73 6f 66 74 77 61 |hange th|e softwa|
|000052c0| 72 65 20 6f 72 20 75 73 | 65 20 70 69 65 63 65 73 |re or us|e pieces|
|000052d0| 20 6f 66 20 69 74 0a 69 | 6e 20 6e 65 77 20 66 72 | of it.i|n new fr|
|000052e0| 65 65 20 70 72 6f 67 72 | 61 6d 73 3b 20 61 6e 64 |ee progr|ams; and|
|000052f0| 20 74 68 61 74 20 79 6f | 75 20 6b 6e 6f 77 20 79 | that yo|u know y|
|00005300| 6f 75 20 63 61 6e 20 64 | 6f 20 74 68 65 73 65 20 |ou can d|o these |
|00005310| 74 68 69 6e 67 73 2e 0a | 0a 20 20 54 6f 20 70 72 |things..|. To pr|
|00005320| 6f 74 65 63 74 20 79 6f | 75 72 20 72 69 67 68 74 |otect yo|ur right|
|00005330| 73 2c 20 77 65 20 6e 65 | 65 64 20 74 6f 20 6d 61 |s, we ne|ed to ma|
|00005340| 6b 65 20 72 65 73 74 72 | 69 63 74 69 6f 6e 73 20 |ke restr|ictions |
|00005350| 74 68 61 74 20 66 6f 72 | 62 69 64 0a 61 6e 79 6f |that for|bid.anyo|
|00005360| 6e 65 20 74 6f 20 64 65 | 6e 79 20 79 6f 75 20 74 |ne to de|ny you t|
|00005370| 68 65 73 65 20 72 69 67 | 68 74 73 20 6f 72 20 74 |hese rig|hts or t|
|00005380| 6f 20 61 73 6b 20 79 6f | 75 20 74 6f 20 73 75 72 |o ask yo|u to sur|
|00005390| 72 65 6e 64 65 72 20 74 | 68 65 20 72 69 67 68 74 |render t|he right|
|000053a0| 73 2e 0a 54 68 65 73 65 | 20 72 65 73 74 72 69 63 |s..These| restric|
|000053b0| 74 69 6f 6e 73 20 74 72 | 61 6e 73 6c 61 74 65 20 |tions tr|anslate |
|000053c0| 74 6f 20 63 65 72 74 61 | 69 6e 20 72 65 73 70 6f |to certa|in respo|
|000053d0| 6e 73 69 62 69 6c 69 74 | 69 65 73 20 66 6f 72 20 |nsibilit|ies for |
|000053e0| 79 6f 75 20 69 66 20 79 | 6f 75 0a 64 69 73 74 72 |you if y|ou.distr|
|000053f0| 69 62 75 74 65 20 63 6f | 70 69 65 73 20 6f 66 20 |ibute co|pies of |
|00005400| 74 68 65 20 73 6f 66 74 | 77 61 72 65 2c 20 6f 72 |the soft|ware, or|
|00005410| 20 69 66 20 79 6f 75 20 | 6d 6f 64 69 66 79 20 69 | if you |modify i|
|00005420| 74 2e 0a 0a 20 20 46 6f | 72 20 65 78 61 6d 70 6c |t... Fo|r exampl|
|00005430| 65 2c 20 69 66 20 79 6f | 75 20 64 69 73 74 72 69 |e, if yo|u distri|
|00005440| 62 75 74 65 20 63 6f 70 | 69 65 73 20 6f 66 20 73 |bute cop|ies of s|
|00005450| 75 63 68 20 61 20 70 72 | 6f 67 72 61 6d 2c 20 77 |uch a pr|ogram, w|
|00005460| 68 65 74 68 65 72 0a 67 | 72 61 74 69 73 20 6f 72 |hether.g|ratis or|
|00005470| 20 66 6f 72 20 61 20 66 | 65 65 2c 20 79 6f 75 20 | for a f|ee, you |
|00005480| 6d 75 73 74 20 67 69 76 | 65 20 74 68 65 20 72 65 |must giv|e the re|
|00005490| 63 69 70 69 65 6e 74 73 | 20 61 6c 6c 20 74 68 65 |cipients| all the|
|000054a0| 20 72 69 67 68 74 73 20 | 74 68 61 74 0a 79 6f 75 | rights |that.you|
|000054b0| 20 68 61 76 65 2e 20 20 | 59 6f 75 20 6d 75 73 74 | have. |You must|
|000054c0| 20 6d 61 6b 65 20 73 75 | 72 65 20 74 68 61 74 20 | make su|re that |
|000054d0| 74 68 65 79 2c 20 74 6f | 6f 2c 20 72 65 63 65 69 |they, to|o, recei|
|000054e0| 76 65 20 6f 72 20 63 61 | 6e 20 67 65 74 20 74 68 |ve or ca|n get th|
|000054f0| 65 0a 73 6f 75 72 63 65 | 20 63 6f 64 65 2e 20 20 |e.source| code. |
|00005500| 41 6e 64 20 79 6f 75 20 | 6d 75 73 74 20 73 68 6f |And you |must sho|
|00005510| 77 20 74 68 65 6d 20 74 | 68 65 73 65 20 74 65 72 |w them t|hese ter|
|00005520| 6d 73 20 73 6f 20 74 68 | 65 79 20 6b 6e 6f 77 20 |ms so th|ey know |
|00005530| 74 68 65 69 72 0a 72 69 | 67 68 74 73 2e 0a 0a 20 |their.ri|ghts... |
|00005540| 20 57 65 20 70 72 6f 74 | 65 63 74 20 79 6f 75 72 | We prot|ect your|
|00005550| 20 72 69 67 68 74 73 20 | 77 69 74 68 20 74 77 6f | rights |with two|
|00005560| 20 73 74 65 70 73 3a 20 | 28 31 29 20 63 6f 70 79 | steps: |(1) copy|
|00005570| 72 69 67 68 74 20 74 68 | 65 20 73 6f 66 74 77 61 |right th|e softwa|
|00005580| 72 65 2c 20 61 6e 64 0a | 28 32 29 20 6f 66 66 65 |re, and.|(2) offe|
|00005590| 72 20 79 6f 75 20 74 68 | 69 73 20 6c 69 63 65 6e |r you th|is licen|
|000055a0| 73 65 20 77 68 69 63 68 | 20 67 69 76 65 73 20 79 |se which| gives y|
|000055b0| 6f 75 20 6c 65 67 61 6c | 20 70 65 72 6d 69 73 73 |ou legal| permiss|
|000055c0| 69 6f 6e 20 74 6f 20 63 | 6f 70 79 2c 0a 64 69 73 |ion to c|opy,.dis|
|000055d0| 74 72 69 62 75 74 65 20 | 61 6e 64 2f 6f 72 20 6d |tribute |and/or m|
|000055e0| 6f 64 69 66 79 20 74 68 | 65 20 73 6f 66 74 77 61 |odify th|e softwa|
|000055f0| 72 65 2e 0a 0a 20 20 41 | 6c 73 6f 2c 20 66 6f 72 |re... A|lso, for|
|00005600| 20 65 61 63 68 20 61 75 | 74 68 6f 72 27 73 20 70 | each au|thor's p|
|00005610| 72 6f 74 65 63 74 69 6f | 6e 20 61 6e 64 20 6f 75 |rotectio|n and ou|
|00005620| 72 73 2c 20 77 65 20 77 | 61 6e 74 20 74 6f 20 6d |rs, we w|ant to m|
|00005630| 61 6b 65 20 63 65 72 74 | 61 69 6e 0a 74 68 61 74 |ake cert|ain.that|
|00005640| 20 65 76 65 72 79 6f 6e | 65 20 75 6e 64 65 72 73 | everyon|e unders|
|00005650| 74 61 6e 64 73 20 74 68 | 61 74 20 74 68 65 72 65 |tands th|at there|
|00005660| 20 69 73 20 6e 6f 20 77 | 61 72 72 61 6e 74 79 20 | is no w|arranty |
|00005670| 66 6f 72 20 74 68 69 73 | 20 66 72 65 65 0a 73 6f |for this| free.so|
|00005680| 66 74 77 61 72 65 2e 20 | 20 49 66 20 74 68 65 20 |ftware. | If the |
|00005690| 73 6f 66 74 77 61 72 65 | 20 69 73 20 6d 6f 64 69 |software| is modi|
|000056a0| 66 69 65 64 20 62 79 20 | 73 6f 6d 65 6f 6e 65 20 |fied by |someone |
|000056b0| 65 6c 73 65 20 61 6e 64 | 20 70 61 73 73 65 64 20 |else and| passed |
|000056c0| 6f 6e 2c 20 77 65 0a 77 | 61 6e 74 20 69 74 73 20 |on, we.w|ant its |
|000056d0| 72 65 63 69 70 69 65 6e | 74 73 20 74 6f 20 6b 6e |recipien|ts to kn|
|000056e0| 6f 77 20 74 68 61 74 20 | 77 68 61 74 20 74 68 65 |ow that |what the|
|000056f0| 79 20 68 61 76 65 20 69 | 73 20 6e 6f 74 20 74 68 |y have i|s not th|
|00005700| 65 20 6f 72 69 67 69 6e | 61 6c 2c 20 73 6f 0a 74 |e origin|al, so.t|
|00005710| 68 61 74 20 61 6e 79 20 | 70 72 6f 62 6c 65 6d 73 |hat any |problems|
|00005720| 20 69 6e 74 72 6f 64 75 | 63 65 64 20 62 79 20 6f | introdu|ced by o|
|00005730| 74 68 65 72 73 20 77 69 | 6c 6c 20 6e 6f 74 20 72 |thers wi|ll not r|
|00005740| 65 66 6c 65 63 74 20 6f | 6e 20 74 68 65 20 6f 72 |eflect o|n the or|
|00005750| 69 67 69 6e 61 6c 0a 61 | 75 74 68 6f 72 73 27 20 |iginal.a|uthors' |
|00005760| 72 65 70 75 74 61 74 69 | 6f 6e 73 2e 0a 0a 20 20 |reputati|ons... |
|00005770| 46 69 6e 61 6c 6c 79 2c | 20 61 6e 79 20 66 72 65 |Finally,| any fre|
|00005780| 65 20 70 72 6f 67 72 61 | 6d 20 69 73 20 74 68 72 |e progra|m is thr|
|00005790| 65 61 74 65 6e 65 64 20 | 63 6f 6e 73 74 61 6e 74 |eatened |constant|
|000057a0| 6c 79 20 62 79 20 73 6f | 66 74 77 61 72 65 0a 70 |ly by so|ftware.p|
|000057b0| 61 74 65 6e 74 73 2e 20 | 20 57 65 20 77 69 73 68 |atents. | We wish|
|000057c0| 20 74 6f 20 61 76 6f 69 | 64 20 74 68 65 20 64 61 | to avoi|d the da|
|000057d0| 6e 67 65 72 20 74 68 61 | 74 20 72 65 64 69 73 74 |nger tha|t redist|
|000057e0| 72 69 62 75 74 6f 72 73 | 20 6f 66 20 61 20 66 72 |ributors| of a fr|
|000057f0| 65 65 0a 70 72 6f 67 72 | 61 6d 20 77 69 6c 6c 20 |ee.progr|am will |
|00005800| 69 6e 64 69 76 69 64 75 | 61 6c 6c 79 20 6f 62 74 |individu|ally obt|
|00005810| 61 69 6e 20 70 61 74 65 | 6e 74 20 6c 69 63 65 6e |ain pate|nt licen|
|00005820| 73 65 73 2c 20 69 6e 20 | 65 66 66 65 63 74 20 6d |ses, in |effect m|
|00005830| 61 6b 69 6e 67 20 74 68 | 65 0a 70 72 6f 67 72 61 |aking th|e.progra|
|00005840| 6d 20 70 72 6f 70 72 69 | 65 74 61 72 79 2e 20 20 |m propri|etary. |
|00005850| 54 6f 20 70 72 65 76 65 | 6e 74 20 74 68 69 73 2c |To preve|nt this,|
|00005860| 20 77 65 20 68 61 76 65 | 20 6d 61 64 65 20 69 74 | we have| made it|
|00005870| 20 63 6c 65 61 72 20 74 | 68 61 74 20 61 6e 79 0a | clear t|hat any.|
|00005880| 70 61 74 65 6e 74 20 6d | 75 73 74 20 62 65 20 6c |patent m|ust be l|
|00005890| 69 63 65 6e 73 65 64 20 | 66 6f 72 20 65 76 65 72 |icensed |for ever|
|000058a0| 79 6f 6e 65 27 73 20 66 | 72 65 65 20 75 73 65 20 |yone's f|ree use |
|000058b0| 6f 72 20 6e 6f 74 20 6c | 69 63 65 6e 73 65 64 20 |or not l|icensed |
|000058c0| 61 74 20 61 6c 6c 2e 0a | 0a 20 20 54 68 65 20 70 |at all..|. The p|
|000058d0| 72 65 63 69 73 65 20 74 | 65 72 6d 73 20 61 6e 64 |recise t|erms and|
|000058e0| 20 63 6f 6e 64 69 74 69 | 6f 6e 73 20 66 6f 72 20 | conditi|ons for |
|000058f0| 63 6f 70 79 69 6e 67 2c | 20 64 69 73 74 72 69 62 |copying,| distrib|
|00005900| 75 74 69 6f 6e 20 61 6e | 64 0a 6d 6f 64 69 66 69 |ution an|d.modifi|
|00005910| 63 61 74 69 6f 6e 20 66 | 6f 6c 6c 6f 77 2e 0a 0c |cation f|ollow...|
|00005920| 0a 09 09 20 20 20 20 47 | 4e 55 20 47 45 4e 45 52 |... G|NU GENER|
|00005930| 41 4c 20 50 55 42 4c 49 | 43 20 4c 49 43 45 4e 53 |AL PUBLI|C LICENS|
|00005940| 45 0a 20 20 20 54 45 52 | 4d 53 20 41 4e 44 20 43 |E. TER|MS AND C|
|00005950| 4f 4e 44 49 54 49 4f 4e | 53 20 46 4f 52 20 43 4f |ONDITION|S FOR CO|
|00005960| 50 59 49 4e 47 2c 20 44 | 49 53 54 52 49 42 55 54 |PYING, D|ISTRIBUT|
|00005970| 49 4f 4e 20 41 4e 44 20 | 4d 4f 44 49 46 49 43 41 |ION AND |MODIFICA|
|00005980| 54 49 4f 4e 0a 0a 20 20 | 30 2e 20 54 68 69 73 20 |TION.. |0. This |
|00005990| 4c 69 63 65 6e 73 65 20 | 61 70 70 6c 69 65 73 20 |License |applies |
|000059a0| 74 6f 20 61 6e 79 20 70 | 72 6f 67 72 61 6d 20 6f |to any p|rogram o|
|000059b0| 72 20 6f 74 68 65 72 20 | 77 6f 72 6b 20 77 68 69 |r other |work whi|
|000059c0| 63 68 20 63 6f 6e 74 61 | 69 6e 73 0a 61 20 6e 6f |ch conta|ins.a no|
|000059d0| 74 69 63 65 20 70 6c 61 | 63 65 64 20 62 79 20 74 |tice pla|ced by t|
|000059e0| 68 65 20 63 6f 70 79 72 | 69 67 68 74 20 68 6f 6c |he copyr|ight hol|
|000059f0| 64 65 72 20 73 61 79 69 | 6e 67 20 69 74 20 6d 61 |der sayi|ng it ma|
|00005a00| 79 20 62 65 20 64 69 73 | 74 72 69 62 75 74 65 64 |y be dis|tributed|
|00005a10| 0a 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 |.under t|he terms|
|00005a20| 20 6f 66 20 74 68 69 73 | 20 47 65 6e 65 72 61 6c | of this| General|
|00005a30| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 2e | Public |License.|
|00005a40| 20 20 54 68 65 20 22 50 | 72 6f 67 72 61 6d 22 2c | The "P|rogram",|
|00005a50| 20 62 65 6c 6f 77 2c 0a | 72 65 66 65 72 73 20 74 | below,.|refers t|
|00005a60| 6f 20 61 6e 79 20 73 75 | 63 68 20 70 72 6f 67 72 |o any su|ch progr|
|00005a70| 61 6d 20 6f 72 20 77 6f | 72 6b 2c 20 61 6e 64 20 |am or wo|rk, and |
|00005a80| 61 20 22 77 6f 72 6b 20 | 62 61 73 65 64 20 6f 6e |a "work |based on|
|00005a90| 20 74 68 65 20 50 72 6f | 67 72 61 6d 22 0a 6d 65 | the Pro|gram".me|
|00005aa0| 61 6e 73 20 65 69 74 68 | 65 72 20 74 68 65 20 50 |ans eith|er the P|
|00005ab0| 72 6f 67 72 61 6d 20 6f | 72 20 61 6e 79 20 64 65 |rogram o|r any de|
|00005ac0| 72 69 76 61 74 69 76 65 | 20 77 6f 72 6b 20 75 6e |rivative| work un|
|00005ad0| 64 65 72 20 63 6f 70 79 | 72 69 67 68 74 20 6c 61 |der copy|right la|
|00005ae0| 77 3a 0a 74 68 61 74 20 | 69 73 20 74 6f 20 73 61 |w:.that |is to sa|
|00005af0| 79 2c 20 61 20 77 6f 72 | 6b 20 63 6f 6e 74 61 69 |y, a wor|k contai|
|00005b00| 6e 69 6e 67 20 74 68 65 | 20 50 72 6f 67 72 61 6d |ning the| Program|
|00005b10| 20 6f 72 20 61 20 70 6f | 72 74 69 6f 6e 20 6f 66 | or a po|rtion of|
|00005b20| 20 69 74 2c 0a 65 69 74 | 68 65 72 20 76 65 72 62 | it,.eit|her verb|
|00005b30| 61 74 69 6d 20 6f 72 20 | 77 69 74 68 20 6d 6f 64 |atim or |with mod|
|00005b40| 69 66 69 63 61 74 69 6f | 6e 73 20 61 6e 64 2f 6f |ificatio|ns and/o|
|00005b50| 72 20 74 72 61 6e 73 6c | 61 74 65 64 20 69 6e 74 |r transl|ated int|
|00005b60| 6f 20 61 6e 6f 74 68 65 | 72 0a 6c 61 6e 67 75 61 |o anothe|r.langua|
|00005b70| 67 65 2e 20 20 28 48 65 | 72 65 69 6e 61 66 74 65 |ge. (He|reinafte|
|00005b80| 72 2c 20 74 72 61 6e 73 | 6c 61 74 69 6f 6e 20 69 |r, trans|lation i|
|00005b90| 73 20 69 6e 63 6c 75 64 | 65 64 20 77 69 74 68 6f |s includ|ed witho|
|00005ba0| 75 74 20 6c 69 6d 69 74 | 61 74 69 6f 6e 20 69 6e |ut limit|ation in|
|00005bb0| 0a 74 68 65 20 74 65 72 | 6d 20 22 6d 6f 64 69 66 |.the ter|m "modif|
|00005bc0| 69 63 61 74 69 6f 6e 22 | 2e 29 20 20 45 61 63 68 |ication"|.) Each|
|00005bd0| 20 6c 69 63 65 6e 73 65 | 65 20 69 73 20 61 64 64 | license|e is add|
|00005be0| 72 65 73 73 65 64 20 61 | 73 20 22 79 6f 75 22 2e |ressed a|s "you".|
|00005bf0| 0a 0a 41 63 74 69 76 69 | 74 69 65 73 20 6f 74 68 |..Activi|ties oth|
|00005c00| 65 72 20 74 68 61 6e 20 | 63 6f 70 79 69 6e 67 2c |er than |copying,|
|00005c10| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 20 61 6e | distrib|ution an|
|00005c20| 64 20 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 20 61 |d modifi|cation a|
|00005c30| 72 65 20 6e 6f 74 0a 63 | 6f 76 65 72 65 64 20 62 |re not.c|overed b|
|00005c40| 79 20 74 68 69 73 20 4c | 69 63 65 6e 73 65 3b 20 |y this L|icense; |
|00005c50| 74 68 65 79 20 61 72 65 | 20 6f 75 74 73 69 64 65 |they are| outside|
|00005c60| 20 69 74 73 20 73 63 6f | 70 65 2e 20 20 54 68 65 | its sco|pe. The|
|00005c70| 20 61 63 74 20 6f 66 0a | 72 75 6e 6e 69 6e 67 20 | act of.|running |
|00005c80| 74 68 65 20 50 72 6f 67 | 72 61 6d 20 69 73 20 6e |the Prog|ram is n|
|00005c90| 6f 74 20 72 65 73 74 72 | 69 63 74 65 64 2c 20 61 |ot restr|icted, a|
|00005ca0| 6e 64 20 74 68 65 20 6f | 75 74 70 75 74 20 66 72 |nd the o|utput fr|
|00005cb0| 6f 6d 20 74 68 65 20 50 | 72 6f 67 72 61 6d 0a 69 |om the P|rogram.i|
|00005cc0| 73 20 63 6f 76 65 72 65 | 64 20 6f 6e 6c 79 20 69 |s covere|d only i|
|00005cd0| 66 20 69 74 73 20 63 6f | 6e 74 65 6e 74 73 20 63 |f its co|ntents c|
|00005ce0| 6f 6e 73 74 69 74 75 74 | 65 20 61 20 77 6f 72 6b |onstitut|e a work|
|00005cf0| 20 62 61 73 65 64 20 6f | 6e 20 74 68 65 0a 50 72 | based o|n the.Pr|
|00005d00| 6f 67 72 61 6d 20 28 69 | 6e 64 65 70 65 6e 64 65 |ogram (i|ndepende|
|00005d10| 6e 74 20 6f 66 20 68 61 | 76 69 6e 67 20 62 65 65 |nt of ha|ving bee|
|00005d20| 6e 20 6d 61 64 65 20 62 | 79 20 72 75 6e 6e 69 6e |n made b|y runnin|
|00005d30| 67 20 74 68 65 20 50 72 | 6f 67 72 61 6d 29 2e 0a |g the Pr|ogram)..|
|00005d40| 57 68 65 74 68 65 72 20 | 74 68 61 74 20 69 73 20 |Whether |that is |
|00005d50| 74 72 75 65 20 64 65 70 | 65 6e 64 73 20 6f 6e 20 |true dep|ends on |
|00005d60| 77 68 61 74 20 74 68 65 | 20 50 72 6f 67 72 61 6d |what the| Program|
|00005d70| 20 64 6f 65 73 2e 0a 0a | 20 20 31 2e 20 59 6f 75 | does...| 1. You|
|00005d80| 20 6d 61 79 20 63 6f 70 | 79 20 61 6e 64 20 64 69 | may cop|y and di|
|00005d90| 73 74 72 69 62 75 74 65 | 20 76 65 72 62 61 74 69 |stribute| verbati|
|00005da0| 6d 20 63 6f 70 69 65 73 | 20 6f 66 20 74 68 65 20 |m copies| of the |
|00005db0| 50 72 6f 67 72 61 6d 27 | 73 0a 73 6f 75 72 63 65 |Program'|s.source|
|00005dc0| 20 63 6f 64 65 20 61 73 | 20 79 6f 75 20 72 65 63 | code as| you rec|
|00005dd0| 65 69 76 65 20 69 74 2c | 20 69 6e 20 61 6e 79 20 |eive it,| in any |
|00005de0| 6d 65 64 69 75 6d 2c 20 | 70 72 6f 76 69 64 65 64 |medium, |provided|
|00005df0| 20 74 68 61 74 20 79 6f | 75 0a 63 6f 6e 73 70 69 | that yo|u.conspi|
|00005e00| 63 75 6f 75 73 6c 79 20 | 61 6e 64 20 61 70 70 72 |cuously |and appr|
|00005e10| 6f 70 72 69 61 74 65 6c | 79 20 70 75 62 6c 69 73 |opriatel|y publis|
|00005e20| 68 20 6f 6e 20 65 61 63 | 68 20 63 6f 70 79 20 61 |h on eac|h copy a|
|00005e30| 6e 20 61 70 70 72 6f 70 | 72 69 61 74 65 0a 63 6f |n approp|riate.co|
|00005e40| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 20 61 |pyright |notice a|
|00005e50| 6e 64 20 64 69 73 63 6c | 61 69 6d 65 72 20 6f 66 |nd discl|aimer of|
|00005e60| 20 77 61 72 72 61 6e 74 | 79 3b 20 6b 65 65 70 20 | warrant|y; keep |
|00005e70| 69 6e 74 61 63 74 20 61 | 6c 6c 20 74 68 65 0a 6e |intact a|ll the.n|
|00005e80| 6f 74 69 63 65 73 20 74 | 68 61 74 20 72 65 66 65 |otices t|hat refe|
|00005e90| 72 20 74 6f 20 74 68 69 | 73 20 4c 69 63 65 6e 73 |r to thi|s Licens|
|00005ea0| 65 20 61 6e 64 20 74 6f | 20 74 68 65 20 61 62 73 |e and to| the abs|
|00005eb0| 65 6e 63 65 20 6f 66 20 | 61 6e 79 20 77 61 72 72 |ence of |any warr|
|00005ec0| 61 6e 74 79 3b 0a 61 6e | 64 20 67 69 76 65 20 61 |anty;.an|d give a|
|00005ed0| 6e 79 20 6f 74 68 65 72 | 20 72 65 63 69 70 69 65 |ny other| recipie|
|00005ee0| 6e 74 73 20 6f 66 20 74 | 68 65 20 50 72 6f 67 72 |nts of t|he Progr|
|00005ef0| 61 6d 20 61 20 63 6f 70 | 79 20 6f 66 20 74 68 69 |am a cop|y of thi|
|00005f00| 73 20 4c 69 63 65 6e 73 | 65 0a 61 6c 6f 6e 67 20 |s Licens|e.along |
|00005f10| 77 69 74 68 20 74 68 65 | 20 50 72 6f 67 72 61 6d |with the| Program|
|00005f20| 2e 0a 0a 59 6f 75 20 6d | 61 79 20 63 68 61 72 67 |...You m|ay charg|
|00005f30| 65 20 61 20 66 65 65 20 | 66 6f 72 20 74 68 65 20 |e a fee |for the |
|00005f40| 70 68 79 73 69 63 61 6c | 20 61 63 74 20 6f 66 20 |physical| act of |
|00005f50| 74 72 61 6e 73 66 65 72 | 72 69 6e 67 20 61 20 63 |transfer|ring a c|
|00005f60| 6f 70 79 2c 20 61 6e 64 | 0a 79 6f 75 20 6d 61 79 |opy, and|.you may|
|00005f70| 20 61 74 20 79 6f 75 72 | 20 6f 70 74 69 6f 6e 20 | at your| option |
|00005f80| 6f 66 66 65 72 20 77 61 | 72 72 61 6e 74 79 20 70 |offer wa|rranty p|
|00005f90| 72 6f 74 65 63 74 69 6f | 6e 20 69 6e 20 65 78 63 |rotectio|n in exc|
|00005fa0| 68 61 6e 67 65 20 66 6f | 72 20 61 20 66 65 65 2e |hange fo|r a fee.|
|00005fb0| 0a 0a 20 20 32 2e 20 59 | 6f 75 20 6d 61 79 20 6d |.. 2. Y|ou may m|
|00005fc0| 6f 64 69 66 79 20 79 6f | 75 72 20 63 6f 70 79 20 |odify yo|ur copy |
|00005fd0| 6f 72 20 63 6f 70 69 65 | 73 20 6f 66 20 74 68 65 |or copie|s of the|
|00005fe0| 20 50 72 6f 67 72 61 6d | 20 6f 72 20 61 6e 79 20 | Program| or any |
|00005ff0| 70 6f 72 74 69 6f 6e 0a | 6f 66 20 69 74 2c 20 74 |portion.|of it, t|
|00006000| 68 75 73 20 66 6f 72 6d | 69 6e 67 20 61 20 77 6f |hus form|ing a wo|
|00006010| 72 6b 20 62 61 73 65 64 | 20 6f 6e 20 74 68 65 20 |rk based| on the |
|00006020| 50 72 6f 67 72 61 6d 2c | 20 61 6e 64 20 63 6f 70 |Program,| and cop|
|00006030| 79 20 61 6e 64 0a 64 69 | 73 74 72 69 62 75 74 65 |y and.di|stribute|
|00006040| 20 73 75 63 68 20 6d 6f | 64 69 66 69 63 61 74 69 | such mo|dificati|
|00006050| 6f 6e 73 20 6f 72 20 77 | 6f 72 6b 20 75 6e 64 65 |ons or w|ork unde|
|00006060| 72 20 74 68 65 20 74 65 | 72 6d 73 20 6f 66 20 53 |r the te|rms of S|
|00006070| 65 63 74 69 6f 6e 20 31 | 0a 61 62 6f 76 65 2c 20 |ection 1|.above, |
|00006080| 70 72 6f 76 69 64 65 64 | 20 74 68 61 74 20 79 6f |provided| that yo|
|00006090| 75 20 61 6c 73 6f 20 6d | 65 65 74 20 61 6c 6c 20 |u also m|eet all |
|000060a0| 6f 66 20 74 68 65 73 65 | 20 63 6f 6e 64 69 74 69 |of these| conditi|
|000060b0| 6f 6e 73 3a 0a 0a 20 20 | 20 20 61 29 20 59 6f 75 |ons:.. | a) You|
|000060c0| 20 6d 75 73 74 20 63 61 | 75 73 65 20 74 68 65 20 | must ca|use the |
|000060d0| 6d 6f 64 69 66 69 65 64 | 20 66 69 6c 65 73 20 74 |modified| files t|
|000060e0| 6f 20 63 61 72 72 79 20 | 70 72 6f 6d 69 6e 65 6e |o carry |prominen|
|000060f0| 74 20 6e 6f 74 69 63 65 | 73 0a 20 20 20 20 73 74 |t notice|s. st|
|00006100| 61 74 69 6e 67 20 74 68 | 61 74 20 79 6f 75 20 63 |ating th|at you c|
|00006110| 68 61 6e 67 65 64 20 74 | 68 65 20 66 69 6c 65 73 |hanged t|he files|
|00006120| 20 61 6e 64 20 74 68 65 | 20 64 61 74 65 20 6f 66 | and the| date of|
|00006130| 20 61 6e 79 20 63 68 61 | 6e 67 65 2e 0a 0a 20 20 | any cha|nge... |
|00006140| 20 20 62 29 20 59 6f 75 | 20 6d 75 73 74 20 63 61 | b) You| must ca|
|00006150| 75 73 65 20 61 6e 79 20 | 77 6f 72 6b 20 74 68 61 |use any |work tha|
|00006160| 74 20 79 6f 75 20 64 69 | 73 74 72 69 62 75 74 65 |t you di|stribute|
|00006170| 20 6f 72 20 70 75 62 6c | 69 73 68 2c 20 74 68 61 | or publ|ish, tha|
|00006180| 74 20 69 6e 0a 20 20 20 | 20 77 68 6f 6c 65 20 6f |t in. | whole o|
|00006190| 72 20 69 6e 20 70 61 72 | 74 20 63 6f 6e 74 61 69 |r in par|t contai|
|000061a0| 6e 73 20 6f 72 20 69 73 | 20 64 65 72 69 76 65 64 |ns or is| derived|
|000061b0| 20 66 72 6f 6d 20 74 68 | 65 20 50 72 6f 67 72 61 | from th|e Progra|
|000061c0| 6d 20 6f 72 20 61 6e 79 | 0a 20 20 20 20 70 61 72 |m or any|. par|
|000061d0| 74 20 74 68 65 72 65 6f | 66 2c 20 74 6f 20 62 65 |t thereo|f, to be|
|000061e0| 20 6c 69 63 65 6e 73 65 | 64 20 61 73 20 61 20 77 | license|d as a w|
|000061f0| 68 6f 6c 65 20 61 74 20 | 6e 6f 20 63 68 61 72 67 |hole at |no charg|
|00006200| 65 20 74 6f 20 61 6c 6c | 20 74 68 69 72 64 0a 20 |e to all| third. |
|00006210| 20 20 20 70 61 72 74 69 | 65 73 20 75 6e 64 65 72 | parti|es under|
|00006220| 20 74 68 65 20 74 65 72 | 6d 73 20 6f 66 20 74 68 | the ter|ms of th|
|00006230| 69 73 20 4c 69 63 65 6e | 73 65 2e 0a 0a 20 20 20 |is Licen|se... |
|00006240| 20 63 29 20 49 66 20 74 | 68 65 20 6d 6f 64 69 66 | c) If t|he modif|
|00006250| 69 65 64 20 70 72 6f 67 | 72 61 6d 20 6e 6f 72 6d |ied prog|ram norm|
|00006260| 61 6c 6c 79 20 72 65 61 | 64 73 20 63 6f 6d 6d 61 |ally rea|ds comma|
|00006270| 6e 64 73 20 69 6e 74 65 | 72 61 63 74 69 76 65 6c |nds inte|ractivel|
|00006280| 79 0a 20 20 20 20 77 68 | 65 6e 20 72 75 6e 2c 20 |y. wh|en run, |
|00006290| 79 6f 75 20 6d 75 73 74 | 20 63 61 75 73 65 20 69 |you must| cause i|
|000062a0| 74 2c 20 77 68 65 6e 20 | 73 74 61 72 74 65 64 20 |t, when |started |
|000062b0| 72 75 6e 6e 69 6e 67 20 | 66 6f 72 20 73 75 63 68 |running |for such|
|000062c0| 0a 20 20 20 20 69 6e 74 | 65 72 61 63 74 69 76 65 |. int|eractive|
|000062d0| 20 75 73 65 20 69 6e 20 | 74 68 65 20 6d 6f 73 74 | use in |the most|
|000062e0| 20 6f 72 64 69 6e 61 72 | 79 20 77 61 79 2c 20 74 | ordinar|y way, t|
|000062f0| 6f 20 70 72 69 6e 74 20 | 6f 72 20 64 69 73 70 6c |o print |or displ|
|00006300| 61 79 20 61 6e 0a 20 20 | 20 20 61 6e 6e 6f 75 6e |ay an. | announ|
|00006310| 63 65 6d 65 6e 74 20 69 | 6e 63 6c 75 64 69 6e 67 |cement i|ncluding|
|00006320| 20 61 6e 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 | an appr|opriate |
|00006330| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00006340| 20 61 6e 64 20 61 0a 20 | 20 20 20 6e 6f 74 69 63 | and a. | notic|
|00006350| 65 20 74 68 61 74 20 74 | 68 65 72 65 20 69 73 20 |e that t|here is |
|00006360| 6e 6f 20 77 61 72 72 61 | 6e 74 79 20 28 6f 72 20 |no warra|nty (or |
|00006370| 65 6c 73 65 2c 20 73 61 | 79 69 6e 67 20 74 68 61 |else, sa|ying tha|
|00006380| 74 20 79 6f 75 20 70 72 | 6f 76 69 64 65 0a 20 20 |t you pr|ovide. |
|00006390| 20 20 61 20 77 61 72 72 | 61 6e 74 79 29 20 61 6e | a warr|anty) an|
|000063a0| 64 20 74 68 61 74 20 75 | 73 65 72 73 20 6d 61 79 |d that u|sers may|
|000063b0| 20 72 65 64 69 73 74 72 | 69 62 75 74 65 20 74 68 | redistr|ibute th|
|000063c0| 65 20 70 72 6f 67 72 61 | 6d 20 75 6e 64 65 72 0a |e progra|m under.|
|000063d0| 20 20 20 20 74 68 65 73 | 65 20 63 6f 6e 64 69 74 | thes|e condit|
|000063e0| 69 6f 6e 73 2c 20 61 6e | 64 20 74 65 6c 6c 69 6e |ions, an|d tellin|
|000063f0| 67 20 74 68 65 20 75 73 | 65 72 20 68 6f 77 20 74 |g the us|er how t|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.