Welcome to mirror list, hosted at ThFree Co, Russian Federation.

process.c « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 58a36176fa267e519a4d378610419d82b377d768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* libc/sys/linux/process.c - Process-related system calls */

/* Written 2000 by Werner Almesberger */


#include <sys/unistd.h>
#include <sys/syscall.h>


#define __NR__exit __NR_exit
#define __NR__execve __NR_execve

_syscall0(int,fork)
_syscall0(pid_t,vfork)
_syscall3(int,_execve,const char *,file,char * const *,argv,char * const *,envp)
_syscall0(int,getpid)
_syscall2(int,setpgid,pid_t,pid,pid_t,pgid)
_syscall0(pid_t,getppid)
_syscall0(pid_t,getpgrp)
_syscall0(pid_t,setsid)

/* FIXME: get rid of noreturn warning */

#define return for (;;)
_syscall1(void,_exit,int,exitcode)
#undef return