source: trunk/minix/lib/syslib/sys_exec.c@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

  • Property svn:executable set to *
File size: 429 bytes
Line 
1#include "syslib.h"
2
3PUBLIC int sys_exec(proc, ptr, prog_name, initpc)
4int proc; /* process that did exec */
5char *ptr; /* new stack pointer */
6char *prog_name; /* name of the new program */
7vir_bytes initpc;
8{
9/* A process has exec'd. Tell the kernel. */
10
11 message m;
12
13 m.PR_ENDPT = proc;
14 m.PR_STACK_PTR = ptr;
15 m.PR_NAME_PTR = prog_name;
16 m.PR_IP_PTR = (char *)initpc;
17 return(_taskcall(SYSTASK, SYS_EXEC, &m));
18}
Note: See TracBrowser for help on using the repository browser.