JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... #include < stdlib.h > #include < unistd.h > #include < string.h > int main(int argc, char *argv[]) { int pipefd[2]; pid_t cpid; char buf; if (argc != 2) { fprintf(stderr, "Usage: %s <string>\n", argv[0]); exit(EXIT_FAILURE); } if (pipe(pipefd) == -1 ... ) { perror("pipe"); exit(EXIT_FAILURE); } cpid = fork(); if (cpid == -1) { perror("fork"); exit(EXIT_FAILURE); } if (cpid == 0) { /* 子プロセスがパイプから読み込む */ cl ... ... #include < stdlib.h > #include < unistd.h > #include < string.h > int main(int argc, char *argv[]) { int pipefd[2]; pid_t cpid; char buf; if (argc != 2) { fprintf(stderr, "Usage: %s <string>\n", argv[0]); exit(EXIT_FAILURE); } if (pipe(pipefd) == -1 ... ) { perror("pipe"); exit(EXIT_FAILURE); } cpid = fork(); if (cpid == -1) { perror("fork"); exit(EXIT_FAILURE); } if (cpid == 0) { /* 子プロセスがパイプから読み込む */ cl ... ... ude < stdint.h > #include < stdlib.h > #include < unistd.h > #include < stdio.h > int main(int argc, char *argv[]) { pid_t cpid, w; int wstatus; cpid = fork(); if (cpid == -1) { perror("fork"); exit(EXIT_FAILURE); } if (cpid == 0) { /* Code executed ... (argc == 1) pause(); /* Wait for signals */ _exit(atoi(argv[1])); } else { /* Code executed by parent */ do { w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); if (w == -1) { perror("waitpid"); exit(EXIT_FAILURE); } if (WIFEXITED(wstatus)) { prin ... ... ude < stdint.h > #include < stdlib.h > #include < unistd.h > #include < stdio.h > int main(int argc, char *argv[]) { pid_t cpid, w; int wstatus; cpid = fork(); if (cpid == -1) { perror("fork"); exit(EXIT_FAILURE); } if (cpid == 0) { /* Code executed ... (argc == 1) pause(); /* Wait for signals */ _exit(atoi(argv[1])); } else { /* Code executed by parent */ do { w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); if (w == -1) { perror("waitpid"); exit(EXIT_FAILURE); } if (WIFEXITED(wstatus)) { prin ... ... ude < stdint.h > #include < stdlib.h > #include < unistd.h > #include < stdio.h > int main(int argc, char *argv[]) { pid_t cpid, w; int wstatus; cpid = fork(); if (cpid == -1) { perror("fork"); exit(EXIT_FAILURE); } if (cpid == 0) { /* Code executed ... (argc == 1) pause(); /* Wait for signals */ _exit(atoi(argv[1])); } else { /* Code executed by parent */ do { w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); if (w == -1) { perror("waitpid"); exit(EXIT_FAILURE); } if (WIFEXITED(wstatus)) { prin ... ... _t shm_dtime; /* 最後の分離 (detach) の時刻 */ time_t shm_ctime; /* 作成時刻 / shmctl() による 最後の変更時刻 */ pid_t shm_cpid; /* 作成者 (creator) の PID */ pid_t shm_lpid; /* 最後の shmat (2)/ shmdt (2) の PID */ shmatt_t shm_nattch; /* 現在付加さ ... all that detached tgis segment. shm_ctime Time of creation of segment or time of the last shmctl () IPC_SET operation. shm_cpid その共有メモリーセグメントを作成したプロセスの ID。 shm_lpid ID of the last process that executed a shmat (2) or shmdt (2) ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。