JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... uniq, sort するので、クライアントが同じディレクトリを 複数マウントしているかどうかは判別できない。 著者 Rick Sladkey < jrs@world.std.com > ... ... dio.h > #include < stdlib.h > #include < unistd.h > int main(int argc, char *argv[]) { char *newargv[] = { NULL, "hello", "world", NULL }; char *newenviron[] = { NULL }; if (argc != 2) { fprintf(stderr, "Usage: %s <file-to-exec>\n", argv[0]); exit(EXI ... のようにする。 $ cc myecho.c -o myecho $ cc execve.c -o execve $ ./execve ./myecho argv[0]: ./myecho argv[1]: hello argv[2]: world さらに、これらのプログラムを使って、スクリプトインタープリターの例を示す。 このために、「インタープリター」として先ほど作成 ... てスクリプトを実行する。 $ ./execve ./script argv[0]: ./myecho argv[1]: script-arg argv[2]: ./script argv[3]: hello argv[4]: world 関連項目 chmod (2), execveat (2), fork (2), get_robust_list (2), ptrace (2), exec (3), fexecve (3), getopt (3), system (3) ... ... gment, copies the string to the shared memory, and modifies the semaphore value. $ ./svshm_string_write 1114194 15 'Hello, world' Returning to the terminal where the "reader" is running, we see that the program has ceased waiting on the semaphore and ... has printed the string that was copied into the shared memory segment by the writer: Hello, world プログラムのソース: svshm_string.h The following header file is included by the "reader" and "writer" programs. #include < ... ... gment, copies the string to the shared memory, and modifies the semaphore value. $ ./svshm_string_write 1114194 15 'Hello, world' Returning to the terminal where the "reader" is running, we see that the program has ceased waiting on the semaphore and ... has printed the string that was copied into the shared memory segment by the writer: Hello, world プログラムのソース: svshm_string.h The following header file is included by the "reader" and "writer" programs. #include < ... ... gment, copies the string to the shared memory, and modifies the semaphore value. $ ./svshm_string_write 1114194 15 'Hello, world' Returning to the terminal where the "reader" is running, we see that the program has ceased waiting on the semaphore and ... has printed the string that was copied into the shared memory segment by the writer: Hello, world プログラムのソース: svshm_string.h The following header file is included by the "reader" and "writer" programs. #include < ... ... ば、次のような使い方は許されない: #include < stdio.h > int main(void) { char buf[BUFSIZ]; setbuf(stdin, buf); printf("Hello, world!\n"); return 0; } 関連項目 stdbuf (1), fclose (3), fflush (3), fopen (3), fread (3), malloc (3), printf (3), puts (3) この ... ... ば、次のような使い方は許されない: #include < stdio.h > int main(void) { char buf[BUFSIZ]; setbuf(stdin, buf); printf("Hello, world!\n"); return 0; } 関連項目 stdbuf (1), fclose (3), fflush (3), fopen (3), fread (3), malloc (3), printf (3), puts (3) この ... ... ば、次のような使い方は許されない: #include < stdio.h > int main(void) { char buf[BUFSIZ]; setbuf(stdin, buf); printf("Hello, world!\n"); return 0; } 関連項目 stdbuf (1), fclose (3), fflush (3), fopen (3), fread (3), malloc (3), printf (3), puts (3) この ... ... ば、次のような使い方は許されない: #include < stdio.h > int main(void) { char buf[BUFSIZ]; setbuf(stdin, buf); printf("Hello, world!\n"); return 0; } 関連項目 stdbuf (1), fclose (3), fflush (3), fopen (3), fread (3), malloc (3), printf (3), puts (3) この ... ... ar/run/nginx.pid nginx のプロセス ID を保持します。 このファイルの内容は機密情報ではないため、 だれでも見ることができます (world-readable です)。 /etc/nginx/nginx.conf メインの設定ファイル。 /var/log/error.log エラーログファイル。 終了ステータス 終了ス ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。