Last change
on this file since 374 was 374, checked in by coas-nagasima, 5 years ago |
mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
366 bytes
|
Rev | Line | |
---|
[337] | 1 | #define _GNU_SOURCE
|
---|
| 2 | #include <unistd.h>
|
---|
| 3 | #include <signal.h>
|
---|
| 4 | #include "syscall.h"
|
---|
| 5 | #include "libc.h"
|
---|
| 6 |
|
---|
| 7 | pid_t __vfork(void)
|
---|
| 8 | {
|
---|
| 9 | /* vfork syscall cannot be made from C code */
|
---|
| 10 | #ifdef SYS_fork
|
---|
| 11 | return syscall(SYS_fork);
|
---|
| 12 | #else
|
---|
| 13 | return syscall(SYS_clone, SIGCHLD, 0);
|
---|
| 14 | #endif
|
---|
| 15 | }
|
---|
| 16 |
|
---|
[374] | 17 | #ifndef __c2__
|
---|
[337] | 18 | weak_alias(__vfork, vfork);
|
---|
[374] | 19 | #else
|
---|
| 20 | pid_t vfork(void)
|
---|
| 21 | {
|
---|
| 22 | return __vfork();
|
---|
| 23 | }
|
---|
| 24 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.