home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [*TEX] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 64 6f 63 75 6d 65 6e | 74 73 74 79 6c 65 5b 72 |\documen|tstyle[r|
|00000010| 63 73 2c 61 34 2c 31 32 | 70 74 5d 7b 61 72 74 69 |cs,a4,12|pt]{arti|
|00000020| 63 6c 65 7d 0d 0d 25 20 | 72 63 73 2e 73 74 79 20 |cle}..% |rcs.sty |
|00000030| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 66 72 6f |is avail|able fro|
|00000040| 6d 20 66 74 70 2e 75 6e | 69 2d 73 74 75 74 74 67 |m ftp.un|i-stuttg|
|00000050| 61 72 74 2e 64 65 0d 25 | 20 69 6e 20 74 68 65 20 |art.de.%| in the |
|00000060| 64 69 72 65 63 74 6f 72 | 79 20 73 6f 66 74 2f 74 |director|y soft/t|
|00000070| 65 78 2f 6c 61 74 65 78 | 2d 73 74 79 6c 65 2d 73 |ex/latex|-style-s|
|00000080| 75 70 70 6f 72 74 65 64 | 20 2e 0d 0d 5c 52 43 53 |upported| ...\RCS|
|00000090| 24 52 65 76 69 73 69 6f | 6e 3a 20 31 2e 31 20 24 |$Revisio|n: 1.1 $|
|000000a0| 0d 5c 52 43 53 24 44 61 | 74 65 3a 20 31 39 39 32 |.\RCS$Da|te: 1992|
|000000b0| 2f 30 39 2f 31 34 20 31 | 34 3a 32 38 3a 32 33 20 |/09/14 1|4:28:23 |
|000000c0| 24 0d 0d 5c 63 61 74 63 | 6f 64 65 60 5c 22 3d 5c |$..\catc|ode`\"=\|
|000000d0| 61 63 74 69 76 65 0d 5c | 64 65 66 22 23 31 22 7b |active.\|def"#1"{|
|000000e0| 7b 5c 74 74 20 23 31 7d | 7d 0d 0d 5c 62 65 67 69 |{\tt #1}|}..\begi|
|000000f0| 6e 7b 64 6f 63 75 6d 65 | 6e 74 7d 0d 0d 5c 74 69 |n{docume|nt}..\ti|
|00000100| 74 6c 65 7b 41 20 50 6f | 73 69 78 20 4c 69 62 72 |tle{A Po|six Libr|
|00000110| 61 72 79 20 66 6f 72 20 | 54 68 69 6e 6b 20 43 7d |ary for |Think C}|
|00000120| 0d 0d 5c 61 75 74 68 6f | 72 7b 54 69 6d 6f 74 68 |..\autho|r{Timoth|
|00000130| 79 20 4d 75 72 70 68 79 | 5c 5c 0d 54 72 69 6e 69 |y Murphy|\\.Trini|
|00000140| 74 79 20 43 6f 6c 6c 65 | 67 65 20 44 75 62 6c 69 |ty Colle|ge Dubli|
|00000150| 6e 5c 5c 0d 28 22 74 69 | 6d 40 6d 61 74 68 73 2e |n\\.("ti|m@maths.|
|00000160| 74 63 64 2e 69 65 22 29 | 7d 0d 0d 5c 64 61 74 65 |tcd.ie")|}..\date|
|00000170| 7b 5c 52 43 53 44 61 74 | 65 5c 5c 0d 28 56 65 72 |{\RCSDat|e\\.(Ver|
|00000180| 73 69 6f 6e 20 5c 52 43 | 53 52 65 76 69 73 69 6f |sion \RC|SRevisio|
|00000190| 6e 29 7d 0d 0d 5c 6d 61 | 6b 65 74 69 74 6c 65 0d |n)}..\ma|ketitle.|
|000001a0| 0d 5c 62 65 67 69 6e 7b | 61 62 73 74 72 61 63 74 |.\begin{|abstract|
|000001b0| 7d 0d 54 68 69 73 20 6c | 69 62 72 61 72 79 20 69 |}.This l|ibrary i|
|000001c0| 73 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 73 75 |s intend|ed to su|
|000001d0| 70 70 6c 65 6d 65 6e 74 | 0d 74 68 65 20 41 4e 53 |pplement|.the ANS|
|000001e0| 49 20 61 6e 64 20 55 6e | 69 78 20 6c 69 62 72 61 |I and Un|ix libra|
|000001f0| 72 69 65 73 20 70 72 6f | 76 69 64 65 64 20 77 69 |ries pro|vided wi|
|00000200| 74 68 20 54 68 69 6e 6b | 20 43 2c 0d 62 79 20 73 |th Think| C,.by s|
|00000210| 75 70 70 6c 79 69 6e 67 | 20 61 73 20 6d 61 6e 79 |upplying| as many|
|00000220| 20 6f 66 20 74 68 65 20 | 6d 69 73 73 69 6e 67 20 | of the |missing |
|00000230| 50 6f 73 69 78 20 66 75 | 6e 63 74 69 6f 6e 73 20 |Posix fu|nctions |
|00000240| 61 73 20 70 6f 73 73 69 | 62 6c 65 2e 0d 54 68 65 |as possi|ble..The|
|00000250| 20 6c 69 62 72 61 72 79 | 20 77 61 73 20 64 65 76 | library| was dev|
|00000260| 65 6c 6f 70 65 64 20 74 | 6f 20 61 73 73 69 73 74 |eloped t|o assist|
|00000270| 20 69 6e 20 70 6f 72 74 | 69 6e 67 0d 47 4e 55 20 | in port|ing.GNU |
|00000280| 70 72 6f 67 72 61 6d 73 | 20 74 6f 20 74 68 65 20 |programs| to the |
|00000290| 4d 61 63 69 6e 74 6f 73 | 68 5c 66 6f 6f 74 6e 6f |Macintos|h\footno|
|000002a0| 74 65 6d 61 72 6b 2e 0d | 5c 65 6e 64 7b 61 62 73 |temark..|\end{abs|
|000002b0| 74 72 61 63 74 7d 0d 0d | 5c 66 6f 6f 74 6e 6f 74 |tract}..|\footnot|
|000002c0| 65 74 65 78 74 7b 54 6f | 20 64 61 74 65 20 74 68 |etext{To| date th|
|000002d0| 65 20 61 75 74 68 6f 72 | 20 68 61 73 20 70 6f 72 |e author| has por|
|000002e0| 74 65 64 0d 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ted.the |followin|
|000002f0| 67 20 47 4e 55 20 70 72 | 6f 67 72 61 6d 73 20 74 |g GNU pr|ograms t|
|00000300| 6f 20 74 68 65 20 4d 61 | 63 3a 0d 22 64 69 66 66 |o the Ma|c:."diff|
|00000310| 2d 31 2e 31 35 22 2c 0d | 22 70 61 74 63 68 2d 32 |-1.15",.|"patch-2|
|00000320| 2e 30 31 32 75 36 22 2c | 0d 22 72 63 73 2d 35 2e |.012u6",|."rcs-5.|
|00000330| 36 22 2c 0d 22 62 69 73 | 6f 6e 2d 31 2e 31 38 22 |6",."bis|on-1.18"|
|00000340| 2c 0d 22 66 6c 65 78 2d | 32 2e 33 2e 37 22 2c 0d |,."flex-|2.3.7",.|
|00000350| 22 70 65 72 6c 2d 34 2e | 30 33 35 22 2e 7d 0d 0d |"perl-4.|035".}..|
|00000360| 5c 73 65 63 74 69 6f 6e | 7b 53 74 61 74 75 73 7d |\section|{Status}|
|00000370| 0d 0d 54 68 69 73 20 6c | 69 62 72 61 72 79 20 69 |..This l|ibrary i|
|00000380| 73 20 70 6c 61 63 65 64 | 20 69 6e 20 74 68 65 20 |s placed| in the |
|00000390| 50 75 62 6c 69 63 20 44 | 6f 6d 61 69 6e 2e 0d 49 |Public D|omain..I|
|000003a0| 74 20 6d 61 79 20 62 65 | 20 75 73 65 64 20 61 6e |t may be| used an|
|000003b0| 64 20 6d 6f 64 69 66 69 | 65 64 20 66 72 65 65 6c |d modifi|ed freel|
|000003c0| 79 2d 2d 2d 25 0d 74 68 | 6f 75 67 68 20 74 68 65 |y---%.th|ough the|
|000003d0| 20 61 75 74 68 6f 72 20 | 77 6f 75 6c 64 20 62 65 | author |would be|
|000003e0| 20 67 72 61 74 65 66 75 | 6c 0d 66 6f 72 20 6e 6f | gratefu|l.for no|
|000003f0| 74 69 66 69 63 61 74 69 | 6f 6e 20 6f 66 20 61 6e |tificati|on of an|
|00000400| 79 20 73 75 63 68 20 6d | 6f 64 69 66 69 63 61 74 |y such m|odificat|
|00000410| 69 6f 6e 73 2c 0d 61 6e | 64 20 77 6f 75 6c 64 20 |ions,.an|d would |
|00000420| 70 72 65 66 65 72 20 69 | 66 20 68 69 73 20 6e 61 |prefer i|f his na|
|00000430| 6d 65 20 61 6e 64 20 65 | 2d 6d 61 69 6c 20 61 64 |me and e|-mail ad|
|00000440| 64 72 65 73 73 0d 77 65 | 72 65 20 6c 65 66 74 20 |dress.we|re left |
|00000450| 6f 6e 20 61 6c 6c 20 66 | 69 6c 65 73 2c 20 74 6f |on all f|iles, to|
|00000460| 20 74 68 69 73 20 65 6e | 64 2e 0d 0d 5c 73 65 63 | this en|d...\sec|
|00000470| 74 69 6f 6e 7b 41 76 61 | 69 6c 61 62 69 6c 69 74 |tion{Ava|ilabilit|
|00000480| 79 7d 0d 0d 54 68 65 20 | 6c 69 62 72 61 72 79 20 |y}..The |library |
|00000490| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 62 79 20 |is avail|able by |
|000004a0| 61 6e 6f 6e 79 6d 6f 75 | 73 20 46 54 50 20 66 72 |anonymou|s FTP fr|
|000004b0| 6f 6d 20 22 66 74 70 2e | 6d 61 74 68 73 2e 74 63 |om "ftp.|maths.tc|
|000004c0| 64 2e 69 65 22 0d 69 6e | 20 74 68 65 20 64 69 72 |d.ie".in| the dir|
|000004d0| 65 63 74 6f 72 79 20 22 | 70 75 62 2f 4d 61 63 2f |ectory "|pub/Mac/|
|000004e0| 54 68 69 6e 6b 43 50 6f | 73 69 78 2d 31 2e 31 22 |ThinkCPo|six-1.1"|
|000004f0| 2e 0d 54 68 65 20 63 6f | 6d 70 69 6c 65 64 20 6c |..The co|mpiled l|
|00000500| 69 62 72 61 72 79 20 69 | 73 20 63 6f 6e 74 61 69 |ibrary i|s contai|
|00000510| 6e 65 64 20 69 6e 20 74 | 68 65 20 66 69 6c 65 20 |ned in t|he file |
|00000520| 22 50 6f 73 69 78 2e 68 | 71 78 22 2e 0d 54 68 65 |"Posix.h|qx"..The|
|00000530| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 73 20 61 72 | source |files ar|
|00000540| 65 20 61 72 63 68 69 76 | 65 64 20 69 6e 20 22 54 |e archiv|ed in "T|
|00000550| 68 69 6e 6b 43 50 6f 73 | 69 78 2e 68 71 78 22 2e |hinkCPos|ix.hqx".|
|00000560| 0d 54 68 69 73 20 69 6e | 63 6c 75 64 65 73 20 74 |.This in|cludes t|
|00000570| 68 65 20 54 68 69 6e 6b | 20 43 20 70 72 6f 6a 65 |he Think| C proje|
|00000580| 63 74 20 22 50 6f 73 69 | 78 2e 24 5c 70 69 24 22 |ct "Posi|x.$\pi$"|
|00000590| 2e 0d 0d 5c 73 65 63 74 | 69 6f 6e 7b 41 63 6b 6e |...\sect|ion{Ackn|
|000005a0| 6f 77 6c 65 64 67 65 6d | 65 6e 74 73 7d 0d 0d 54 |owledgem|ents}..T|
|000005b0| 68 65 20 61 75 74 68 6f | 72 20 68 61 73 20 75 73 |he autho|r has us|
|000005c0| 65 64 20 66 72 65 65 6c | 79 20 63 6f 64 65 20 69 |ed freel|y code i|
|000005d0| 6e 20 74 68 65 20 61 72 | 63 68 69 76 65 73 0d 70 |n the ar|chives.p|
|000005e0| 6f 69 6e 74 65 64 20 6f | 75 74 20 74 6f 20 68 69 |ointed o|ut to hi|
|000005f0| 6d 2c 0d 69 6e 20 70 61 | 72 74 69 63 75 6c 61 72 |m,.in pa|rticular|
|00000600| 20 63 6f 64 65 20 62 79 | 3a 0d 47 75 69 64 6f 20 | code by|:.Guido |
|00000610| 76 61 6e 20 52 6f 73 73 | 75 6d 20 28 22 67 75 69 |van Ross|um ("gui|
|00000620| 64 6f 40 63 77 69 2e 6e | 6c 22 29 2c 20 61 6e 64 |do@cwi.n|l"), and|
|00000630| 0d 4d 61 74 68 69 61 73 | 20 4e 65 65 61 72 63 68 |.Mathias| Neearch|
|00000640| 65 72 2e 0d 28 57 68 65 | 72 65 20 63 6f 64 65 20 |er..(Whe|re code |
|00000650| 69 73 20 74 61 6b 65 6e | 20 6d 6f 72 65 20 6f 72 |is taken| more or|
|00000660| 20 6c 65 73 73 20 76 65 | 72 62 61 74 69 6d 2c 0d | less ve|rbatim,.|
|00000670| 74 68 69 73 20 69 73 20 | 69 6e 64 69 63 61 74 65 |this is |indicate|
|00000680| 64 20 69 6e 20 74 68 65 | 20 72 65 6c 65 76 61 6e |d in the| relevan|
|00000690| 74 20 66 69 6c 65 73 2e | 29 0d 0d 48 65 20 69 73 |t files.|)..He is|
|000006a0| 20 61 6c 73 6f 20 67 72 | 61 74 65 66 75 6c 20 66 | also gr|ateful f|
|000006b0| 6f 72 20 61 73 73 69 73 | 74 61 6e 63 65 20 66 72 |or assis|tance fr|
|000006c0| 6f 6d 3a 0d 4b 65 6e 6e | 65 74 68 20 53 65 61 68 |om:.Kenn|eth Seah|
|000006d0| 20 28 22 6b 73 65 61 68 | 40 70 72 6f 63 79 6f 6e | ("kseah|@procyon|
|000006e0| 2e 61 75 73 74 69 6e 2e | 74 78 2e 75 73 22 29 2c |.austin.|tx.us"),|
|000006f0| 0d 53 61 6b 20 57 61 74 | 68 61 6e 61 73 69 6e 20 |.Sak Wat|hanasin |
|00000700| 28 22 73 77 40 6e 65 74 | 77 6f 72 6b 2d 61 6e 61 |("sw@net|work-ana|
|00000710| 6c 79 73 69 73 2d 6c 74 | 64 2e 63 6f 2e 75 6b 22 |lysis-lt|d.co.uk"|
|00000720| 29 2c 0d 4a 6f 68 6e 20 | 57 2e 20 48 61 72 64 69 |),.John |W. Hardi|
|00000730| 6e 20 28 22 68 61 72 64 | 69 6e 40 6d 63 63 2e 63 |n ("hard|in@mcc.c|
|00000740| 6f 6d 22 29 2c 20 61 6e | 64 0d 47 61 72 79 20 4a |om"), an|d.Gary J|
|00000750| 2e 20 48 65 6e 64 65 72 | 73 6f 6e 20 28 22 67 61 |. Hender|son ("ga|
|00000760| 72 79 40 69 73 63 6e 76 | 78 2e 6c 6d 73 63 2e 6c |ry@iscnv|x.lmsc.l|
|00000770| 6f 63 6b 68 65 65 64 2e | 63 6f 6d 22 29 0d 0d 5c |ockheed.|com")..\|
|00000780| 73 65 63 74 69 6f 6e 7b | 50 6f 73 69 78 7d 0d 0d |section{|Posix}..|
|00000790| 54 68 65 20 75 73 65 20 | 6f 66 20 74 68 65 20 74 |The use |of the t|
|000007a0| 65 72 6d 20 60 60 50 6f | 73 69 78 27 27 20 6d 61 |erm ``Po|six'' ma|
|000007b0| 79 20 62 65 20 6d 69 73 | 6c 65 61 64 69 6e 67 2d |y be mis|leading-|
|000007c0| 2d 2d 25 0d 69 74 20 69 | 73 20 63 65 72 74 61 69 |--%.it i|s certai|
|000007d0| 6e 6c 79 20 6e 6f 74 20 | 6d 65 61 6e 74 20 74 6f |nly not |meant to|
|000007e0| 20 69 6d 70 6c 79 20 74 | 68 61 74 20 74 68 65 20 | imply t|hat the |
|000007f0| 66 75 6e 63 74 69 6f 6e | 73 20 73 61 74 69 73 66 |function|s satisf|
|00000800| 79 0d 61 6e 79 20 50 6f | 73 69 78 20 73 74 61 6e |y.any Po|six stan|
|00000810| 64 61 72 64 73 0d 28 6f | 66 20 77 68 69 63 68 20 |dards.(o|f which |
|00000820| 74 68 65 20 61 75 74 68 | 6f 72 20 69 73 20 6c 61 |the auth|or is la|
|00000830| 72 67 65 6c 79 20 69 67 | 6e 6f 72 61 6e 74 29 2e |rgely ig|norant).|
|00000840| 0d 49 74 20 69 73 20 69 | 6e 74 65 6e 64 65 64 20 |.It is i|ntended |
|00000850| 73 69 6d 70 6c 79 20 61 | 73 20 61 20 64 65 73 63 |simply a|s a desc|
|00000860| 72 69 70 74 69 6f 6e 0d | 6f 66 20 74 68 65 20 6b |ription.|of the k|
|00000870| 69 6e 64 20 6f 66 20 66 | 75 6e 63 74 69 6f 6e 73 |ind of f|unctions|
|00000880| 20 69 6e 63 6c 75 64 65 | 64 2d 2d 2d 25 0d 6e 61 | include|d---%.na|
|00000890| 6d 65 6c 79 2c 20 74 68 | 6f 73 65 20 50 6f 73 69 |mely, th|ose Posi|
|000008a0| 78 20 66 75 6e 63 74 69 | 6f 6e 73 20 6e 6f 74 20 |x functi|ons not |
|000008b0| 69 6e 63 6c 75 64 65 64 | 0d 69 6e 20 74 68 65 20 |included|.in the |
|000008c0| 54 68 69 6e 6b 20 43 20 | 41 4e 53 49 20 6f 72 20 |Think C |ANSI or |
|000008d0| 55 6e 69 78 20 6c 69 62 | 72 61 72 69 65 73 2e 0d |Unix lib|raries..|
|000008e0| 0d 4d 61 6e 79 20 6f 66 | 20 74 68 65 20 66 75 6e |.Many of| the fun|
|000008f0| 63 74 69 6f 6e 73 0d 28 | 69 6e 20 70 61 72 74 69 |ctions.(|in parti|
|00000900| 63 75 6c 61 72 20 74 68 | 6f 73 65 20 69 6e 20 74 |cular th|ose in t|
|00000910| 68 65 20 66 69 6c 65 20 | 22 64 75 6d 6d 79 2e 63 |he file |"dummy.c|
|00000920| 22 29 0d 64 6f 20 6e 6f | 20 6d 6f 72 65 20 74 68 |").do no| more th|
|00000930| 61 6e 20 72 65 74 75 72 | 6e 20 61 6e 20 61 70 70 |an retur|n an app|
|00000940| 72 6f 70 72 69 61 74 65 | 20 76 61 6c 75 65 2c 0d |ropriate| value,.|
|00000950| 69 6e 64 69 63 61 74 69 | 6e 67 20 73 75 63 63 65 |indicati|ng succe|
|00000960| 73 73 20 6f 72 20 66 61 | 69 6c 75 72 65 2c 20 61 |ss or fa|ilure, a|
|00000970| 73 20 64 65 65 6d 65 64 | 20 61 70 70 72 6f 70 72 |s deemed| appropr|
|00000980| 69 61 74 65 2e 0d 0d 5c | 73 65 63 74 69 6f 6e 7b |iate...\|section{|
|00000990| 43 6f 6d 70 69 6c 61 74 | 69 6f 6e 7d 0d 0d 54 6f |Compilat|ion}..To|
|000009a0| 20 72 65 2d 63 6f 6d 70 | 69 6c 65 20 74 68 65 20 | re-comp|ile the |
|000009b0| 6c 69 62 72 61 72 79 2c | 0d 74 68 65 20 69 6e 63 |library,|.the inc|
|000009c0| 6c 75 64 65 64 20 70 72 | 6f 6a 65 63 74 20 22 50 |luded pr|oject "P|
|000009d0| 6f 73 69 78 2e 24 5c 70 | 69 24 22 20 63 61 6e 20 |osix.$\p|i$" can |
|000009e0| 62 65 20 75 73 65 64 2e | 0d 4a 75 73 74 20 63 68 |be used.|.Just ch|
|000009f0| 6f 6f 73 65 20 74 68 65 | 20 22 42 75 69 6c 64 20 |oose the| "Build |
|00000a00| 4c 69 62 72 61 72 79 22 | 20 6f 70 74 69 6f 6e 0d |Library"| option.|
|00000a10| 69 6e 20 74 68 65 20 22 | 50 72 6f 6a 65 63 74 22 |in the "|Project"|
|00000a20| 20 6d 65 6e 75 2e 0d 0d | 54 68 65 20 61 75 74 68 | menu...|The auth|
|00000a30| 6f 72 20 68 61 73 20 61 | 6c 6c 20 74 68 65 20 41 |or has a|ll the A|
|00000a40| 4e 53 49 20 6f 70 74 69 | 6f 6e 73 20 74 75 72 6e |NSI opti|ons turn|
|00000a50| 65 64 20 6f 6e 2c 0d 61 | 73 20 77 65 6c 6c 20 61 |ed on,.a|s well a|
|00000a60| 73 20 22 52 65 71 75 69 | 72 65 20 70 72 6f 74 6f |s "Requi|re proto|
|00000a70| 74 79 70 65 73 22 2e 0d | 54 68 65 20 34 2d 62 79 |types"..|The 4-by|
|00000a80| 74 65 20 69 6e 74 20 6f | 70 74 69 6f 6e 20 61 6e |te int o|ption an|
|00000a90| 64 20 36 38 30 32 30 20 | 63 6f 64 65 20 6f 70 74 |d 68020 |code opt|
|00000aa0| 69 6f 6e 0d 61 72 65 20 | 74 75 72 6e 65 64 20 6f |ion.are |turned o|
|00000ab0| 66 66 2e 0d 0d 5c 73 65 | 63 74 69 6f 6e 7b 55 73 |ff...\se|ction{Us|
|00000ac0| 61 67 65 7d 0d 0d 41 6e | 79 20 66 69 6c 65 20 75 |age}..An|y file u|
|00000ad0| 73 69 6e 67 20 74 68 65 | 20 6c 69 62 72 61 72 79 |sing the| library|
|00000ae0| 20 73 68 6f 75 6c 64 0d | 5c 62 65 67 69 6e 7b 76 | should.|\begin{v|
|00000af0| 65 72 62 61 74 69 6d 7d | 0d 20 20 20 20 20 20 23 |erbatim}|. #|
|00000b00| 69 6e 63 6c 75 64 65 20 | 22 54 68 69 6e 6b 43 50 |include |"ThinkCP|
|00000b10| 6f 73 69 78 2e 68 22 0d | 5c 65 6e 64 7b 76 65 72 |osix.h".|\end{ver|
|00000b20| 62 61 74 69 6d 7d 0d 54 | 68 65 20 68 65 61 64 65 |batim}.T|he heade|
|00000b30| 72 20 28 22 2a 2e 68 22 | 29 20 66 69 6c 65 73 20 |r ("*.h"|) files |
|00000b40| 73 68 6f 75 6c 64 20 62 | 65 20 70 6c 61 63 65 64 |should b|e placed|
|00000b50| 20 73 6f 6d 65 77 68 65 | 72 65 0d 69 6e 20 74 68 | somewhe|re.in th|
|00000b60| 65 20 54 68 69 6e 6b 20 | 43 20 74 72 65 65 20 28 |e Think |C tree (|
|00000b70| 69 65 20 62 65 6c 6f 77 | 20 74 68 65 20 54 68 69 |ie below| the Thi|
|00000b80| 6e 6b 20 43 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |nk C app|lication|
|00000b90| 29 2e 0d 0d 57 68 65 6e | 65 76 65 72 20 74 68 65 |)...When|ever the|
|00000ba0| 20 22 50 6f 73 69 78 22 | 20 6c 69 62 72 61 72 79 | "Posix"| library|
|00000bb0| 20 69 73 20 69 6e 63 6c | 75 64 65 64 2c 0d 74 68 | is incl|uded,.th|
|00000bc0| 65 20 54 68 69 6e 6b 20 | 43 20 22 4d 61 63 54 72 |e Think |C "MacTr|
|00000bd0| 61 70 73 22 20 6c 69 62 | 72 61 72 79 20 6d 75 73 |aps" lib|rary mus|
|00000be0| 74 20 61 6c 73 6f 20 62 | 65 20 69 6e 63 6c 75 64 |t also b|e includ|
|00000bf0| 65 64 2e 0d 28 54 68 69 | 73 20 63 6f 75 6c 64 20 |ed..(Thi|s could |
|00000c00| 70 72 6f 62 61 62 6c 79 | 20 62 65 20 61 76 6f 69 |probably| be avoi|
|00000c10| 64 65 64 20 62 79 20 61 | 62 73 74 72 61 63 74 69 |ded by a|bstracti|
|00000c20| 6e 67 0d 74 68 65 20 76 | 65 72 79 20 66 65 77 20 |ng.the v|ery few |
|00000c30| 4d 61 63 54 72 61 70 73 | 20 66 75 6e 63 74 69 6f |MacTraps| functio|
|00000c40| 6e 73 20 63 61 6c 6c 65 | 64 2e 0d 48 6f 77 65 76 |ns calle|d..Howev|
|00000c50| 65 72 2c 20 74 68 61 74 | 20 69 73 20 70 72 6f 62 |er, that| is prob|
|00000c60| 61 62 6c 79 20 69 6c 6c | 65 67 61 6c 3f 29 0d 0d |ably ill|egal?)..|
|00000c70| 5c 73 65 63 74 69 6f 6e | 7b 4e 6f 74 65 73 7d 0d |\section|{Notes}.|
|00000c80| 54 68 65 73 65 20 61 72 | 65 20 61 20 66 65 77 20 |These ar|e a few |
|00000c90| 72 61 6e 64 6f 6d 20 74 | 68 6f 75 67 68 74 73 20 |random t|houghts |
|00000ca0| 6f 6e 20 73 6f 6d 65 20 | 6f 66 20 74 68 65 20 66 |on some |of the f|
|00000cb0| 75 6e 63 74 69 6f 6e 73 | 0d 69 6e 20 74 68 65 20 |unctions|.in the |
|00000cc0| 6c 69 62 72 61 72 79 2e | 0d 0d 5c 62 65 67 69 6e |library.|..\begin|
|00000cd0| 7b 64 65 73 63 72 69 70 | 74 69 6f 6e 7d 0d 0d 5c |{descrip|tion}..\|
|00000ce0| 69 74 65 6d 5b 22 61 6c | 6c 6f 63 61 28 29 22 5d |item["al|loca()"]|
|00000cf0| 0d 54 68 69 73 20 68 61 | 73 20 62 65 65 6e 20 69 |.This ha|s been i|
|00000d00| 6e 63 6c 75 64 65 64 20 | 74 6f 20 61 76 6f 69 64 |ncluded |to avoid|
|00000d10| 20 64 75 70 6c 69 63 61 | 74 69 6f 6e 2e 0d 4e 6f | duplica|tion..No|
|00000d20| 74 65 20 74 68 61 74 20 | 74 68 65 20 70 72 6f 74 |te that |the prot|
|00000d30| 6f 74 79 70 65 20 69 73 | 20 22 76 6f 69 64 20 2a |otype is| "void *|
|00000d40| 61 6c 6c 6f 63 61 28 73 | 69 7a 65 5f 74 29 22 2c |alloca(s|ize_t)",|
|00000d50| 0d 72 61 74 68 65 72 20 | 74 68 61 6e 20 22 63 68 |.rather |than "ch|
|00000d60| 61 72 20 2a 61 6c 6c 6f | 63 61 28 75 6e 73 69 67 |ar *allo|ca(unsig|
|00000d70| 6e 65 64 29 22 2e 0d 0d | 5c 69 74 65 6d 5b 22 64 |ned)"...|\item["d|
|00000d80| 75 70 28 29 22 5d 0d 54 | 68 65 20 66 75 6e 63 74 |up()"].T|he funct|
|00000d90| 69 6f 6e 73 20 22 64 75 | 70 28 29 22 20 61 6e 64 |ions "du|p()" and|
|00000da0| 20 22 64 75 70 32 28 29 | 22 0d 28 61 73 20 69 6d | "dup2()|".(as im|
|00000db0| 70 6c 65 6d 65 6e 74 65 | 64 20 68 65 72 65 29 0d |plemente|d here).|
|00000dc0| 62 6f 74 68 20 63 6c 6f | 73 65 20 74 68 65 20 6f |both clo|se the o|
|00000dd0| 72 69 67 69 6e 61 6c 20 | 66 69 6c 65 20 61 66 74 |riginal |file aft|
|00000de0| 65 72 20 64 75 70 6c 69 | 63 61 74 69 6f 6e 2e 0d |er dupli|cation..|
|00000df0| 54 68 65 20 72 65 61 73 | 6f 6e 20 66 6f 72 20 74 |The reas|on for t|
|00000e00| 68 69 73 20 69 73 20 74 | 68 61 74 20 54 68 69 6e |his is t|hat Thin|
|00000e10| 6b 20 43 20 61 64 6f 70 | 74 73 20 74 68 65 20 6e |k C adop|ts the n|
|00000e20| 6f 6e 2d 73 74 61 6e 64 | 61 72 64 2c 0d 69 66 20 |on-stand|ard,.if |
|00000e30| 70 6c 61 75 73 69 62 6c | 65 2c 20 70 6f 6c 69 63 |plausibl|e, polic|
|00000e40| 79 20 6f 66 20 69 6e 63 | 6c 75 64 69 6e 67 20 73 |y of inc|luding s|
|00000e50| 6f 6d 65 20 66 69 6c 65 | 2d 66 75 6e 63 74 69 6f |ome file|-functio|
|00000e60| 6e 73 0d 28 73 75 63 68 | 20 61 73 20 22 63 6c 6f |ns.(such| as "clo|
|00000e70| 73 65 22 29 0d 61 73 20 | 70 61 72 74 20 6f 66 20 |se").as |part of |
|00000e80| 74 68 65 20 66 69 6c 65 | 20 73 74 72 75 63 74 75 |the file| structu|
|00000e90| 72 65 2e 0d 53 6f 20 61 | 20 22 63 6c 6f 73 65 28 |re..So a| "close(|
|00000ea0| 66 64 29 22 20 61 64 64 | 72 65 73 73 65 64 20 74 |fd)" add|ressed t|
|00000eb0| 6f 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 64 |o the or|iginal d|
|00000ec0| 65 73 63 72 69 70 74 6f | 72 0d 77 6f 75 6c 64 20 |escripto|r.would |
|00000ed0| 61 6c 73 6f 20 63 6c 6f | 73 65 20 74 68 65 20 64 |also clo|se the d|
|00000ee0| 75 70 6c 69 63 61 74 65 | 2e 0d 28 54 68 69 73 20 |uplicate|..(This |
|00000ef0| 6d 61 79 20 62 65 20 61 | 20 6d 69 73 75 6e 64 65 |may be a| misunde|
|00000f00| 72 73 74 61 6e 64 69 6e | 67 20 6f 6e 20 74 68 65 |rstandin|g on the|
|00000f10| 20 61 75 74 68 6f 72 27 | 73 20 70 61 72 74 2e 29 | author'|s part.)|
|00000f20| 0d 0d 5c 69 74 65 6d 5b | 22 67 65 74 70 61 73 73 |..\item[|"getpass|
|00000f30| 77 64 28 29 22 5d 0d 54 | 68 69 73 20 28 61 6e 64 |wd()"].T|his (and|
|00000f40| 20 6f 6e 65 20 6f 72 20 | 74 77 6f 20 6f 74 68 65 | one or |two othe|
|00000f50| 72 20 66 75 6e 63 74 69 | 6f 6e 73 29 0d 63 61 6c |r functi|ons).cal|
|00000f60| 6c 20 22 67 65 74 6c 6f | 67 69 6e 28 29 22 20 69 |l "getlo|gin()" i|
|00000f70| 6e 20 74 68 65 20 54 68 | 69 6e 6b 20 43 20 55 6e |n the Th|ink C Un|
|00000f80| 69 78 20 6c 69 62 72 61 | 72 79 0d 74 6f 20 66 69 |ix libra|ry.to fi|
|00000f90| 6e 64 20 74 68 65 20 75 | 73 65 72 27 73 20 6e 61 |nd the u|ser's na|
|00000fa0| 6d 65 2e 0d 54 68 69 73 | 20 6c 61 74 74 65 72 20 |me..This| latter |
|00000fb0| 6d 75 73 74 20 62 65 20 | 73 65 74 2d 2d 2d 25 0d |must be |set---%.|
|00000fc0| 75 6e 64 65 72 20 53 79 | 73 74 65 6d 20 37 2c 20 |under Sy|stem 7, |
|00000fd0| 61 74 20 6c 65 61 73 74 | 2d 2d 2d 25 0d 69 6e 20 |at least|---%.in |
|00000fe0| 74 68 65 20 22 53 68 61 | 72 69 6e 67 20 53 65 74 |the "Sha|ring Set|
|00000ff0| 75 70 22 20 43 6f 6e 74 | 72 6f 6c 20 50 61 6e 65 |up" Cont|rol Pane|
|00001000| 6c 2c 0d 61 73 20 64 65 | 73 63 72 69 62 65 64 20 |l,.as de|scribed |
|00001010| 69 6e 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |in the M|acintosh|
|00001020| 20 4e 65 74 77 6f 72 6b | 69 6e 67 20 52 65 66 65 | Network|ing Refe|
|00001030| 72 65 6e 63 65 20 6d 61 | 6e 75 61 6c 2e 0d 28 49 |rence ma|nual..(I|
|00001040| 20 62 65 6c 69 65 76 65 | 20 74 68 61 74 20 75 6e | believe| that un|
|00001050| 64 65 72 20 53 79 73 74 | 65 6d 20 36 20 69 74 20 |der Syst|em 6 it |
|00001060| 77 61 73 20 63 68 61 6e | 67 65 64 0d 6f 6e 20 74 |was chan|ged.on t|
|00001070| 68 65 20 43 68 6f 6f 73 | 65 72 20 70 61 6e 65 6c |he Choos|er panel|
|00001080| 2e 29 0d 0d 5c 69 74 65 | 6d 5b 22 4f 70 65 6e 28 |.)..\ite|m["Open(|
|00001090| 29 22 5d 0d 54 68 65 20 | 6c 69 62 72 61 72 79 20 |)"].The |library |
|000010a0| 69 6e 63 6c 75 64 65 73 | 20 61 20 66 65 77 20 60 |includes| a few `|
|000010b0| 60 73 75 62 73 74 69 74 | 75 74 65 27 27 20 66 75 |`substit|ute'' fu|
|000010c0| 6e 63 74 69 6f 6e 73 2c | 0d 65 67 20 22 50 65 72 |nctions,|.eg "Per|
|000010d0| 72 6f 72 28 29 22 20 61 | 6e 64 20 22 4f 70 65 6e |ror()" a|nd "Open|
|000010e0| 28 29 22 2e 0d 54 68 65 | 20 69 64 65 61 20 69 73 |()"..The| idea is|
|000010f0| 20 74 68 61 74 20 74 68 | 65 73 65 20 63 61 6e 20 | that th|ese can |
|00001100| 62 65 20 75 73 65 64 20 | 69 6e 20 70 6c 61 63 65 |be used |in place|
|00001110| 20 6f 66 0d 22 70 65 72 | 72 6f 72 28 29 22 20 6f | of."per|ror()" o|
|00001120| 72 20 22 6f 70 65 6e 28 | 29 22 20 62 79 20 69 6e |r "open(|)" by in|
|00001130| 63 6c 75 64 69 6e 67 20 | 65 67 20 74 68 65 20 6c |cluding |eg the l|
|00001140| 69 6e 65 0d 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |ine.\beg|in{verba|
|00001150| 74 69 6d 7d 0d 20 20 20 | 20 20 20 23 64 65 66 69 |tim}. | #defi|
|00001160| 6e 65 20 6f 70 65 6e 20 | 4f 70 65 6e 0d 5c 65 6e |ne open |Open.\en|
|00001170| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0d 61 74 20 61 |d{verbat|im}.at a|
|00001180| 20 6a 75 64 69 63 69 6f | 75 73 20 70 6f 69 6e 74 | judicio|us point|
|00001190| 20 69 6e 20 74 68 65 20 | 70 72 6f 67 72 61 6d 0d | in the |program.|
|000011a0| 28 70 72 6f 62 61 62 6c | 79 20 61 74 20 74 68 65 |(probabl|y at the|
|000011b0| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 63 6f 6e 66 | end of |the conf|
|000011c0| 69 67 75 72 61 74 69 6f | 6e 20 66 69 6c 65 2c 0d |iguratio|n file,.|
|000011d0| 22 63 6f 6e 66 2e 68 22 | 20 6f 72 20 77 68 61 74 |"conf.h"| or what|
|000011e0| 65 76 65 72 29 2e 0d 0d | 54 68 65 20 66 75 6e 63 |ever)...|The func|
|000011f0| 74 69 6f 6e 20 22 4f 70 | 65 6e 28 63 68 61 72 2a |tion "Op|en(char*|
|00001200| 2c 20 69 6e 74 2c 20 2e | 2e 2e 29 22 0d 61 6c 6c |, int, .|..)".all|
|00001210| 6f 77 73 20 22 6f 70 65 | 6e 28 29 22 20 74 6f 20 |ows "ope|n()" to |
|00001220| 74 61 6b 65 20 6d 6f 72 | 65 20 74 68 61 6e 20 32 |take mor|e than 2|
|00001230| 20 61 72 67 75 6d 65 6e | 74 73 0d 28 61 73 20 73 | argumen|ts.(as s|
|00001240| 65 65 6d 73 20 69 6e 63 | 72 65 61 73 69 6e 67 6c |eems inc|reasingl|
|00001250| 79 20 74 68 65 20 70 72 | 61 63 74 69 63 65 29 2c |y the pr|actice),|
|00001260| 0d 61 6c 74 68 6f 75 67 | 68 20 74 68 65 73 65 20 |.althoug|h these |
|00001270| 65 78 74 72 61 20 61 72 | 67 75 6d 65 6e 74 73 20 |extra ar|guments |
|00001280| 61 72 65 20 69 67 6e 6f | 72 65 64 2e 0d 0d 5c 69 |are igno|red...\i|
|00001290| 74 65 6d 5b 22 50 65 72 | 72 6f 72 28 29 22 5d 0d |tem["Per|ror()"].|
|000012a0| 54 68 69 73 20 67 69 76 | 65 73 20 61 20 62 72 69 |This giv|es a bri|
|000012b0| 65 66 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f |ef descr|iption o|
|000012c0| 66 20 74 68 65 20 65 72 | 72 6f 72 20 28 69 66 20 |f the er|ror (if |
|000012d0| 69 74 20 63 61 6e 29 0d | 72 61 74 68 65 72 20 74 |it can).|rather t|
|000012e0| 68 61 6e 20 6a 75 73 74 | 20 74 68 65 20 6e 75 6d |han just| the num|
|000012f0| 62 65 72 20 61 73 20 69 | 6e 20 22 70 65 72 72 6f |ber as i|n "perro|
|00001300| 72 28 29 22 2e 0d 54 68 | 65 20 54 68 69 6e 6b 20 |r()"..Th|e Think |
|00001310| 43 20 66 75 6e 63 74 69 | 6f 6e 20 22 73 74 72 65 |C functi|on "stre|
|00001320| 72 72 6f 72 28 29 22 2d | 2d 2d 25 0d 77 68 69 63 |rror()"-|--%.whic|
|00001330| 68 20 74 68 65 20 61 75 | 74 68 6f 72 20 68 61 64 |h the au|thor had|
|00001340| 20 6e 6f 74 20 6e 6f 74 | 69 63 65 64 2d 2d 2d 25 | not not|iced---%|
|00001350| 0d 6d 61 79 20 72 65 6e | 64 65 72 20 74 68 69 73 |.may ren|der this|
|00001360| 20 75 6e 6e 65 63 65 73 | 73 61 72 79 2e 0d 0d 5c | unneces|sary...\|
|00001370| 65 6e 64 7b 64 65 73 63 | 72 69 70 74 69 6f 6e 7d |end{desc|ription}|
|00001380| 0d 0d 5c 73 65 63 74 69 | 6f 6e 7b 44 65 76 65 6c |..\secti|on{Devel|
|00001390| 6f 70 6d 65 6e 74 7d 0d | 0d 54 68 61 20 61 75 74 |opment}.|.Tha aut|
|000013a0| 68 6f 72 20 77 6f 75 6c | 64 20 62 65 20 76 65 72 |hor woul|d be ver|
|000013b0| 79 20 67 72 61 74 65 66 | 75 6c 0d 66 6f 72 20 61 |y gratef|ul.for a|
|000013c0| 6e 79 20 73 75 67 67 65 | 73 74 65 64 20 69 6d 70 |ny sugge|sted imp|
|000013d0| 72 6f 76 65 6d 65 6e 74 | 73 20 6f 72 20 65 78 74 |rovement|s or ext|
|000013e0| 65 6e 73 69 6f 6e 73 2e | 0d 50 6c 65 61 73 65 20 |ensions.|.Please |
|000013f0| 73 65 6e 64 20 74 68 65 | 6d 20 74 6f 20 22 74 69 |send the|m to "ti|
|00001400| 6d 40 6d 61 74 68 73 2e | 74 63 64 2e 69 65 22 2e |m@maths.|tcd.ie".|
|00001410| 0d 41 6e 79 20 6d 61 74 | 65 72 69 61 6c 20 75 73 |.Any mat|erial us|
|00001420| 65 64 20 77 69 6c 6c 20 | 62 65 20 64 75 6c 79 20 |ed will |be duly |
|00001430| 61 63 6b 6e 6f 77 6c 65 | 64 67 65 64 2e 0d 0d 49 |acknowle|dged...I|
|00001440| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00001450| 20 66 75 6e 63 74 69 6f | 6e 73 20 72 65 6c 61 74 | functio|ns relat|
|00001460| 65 64 20 74 6f 20 0d 22 | 70 69 70 65 22 2c 20 22 |ed to ."|pipe", "|
|00001470| 65 78 65 63 22 20 61 6e | 64 20 22 73 70 61 77 6e |exec" an|d "spawn|
|00001480| 22 0d 77 6f 75 6c 64 20 | 62 65 20 70 61 72 74 69 |".would |be parti|
|00001490| 63 75 6c 61 72 6c 79 20 | 75 73 65 66 75 6c 2e 0d |cularly |useful..|
|000014a0| 28 54 68 65 20 22 65 78 | 65 63 28 29 22 20 66 75 |(The "ex|ec()" fu|
|000014b0| 6e 63 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 54 68 |nction i|n the Th|
|000014c0| 69 6e 6b 20 43 20 55 6e | 69 78 20 6c 69 62 72 61 |ink C Un|ix libra|
|000014d0| 72 79 0d 69 67 6e 6f 72 | 65 73 20 61 6c 6c 20 61 |ry.ignor|es all a|
|000014e0| 72 67 75 6d 65 6e 74 73 | 20 65 78 63 65 70 74 20 |rguments| except |
|000014f0| 66 6f 72 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |for the |applicat|
|00001500| 69 6f 6e 20 74 6f 20 62 | 65 20 6c 61 75 6e 63 68 |ion to b|e launch|
|00001510| 65 64 2e 0d 49 74 20 77 | 6f 75 6c 64 20 62 65 20 |ed..It w|ould be |
|00001520| 6e 69 63 65 2d 2d 2d 61 | 6e 64 20 6d 75 73 74 20 |nice---a|nd must |
|00001530| 73 75 72 65 6c 79 20 62 | 65 20 66 65 61 73 69 62 |surely b|e feasib|
|00001540| 6c 65 2d 2d 2d 0d 69 66 | 20 74 68 65 73 65 20 61 |le---.if| these a|
|00001550| 72 67 75 6d 65 6e 74 73 | 20 63 6f 75 6c 64 20 62 |rguments| could b|
|00001560| 65 20 70 72 6f 70 65 72 | 6c 79 20 70 61 73 73 65 |e proper|ly passe|
|00001570| 64 2e 29 0d 0d 0d 5c 65 | 6e 64 7b 64 6f 63 75 6d |d.)...\e|nd{docum|
|00001580| 65 6e 74 7d 0d 0d | |ent}.. | |
+--------+-------------------------+-------------------------+--------+--------+