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:
@@ -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.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _UNISTD_H_
|
#ifndef _UNISTD_H_
|
||||||
@@ -114,6 +114,7 @@ extern long pathconf(const char *path, int name);
|
|||||||
|
|
||||||
/* process functions */
|
/* process functions */
|
||||||
extern pid_t fork(void);
|
extern pid_t fork(void);
|
||||||
|
extern pid_t vfork(void);
|
||||||
extern int execve(const char *path, char * const argv[], char * const envp[]);
|
extern int execve(const char *path, char * const argv[], char * const envp[]);
|
||||||
extern int execl(const char *path, const char *arg, ...);
|
extern int execl(const char *path, const char *arg, ...);
|
||||||
extern int execv(const char *path, char *const *argv);
|
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 getpgid(pid_t pid);
|
||||||
|
|
||||||
extern pid_t setsid(void);
|
extern pid_t setsid(void);
|
||||||
extern int setpgid(pid_t pid, pid_t pgid);
|
extern int setpgid(pid_t pid, pid_t pgid);
|
||||||
extern int setpgrp(void);
|
extern int setpgrp(void);
|
||||||
|
|
||||||
/* access permissions */
|
/* access permissions */
|
||||||
extern gid_t getegid(void);
|
extern gid_t getegid(void);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2004-2005, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2004-2006, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -164,3 +164,10 @@ fork(void)
|
|||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pid_t
|
||||||
|
vfork(void)
|
||||||
|
{
|
||||||
|
return fork();
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user