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: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
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 Sun Feb 3 12:57:18 1991", 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 | 53 75 6e 20 46 65 62 20 |as.edu |Sun Feb |
|00000020| 20 33 20 31 32 3a 35 37 | 3a 31 38 20 31 39 39 31 | 3 12:57|:18 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 55 | 55 2e 4e 45 54 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 30 39 33 30 35 |MTP ..id| AA09305|
|00000080| 3b 20 53 75 6e 2c 20 33 | 20 46 65 62 20 39 31 20 |; Sun, 3| Feb 91 |
|00000090| 31 32 3a 35 37 3a 31 38 | 20 2d 30 35 30 30 0a 50 |12:57:18| -0500.P|
|000000a0| 6f 73 74 65 64 2d 44 61 | 74 65 3a 20 33 20 46 65 |osted-Da|te: 3 Fe|
|000000b0| 62 20 39 31 20 31 32 3a | 34 33 3a 31 32 20 47 4d |b 91 12:|43:12 GM|
|000000c0| 54 0a 52 65 63 65 69 76 | 65 64 3a 20 62 79 20 63 |T.Receiv|ed: by c|
|000000d0| 73 2e 75 74 65 78 61 73 | 2e 65 64 75 20 28 35 2e |s.utexas|.edu (5.|
|000000e0| 36 34 2f 31 2e 39 33 29 | 20 0a 46 72 6f 6d 3a 20 |64/1.93)| .From: |
|000000f0| 6d 6f 68 74 61 40 6e 65 | 63 6f 6d 38 33 30 2e 63 |mohta@ne|com830.c|
|00000100| 63 2e 74 69 74 65 63 68 | 2e 61 63 2e 6a 70 20 28 |c.titech|.ac.jp (|
|00000110| 4d 61 73 61 74 61 6b 61 | 20 4f 68 74 61 29 0a 4e |Masataka| Ohta).N|
|00000120| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000130| 73 74 64 2e 75 6e 69 78 | 0a 53 75 62 6a 65 63 74 |std.unix|.Subject|
|00000140| 3a 20 52 65 3a 20 71 66 | 6f 72 6b 28 29 20 28 61 |: Re: qf|ork() (a|
|00000150| 67 61 69 6e 29 0a 4d 65 | 73 73 61 67 65 2d 49 64 |gain).Me|ssage-Id|
|00000160| 3a 20 3c 31 37 35 39 38 | 40 63 73 2e 75 74 65 78 |: <17598|@cs.utex|
|00000170| 61 73 2e 65 64 75 3e 0a | 52 65 66 65 72 65 6e 63 |as.edu>.|Referenc|
|00000180| 65 73 3a 20 3c 31 36 39 | 39 32 40 63 73 2e 75 74 |es: <169|92@cs.ut|
|00000190| 65 78 61 73 2e 65 64 75 | 3e 20 3c 31 37 30 31 30 |exas.edu|> <17010|
|000001a0| 40 63 73 2e 75 74 65 78 | 61 73 2e 65 64 75 3e 20 |@cs.utex|as.edu> |
|000001b0| 3c 31 37 34 30 32 40 63 | 73 2e 75 74 65 78 61 73 |<17402@c|s.utexas|
|000001c0| 2e 65 64 75 3e 20 3c 31 | 37 35 32 37 40 63 73 2e |.edu> <1|7527@cs.|
|000001d0| 75 74 65 78 61 73 2e 65 | 64 75 3e 0a 53 65 6e 64 |utexas.e|du>.Send|
|000001e0| 65 72 3a 20 6a 73 71 40 | 63 73 2e 75 74 65 78 61 |er: jsq@|cs.utexa|
|000001f0| 73 2e 65 64 75 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |s.edu.Or|ganizati|
|00000200| 6f 6e 3a 20 54 6f 6b 79 | 6f 20 49 6e 73 74 69 74 |on: Toky|o Instit|
|00000210| 75 74 65 20 6f 66 20 54 | 65 63 68 6e 6f 6c 6f 67 |ute of T|echnolog|
|00000220| 79 0a 58 2d 53 75 62 6d | 69 73 73 69 6f 6e 73 3a |y.X-Subm|issions:|
|00000230| 20 73 74 64 2d 75 6e 69 | 78 40 75 75 6e 65 74 2e | std-uni|x@uunet.|
|00000240| 75 75 2e 6e 65 74 0a 44 | 61 74 65 3a 20 33 20 46 |uu.net.D|ate: 3 F|
|00000250| 65 62 20 39 31 20 31 32 | 3a 34 33 3a 31 32 20 47 |eb 91 12|:43:12 G|
|00000260| 4d 54 0a 52 65 70 6c 79 | 2d 54 6f 3a 20 73 74 64 |MT.Reply|-To: std|
|00000270| 2d 75 6e 69 78 40 75 75 | 6e 65 74 2e 55 55 2e 4e |-unix@uu|net.UU.N|
|00000280| 45 54 0a 54 6f 3a 20 73 | 74 64 2d 75 6e 69 78 40 |ET.To: s|td-unix@|
|00000290| 75 75 6e 65 74 2e 55 55 | 2e 4e 45 54 0a 0a 53 75 |uunet.UU|.NET..Su|
|000002a0| 62 6d 69 74 74 65 64 2d | 62 79 3a 20 6d 6f 68 74 |bmitted-|by: moht|
|000002b0| 61 40 6e 65 63 6f 6d 38 | 33 30 2e 63 63 2e 74 69 |a@necom8|30.cc.ti|
|000002c0| 74 65 63 68 2e 61 63 2e | 6a 70 20 28 4d 61 73 61 |tech.ac.|jp (Masa|
|000002d0| 74 61 6b 61 20 4f 68 74 | 61 29 0a 0a 49 6e 20 61 |taka Oht|a)..In a|
|000002e0| 72 74 69 63 6c 65 20 3c | 31 37 35 32 37 40 63 73 |rticle <|17527@cs|
|000002f0| 2e 75 74 65 78 61 73 2e | 65 64 75 3e 20 64 6f 6d |.utexas.|edu> dom|
|00000300| 6f 40 74 73 61 2e 63 6f | 2e 75 6b 20 77 72 69 74 |o@tsa.co|.uk writ|
|00000310| 65 73 3a 0a 0a 3e 54 68 | 65 20 70 72 6f 62 6c 65 |es:..>Th|e proble|
|00000320| 6d 20 2d 2d 20 6f 6e 65 | 20 70 72 6f 62 6c 65 6d |m -- one| problem|
|00000330| 20 2d 2d 20 69 73 20 69 | 6e 20 63 6f 6d 69 6e 67 | -- is i|n coming|
|00000340| 20 75 70 20 77 69 74 68 | 20 61 20 60 60 70 6f 72 | up with| a ``por|
|00000350| 74 61 62 6c 65 27 27 0a | 3e 64 65 66 69 6e 69 74 |table''.|>definit|
|00000360| 69 6f 6e 20 6f 66 20 60 | 60 64 61 74 61 20 73 70 |ion of `|`data sp|
|00000370| 61 63 65 27 27 2e 20 0a | 0a 54 68 65 73 65 20 61 |ace''. .|.These a|
|00000380| 72 65 20 27 70 72 6f 62 | 6c 65 6d 73 27 20 28 61 |re 'prob|lems' (a|
|00000390| 63 74 75 61 6c 6c 79 2c | 20 6e 6f 74 20 61 20 70 |ctually,| not a p|
|000003a0| 72 6f 62 6c 65 6d 29 20 | 6f 66 20 43 2c 20 6e 6f |roblem) |of C, no|
|000003b0| 74 20 55 4e 49 58 2e 0a | 0a 54 68 65 72 65 20 69 |t UNIX..|.There i|
|000003c0| 73 20 6e 6f 20 70 72 6f | 62 6c 65 6d 20 61 62 6f |s no pro|blem abo|
|000003d0| 75 74 20 64 61 74 61 20 | 73 70 61 63 65 2e 20 43 |ut data |space. C|
|000003e0| 20 68 61 73 20 63 6c 65 | 61 72 20 61 6e 64 20 70 | has cle|ar and p|
|000003f0| 6f 72 74 61 62 6c 65 20 | 6e 6f 74 69 6f 6e 0a 6f |ortable |notion.o|
|00000400| 66 20 77 68 61 74 20 69 | 73 20 64 61 74 61 20 73 |f what i|s data s|
|00000410| 70 61 63 65 3a 20 72 65 | 67 69 73 74 65 72 20 61 |pace: re|gister a|
|00000420| 6e 64 20 6d 65 6d 6f 72 | 79 2e 20 54 68 61 74 27 |nd memor|y. That'|
|00000430| 73 20 61 6c 6c 2e 0a 0a | 49 74 20 68 61 73 20 76 |s all...|It has v|
|00000440| 65 72 79 20 6c 69 74 74 | 6c 65 20 74 6f 20 64 6f |ery litt|le to do|
|00000450| 20 77 69 74 68 20 55 4e | 49 58 20 6e 6f 72 20 76 | with UN|IX nor v|
|00000460| 66 6f 72 6b 28 29 2e 0a | 0a 3e 4f 6e 20 77 68 61 |fork()..|.>On wha|
|00000470| 74 20 77 65 20 63 75 72 | 72 65 6e 74 6c 79 20 61 |t we cur|rently a|
|00000480| 73 73 75 6d 65 20 74 6f | 20 62 65 0a 3e 60 60 76 |ssume to| be.>``v|
|00000490| 61 6e 69 6c 6c 61 20 66 | 6c 61 76 6f 75 72 27 27 |anilla f|lavour''|
|000004a0| 20 61 72 63 68 69 74 65 | 63 74 75 72 65 73 20 73 | archite|ctures s|
|000004b0| 75 63 68 20 61 73 20 74 | 68 61 74 20 6f 66 20 74 |uch as t|hat of t|
|000004c0| 68 65 20 36 38 30 30 30 | 20 77 68 69 63 68 20 79 |he 68000| which y|
|000004d0| 6f 75 0a 3e 63 69 74 65 | 2c 20 69 74 27 73 20 66 |ou.>cite|, it's f|
|000004e0| 61 69 72 6c 79 20 6f 62 | 76 69 6f 75 73 2e 20 20 |airly ob|vious. |
|000004f0| 42 75 74 20 6f 6e 20 6f | 74 68 65 72 73 2c 20 69 |But on o|thers, i|
|00000500| 74 27 73 20 6e 6f 74 2e | 20 20 57 68 61 74 20 61 |t's not.| What a|
|00000510| 62 6f 75 74 0a 3e 72 65 | 67 69 73 74 65 72 73 3f |bout.>re|gisters?|
|00000520| 20 20 41 72 65 20 74 68 | 65 79 20 64 61 74 61 20 | Are th|ey data |
|00000530| 73 70 61 63 65 3f 20 20 | 4e 6f 3f 20 20 45 76 65 |space? |No? Eve|
|00000540| 6e 20 6f 6e 20 61 72 63 | 68 69 74 65 63 74 75 72 |n on arc|hitectur|
|00000550| 65 73 20 77 69 74 68 0a | 3e 72 65 67 69 73 74 65 |es with.|>registe|
|00000560| 72 20 77 69 6e 64 6f 77 | 73 20 77 68 69 63 68 20 |r window|s which |
|00000570| 6d 61 79 20 6f 72 20 6d | 61 79 20 6e 6f 74 20 6d |may or m|ay not m|
|00000580| 61 70 20 6f 6e 74 6f 20 | 6d 61 69 6e 20 6d 65 6d |ap onto |main mem|
|00000590| 6f 72 79 20 61 64 64 72 | 65 73 73 65 73 3f 0a 3e |ory addr|esses?.>|
|000005a0| 42 65 61 72 20 69 6e 20 | 6d 69 6e 64 20 74 68 61 |Bear in |mind tha|
|000005b0| 74 20 73 75 63 68 20 65 | 78 6f 74 69 63 61 20 61 |t such e|xotica a|
|000005c0| 72 65 20 6e 6f 74 20 73 | 6f 20 65 78 6f 74 69 63 |re not s|o exotic|
|000005d0| 20 61 6e 79 20 6d 6f 72 | 65 3a 20 52 49 53 43 73 | any mor|e: RISCs|
|000005e0| 20 75 73 65 0a 3e 74 68 | 65 6d 20 77 69 64 65 6c | use.>th|em widel|
|000005f0| 79 2e 0a 0a 43 6c 65 61 | 72 6c 79 2c 20 6f 6e 20 |y...Clea|rly, on |
|00000600| 65 78 6f 74 69 63 20 61 | 72 63 68 69 74 65 63 74 |exotic a|rchitect|
|00000610| 75 72 65 73 2c 20 61 20 | 43 20 28 6e 6f 74 20 55 |ures, a |C (not U|
|00000620| 4e 49 58 29 20 70 6f 69 | 6e 74 65 72 20 6d 61 79 |NIX) poi|nter may|
|00000630| 20 70 6f 69 6e 74 0a 74 | 6f 20 61 20 72 65 67 69 | point.t|o a regi|
|00000640| 73 74 65 72 2e 20 49 74 | 20 6d 61 79 20 62 65 20 |ster. It| may be |
|00000650| 61 6e 20 65 78 6f 74 69 | 63 20 66 65 61 74 75 72 |an exoti|c featur|
|00000660| 65 20 6f 66 20 43 2e 20 | 42 75 74 2c 20 69 74 20 |e of C. |But, it |
|00000670| 6e 65 76 65 72 20 69 73 | 20 61 0a 70 72 6f 62 6c |never is| a.probl|
|00000680| 65 6d 20 6f 66 20 43 20 | 6e 6f 72 20 55 4e 49 58 |em of C |nor UNIX|
|00000690| 20 6e 6f 72 20 76 66 6f | 72 6b 28 29 2e 0a 0a 3e | nor vfo|rk()...>|
|000006a0| 49 74 20 73 65 65 6d 73 | 20 74 68 61 74 20 61 6e |It seems| that an|
|000006b0| 79 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 77 68 69 |y defini|tion whi|
|000006c0| 63 68 20 69 73 20 73 61 | 66 65 20 6f 6e 20 61 6c |ch is sa|fe on al|
|000006d0| 6c 20 61 72 63 68 69 74 | 65 63 74 75 72 65 73 20 |l archit|ectures |
|000006e0| 69 73 0a 3e 6c 69 61 62 | 6c 65 20 74 6f 20 63 6f |is.>liab|le to co|
|000006f0| 6e 73 74 72 61 69 6e 20 | 77 68 61 74 20 6f 6e 65 |nstrain |what one|
|00000700| 20 6d 61 79 20 64 6f 20 | 62 65 74 77 65 65 6e 20 | may do |between |
|00000710| 5b 71 76 5d 66 6f 72 6b | 28 29 20 61 6e 64 20 65 |[qv]fork|() and e|
|00000720| 78 65 63 28 29 20 73 6f | 0a 3e 67 72 65 61 74 6c |xec() so|.>greatl|
|00000730| 79 0a 0a 4e 6f 2e 0a 0a | 46 69 72 73 74 2c 20 6c |y..No...|First, l|
|00000740| 69 73 74 20 65 76 65 72 | 79 20 6f 70 65 72 61 74 |ist ever|y operat|
|00000750| 69 6f 6e 73 20 77 68 69 | 63 68 20 69 73 20 73 61 |ions whi|ch is sa|
|00000760| 66 65 20 62 65 74 77 65 | 65 6e 20 66 6f 72 6b 28 |fe betwe|en fork(|
|00000770| 29 20 61 6e 64 20 65 78 | 65 63 28 29 0a 2a 61 6e |) and ex|ec().*an|
|00000780| 64 2a 20 62 65 74 77 65 | 65 6e 20 42 53 44 20 76 |d* betwe|en BSD v|
|00000790| 66 6f 72 6b 28 29 20 61 | 6e 64 20 65 78 65 63 28 |fork() a|nd exec(|
|000007a0| 29 2e 0a 0a 54 68 65 6e | 2c 20 74 68 6f 73 65 20 |)...Then|, those |
|000007b0| 61 72 65 20 74 68 65 20 | 73 61 66 65 20 6f 70 65 |are the |safe ope|
|000007c0| 72 61 74 69 6f 6e 73 20 | 6f 66 20 50 4f 53 49 58 |rations |of POSIX|
|000007d0| 20 76 66 6f 72 6b 28 29 | 20 6f 6e 20 2a 61 6c 6c | vfork()| on *all|
|000007e0| 2a 20 61 72 63 68 69 74 | 65 63 74 75 72 65 73 2e |* archit|ectures.|
|000007f0| 0a 0a 3e 74 68 61 74 20 | 69 74 20 74 75 72 6e 73 |..>that |it turns|
|00000800| 20 6f 75 74 20 74 6f 20 | 62 65 20 62 65 74 74 65 | out to |be bette|
|00000810| 72 20 74 6f 20 64 65 66 | 69 6e 65 20 61 20 63 6f |r to def|ine a co|
|00000820| 6d 62 69 6e 65 64 20 73 | 70 77 61 6e 28 29 0a 3e |mbined s|pwan().>|
|00000830| 66 75 6e 63 74 69 6f 6e | 2e 0a 0a 4d 6f 73 74 20 |function|...Most |
|00000840| 28 70 65 72 68 61 70 73 | 2c 20 6d 6f 72 65 20 74 |(perhaps|, more t|
|00000850| 68 61 6e 20 39 30 25 29 | 20 6f 66 20 63 61 73 65 |han 90%)| of case|
|00000860| 73 20 77 68 65 72 65 20 | 66 6f 72 6b 2f 65 78 65 |s where |fork/exe|
|00000870| 63 20 69 73 20 6e 65 63 | 65 73 73 61 72 79 0a 69 |c is nec|essary.i|
|00000880| 73 20 63 6f 76 65 72 65 | 64 20 62 79 20 73 79 73 |s covere|d by sys|
|00000890| 74 65 6d 28 29 2e 20 73 | 70 61 77 6e 28 29 20 69 |tem(). s|pawn() i|
|000008a0| 73 20 6e 6f 74 20 6e 65 | 63 65 73 73 61 72 79 2e |s not ne|cessary.|
|000008b0| 0a 0a 52 65 73 74 20 61 | 72 65 20 73 70 65 63 69 |..Rest a|re speci|
|000008c0| 61 6c 20 63 61 73 65 73 | 2c 20 77 68 65 72 65 20 |al cases|, where |
|000008d0| 63 6f 6d 62 69 6e 65 64 | 20 73 70 61 77 6e 28 29 |combined| spawn()|
|000008e0| 20 63 61 6e 20 68 65 6c | 70 20 76 65 72 79 20 6c | can hel|p very l|
|000008f0| 69 74 74 6c 65 0a 61 6e | 64 20 73 65 70 61 72 61 |ittle.an|d separa|
|00000900| 74 65 20 5b 76 5d 66 6f | 72 6b 28 29 20 61 6e 64 |te [v]fo|rk() and|
|00000910| 20 65 78 65 63 28 29 20 | 69 73 20 72 65 61 6c 6c | exec() |is reall|
|00000920| 79 20 6e 65 63 65 73 73 | 61 72 79 2e 0a 0a 49 73 |y necess|ary...Is|
|00000930| 20 69 74 20 61 20 72 6f | 6c 65 20 6f 66 20 50 4f | it a ro|le of PO|
|00000940| 53 49 58 20 74 6f 20 64 | 65 66 69 6e 65 20 75 6e |SIX to d|efine un|
|00000950| 6e 65 63 65 73 73 61 72 | 79 20 61 6e 64 20 74 6f |necessar|y and to|
|00000960| 74 61 6c 79 20 61 6c 69 | 65 6e 20 66 75 6e 63 74 |taly ali|en funct|
|00000970| 69 6f 6e 73 0a 61 6e 64 | 20 62 61 64 6c 79 20 6d |ions.and| badly m|
|00000980| 6f 64 69 66 79 20 55 4e | 49 58 3f 0a 0a 44 6f 6e |odify UN|IX?..Don|
|00000990| 27 74 20 74 72 79 20 74 | 6f 20 72 65 69 6e 76 65 |'t try t|o reinve|
|000009a0| 6e 74 20 77 68 65 65 6c | 73 2e 0a 0a 09 09 09 09 |nt wheel|s.......|
|000009b0| 09 4d 61 73 61 74 61 6b | 61 20 4f 68 74 61 0a 0a |.Masatak|a Ohta..|
|000009c0| 56 6f 6c 75 6d 65 2d 4e | 75 6d 62 65 72 3a 20 56 |Volume-N|umber: V|
|000009d0| 6f 6c 75 6d 65 20 32 32 | 2c 20 4e 75 6d 62 65 72 |olume 22|, Number|
|000009e0| 20 31 30 30 0a 0a | | 100.. | |
+--------+-------------------------+-------------------------+--------+--------+