source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/process/fexecve.c@ 337

Last change on this file since 337 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: 272 bytes
Line 
1#include <unistd.h>
2#include <errno.h>
3
4void __procfdname(char *, unsigned);
5
6int 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.