/external/valgrind/memcheck/tests/solaris/ |
shmat.vgtest | 1 prog: shmat
|
shmat.c | 16 void *addr = shmat(shmid, NULL, 0); 18 perror("shmat()");
|
/external/strace/tests/ |
shmxt.c | 16 # define SHMAT "osf_shmat" 18 # define SHMAT "shmat" 40 rc = (long) shmat(bogus_shmid, bogus_shmaddr, bogus_shmflg); 42 SHMAT, bogus_shmid, bogus_shmaddr, bogus_shmflg & ~0xf000, 45 shmat(id, NULL, SHM_REMAP); 47 SHMAT, id, errno2name()); 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); 51 perror_msg_and_skip("shmat SHM_RDONLY"); 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr) [all...] |
shmxt.gen.test | 2 # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (shmxt -a11 -e trace='/(osf_)?shmat,shmdt'); do not edit. 4 run_strace_match_diff -a11 -e trace='/(osf_)?shmat,shmdt'
|
/external/strace/tests-m32/ |
shmxt.c | 16 # define SHMAT "osf_shmat" 18 # define SHMAT "shmat" 40 rc = (long) shmat(bogus_shmid, bogus_shmaddr, bogus_shmflg); 42 SHMAT, bogus_shmid, bogus_shmaddr, bogus_shmflg & ~0xf000, 45 shmat(id, NULL, SHM_REMAP); 47 SHMAT, id, errno2name()); 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); 51 perror_msg_and_skip("shmat SHM_RDONLY"); 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr) [all...] |
shmxt.gen.test | 2 # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (shmxt -a11 -e trace='/(osf_)?shmat,shmdt'); do not edit. 4 run_strace_match_diff -a11 -e trace='/(osf_)?shmat,shmdt'
|
/external/strace/tests-mx32/ |
shmxt.c | 16 # define SHMAT "osf_shmat" 18 # define SHMAT "shmat" 40 rc = (long) shmat(bogus_shmid, bogus_shmaddr, bogus_shmflg); 42 SHMAT, bogus_shmid, bogus_shmaddr, bogus_shmflg & ~0xf000, 45 shmat(id, NULL, SHM_REMAP); 47 SHMAT, id, errno2name()); 49 void *shmaddr = shmat(id, NULL, SHM_RDONLY); 51 perror_msg_and_skip("shmat SHM_RDONLY"); 52 printf("%s(%d, NULL, SHM_RDONLY) = %p\n", SHMAT, id, shmaddr) [all...] |
shmxt.gen.test | 2 # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (shmxt -a11 -e trace='/(osf_)?shmat,shmdt'); do not edit. 4 run_strace_match_diff -a11 -e trace='/(osf_)?shmat,shmdt'
|
/external/strace/xlat/ |
ipccalls.in | 9 SHMAT 21
|
ipccalls.h | 26 #if !(defined(SHMAT) || (defined(HAVE_DECL_SHMAT) && HAVE_DECL_SHMAT)) 27 # define SHMAT 21 55 XLAT(SHMAT),
|
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/ |
8-1-buildonly.c | 11 * void *shmat(int, const void *, int) 22 dummyvar = shmat;
|
/external/ltp/testcases/kernel/syscalls/ipc/shmat/ |
shmat02.c | 21 * 1) shmat() fails and set errno to EINVAL when shmid is invalid. 22 * 2) shmat() fails and set errno to EINVAL when shmaddr is not page 24 * 3) shmat() fails and set errno to EACCES when the shm resource has 61 addr = shmat(*tc->shmid, *tc->shmaddr, 0); 63 tst_res(TFAIL, "shmat() succeeded unexpectedly"); 68 tst_res(TPASS | TERRNO, "shmat() failed as expected"); 70 tst_res(TFAIL | TERRNO, "shmat() failed unexpectedly,"
|
shmat01.c | 22 * 1) shmat() chooses a suitable (unused) address when shmaddr is NULL. 23 * 2) shmat() attaches shm segment to the shmaddr when shmaddr is a 25 * 3) shmat() attaches shm segment to the address equal to shmaddr rounded 28 * 4) shmat() attaches shm segment to the shmaddr for reading when shmflg 113 addr = shmat(shm_id, *tc->shmaddr, tc->flag); 115 tst_res(TFAIL | TERRNO, "shmat() failed"); 145 tst_res(TFAIL, "shmat() failed to attach %s", tc->desp); 147 tst_res(TPASS, "shmat() succeeded to attach %s", tc->desp);
|
/external/fio/os/windows/posix/include/sys/ |
shm.h | 31 time_t shm_atime; /* time of last shmat() */ 38 void *shmat(int shmid, const void *shmaddr, int shmflg);
|
/external/ltp/testcases/kernel/mem/shmt/ |
shmt05.c | 28 * shmctl(2) shmget(2) shmat(2) 79 cp = shmat(shmid, NULL, 0); 82 tst_resm(TFAIL, "shmat"); 87 tst_resm(TPASS, "shmget & shmat"); 97 cp1 = shmat(shmid1, cp + (SIZE / 2), 0); 99 perror("shmat"); 101 "Error: shmat: shmid1 = %d, addr= %p, errno = %d\n", 104 tst_resm(TPASS, "2nd shmget & shmat");
|
shmt06.c | 28 * shmctl(2) shmget(2) shmat(2) 96 cp = shmat(shmid, NULL, 0); 99 perror("shmat"); 101 "Error: shmat: shmid = %d, errno = %d\n", 128 tst_resm(TPASS, "shmget,shmat"); 159 cp = shmat(shmid, NULL, 0); 162 perror("shmat:child process"); 164 "Error: shmat: errno=%d, shmid=%d, child_pid=%d\n", 185 cp = shmat(shmid, NULL, 0); 188 perror("shmat:child process") [all...] |
shmt03.c | 28 * shmctl(2) shmget(2) shmat(2) 79 if ((cp1 = shmat(shmid, NULL, 0)) == (char *)-1) { 80 perror("shmat"); 81 tst_resm(TFAIL, "shmat Failed: shmid = %d, errno = %d\n", 89 tst_resm(TPASS, "1st shmat"); 93 if ((cp2 = shmat(shmid, NULL, 0)) == (char *)-1) { 94 perror("shmat"); 95 tst_resm(TFAIL, "shmat Failed: shmid = %d, errno = %d\n", 105 tst_resm(TPASS, "2nd shmat");
|
shmt04.c | 29 * shmctl(2) shmget(2) shmat(2) 97 cp = shmat(shmid, NULL, 0); 100 perror("shmat"); 102 "Error: shmat: shmid = %d, errno = %d\n", 129 tst_resm(TPASS, "shmget,shmat"); 161 cp = shmat(shmid, NULL, 0); 164 perror("shmat:child process"); 166 "Error: shmat: errno=%d, shmid=%d, child_pid=%d\n",
|
/external/linux-kselftest/tools/testing/selftests/powerpc/syscalls/ |
ipc.h | 35 DO_TEST(shmat, __NR_shmat)
|
/external/valgrind/none/tests/linux/ |
mremap4.c | 16 void *addr = shmat(shmid, NULL, 0);
|
mremap5.c | 16 void *addr = shmat(shmid, NULL, 0);
|
mremap6.c | 16 void *addr = shmat(shmid, NULL, 0);
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
hugeshmat03.c | 26 * call shmat() using the TEST() macro 69 addr = shmat(shm_id_1, NULL, 0); 71 tst_res(TFAIL, "shmat succeeded unexpectedly"); 75 tst_res(TPASS | TERRNO, "shmat failed as expected"); 77 tst_res(TFAIL | TERRNO, "shmat failed unexpectedly "
|
/external/ltp/testcases/cve/ |
cve-2017-5669.c | 19 * Test for CVE-2017-5669 which allows us to map the nil page using shmat. 21 * When the bug is present shmat(..., (void *)1, SHM_RND) will round address 23 * in place, shmat it will return EINVAL instead. We also check to see if the 30 * See commit 95e91b831f (ipc/shm: Fix shmat mmap nil-page protection) 63 shm_addr = shmat(shm_id, ((void *)1), SHM_RND); 67 tst_res(TPASS, "shmat returned EINVAL"); 71 "The bug was not triggered, but the shmat error is unexpected");
|
/external/ltp/testcases/kernel/syscalls/setns/ |
setns02.c | 29 * and verify that child can't shmat it, then set namespace 30 * back to parent one and verify that child is able to do shmat 110 p = shmat(shmid, NULL, 0); 112 tst_resm(TPASS|TERRNO, CP"shmat failed as expected"); 114 tst_resm(TFAIL, CP"shmat unexpectedly suceeded"); 125 p = shmat(shmid, NULL, 0); 127 tst_resm(TFAIL|TERRNO, CP"shmat failed after setns"); 130 tst_resm(TPASS, CP"shmat suceeded");
|