/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/ |
H A D | page-poisoning.c | 360 if ((ipc = shmat(ipc_entry, 0, 0)) == (void *)-1) in dirty_anonymous() 361 err("shmat error\n"); in dirty_anonymous() 376 if ((ipc = shmat(ipc_entry, 0, 0)) == (void *)-1) in dirty_anonymous_unmap() 377 err("shmat error\n"); in dirty_anonymous_unmap() 393 if ((ipc = shmat(ipc_entry, 0, 0)) == (void *)-1) in mlocked_anonymous() 394 err("shmat error\n"); in mlocked_anonymous() 427 if ((ipc = shmat(ipc_entry, 0, 0)) == (void *)-1) in file_clean() 428 err("shmat error\n"); in file_clean() 440 if ((ipc = shmat(ipc_entry, 0, 0)) == (void *)-1) in file_clean_mlocked() 441 err("shmat erro in file_clean_mlocked() [all...] |
/third_party/musl/src/ipc/ |
H A D | shmat.c | 6 void *shmat(int id, const void *addr, int flag) in shmat() function 11 void *shmat(int id, const void *addr, int flag) in shmat() function
|
/third_party/ltp/testcases/kernel/mem/shmt/ |
H A D | shmt09.c | 102 c1 = shmat(shmid, NULL, 0); in main() 104 perror("shmat"); in main() 106 "Error: shmat Failed, shmid = %d, errno = %d", in main() 112 tst_resm(TPASS, "sbrk, sbrk, shmget, shmat"); in main() 123 c2 = shmat(shmid, vp, 0); in main() 126 "ERROR: shmat: succeeded!: shmid = %d, shmaddr = %p, " in main() 132 tst_resm(TPASS, "sbrk, shmat"); in main() 151 c3 = shmat(shmid, vp, SHM_RND); in main() 155 "Error: shmat Failed, shmid = %d, errno = %d", in main() 161 tst_resm(TPASS, "sbrk, shmat"); in main() [all...] |
H A D | shmt06.c | 28 * shmctl(2) shmget(2) shmat(2) 96 cp = shmat(shmid, NULL, 0); in main() 99 perror("shmat"); in main() 101 "Error: shmat: shmid = %d, errno = %d", in main() 128 tst_resm(TPASS, "shmget,shmat"); in main() 159 cp = shmat(shmid, NULL, 0); in child() 162 perror("shmat:child process"); in child() 164 "Error: shmat: errno=%d, shmid=%d, child_pid=%d", in child() 185 cp = shmat(shmid, NULL, 0); in child() 188 perror("shmat in child() [all...] |
H A D | shmt03.c | 28 * shmctl(2) shmget(2) shmat(2) 79 if ((cp1 = shmat(shmid, NULL, 0)) == (char *)-1) { in main() 80 perror("shmat"); in main() 81 tst_resm(TFAIL, "shmat Failed: shmid = %d, errno = %d", in main() 89 tst_resm(TPASS, "1st shmat"); in main() 93 if ((cp2 = shmat(shmid, NULL, 0)) == (char *)-1) { in main() 94 perror("shmat"); in main() 95 tst_resm(TFAIL, "shmat Failed: shmid = %d, errno = %d", in main() 105 tst_resm(TPASS, "2nd shmat"); in main()
|
H A D | shmt05.c | 28 * shmctl(2) shmget(2) shmat(2) 79 cp = shmat(shmid, NULL, 0); in main() 82 tst_resm(TFAIL, "shmat"); in main() 87 tst_resm(TPASS, "shmget & shmat"); in main() 97 cp1 = shmat(shmid1, cp + (SIZE / 2), 0); in main() 99 perror("shmat"); in main() 101 "Error: shmat: shmid1 = %d, addr= %p, errno = %d\n", in main() 104 tst_resm(TPASS, "2nd shmget & shmat"); in main()
|
H A D | shmt08.c | 28 * shmctl(2) shmget(2) shmat(2) shmdt(2) 72 cp = shmat(shmid, NULL, 0); in main() 79 cp1 = shmat(shmid, NULL, 0); in main() 86 tst_resm(TPASS, "shmget,shmat"); in main()
|
H A D | shmt10.c | 25 * shmt10.c - test simultaneous shmat/shmdt 28 * shmget, shmat, shmdt, shmctl 111 if ((c1 = shmat(shmid, NULL, 0)) == (char *)-1) { in main() 113 "Error shmat: iter %d, shmid = %d", i, in main() 123 tst_resm(TPASS, "shmat,shmdt"); in main() 148 if ((c1 = shmat(shmid, NULL, 0)) == (char *)-1) { in child() 151 "Error:child proc: shmat: iter %d, shmid = %d", in child()
|
H A D | shmt04.c | 29 * shmctl(2) shmget(2) shmat(2) 97 cp = shmat(shmid, NULL, 0); in main() 100 perror("shmat"); in main() 102 "Error: shmat: shmid = %d, errno = %d", in main() 129 tst_resm(TPASS, "shmget,shmat"); in main() 161 cp = shmat(shmid, NULL, 0); in child() 164 perror("shmat:child process"); in child() 166 "Error: shmat: errno=%d, shmid=%d, child_pid=%d", in child()
|
H A D | shmt02.c | 78 cp = shmat(shmid, NULL, 0); in main() 81 perror("shmat"); in main() 82 tst_resm(TFAIL, "shmat Failed: shmid = %d, errno = %d", in main() 91 tst_resm(TPASS, "shmat"); in main()
|
H A D | shmt07.c | 28 * shmctl(2) shmget(2) shmat(2) 78 cp = shmat(shmid, NULL, 0); in main() 81 perror("shmat"); in main() 83 "Error: shmat: shmid = %d, errno = %d", in main() 92 tst_resm(TPASS, "shmget,shmat"); in main()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
H A D | hugeshmdt01.c | 58 shared = shmat(shm_id_1, 0, 0); in hugeshmdt_test() 60 tst_brk(TBROK | TERRNO, "shmat #2: reattach"); in hugeshmdt_test() 133 shared = shmat(shm_id_1, 0, 0); in setup() 135 tst_brk(TBROK | TERRNO, "shmat #1"); in setup()
|
/third_party/musl/libc-test/src/functional/ |
H A D | ipc_shm.c | 70 if ((p=shmat(shmid, 0, 0)) == 0) in set() 71 t_error("shmat failed: %s\n", strerror(errno)); in set() 93 if ((p=shmat(shmid, 0, SHM_RDONLY)) == 0) in get() 94 t_error("shmat failed: %s\n", strerror(errno)); in get()
|
/third_party/ltp/testcases/kernel/syscalls/setns/ |
H A D | setns02.c | 9 * and verify that child can't shmat it, then set namespace 10 * back to parent one and verify that child is able to do shmat 87 p = shmat(shmid, NULL, 0); in do_child_newipc() 89 tst_res(TPASS|TERRNO, CP"shmat failed as expected"); in do_child_newipc() 91 tst_res(TFAIL, CP"shmat unexpectedly suceeded"); in do_child_newipc() 102 p = shmat(shmid, NULL, 0); in do_child_newipc() 104 tst_res(TFAIL|TERRNO, CP"shmat failed after setns"); in do_child_newipc() 107 tst_res(TPASS, CP"shmat suceeded"); in do_child_newipc()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/ |
H A D | 8-1-buildonly.c | 11 * void *shmat(int, const void *, int) 22 dummyvar = shmat; in dummyfcn()
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | shm.h | 61 void *shmat(int, const void *, int);
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/ |
H A D | shm.h | 55 void *shmat(int, const void *, int);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | shm.h | 61 void *shmat(int, const void *, int);
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | shm.h | 61 void *shmat(int, const void *, int);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | shm.h | 61 void *shmat(int, const void *, int);
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
H A D | hugeshmat03.c | 15 * call shmat() using the TEST() macro 51 addr = shmat(shm_id_1, NULL, 0); in verify_hugeshmat() 53 tst_res(TFAIL, "shmat succeeded unexpectedly"); in verify_hugeshmat() 57 tst_res(TPASS | TERRNO, "shmat failed as expected"); in verify_hugeshmat() 59 tst_res(TFAIL | TERRNO, "shmat failed unexpectedly " in verify_hugeshmat()
|
H A D | hugeshmat02.c | 11 * call shmat() using three invalid test cases 57 addr = shmat(*(tc->shmid), tc->addr, 0); in verify_hugeshmat() 59 tst_res(TFAIL, "shmat suceeded unexpectedly"); in verify_hugeshmat() 64 tst_res(TPASS | TERRNO, "shmat failed as " in verify_hugeshmat() 67 tst_res(TFAIL | TERRNO, "shmat failed " in verify_hugeshmat()
|
H A D | hugeshmat05.c | 7 * shmget()/shmat() fails to allocate huge pages shared memory segment 51 shmaddr = shmat(shmid, 0, 0); in shm_test()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmat/ |
H A D | shmat03.c | 14 * ipc/shm: fix shmat() nil address after round-down when remapping 21 * 95e91b831f87 (ipc/shm: Fix shmat mmap nil-page protection) 22 * a73ab244f0da (Revert "ipc/shm: Fix shmat mmap nil-page protect...) 23 * 8f89c007b6de (ipc/shm: fix shmat() nil address after round-dow...) 67 * shmat() for 0 (or < PAGESIZE with RND flag) has to fail with REMAPs in run() 70 shm_addr = shmat(shm_id, ((void *)1), SHM_RND | SHM_REMAP); in run() 74 tst_res(TPASS, "shmat returned EINVAL"); in run() 78 "The bug was not triggered, but the shmat error is unexpected"); in run()
|
/third_party/musl/include/sys/ |
H A D | shm.h | 61 void *shmat(int, const void *, int);
|