Home
last modified time | relevance | path

Searched refs:IPC_CREAT (Results 1 – 25 of 151) sorted by relevance

1234567

/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/
Dshmget02.c57 {&shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL, 0, 0, EEXIST},
58 {&shmkey1, SHMMIN - 1, IPC_CREAT | IPC_EXCL, 0, 0, EINVAL},
59 {&shmkey1, SHMMAX + 1, IPC_CREAT | IPC_EXCL, 0, 0, EINVAL},
62 {&shmkey1, SHM_SIZE, IPC_CREAT | SHM_HUGETLB, 0, 1, EPERM},
63 {&shmkey1, SHM_SIZE, IPC_CREAT | SHM_HUGETLB, 0, 0, ENOMEM}
124 shm_id = SAFE_SHMGET(shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL); in setup()
Dshmget03.c30 TST_EXP_FAIL2(shmget(shmkey + maxshms, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW), ENOSPC, in verify_shmget()
31 "shmget(%i, %i, %i)", shmkey + maxshms, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in verify_shmget()
46 res = shmget(shmkey + num, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
Dshmget06.c35 shm_id[1] = SAFE_SHMGET(shmkey[1], SHM_SIZE, IPC_CREAT | SHM_RW); in verify_shmget()
52 shm_id[0] = SAFE_SHMGET(shmkey[0], SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/
Dshmctl02.c111 shm_id3 = SAFE_SHMGET(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
119 shm_id1 = SAFE_SHMGET(shmkey1, SHM_SIZE, IPC_CREAT | IPC_EXCL); in setup()
120 shm_id2 = SAFE_SHMGET(shmkey2, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
122 tmp = shm_rem = SAFE_SHMGET(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | SHM_RW); in setup()
Dshmctl05.c35 int id = SAFE_SHMGET(0xF00F, 4096, IPC_CREAT|0700); in thrproc()
40 id = SAFE_SHMGET(0xF00F, 4096, IPC_CREAT|0700); in thrproc()
66 id = SAFE_SHMGET(0xF00F, 4096, IPC_CREAT|0700); in do_test()
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/
Dmsgget03.c30 TST_EXP_FAIL2(msgget(msgkey + maxmsgs, IPC_CREAT | IPC_EXCL), ENOSPC, in verify_msgget()
31 "msgget(%i, %i)", msgkey + maxmsgs, IPC_CREAT | IPC_EXCL); in verify_msgget()
49 res = msgget(msgkey + num, IPC_CREAT | IPC_EXCL); in setup()
Dmsgget05.c34 queue_id[1] = SAFE_MSGGET(msgkey[1], IPC_CREAT | MSG_RW); in verify_msgget()
51 queue_id[0] = SAFE_MSGGET(msgkey[0], IPC_CREAT | MSG_RW); in setup()
Dmsgget02.c42 {&msgkey, IPC_CREAT | IPC_EXCL, EEXIST, 0},
80 queue_id = SAFE_MSGGET(msgkey, IPC_CREAT | IPC_EXCL); in setup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget03.c33 SHM_HUGETLB | IPC_CREAT | IPC_EXCL | SHM_RW)); in test_hugeshmget()
64 SHM_HUGETLB | IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
73 SHM_HUGETLB | IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
Dhugeshmget02.c29 {&shmkey2, 0, SHM_HUGETLB | IPC_CREAT | IPC_EXCL | SHM_RW, EINVAL},
33 {&shmkey, 1, SHM_HUGETLB | IPC_CREAT | IPC_EXCL | SHM_RW, EEXIST},
81 SHM_HUGETLB | IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
/third_party/ltp/testcases/kernel/syscalls/ipc/msgctl/
Dmsgctl04.c92 msg_id3 = SAFE_MSGGET(IPC_PRIVATE, IPC_CREAT | MSG_RW); in setup()
100 msg_id1 = SAFE_MSGGET(msgkey1, IPC_CREAT | IPC_EXCL); in setup()
101 msg_id2 = SAFE_MSGGET(msgkey2, IPC_CREAT | IPC_EXCL | MSG_RD | MSG_WR); in setup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/
D12-1-buildonly.c22 #ifndef IPC_CREAT
23 #error IPC_CREAT not defined
/third_party/musl/libc-test/src/functional/
Dipc_sem.c44 T(semid = semget(k, 1, IPC_CREAT|0666)); in inc()
46 T(semid = semget(k, 1, IPC_CREAT|IPC_EXCL|0666)); in inc()
53 if (semget(k, 1, IPC_CREAT|IPC_EXCL|0666) != -1 || errno != EEXIST) in inc()
Dipc_shm.c39 T(shmid = shmget(k, 100, IPC_CREAT|0666)); in set()
41 T(shmid = shmget(k, 100, IPC_CREAT|IPC_EXCL|0666)); in set()
48 if (shmget(k, 100, IPC_CREAT|IPC_EXCL|0666) != -1 || errno != EEXIST) in set()
Dipc_msg.c42 T(qid = msgget(k, IPC_CREAT|0666)); in snd()
44 T(qid = msgget(k, IPC_CREAT|IPC_EXCL|0666)); in snd()
51 if (msgget(k, IPC_CREAT|IPC_EXCL|0666) != -1 || errno != EEXIST) in snd()
/third_party/ltp/testcases/kernel/mem/shmt/
Dshmt05.c73 if ((shmid = shmget(key[0], SIZE, IPC_CREAT | 0666)) < 0) { in main()
91 if ((shmid1 = shmget(key[1], SIZE, IPC_CREAT | 0666)) < 0) { in main()
/third_party/ltp/testcases/kernel/syscalls/ipc/semget/
Dsemget02.c74 IPC_CREAT | IPC_EXCL, EEXIST}
149 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL)) == -1) { in setup()
Dsemget05.c94 TEST(semget(IPC_PRIVATE, PSEMS, IPC_CREAT | IPC_EXCL | SEM_RA)); in main()
127 while ((sem_q = semget(IPC_PRIVATE, PSEMS, IPC_CREAT | IPC_EXCL)) != -1) { in setup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c85 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup()
91 SHM_HUGETLB | IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
/third_party/ltp/testcases/kernel/containers/sysvipc/
Dshmem_2nstest.c73 id1 = shmget(TESTKEY, 100, IPC_CREAT); in check_shmem1()
99 id2 = shmget(TESTKEY, 100, IPC_CREAT); in check_shmem2()
Dshm_comm.c64 id = shmget(TESTKEY, SHMSIZE, IPC_CREAT); in chld1_shm()
97 id = shmget(TESTKEY, SHMSIZE, IPC_CREAT); in chld2_shm()
Dmsg_comm.c69 id = msgget(TESTKEY, IPC_CREAT | 0600); in chld1_msg()
111 id = msgget(TESTKEY, IPC_CREAT | 0600); in chld2_msg()
Dsem_comm.c62 id = semget(TESTKEY, 1, IPC_CREAT); in chld1_sem()
106 id = semget(TESTKEY, 1, IPC_CREAT); in chld2_sem()
Dsemtest_2ns.c99 id1 = semget(MY_KEY, 1, IPC_CREAT | IPC_EXCL | 0666); in check_sem1()
139 id2 = semget(MY_KEY, 1, IPC_CREAT | IPC_EXCL | 0666); in check_sem2()
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/
Dsemop03.c79 sem_id = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL | SEM_RA); in setup()
125 sem_id = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL | SEM_RA); in run()

1234567