Last change
on this file since 445 was 444, checked in by coas-nagasima, 4 years ago |
muslのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
272 bytes
|
Rev | Line | |
---|
[444] | 1 | #include <unistd.h>
|
---|
| 2 | #include <errno.h>
|
---|
| 3 |
|
---|
| 4 | void __procfdname(char *, unsigned);
|
---|
| 5 |
|
---|
| 6 | int fexecve(int fd, char *const argv[], char *const envp[])
|
---|
| 7 | {
|
---|
| 8 | char buf[15 + 3*sizeof(int)];
|
---|
| 9 | __procfdname(buf, fd);
|
---|
| 10 | execve(buf, argv, envp);
|
---|
| 11 | if (errno == ENOENT) errno = EBADF;
|
---|
| 12 | return -1;
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.