JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 2 of about 2 for shmp (0.001 sec.)
Man page of SHM_OPEN 9357
SHM_OPEN Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 shm_open, shm_unlink - POSIX 共有メモリーオブジェクトの作成/オープン/削除を行う 書式 #include < sys/mman.h > #include < sys/stat.h > /* mode 定数用 ... (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 ... d, sizeof(struct shmbuf)) == -1) errExit("ftruncate"); /* Map the object into the caller's address space */ struct shmbuf *shmp = mmap(NULL, sizeof(*shmp), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); if (shmp == MAP_FAILED) errExit("mmap"); /* Initia ... lize semaphores as process-shared, with value 0 */ if (sem_init(&shmp->sem1, 1, 0) == -1) errExit("sem_init-sem1"); if (sem_init(&shmp->sem2, 1, 0) == -1) errExit("sem_init-sem2"); /* Wait for ...
https://man.mtool.work/man/20260915/man3/shm_open.3.html
Man page of SHM_OPEN 9357
SHM_OPEN Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 shm_open, shm_unlink - POSIX 共有メモリーオブジェクトの作成/オープン/削除を行う 書式 #include < sys/mman.h > #include < sys/stat.h > /* mode 定数用 ... (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 ... d, sizeof(struct shmbuf)) == -1) errExit("ftruncate"); /* Map the object into the caller's address space */ struct shmbuf *shmp = mmap(NULL, sizeof(*shmp), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); if (shmp == MAP_FAILED) errExit("mmap"); /* Initia ... lize semaphores as process-shared, with value 0 */ if (sem_init(&shmp->sem1, 1, 0) == -1) errExit("sem_init-sem1"); if (sem_init(&shmp->sem2, 1, 0) == -1) errExit("sem_init-sem2"); /* Wait for ...
https://man.mtool.work/man/20260915/man3/shm_unlink.3.html
PREV 1 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。