JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... (int argc, char *argv[]) { if (argc != 2) { fprintf(stderr, "Usage: %s /shm-path\n", argv[0]); exit(EXIT_FAILURE); } char *shmpath = argv[1]; /* Create shared memory object and set its size to the size of our structure */ int fd = shm_open(shmpath, O_CR ... still using the object, this is okay. The object will be removed only after all open references are closed. */ shm_unlink(shmpath); exit(EXIT_SUCCESS); } プログラムのソース: pshm_ucase_send.c The "send" program takes two command-line arguments: the pat ... gc, char *argv[]) { if (argc != 3) { fprintf(stderr, "Usage: %s /shm-path string\n", argv[0]); exit(EXIT_FAILURE); } char *shmpath = argv[1]; char *string = argv[2]; size_t len = strlen(string); if (len > BUF_SIZE) { fprintf(stderr, "String is too long\ ... ... (int argc, char *argv[]) { if (argc != 2) { fprintf(stderr, "Usage: %s /shm-path\n", argv[0]); exit(EXIT_FAILURE); } char *shmpath = argv[1]; /* Create shared memory object and set its size to the size of our structure */ int fd = shm_open(shmpath, O_CR ... still using the object, this is okay. The object will be removed only after all open references are closed. */ shm_unlink(shmpath); exit(EXIT_SUCCESS); } プログラムのソース: pshm_ucase_send.c The "send" program takes two command-line arguments: the pat ... gc, char *argv[]) { if (argc != 3) { fprintf(stderr, "Usage: %s /shm-path string\n", argv[0]); exit(EXIT_FAILURE); } char *shmpath = argv[1]; char *string = argv[2]; size_t len = strlen(string); if (len > BUF_SIZE) { fprintf(stderr, "String is too long\ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。