home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / Pexec.2 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. PEXEC(2)                MiNT SYSTEM CALLS                PEXEC(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Pexec - load and execute a program
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <osbind.h>
  12.  
  13.        long Pexec(int mode, char *name, void *cmdline, void *envptr);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        Pexec  loads  and/or runs a program, depending on the mode
  17.        given.  Under MiNT, extra modes have been added  that  run
  18.        the  program  asynchronically,  i.e. do not wait for it to
  19.        finish.  The modes unique to MiNT have codes 100 or above.
  20.  
  21.        The following modes are available:
  22.            0:  Load and run program.
  23.            3:  Just load program. Returns pointer to basepage.
  24.            4:  Start a program that has been set up before.
  25.                cmdline contains a pointer to the basepage,
  26.                envptr is not used. Parent and child share memory.
  27.            5:  Build new basepage. Returns pointer to basepage
  28.            6:  Start a program that has been set up before.
  29.                cmdline contains a pointer to the basepage,
  30.                envptr is not used. Parent and child don't
  31.                share memory.
  32.          100:  Load and run program async. Returns child's pid.
  33.          104:  Start a program, async. Parent and child share
  34.                memory. Parameter name gives name of the child
  35.                program.
  36.          106:  Start a program, async. Memory is not shared.
  37.                Parameter name gives name of the child program.
  38.          200:  Load and run program. Old program is replaced.
  39.  
  40. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  41.        P✓Pt✓te✓er✓rm✓m(✓(2✓2)✓),✓,  P✓Pt✓te✓er✓rm✓m0✓0(✓(2✓2)✓),✓,  P✓Pt✓te✓er✓rm✓mr✓re✓es✓s(✓(2✓2)✓),✓,  P✓Pf✓fo✓or✓rk✓k(✓(2✓2)✓),✓,  P✓Pv✓vf✓fo✓or✓rk✓k(✓(2✓2)✓),✓,
  42.        P✓Pw✓wa✓ai✓it✓t3✓3(✓(2✓2)✓)
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.