The execveat () system call executes the program referred to by the combination of dirfd and pathname. It operates in exactly the same way as execve (2), except for the differences described in this manual page. If the pathname given in pathname is relative, then it is interpreted relative to the directory referred to by the file descriptor. The functions described in this manual page are front-ends for the function execve(2). (See the manual page for execve(2) for detailed information about the replacement of the current process.) The initial argument for these functions is the pathname of a file which is to be executed. EXECVE(2) Linux Programmer's Manual EXECVE(2) NAME top execve - execute program SYNOPSIS top #include int execve(const char *pathname, char *const argv[], char *const envp[]); DESCRIPTION top execve() executes the program referred to by pathname. This causes the program that is currently being run by the calling process to be replaced with a new .
The execveat () system call executes the program referred to by the combination of dirfd and pathname. It operates in exactly the same way as execve (2), except for the differences described in this manual page. If the pathname given in pathname is relative, then it is interpreted relative to the directory referred to by the file descriptor. As the execve() system call overlays the current process image with a new process image the successful call has no process to return to. If execve () does return to the calling process an error has occurred; the return value will be -1 and the global variable errno is set to indicate the error. This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. Name environ, execl, execv, execle, execve, execlp, execvp - execute a file Synopsis.
OS/ Reference Manual. Name. execv - execute a program The process file table and current working directory are not modified by execve. See the Unix manual for the semantics. New in version Added support for specifying path as an open file descriptor for execve(). EXECVE(2) System Calls Manual EXECVE(2) NAME execve - execute a file SYNOPSIS #include int execve(const char *name, char *const argv[].
0コメント