JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... onst char * arg , ... /* (char *) NULL */); int execlp(const char * file , const char * arg , ... /* (char *) NULL */); int execle(const char * pathname , const char * arg , .. ... 引数は、実行されるファイルの名前である。 The functions can be grouped based on the letters following the "exec" prefix. l - execl(), execlp(), execle() const char *arg とそれに続く省略部分は arg0 , arg1 , ..., argn とみなされる。 これらには、実行される ... t to the filename associated with the file being executed. The array of pointers must be terminated by a null pointer. e - execle(), execvpe() The environment of the caller is specified via the argument envp . The envp argument is an array of pointers ... ... onst char * arg , ... /* (char *) NULL */); int execlp(const char * file , const char * arg , ... /* (char *) NULL */); int execle(const char * pathname , const char * arg , .. ... 引数は、実行されるファイルの名前である。 The functions can be grouped based on the letters following the "exec" prefix. l - execl(), execlp(), execle() const char *arg とそれに続く省略部分は arg0 , arg1 , ..., argn とみなされる。 これらには、実行される ... t to the filename associated with the file being executed. The array of pointers must be terminated by a null pointer. e - execle(), execvpe() The environment of the caller is specified via the argument envp . The envp argument is an array of pointers ... ... onst char * arg , ... /* (char *) NULL */); int execlp(const char * file , const char * arg , ... /* (char *) NULL */); int execle(const char * pathname , const char * arg , .. ... 引数は、実行されるファイルの名前である。 The functions can be grouped based on the letters following the "exec" prefix. l - execl(), execlp(), execle() const char *arg とそれに続く省略部分は arg0 , arg1 , ..., argn とみなされる。 これらには、実行される ... t to the filename associated with the file being executed. The array of pointers must be terminated by a null pointer. e - execle(), execvpe() The environment of the caller is specified via the argument envp . The envp argument is an array of pointers ... ... onst char * arg , ... /* (char *) NULL */); int execlp(const char * file , const char * arg , ... /* (char *) NULL */); int execle(const char * pathname , const char * arg , .. ... 引数は、実行されるファイルの名前である。 The functions can be grouped based on the letters following the "exec" prefix. l - execl(), execlp(), execle() const char *arg とそれに続く省略部分は arg0 , arg1 , ..., argn とみなされる。 これらには、実行される ... t to the filename associated with the file being executed. The array of pointers must be terminated by a null pointer. e - execle(), execvpe() The environment of the caller is specified via the argument envp . The envp argument is an array of pointers ... ... onst char * arg , ... /* (char *) NULL */); int execlp(const char * file , const char * arg , ... /* (char *) NULL */); int execle(const char * pathname , const char * arg , .. ... 引数は、実行されるファイルの名前である。 The functions can be grouped based on the letters following the "exec" prefix. l - execl(), execlp(), execle() const char *arg とそれに続く省略部分は arg0 , arg1 , ..., argn とみなされる。 これらには、実行される ... t to the filename associated with the file being executed. The array of pointers must be terminated by a null pointer. e - execle(), execvpe() The environment of the caller is specified via the argument envp . The envp argument is an array of pointers ... ... onst char * arg , ... /* (char *) NULL */); int execlp(const char * file , const char * arg , ... /* (char *) NULL */); int execle(const char * pathname , const char * arg , .. ... 引数は、実行されるファイルの名前である。 The functions can be grouped based on the letters following the "exec" prefix. l - execl(), execlp(), execle() const char *arg とそれに続く省略部分は arg0 , arg1 , ..., argn とみなされる。 これらには、実行される ... t to the filename associated with the file being executed. The array of pointers must be terminated by a null pointer. e - execle(), execvpe() The environment of the caller is specified via the argument envp . The envp argument is an array of pointers ... ... onst char * arg , ... /* (char *) NULL */); int execlp(const char * file , const char * arg , ... /* (char *) NULL */); int execle(const char * pathname , const char * arg , .. ... 引数は、実行されるファイルの名前である。 The functions can be grouped based on the letters following the "exec" prefix. l - execl(), execlp(), execle() const char *arg とそれに続く省略部分は arg0 , arg1 , ..., argn とみなされる。 これらには、実行される ... t to the filename associated with the file being executed. The array of pointers must be terminated by a null pointer. e - execle(), execvpe() The environment of the caller is specified via the argument envp . The envp argument is an array of pointers ... ... スを作成し、その子プロセスは以下のように command で指定されたシェルコマンドを execl (3) を使って実行する。 execl("/bin/sh", "sh", "-c", command, (char *) NULL); system () が返るのはコマンドが完了した後である ... MT-Safe 準拠 POSIX.1-2001, POSIX.1-2008, C89, C99. 注意 system () により簡便性と利便性がもたらされる。この関数は fork (2), execl (3), waitpid (2) の呼び出しにおける詳細をすべて行うとともに、 シグナルの適切な処理も行う。 また、シェルは command に対して ... manipulated so that an arbitrary program is executed with privilege. Use the exec (3) family of functions instead, but not execlp (3) or execvp (3) (which also use the PATH environment variable to search for an executable). system () will not, in fact ... ... g like the following: char buf[PATH_MAX]; fd = open("some_prog", O_PATH); snprintf(buf, PATH_MAX, "/proc/self/fd/%d", fd); execl(buf, "some_prog", (char *) NULL); An O_PATH file descriptor can also be passed as the argument of fexecve (3). O_SYNC ファ ... ... g like the following: char buf[PATH_MAX]; fd = open("some_prog", O_PATH); snprintf(buf, PATH_MAX, "/proc/self/fd/%d", fd); execl(buf, "some_prog", (char *) NULL); An O_PATH file descriptor can also be passed as the argument of fexecve (3). O_SYNC ファ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。