Added vfork() as a wrapper to fork().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19491 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
278ca3c080
commit
a7854360ac
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2005, Haiku Inc. All Rights Reserved.
|
||||
* Copyright 2004-2006, Haiku Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _UNISTD_H_
|
||||
@ -114,6 +114,7 @@ extern long pathconf(const char *path, int name);
|
||||
|
||||
/* process functions */
|
||||
extern pid_t fork(void);
|
||||
extern pid_t vfork(void);
|
||||
extern int execve(const char *path, char * const argv[], char * const envp[]);
|
||||
extern int execl(const char *path, const char *arg, ...);
|
||||
extern int execv(const char *path, char *const *argv);
|
||||
@ -143,8 +144,8 @@ extern pid_t getsid(pid_t pid);
|
||||
extern pid_t getpgid(pid_t pid);
|
||||
|
||||
extern pid_t setsid(void);
|
||||
extern int setpgid(pid_t pid, pid_t pgid);
|
||||
extern int setpgrp(void);
|
||||
extern int setpgid(pid_t pid, pid_t pgid);
|
||||
extern int setpgrp(void);
|
||||
|
||||
/* access permissions */
|
||||
extern gid_t getegid(void);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@ -164,3 +164,10 @@ fork(void)
|
||||
return thread;
|
||||
}
|
||||
|
||||
|
||||
pid_t
|
||||
vfork(void)
|
||||
{
|
||||
return fork();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user