home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v22 / 087 < prev    next >
Mailbox/MIME Entity  |  1991-03-07  |  2.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From jsq@cs.utexas.edu Wed Jan 30 18:30:36 1991" default
99% file C source, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 6a 73 71 | 40 63 73 2e 75 74 65 78 |From jsq|@cs.utex|
|00000010| 61 73 2e 65 64 75 20 20 | 57 65 64 20 4a 61 6e 20 |as.edu |Wed Jan |
|00000020| 33 30 20 31 38 3a 33 30 | 3a 33 36 20 31 39 39 31 |30 18:30|:36 1991|
|00000030| 0a 52 65 63 65 69 76 65 | 64 3a 20 66 72 6f 6d 20 |.Receive|d: from |
|00000040| 63 73 2e 75 74 65 78 61 | 73 2e 65 64 75 20 62 79 |cs.utexa|s.edu by|
|00000050| 20 75 75 6e 65 74 2e 75 | 75 2e 6e 65 74 20 28 35 | uunet.u|u.net (5|
|00000060| 2e 36 31 2f 31 2e 31 34 | 29 20 77 69 74 68 20 53 |.61/1.14|) with S|
|00000070| 4d 54 50 20 0a 09 69 64 | 20 41 41 31 39 38 33 36 |MTP ..id| AA19836|
|00000080| 3b 20 57 65 64 2c 20 33 | 30 20 4a 61 6e 20 39 31 |; Wed, 3|0 Jan 91|
|00000090| 20 31 38 3a 33 30 3a 33 | 36 20 2d 30 35 30 30 0a | 18:30:3|6 -0500.|
|000000a0| 50 6f 73 74 65 64 2d 44 | 61 74 65 3a 20 33 30 20 |Posted-D|ate: 30 |
|000000b0| 4a 61 6e 20 39 31 20 30 | 31 3a 35 34 3a 30 34 20 |Jan 91 0|1:54:04 |
|000000c0| 47 4d 54 0a 52 65 63 65 | 69 76 65 64 3a 20 62 79 |GMT.Rece|ived: by|
|000000d0| 20 63 73 2e 75 74 65 78 | 61 73 2e 65 64 75 20 28 | cs.utex|as.edu (|
|000000e0| 35 2e 36 34 2f 31 2e 39 | 33 29 20 0a 46 72 6f 6d |5.64/1.9|3) .From|
|000000f0| 3a 20 6c 75 70 69 6e 65 | 21 72 66 67 40 63 73 2e |: lupine|!rfg@cs.|
|00000100| 75 74 65 78 61 73 2e 65 | 64 75 20 28 52 6f 6e 20 |utexas.e|du (Ron |
|00000110| 47 75 69 6c 6d 65 74 74 | 65 29 0a 4e 65 77 73 67 |Guilmett|e).Newsg|
|00000120| 72 6f 75 70 73 3a 20 63 | 6f 6d 70 2e 73 74 64 2e |roups: c|omp.std.|
|00000130| 75 6e 69 78 0a 53 75 62 | 6a 65 63 74 3a 20 49 73 |unix.Sub|ject: Is|
|00000140| 20 74 68 65 72 65 20 61 | 20 73 74 61 6e 64 61 72 | there a| standar|
|00000150| 64 20 70 72 6f 74 6f 74 | 79 70 65 20 66 6f 72 20 |d protot|ype for |
|00000160| 60 65 78 65 63 76 70 27 | 3f 0a 4d 65 73 73 61 67 |`execvp'|?.Messag|
|00000170| 65 2d 49 64 3a 20 3c 31 | 37 35 30 31 40 63 73 2e |e-Id: <1|7501@cs.|
|00000180| 75 74 65 78 61 73 2e 65 | 64 75 3e 0a 53 65 6e 64 |utexas.e|du>.Send|
|00000190| 65 72 3a 20 6a 73 71 40 | 63 73 2e 75 74 65 78 61 |er: jsq@|cs.utexa|
|000001a0| 73 2e 65 64 75 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |s.edu.Or|ganizati|
|000001b0| 6f 6e 3a 20 4e 65 74 77 | 6f 72 6b 20 43 6f 6d 70 |on: Netw|ork Comp|
|000001c0| 75 74 69 6e 67 20 44 65 | 76 69 63 65 73 2c 20 49 |uting De|vices, I|
|000001d0| 6e 63 2e 2c 20 4d 74 2e | 20 56 69 65 77 2c 20 43 |nc., Mt.| View, C|
|000001e0| 41 0a 58 2d 53 75 62 6d | 69 73 73 69 6f 6e 73 3a |A.X-Subm|issions:|
|000001f0| 20 73 74 64 2d 75 6e 69 | 78 40 75 75 6e 65 74 2e | std-uni|x@uunet.|
|00000200| 75 75 2e 6e 65 74 0a 44 | 61 74 65 3a 20 33 30 20 |uu.net.D|ate: 30 |
|00000210| 4a 61 6e 20 39 31 20 30 | 31 3a 35 34 3a 30 34 20 |Jan 91 0|1:54:04 |
|00000220| 47 4d 54 0a 52 65 70 6c | 79 2d 54 6f 3a 20 73 74 |GMT.Repl|y-To: st|
|00000230| 64 2d 75 6e 69 78 40 75 | 75 6e 65 74 2e 75 75 2e |d-unix@u|unet.uu.|
|00000240| 6e 65 74 0a 54 6f 3a 20 | 73 74 64 2d 75 6e 69 78 |net.To: |std-unix|
|00000250| 40 75 75 6e 65 74 2e 75 | 75 2e 6e 65 74 0a 0a 53 |@uunet.u|u.net..S|
|00000260| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 72 66 67 |ubmitted|-by: rfg|
|00000270| 40 6c 75 70 69 6e 65 2e | 75 75 63 70 20 28 52 6f |@lupine.|uucp (Ro|
|00000280| 6e 20 47 75 69 6c 6d 65 | 74 74 65 29 0a 0a 49 74 |n Guilme|tte)..It|
|00000290| 20 69 73 20 73 6f 6d 65 | 77 68 61 74 20 64 61 74 | is some|what dat|
|000002a0| 65 64 20 6e 6f 77 2c 20 | 62 75 74 20 74 68 65 20 |ed now, |but the |
|000002b0| 6f 6e 6c 79 20 62 6f 6f | 6b 20 49 20 68 61 76 65 |only boo|k I have|
|000002c0| 20 61 62 6f 75 74 20 50 | 4f 53 49 58 20 69 73 0a | about P|OSIX is.|
|000002d0| 63 6f 70 79 72 69 67 68 | 74 20 31 39 38 38 2e 0a |copyrigh|t 1988..|
|000002e0| 0a 52 65 61 64 69 6e 67 | 20 74 68 61 74 20 62 6f |.Reading| that bo|
|000002f0| 6f 6b 2c 20 69 74 20 73 | 65 65 6d 73 20 74 68 61 |ok, it s|eems tha|
|00000300| 74 20 74 68 65 20 50 4f | 53 49 58 20 63 6f 6d 6d |t the PO|SIX comm|
|00000310| 69 74 74 65 65 20 64 69 | 64 6e 27 74 20 77 61 6e |ittee di|dn't wan|
|00000320| 74 20 74 6f 0a 75 73 65 | 20 41 4e 53 49 20 43 20 |t to.use| ANSI C |
|00000330| 66 75 6e 63 74 69 6f 6e | 20 70 72 6f 74 6f 74 79 |function| prototy|
|00000340| 70 65 73 20 66 6f 72 20 | 74 68 65 69 72 20 73 70 |pes for |their sp|
|00000350| 65 63 69 66 69 63 61 74 | 69 6f 6e 20 6f 66 20 74 |ecificat|ion of t|
|00000360| 68 65 20 43 20 6c 61 6e | 67 75 61 67 65 0a 62 69 |he C lan|guage.bi|
|00000370| 6e 64 69 6e 67 20 62 65 | 63 61 75 73 65 20 70 72 |nding be|cause pr|
|00000380| 6f 74 6f 74 79 70 65 73 | 20 77 65 72 65 20 74 6f |ototypes| were to|
|00000390| 6f 20 22 6e 65 77 2d 66 | 61 6e 67 6c 65 64 22 2e |o "new-f|angled".|
|000003a0| 20 20 53 70 65 63 69 66 | 69 63 61 6c 6c 79 2c 20 | Specif|ically, |
|000003b0| 74 68 65 79 0a 61 70 70 | 61 72 65 6e 74 6c 79 20 |they.app|arently |
|000003c0| 63 68 6f 6f 73 65 20 6e | 6f 74 20 74 6f 20 65 78 |choose n|ot to ex|
|000003d0| 70 72 65 73 73 20 74 68 | 65 20 62 69 6e 64 69 6e |press th|e bindin|
|000003e0| 67 20 69 6e 20 74 65 72 | 6d 73 20 6f 66 20 70 72 |g in ter|ms of pr|
|000003f0| 6f 74 6f 74 79 70 65 73 | 20 62 65 63 61 75 73 65 |ototypes| because|
|00000400| 3a 0a 0a 09 22 2e 2e 2e | 20 74 68 65 20 57 6f 72 |:..."...| the Wor|
|00000410| 6b 69 6e 67 20 47 72 6f | 75 70 20 77 61 73 20 61 |king Gro|up was a|
|00000420| 77 61 72 65 20 74 68 61 | 74 20 73 6f 6d 65 20 76 |ware tha|t some v|
|00000430| 65 6e 64 6f 72 73 20 77 | 6f 75 6c 64 20 77 69 73 |endors w|ould wis|
|00000440| 68 0a 09 74 6f 20 69 6d | 70 6c 65 6d 65 6e 74 20 |h..to im|plement |
|00000450| 50 4f 53 49 58 20 69 6e | 20 74 65 72 6d 73 20 6f |POSIX in| terms o|
|00000460| 66 20 61 20 62 69 6e 64 | 69 6e 67 20 74 6f 20 61 |f a bind|ing to a|
|00000470| 6e 20 68 69 73 74 6f 72 | 69 63 61 6c 0a 09 76 61 |n histor|ical..va|
|00000480| 72 69 61 6e 74 20 6f 66 | 20 74 68 65 20 43 20 6c |riant of| the C l|
|00000490| 61 6e 67 75 61 67 65 2e | 2e 2e 22 0a 0a 53 6f 20 |anguage.|.."..So |
|000004a0| 69 6e 20 65 66 66 65 63 | 74 2c 20 69 74 20 73 65 |in effec|t, it se|
|000004b0| 65 6d 73 20 74 68 61 74 | 20 74 68 65 20 62 69 6e |ems that| the bin|
|000004c0| 64 69 6e 67 73 20 67 69 | 76 65 6e 20 69 6e 20 74 |dings gi|ven in t|
|000004d0| 68 65 20 62 6f 6f 6b 20 | 49 27 6d 20 6c 6f 6f 6b |he book |I'm look|
|000004e0| 69 6e 67 0a 61 74 20 61 | 72 65 20 66 6f 72 20 22 |ing.at a|re for "|
|000004f0| 74 72 61 64 69 74 69 6f | 6e 61 6c 20 43 22 20 28 |traditio|nal C" (|
|00000500| 72 61 74 68 65 72 20 74 | 68 61 6e 20 41 4e 53 49 |rather t|han ANSI|
|00000510| 20 43 29 2e 0a 0a 49 6e | 20 61 64 64 69 74 69 6f | C)...In| additio|
|00000520| 6e 20 74 6f 20 61 76 6f | 69 64 69 6e 67 20 70 72 |n to avo|iding pr|
|00000530| 6f 74 6f 74 79 70 65 73 | 2c 20 74 68 65 20 50 4f |ototypes|, the PO|
|00000540| 53 49 58 20 66 6f 6c 6b | 73 20 61 6c 73 6f 20 28 |SIX folk|s also (|
|00000550| 61 70 70 61 72 65 6e 74 | 6c 79 29 0a 64 65 63 69 |apparent|ly).deci|
|00000560| 64 65 64 20 74 6f 20 61 | 76 6f 69 64 20 74 68 65 |ded to a|void the|
|00000570| 20 75 73 65 20 6f 66 20 | 41 4e 53 49 20 43 20 74 | use of |ANSI C t|
|00000580| 79 70 65 20 71 75 61 6c | 69 66 69 65 72 73 20 28 |ype qual|ifiers (|
|00000590| 69 2e 65 2e 20 22 63 6f | 6e 73 74 22 20 61 6e 64 |i.e. "co|nst" and|
|000005a0| 0a 22 76 6f 6c 61 74 69 | 6c 65 22 29 20 69 6e 20 |."volati|le") in |
|000005b0| 74 68 65 20 43 20 62 69 | 6e 64 69 6e 67 2e 0a 0a |the C bi|nding...|
|000005c0| 4e 6f 77 20 65 76 65 6e | 20 74 68 6f 75 67 68 74 |Now even| thought|
|000005d0| 20 49 20 64 6f 6e 27 74 | 20 72 65 61 6c 6c 79 20 | I don't| really |
|000005e0| 6b 65 65 70 20 75 70 20 | 6f 6e 20 73 75 63 68 20 |keep up |on such |
|000005f0| 74 68 69 6e 67 73 2c 20 | 49 20 61 73 73 75 6d 65 |things, |I assume|
|00000600| 20 74 68 61 74 0a 73 6f | 6d 65 20 70 72 6f 67 72 | that.so|me progr|
|00000610| 65 73 73 20 68 61 73 20 | 62 65 65 6e 20 6d 61 64 |ess has |been mad|
|00000620| 65 20 73 69 6e 63 65 20 | 31 39 38 38 2e 20 20 49 |e since |1988. I|
|00000630| 73 20 74 68 65 72 65 20 | 6e 6f 77 20 61 6c 73 6f |s there |now also|
|00000640| 20 61 6e 20 41 4e 53 49 | 20 43 0a 62 69 6e 64 69 | an ANSI| C.bindi|
|00000650| 6e 67 20 66 6f 72 20 50 | 4f 53 49 58 3f 20 20 49 |ng for P|OSIX? I|
|00000660| 66 20 73 6f 2c 20 70 6c | 65 61 73 65 20 74 65 6c |f so, pl|ease tel|
|00000670| 6c 20 6d 65 20 74 68 65 | 20 65 78 61 63 74 20 6e |l me the| exact n|
|00000680| 61 6d 65 20 6f 66 20 2a | 74 68 61 74 2a 0a 64 6f |ame of *|that*.do|
|00000690| 63 75 6d 65 6e 74 20 73 | 6f 20 74 68 61 74 20 49 |cument s|o that I|
|000006a0| 20 63 61 6e 20 67 6f 20 | 62 75 79 20 61 20 63 6f | can go |buy a co|
|000006b0| 70 79 2e 0a 0a 54 68 65 | 20 74 68 69 6e 67 20 74 |py...The| thing t|
|000006c0| 68 61 74 20 49 20 6d 6f | 73 74 20 77 61 6e 74 20 |hat I mo|st want |
|000006d0| 74 6f 20 6b 6e 6f 77 20 | 61 74 20 74 68 65 20 6d |to know |at the m|
|000006e0| 6f 6d 65 6e 74 20 69 73 | 20 74 68 65 20 22 63 6f |oment is| the "co|
|000006f0| 72 72 65 63 74 22 20 28 | 6f 72 0a 22 73 74 61 6e |rrect" (|or."stan|
|00000700| 64 61 72 64 22 29 20 70 | 72 6f 74 6f 74 79 70 65 |dard") p|rototype|
|00000710| 20 66 6f 72 20 74 68 65 | 20 60 65 78 65 63 76 70 | for the| `execvp|
|00000720| 27 20 66 75 6e 63 74 69 | 6f 6e 2e 20 20 54 68 65 |' functi|on. The|
|00000730| 20 50 4f 53 49 58 20 62 | 6f 6f 6b 20 49 20 68 61 | POSIX b|ook I ha|
|00000740| 76 65 0a 68 65 72 65 20 | 64 6f 65 73 6e 27 74 20 |ve.here |doesn't |
|00000750| 75 73 65 20 61 6e 79 20 | 41 4e 53 49 20 43 20 74 |use any |ANSI C t|
|00000760| 79 70 65 20 71 75 61 6c | 69 66 69 65 72 73 20 61 |ype qual|ifiers a|
|00000770| 74 20 61 6c 6c 2c 20 61 | 6e 64 20 73 6f 20 49 20 |t all, a|nd so I |
|00000780| 68 61 76 65 20 6e 6f 0a | 69 64 65 61 20 77 68 61 |have no.|idea wha|
|00000790| 74 20 28 69 66 20 61 6e | 79 29 20 74 79 70 65 20 |t (if an|y) type |
|000007a0| 71 75 61 6c 69 66 69 65 | 72 73 20 73 68 6f 75 6c |qualifie|rs shoul|
|000007b0| 64 20 62 65 20 75 73 65 | 64 20 74 6f 20 64 65 63 |d be use|d to dec|
|000007c0| 6c 61 72 65 20 74 68 65 | 20 74 79 70 65 73 0a 6f |lare the| types.o|
|000007d0| 66 20 74 68 65 20 66 6f | 72 6d 61 6c 20 70 61 72 |f the fo|rmal par|
|000007e0| 61 6d 65 74 65 72 73 20 | 66 6f 72 20 65 78 65 63 |ameters |for exec|
|000007f0| 76 70 2e 0a 0a 46 6f 72 | 20 65 78 61 6d 70 6c 65 |vp...For| example|
|00000800| 2c 20 6d 79 20 69 6e 74 | 75 69 74 69 6f 6e 20 74 |, my int|uition t|
|00000810| 65 6c 6c 73 20 6d 65 20 | 74 68 61 74 20 61 20 22 |ells me |that a "|
|00000820| 70 72 6f 70 65 72 22 20 | 70 72 6f 74 6f 74 79 70 |proper" |prototyp|
|00000830| 65 20 66 6f 72 20 60 65 | 78 65 63 76 70 27 0a 73 |e for `e|xecvp'.s|
|00000840| 68 6f 75 6c 64 20 6c 6f | 6f 6b 20 6c 69 6b 65 3a |hould lo|ok like:|
|00000850| 0a 0a 09 65 78 74 65 72 | 6e 20 69 6e 74 20 65 78 |...exter|n int ex|
|00000860| 65 63 76 70 20 28 63 6f | 6e 73 74 20 63 68 61 72 |ecvp (co|nst char|
|00000870| 20 2a 2c 20 63 6f 6e 73 | 74 20 63 68 61 72 20 2a | *, cons|t char *|
|00000880| 63 6f 6e 73 74 20 2a 29 | 3b 0a 0a 42 75 74 20 73 |const *)|;..But s|
|00000890| 6f 6d 65 62 6f 64 79 20 | 65 6c 73 65 20 64 69 73 |omebody |else dis|
|000008a0| 61 67 72 65 65 73 20 77 | 69 74 68 20 6d 65 2e 0a |agrees w|ith me..|
|000008b0| 0a 49 74 20 73 65 65 6d | 73 20 74 68 61 74 20 74 |.It seem|s that t|
|000008c0| 68 69 73 20 73 6f 72 74 | 20 6f 66 20 74 68 69 6e |his sort| of thin|
|000008d0| 67 20 63 6f 75 6c 64 20 | 62 65 20 61 6e 20 69 6d |g could |be an im|
|000008e0| 70 6f 72 74 61 6e 74 20 | 22 73 74 61 6e 64 61 72 |portant |"standar|
|000008f0| 64 73 22 20 69 73 73 75 | 65 0a 62 65 63 61 75 73 |ds" issu|e.becaus|
|00000900| 65 20 6d 61 6e 79 20 76 | 61 72 69 61 6e 74 73 20 |e many v|ariants |
|00000910| 6f 66 20 55 4e 2a 58 20 | 6f 70 65 72 61 74 69 6e |of UN*X |operatin|
|00000920| 67 20 73 79 73 74 65 6d | 73 20 61 72 65 20 6e 6f |g system|s are no|
|00000930| 77 20 73 68 69 70 70 69 | 6e 67 20 77 69 74 68 20 |w shippi|ng with |
|00000940| 66 75 6c 6c 79 0a 70 72 | 6f 74 6f 74 79 70 65 64 |fully.pr|ototyped|
|00000950| 20 73 79 73 74 65 6d 20 | 69 6e 63 6c 75 64 65 20 | system |include |
|00000960| 66 69 6c 65 73 2e 20 20 | 41 72 65 20 74 68 65 79 |files. |Are they|
|00000970| 20 22 50 4f 53 49 58 2d | 63 6f 6e 66 6f 72 6d 61 | "POSIX-|conforma|
|00000980| 6e 74 22 20 77 69 74 68 | 20 72 65 73 70 65 63 74 |nt" with| respect|
|00000990| 0a 74 6f 20 74 68 65 20 | 71 75 61 6c 69 66 69 65 |.to the |qualifie|
|000009a0| 72 73 20 75 73 65 64 20 | 74 6f 20 64 65 63 6c 61 |rs used |to decla|
|000009b0| 72 65 20 74 68 65 20 74 | 79 70 65 73 20 6f 66 20 |re the t|ypes of |
|000009c0| 74 68 65 69 72 20 66 6f | 72 6d 61 6c 73 3f 20 20 |their fo|rmals? |
|000009d0| 48 6f 77 20 77 6f 75 6c | 64 0a 6f 6e 65 20 62 65 |How woul|d.one be|
|000009e0| 20 61 62 6c 65 20 6b 6e | 6f 77 20 6f 6e 65 20 77 | able kn|ow one w|
|000009f0| 61 79 20 6f 72 20 74 68 | 65 20 6f 74 68 65 72 3f |ay or th|e other?|
|00000a00| 0a 0a 50 6c 65 61 73 65 | 20 65 78 63 75 73 65 20 |..Please| excuse |
|00000a10| 6d 65 20 69 66 20 74 68 | 69 73 20 68 61 73 20 61 |me if th|is has a|
|00000a20| 6c 6c 20 62 65 65 6e 20 | 72 65 73 6f 6c 76 65 64 |ll been |resolved|
|00000a30| 20 6c 6f 6e 67 20 61 67 | 6f 20 28 61 6e 64 20 69 | long ag|o (and i|
|00000a40| 66 20 6d 79 20 6e 65 61 | 72 6c 79 0a 74 6f 74 61 |f my nea|rly.tota|
|00000a50| 6c 20 69 67 6e 6f 72 61 | 6e 63 65 20 69 73 20 73 |l ignora|nce is s|
|00000a60| 68 6f 77 69 6e 67 29 2e | 0a 0a 56 6f 6c 75 6d 65 |howing).|..Volume|
|00000a70| 2d 4e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-Number:| Volume |
|00000a80| 32 32 2c 20 4e 75 6d 62 | 65 72 20 38 37 0a 0a |22, Numb|er 87.. |
+--------+-------------------------+-------------------------+--------+--------+