home *** CD-ROM | disk | FTP | other *** search
-
-
-
- PEXEC(2) MiNT SYSTEM CALLS PEXEC(2)
-
-
- N✓NA✓AM✓ME✓E
- Pexec - load and execute a program
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <osbind.h>
-
- long Pexec(int mode, char *name, void *cmdline, void *envptr);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- Pexec loads and/or runs a program, depending on the mode
- given. Under MiNT, extra modes have been added that run
- the program asynchronically, i.e. do not wait for it to
- finish. The modes unique to MiNT have codes 100 or above.
-
- The following modes are available:
- 0: Load and run program.
- 3: Just load program. Returns pointer to basepage.
- 4: Start a program that has been set up before.
- cmdline contains a pointer to the basepage,
- envptr is not used. Parent and child share memory.
- 5: Build new basepage. Returns pointer to basepage
- 6: Start a program that has been set up before.
- cmdline contains a pointer to the basepage,
- envptr is not used. Parent and child don't
- share memory.
- 100: Load and run program async. Returns child's pid.
- 104: Start a program, async. Parent and child share
- memory. Parameter name gives name of the child
- program.
- 106: Start a program, async. Memory is not shared.
- Parameter name gives name of the child program.
- 200: Load and run program. Old program is replaced.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- 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)✓),✓,
- P✓Pw✓wa✓ai✓it✓t3✓3(✓(2✓2)✓)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-