#include "config.h"
-static int lxc_raw_execveat(int dirfd, const char *pathname, char *const argv[],
- char *const envp[], int flags)
+static inline int lxc_raw_execveat(int dirfd, const char *pathname,
+ char *const argv[], char *const envp[],
+ int flags)
{
#ifdef __NR_execveat
syscall(__NR_execveat, dirfd, pathname, argv, envp, flags);
return -1;
}
-#ifdef __NR_execveat
lxc_raw_execveat(fd, "", argv, envp, AT_EMPTY_PATH);
if (errno != ENOSYS)
return -1;
-#endif
ret = snprintf(procfd, sizeof(procfd), "/proc/self/fd/%d", fd);
if (ret < 0 || (size_t)ret >= sizeof(procfd)) {