Last change
on this file since 403 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
405 bytes
|
Line | |
---|
1 | #include <stdarg.h>
|
---|
2 | #include <unistd.h>
|
---|
3 | #include "pthread_impl.h"
|
---|
4 | #include "syscall.h"
|
---|
5 |
|
---|
6 | int clone(int (*func)(void *), void *stack, int flags, void *arg, ...)
|
---|
7 | {
|
---|
8 | va_list ap;
|
---|
9 | pid_t *ptid, *ctid;
|
---|
10 | void *tls;
|
---|
11 |
|
---|
12 | va_start(ap, arg);
|
---|
13 | ptid = va_arg(ap, pid_t *);
|
---|
14 | tls = va_arg(ap, void *);
|
---|
15 | ctid = va_arg(ap, pid_t *);
|
---|
16 | va_end(ap);
|
---|
17 |
|
---|
18 | return __syscall_ret(__clone(func, stack, flags, arg, ptid, tls, ctid));
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.