home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / progrmng / thinkc30.sit / unixexec.c.bin < prev    next >
MacBinary  |  1989-09-14  |  1.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
1% dexvert Debian floppy split (archive/debianFloppySplit) ext Unsupported
1% dexvert Sound Images sound sample (audio/soundImagesSoundSample) ext Unsupported
1% dexvert DESI-III drawing (image/desiIIIDrawing) ext Unsupported
1% dexvert MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable) ext Unsupported
1% dexvert Alien Trilogytextures (other/alienTrilogyTextures) ext Unsupported
1% dexvert APT cache data (other/aptCacheData) ext Unsupported
1% dexvert CorelTRACE configuration (other/corelTRACEConfiguration) ext Unsupported
1% dexvert Dreamcast Disc (other/dreamcastDisc) ext Unsupported
1% dexvert EST flat binary (other/estFlatBinary) ext Unsupported
1% dexvert Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat) ext Unsupported
1% dexvert Sega Genesis/Megadrive/32x ROM (other/genesisROM) ext Unsupported
1% dexvert Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive) ext Unsupported
1% dexvert Sound Images Sound Driver (other/soundImagesSoundDriver) ext Unsupported
1% dexvert Symantec/Norton Config (other/symantecNortonConfig) ext Unsupported
1% dexvert Vectrex ROM (other/vectrexROM) ext Unsupported
1% dexvert BIS raP encoded format (other/bisraPEncoded) ext Unsupported
1% dexvert Pascal Script binary (other/pascalScriptBinary) ext Unsupported
1% dexvert 7th Level game data archive (other/seventhLevelGameDataArchive) ext Unsupported
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary, Tue Jun 24 14:15:07 1986, modified Sun Jan 15 06:08:24 1989, creator Think C, type ASCII, 910 bytes "unixexec.c" default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 1 default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 75 6e 69 78 65 78 | 65 63 2e 63 00 00 00 00 |..unixex|ec.c....|
|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 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 03 8e 00 | 00 00 00 9b 24 94 2b 9f |........|....$.+.|
|00000060| f6 2c 28 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.,(.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 09 28 43 29 20 43 | 6f 70 79 72 69 67 68 74 |/*.(C) C|opyright|
|00000090| 20 31 39 38 36 2e 20 54 | 48 49 4e 4b 20 54 65 63 | 1986. T|HINK Tec|
|000000a0| 68 6e 6f 6c 6f 67 69 65 | 73 2c 20 49 6e 63 2e 20 |hnologie|s, Inc. |
|000000b0| 20 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 | All rig|hts rese|
|000000c0| 72 76 65 64 2e 20 2a 2f | 09 0d 0d 2f 2a 20 54 68 |rved. */|.../* Th|
|000000d0| 69 73 20 6d 6f 64 75 6c | 65 20 69 6d 70 6c 65 6d |is modul|e implem|
|000000e0| 65 6e 74 73 20 61 62 62 | 72 65 76 69 61 74 65 64 |ents abb|reviated|
|000000f0| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 65 78 65 | version|s of exe|
|00000100| 63 6c 2c 20 65 78 65 63 | 76 2c 20 65 78 65 63 6c |cl, exec|v, execl|
|00000110| 65 2c 0d 09 61 6e 64 20 | 65 78 65 63 76 65 2e 20 |e,..and |execve. |
|00000120| 49 74 20 73 65 65 6d 73 | 20 74 68 61 74 20 74 68 |It seems| that th|
|00000130| 65 20 61 72 67 73 20 73 | 68 6f 75 6c 64 20 64 6f |e args s|hould do|
|00000140| 20 73 6f 6d 65 74 68 69 | 6e 67 2c 20 68 6f 77 65 | somethi|ng, howe|
|00000150| 76 65 72 0d 09 6e 6f 74 | 68 69 6e 67 20 69 73 20 |ver..not|hing is |
|00000160| 64 6f 6e 65 20 77 69 74 | 68 20 74 68 65 6d 20 68 |done wit|h them h|
|00000170| 65 72 65 2e 20 20 54 68 | 65 73 65 20 61 72 65 20 |ere. Th|ese are |
|00000180| 69 6d 70 6c 65 6d 65 6e | 74 65 64 20 70 75 72 65 |implemen|ted pure|
|00000190| 6c 79 20 61 73 20 61 0d | 09 73 74 61 72 74 69 6e |ly as a.|.startin|
|000001a0| 67 20 70 6f 69 6e 74 20 | 66 6f 72 20 74 68 6f 73 |g point |for thos|
|000001b0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 77 |e applic|ations w|
|000001c0| 68 69 63 68 20 6e 65 65 | 64 20 74 6f 20 64 6f 20 |hich nee|d to do |
|000001d0| 74 72 61 6e 73 66 65 72 | 73 20 74 6f 0d 09 6f 74 |transfer|s to..ot|
|000001e0| 68 65 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |her appl|ications|
|000001f0| 2e 20 2a 2f 0d 0d 63 68 | 61 72 20 2a 43 74 6f 50 |. */..ch|ar *CtoP|
|00000200| 73 74 72 28 29 3b 0d 0d | 0d 73 74 61 74 69 63 20 |str();..|.static |
|00000210| 76 6f 69 64 0d 5f 65 78 | 65 63 28 70 61 74 68 29 |void._ex|ec(path)|
|00000220| 0d 63 68 61 72 20 2a 70 | 61 74 68 3b 0d 7b 0d 09 |.char *p|ath;.{..|
|00000230| 5f 65 78 69 74 69 6e 67 | 28 31 29 3b 0d 09 4c 61 |_exiting|(1);..La|
|00000240| 75 6e 63 68 28 30 2c 20 | 43 74 6f 50 73 74 72 28 |unch(0, |CtoPstr(|
|00000250| 70 61 74 68 29 29 3b 0d | 7d 0d 0d 0d 23 6c 69 6e |path));.|}...#lin|
|00000260| 65 20 30 20 65 78 65 63 | 6c 0d 0d 65 78 65 63 6c |e 0 exec|l..execl|
|00000270| 28 70 61 74 68 2c 20 61 | 72 67 29 0d 63 68 61 72 |(path, a|rg).char|
|00000280| 20 2a 70 61 74 68 2c 20 | 2a 61 72 67 3b 0d 7b 09 | *path, |*arg;.{.|
|00000290| 2f 2a 20 64 65 73 69 67 | 6e 65 64 20 66 6f 72 20 |/* desig|ned for |
|000002a0| 6c 61 75 6e 63 68 69 6e | 67 20 61 70 70 6c 69 63 |launchin|g applic|
|000002b0| 61 74 69 6f 6e 20 77 69 | 74 68 20 61 72 67 30 2c |ation wi|th arg0,|
|000002c0| 20 61 72 67 31 2c 20 2e | 2e 2e 2c 20 61 72 67 6e | arg1, .|.., argn|
|000002d0| 20 2a 2f 0d 0d 09 5f 65 | 78 65 63 28 70 61 74 68 | */..._e|xec(path|
|000002e0| 29 3b 0d 7d 0d 0d 23 6c | 69 6e 65 20 30 20 65 78 |);.}..#l|ine 0 ex|
|000002f0| 65 63 76 0d 0d 65 78 65 | 63 76 28 70 61 74 68 2c |ecv..exe|cv(path,|
|00000300| 20 61 72 67 76 29 0d 63 | 68 61 72 20 2a 70 61 74 | argv).c|har *pat|
|00000310| 68 2c 20 2a 61 72 67 76 | 5b 5d 3b 0d 7b 0d 09 5f |h, *argv|[];.{.._|
|00000320| 65 78 65 63 28 70 61 74 | 68 29 3b 0d 7d 0d 0d 23 |exec(pat|h);.}..#|
|00000330| 6c 69 6e 65 20 30 20 65 | 78 65 63 6c 65 0d 0d 65 |line 0 e|xecle..e|
|00000340| 78 65 63 6c 65 28 70 61 | 74 68 2c 20 61 72 67 29 |xecle(pa|th, arg)|
|00000350| 0d 63 68 61 72 20 2a 70 | 61 74 68 2c 20 2a 61 72 |.char *p|ath, *ar|
|00000360| 67 3b 0d 7b 0d 09 2f 2a | 20 6c 61 75 6e 63 68 20 |g;.{../*| launch |
|00000370| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 69 74 68 |applicat|ion with|
|00000380| 20 61 72 67 30 2c 20 61 | 72 67 31 2c 20 2e 2e 2e | arg0, a|rg1, ...|
|00000390| 2c 20 61 72 67 6e 2c 20 | 30 2c 20 65 6e 76 20 2a |, argn, |0, env *|
|000003a0| 2f 0d 0d 09 5f 65 78 65 | 63 28 70 61 74 68 29 3b |/..._exe|c(path);|
|000003b0| 0d 7d 0d 0d 23 6c 69 6e | 65 20 30 20 65 78 65 63 |.}..#lin|e 0 exec|
|000003c0| 76 65 0d 0d 65 78 65 63 | 76 65 28 70 61 74 68 2c |ve..exec|ve(path,|
|000003d0| 20 61 72 67 76 2c 20 65 | 6e 76 70 29 0d 63 68 61 | argv, e|nvp).cha|
|000003e0| 72 20 2a 70 61 74 68 2c | 20 2a 61 72 67 76 5b 5d |r *path,| *argv[]|
|000003f0| 2c 20 2a 65 6e 76 70 5b | 5d 3b 0d 7b 0d 09 5f 65 |, *envp[|];.{.._e|
|00000400| 78 65 63 28 70 61 74 68 | 29 3b 0d 7d 0d 0d 00 00 |xec(path|);.}....|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+