/third_party/musl/libc-test/src/functional/ |
H A D | ipc_shm.c | 39 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() 49 t_error("shmget(IPC_CREAT|IPC_EXCL) should have failed with EEXIST, got %s\n", strerror(errno)); in set() 51 /* check if shmget initilaized the msshmid_ds structure correctly */ in set() 90 T(shmid = shmget(k, 0, 0)); in get()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
H A D | hugeshmget03.c | 32 TEST(shmget(IPC_PRIVATE, shm_size, in test_hugeshmget() 35 tst_res(TFAIL, "shmget succeeded unexpectedly"); in test_hugeshmget() 39 tst_res(TPASS | TTERRNO, "shmget failed as expected"); in test_hugeshmget() 41 tst_res(TFAIL | TTERRNO, "shmget failed unexpectedly " in test_hugeshmget() 63 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup() 72 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup() 76 tst_brk(TBROK | TERRNO, "shmget #setup"); in setup()
|
H A D | hugeshmget02.c | 44 shm_id_2 = shmget(*(tcases[i].skey), 0, 0); in test_hugeshmget() 49 TEST(shmget(*(tcases[i].skey), tcases[i].size_coe * shm_size, in test_hugeshmget() 52 tst_res(TFAIL, "shmget succeeded unexpectedly"); in test_hugeshmget() 58 "shmget failed unexpectedly, expected %s", in test_hugeshmget() 63 tst_res(TPASS | TTERRNO, "shmget failed as expected"); in test_hugeshmget() 80 shm_id_1 = shmget(shmkey, shm_size, in setup() 83 tst_brk(TBROK | TERRNO, "shmget #setup"); in setup()
|
H A D | hugeshmget05.c | 48 TEST(shmget(shmkey, shm_size, SHM_HUGETLB | SHM_RW)); in do_child() 50 tst_res(TFAIL, "shmget succeeded unexpectedly"); in do_child() 54 tst_res(TPASS | TTERRNO, "shmget failed as expected"); in do_child() 56 tst_res(TFAIL | TTERRNO, "shmget failed unexpectedly " in do_child() 72 shm_id_1 = shmget(shmkey, shm_size, in setup() 75 tst_brk(TBROK | TERRNO, "shmget #setup"); in setup()
|
H A D | hugeshmget01.c | 7 * hugeshmget01 - test that shmget() correctly creates a large 61 shm_id_1 = shmget(shmkey, shm_size, in setup() 64 tst_brk(TBROK | TERRNO, "shmget"); in setup()
|
/third_party/ltp/testcases/kernel/containers/sysvipc/ |
H A D | shmnstest.c | 32 TEST(shmget(TESTKEY, 100, 0)); in check_shmid() 54 ipc_id = shmget(TESTKEY, 100, IPC_CREAT); in setup()
|
H A D | shmem_2nstest.c | 60 TEST(shmget(TESTKEY, 100, 0)); in check_shmem2()
|
/third_party/ltp/testcases/kernel/mem/shmt/ |
H A D | shmt05.c | 28 * shmctl(2) shmget(2) shmat(2) 73 if ((shmid = shmget(key[0], SIZE, IPC_CREAT | 0666)) < 0) { in main() 74 perror("shmget"); in main() 76 "Error: shmget: shmid = %d, errno = %d\n", in main() 87 tst_resm(TPASS, "shmget & shmat"); in main() 91 if ((shmid1 = shmget(key[1], SIZE, IPC_CREAT | 0666)) < 0) { in main() 94 "Error: shmget: shmid1 = %d, errno = %d\n", in main() 104 tst_resm(TPASS, "2nd shmget & shmat"); in main()
|
H A D | shmt06.c | 28 * shmctl(2) shmget(2) shmat(2) 87 if ((shmid = shmget(key, SIZE, IPC_CREAT | 0666)) < 0) { in main() 88 perror("shmget"); in main() 89 tst_resm(TFAIL, "Error: shmget: shmid = %d, errno = %d", in main() 128 tst_resm(TPASS, "shmget,shmat"); in main() 153 if ((shmid = shmget(key, SIZE, 0)) < 0) { in child() 154 perror("shmget:child process"); in child() 156 "Error: shmget: errno=%d, shmid=%d, child_pid=%d", in child()
|
H A D | shmt04.c | 29 * shmctl(2) shmget(2) shmat(2) 88 if ((shmid = shmget(key, SIZE, IPC_CREAT | 0666)) < 0) { in main() 89 perror("shmget"); in main() 90 tst_resm(TFAIL, "Error: shmget: shmid = %d, errno = %d", in main() 129 tst_resm(TPASS, "shmget,shmat"); in main() 155 if ((shmid = shmget(key, SIZE, 0)) < 0) { in child() 156 perror("shmget:child process"); in child() 158 "Error: shmget: errno=%d, shmid=%d, child_pid=%d", in child()
|
H A D | shmt02.c | 28 * shmctl(2) shmget(2) 67 if ((shmid = shmget(key, 16 * K_1, IPC_CREAT | 0666)) < 0) { in main() 68 perror("shmget"); in main() 70 "shmget Failed: shmid = %d, errno = %d", in main() 74 tst_resm(TPASS, "shmget"); in main()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/ |
H A D | shmget03.c | 30 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() 48 tst_brk(TBROK | TERRNO, "shmget failed unexpectedly"); in setup()
|
H A D | shmget02.c | 95 TST_EXP_FAIL2(shmget(*tc->shmkey, tc->size, tc->flags), tc->exp_err, in do_test() 96 "shmget(%i, %lu, %i)", *tc->shmkey, tc->size, tc->flags); in do_test() 107 TST_EXP_FAIL2(shmget(*tc->shmkey, tc->size, tc->flags), tc->exp_err, in do_test() 108 "shmget(%i, %lu, %i)", *tc->shmkey, tc->size, tc->flags); in do_test()
|
H A D | shmget04.c | 13 * unpriviledged user and call shmget() with SHM_RD/SHM_WR/SHM_RW flag to 43 TST_EXP_FAIL2(shmget(shmkey, SHM_SIZE, tc->flag), EACCES, "shmget(%i, %i, %i)", in verify_shmget()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
H A D | hugeshmctl02.c | 117 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup() 119 tst_brk(TBROK | TERRNO, "shmget #1"); in setup() 122 shm_id_2 = shmget(shmkey + 1, shm_size, in setup() 125 tst_brk(TBROK | TERRNO, "shmget #2"); in setup()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/ |
H A D | 11-1-buildonly.c | 11 * int shmget(key_t, size_t, int) 22 dummyvar = shmget; in dummyfcn()
|
/third_party/musl/src/ipc/ |
H A D | shmget.c | 6 int shmget(key_t key, size_t size, int flag) in shmget() function
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/ |
H A D | shmctl06.c | 33 shmid = shmget(key, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in run()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
H A D | cpuset_memory_test.c | 261 shmid = shmget(key, memsize, flag); in shm() 263 err(1, "shmget() failed\n"); in shm() 266 shmid = shmget(key, memsize, flag); in shm() 268 err(1, "shmget() failed\n"); in shm()
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | shm.h | 64 int shmget(key_t, size_t, int);
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/ |
H A D | shm.h | 58 int shmget(key_t, size_t, int);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | shm.h | 64 int shmget(key_t, size_t, int);
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | shm.h | 64 int shmget(key_t, size_t, int);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | shm.h | 64 int shmget(key_t, size_t, int);
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
H A D | hugeshmat03.c | 80 shm_id_1 = shmget(shmkey, shm_size, in setup() 83 tst_brk(TBROK | TERRNO, "shmget"); in setup()
|