Home
last modified time | relevance | path

Searched refs:shmkey (Results 1 – 5 of 5) sorted by relevance

/freebsd/tools/regression/sysvshm/
H A Dshmtest.c62 static key_t shmkey; variable
98 shmkey = ftok(argv[1], 4160); in main()
113 if ((sender_shmid = shmget(shmkey, pgsize, IPC_CREAT | 0640)) == -1) in main()
269 if ((shmid = shmget(shmkey, pgsize, 0)) == -1) in receiver()
/freebsd/tools/test/stress2/misc/
H A Dshm2.sh103 key_t shmkey;
109 shmkey = ftok("/tmp", getpid());
112 if ((shmid = shmget(shmkey, size, IPC_CREAT | IPC_EXCL | 0640)) == -1) {
H A Dshm.sh125 key_t shmkey;
131 shmkey = ftok("/tmp", getpid());
135 if ((shmid = shmget(shmkey, len, IPC_CREAT | IPC_EXCL |
/freebsd/tools/test/stress2/testcases/shm/
H A Dshm.c45 static key_t shmkey; variable
63 shmkey = ftok("/tmp", seed); in setup()
64 if ((shmid = shmget(shmkey, 10 * pgsize, IPC_CREAT | IPC_EXCL | 0640)) == -1) { in setup()
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_sysv.c92 key_t msgkey, semkey, shmkey; variable
626 shmkey = get_ftok(4160); in ATF_TC_BODY()
627 ATF_REQUIRE_MSG(shmkey != (key_t)-1, "get_ftok failed"); in ATF_TC_BODY()
629 ATF_REQUIRE_MSG((sender_shmid = shmget(shmkey, pgsize, in ATF_TC_BODY()
753 shmid = shmget(shmkey, pgsize, 0); in sharer()
784 shmkey = get_ftok(4160); in ATF_TC_BODY()
785 ATF_REQUIRE_MSG(shmkey != (key_t)-1, "get_ftok failed"); in ATF_TC_BODY()
787 ATF_REQUIRE_MSG((shmid_remap = shmget(shmkey, pgsize, in ATF_TC_BODY()