source: azure_iot_hub/trunk/musl-1.1.18/src/process/fexecve.c@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-csrc
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.