JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... uted program as a vector. v - execv(), execvp(), execvpe() The char *const argv[] argument is an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point 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 arg ... ument is an array of pointers to null-terminated strings and must be terminated by a null pointer. All other exec () functions (which do not include 'e' in the suffix) tak ... ... uted program as a vector. v - execv(), execvp(), execvpe() The char *const argv[] argument is an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point 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 arg ... ument is an array of pointers to null-terminated strings and must be terminated by a null pointer. All other exec () functions (which do not include 'e' in the suffix) tak ... ... uted program as a vector. v - execv(), execvp(), execvpe() The char *const argv[] argument is an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point 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 arg ... ument is an array of pointers to null-terminated strings and must be terminated by a null pointer. All other exec () functions (which do not include 'e' in the suffix) tak ... ... uted program as a vector. v - execv(), execvp(), execvpe() The char *const argv[] argument is an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point 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 arg ... ument is an array of pointers to null-terminated strings and must be terminated by a null pointer. All other exec () functions (which do not include 'e' in the suffix) tak ... ... uted program as a vector. v - execv(), execvp(), execvpe() The char *const argv[] argument is an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point 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 arg ... ument is an array of pointers to null-terminated strings and must be terminated by a null pointer. All other exec () functions (which do not include 'e' in the suffix) tak ... ... uted program as a vector. v - execv(), execvp(), execvpe() The char *const argv[] argument is an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point 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 arg ... ument is an array of pointers to null-terminated strings and must be terminated by a null pointer. All other exec () functions (which do not include 'e' in the suffix) tak ... ... uted program as a vector. v - execv(), execvp(), execvpe() The char *const argv[] argument is an array of pointers to null-terminated strings that represent the argument list available to the new program. The first argument, by convention, should point 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 arg ... ument is an array of pointers to null-terminated strings and must be terminated by a null pointer. All other exec () functions (which do not include 'e' in the suffix) tak ... ... cmd values listed below, it performs a "reboot" of that namespace: the "init" process of the PID namespace is immediately terminated, with the effects described in pid_namespaces (7). The values that can be supplied in cmd when calling reboot () in this c ... ase are as follows: LINUX_REBOOT_CMD_RESTART , LINUX_REBOOT_CMD_RESTART2 The "init" process is terminated, and wait (2) in the parent process reports that the child was killed with a SIGHUP signal. LINUX_REBOOT_CMD_POWER_OFF , L ... INUX_REBOOT_CMD_HALT The "init" process is terminated, and wait (2) in the parent process reports that the child was killed with a SIGINT signal. For the other cmd values, rebo ... ... バル変数を設定して、 もう一つのスレッドが正常終了するようにしている。 $ ./a.out x New thread started cnt = 0 cnt = 1 Thread terminated normally; cnt = 2 上記では、 ( cleanup_pop_arg が 0 なので) クリーンアップハンドラーは 実行されておらず、その結果 cnt の値 ... leanup_pop_arg に 0 以外の値を渡している。 $ ./a.out x 1 New thread started cnt = 0 cnt = 1 Called clean-up handler Thread terminated normally; cnt = 0 上記では、スレッドはキャンセルされていないが、クリーンアップハンドラーが実行されたことが分かる。これは p ... or_en(s, "pthread_join"); if (res == PTHREAD_CANCELED) printf("Thread was canceled; cnt = %d\n", cnt); else printf("Thread terminated normally; cnt = %d\n", cnt); exit(EXIT_SUCCESS); } 関連項目 pthread_cancel (3), pthread_cleanup_push_defer_np (3), pthread ... ... バル変数を設定して、 もう一つのスレッドが正常終了するようにしている。 $ ./a.out x New thread started cnt = 0 cnt = 1 Thread terminated normally; cnt = 2 上記では、 ( cleanup_pop_arg が 0 なので) クリーンアップハンドラーは 実行されておらず、その結果 cnt の値 ... leanup_pop_arg に 0 以外の値を渡している。 $ ./a.out x 1 New thread started cnt = 0 cnt = 1 Called clean-up handler Thread terminated normally; cnt = 0 上記では、スレッドはキャンセルされていないが、クリーンアップハンドラーが実行されたことが分かる。これは p ... or_en(s, "pthread_join"); if (res == PTHREAD_CANCELED) printf("Thread was canceled; cnt = %d\n", cnt); else printf("Thread terminated normally; cnt = %d\n", cnt); exit(EXIT_SUCCESS); } 関連項目 pthread_cancel (3), pthread_cleanup_push_defer_np (3), pthread ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。