/external/ltp/testcases/kernel/syscalls/ipc/shmctl/ |
D | shmctl01.c | 54 static int shm_id_1 = -1; variable 102 {&shm_id_1, IPC_STAT, &buf, func_istat, stat_setup}, 109 {&shm_id_1, IPC_STAT, &buf, func_istat, stat_setup}, 111 {&shm_id_1, IPC_SET, &buf, func_set, set_setup}, 112 {&shm_id_1, IPC_INFO, (struct shmid_ds *) &info, func_info, NULL}, 114 {&shm_id_1, SHM_LOCK, NULL, func_lock, NULL}, 115 {&shm_id_1, SHM_UNLOCK, NULL, func_unlock, NULL}, 116 {&shm_id_1, IPC_RMID, NULL, func_rmid, NULL}, 138 maybe_run_child(do_child, "ddd", &stat_i, &stat_time, &shm_id_1); in main() 153 shm_id_1 = shmget(shmkey, SHM_SIZE, in main() [all …]
|
D | shmctl03.c | 66 int shm_id_1 = -1; variable 81 &shm_id_1, IPC_STAT, &buf, EACCES}, 84 &shm_id_1, IPC_SET, &buf, EPERM}, 87 &shm_id_1, IPC_RMID, &buf, EPERM},}; 117 rm_shm(shm_id_1); in main() 187 if ((shm_id_1 = shmget(shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL | in setup()
|
D | shmctl02.c | 65 int shm_id_1 = -1; variable 79 &shm_id_1, IPC_STAT, &buf, EACCES}, 185 if ((shm_id_1 = shmget(shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL)) == -1) { in setup() 208 rm_shm(shm_id_1); in cleanup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat01.c | 47 static int shm_id_1 = -1; variable 63 {&shm_id_1, 0, 0}, 68 {&shm_id_1, (void *)-1, SHM_RND}, 70 {&shm_id_1, 0, SHM_RDONLY} 110 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality() 180 shm_id_1 = shmget(shmkey++, shm_size, in setup() 182 if (shm_id_1 == -1) in setup() 189 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmat03.c | 48 static int shm_id_1 = -1; variable 69 addr = shmat(shm_id_1, NULL, 0); in verify_hugeshmat() 100 shm_id_1 = shmget(shmkey, shm_size, in setup() 102 if (shm_id_1 == -1) in setup() 110 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmat02.c | 48 static int shm_id_1 = -1; variable 65 {&shm_id_1, NULL, EINVAL},
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 48 static int shm_id_1 = -1; variable 76 shared = shmat(shm_id_1, 0, 0); in hugeshmdt_test() 87 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality() 147 shm_id_1 = shmget(shmkey, shm_size, in setup() 149 if (shm_id_1 == -1) in setup() 153 shared = shmat(shm_id_1, 0, 0); in setup() 163 rm_shm(shm_id_1); in cleanup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl03.c | 51 static int shm_id_1 = -1; variable 70 {&shm_id_1, IPC_STAT, &buf, EACCES}, 72 {&shm_id_1, IPC_SET, &buf, EPERM}, 74 {&shm_id_1, IPC_RMID, &buf, EPERM}, 130 shm_id_1 = shmget(shmkey, shm_size, in setup() 132 if (shm_id_1 == -1) in setup() 141 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmctl01.c | 53 static int shm_id_1 = -1; variable 97 shm_id_1 = shmget(shmkey, shm_size, in test_hugeshmctl() 99 if (shm_id_1 == -1) in test_hugeshmctl() 110 if (shmctl(shm_id_1, tcases[i].cmd, &buf) == -1) { in test_hugeshmctl() 127 rval = shmat(shm_id_1, 0, 0); in set_shmat() 274 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) { in func_set() 298 if (shmctl(shm_id_1, IPC_STAT, &buf) != -1) in func_rmid() 307 shm_id_1 = -1; in func_rmid() 328 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmctl02.c | 41 static int shm_id_1 = -1; variable 107 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup() 108 if (shm_id_1 == -1) in setup() 120 rm_shm(shm_id_1); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/ipc/shmget/ |
D | shmget01.c | 64 int shm_id_1 = -1; variable 91 shm_id_1 = TEST_RETURN; in main() 93 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) { in main() 127 if (shmctl(shm_id_1, IPC_RMID, NULL) == -1) { in main() 130 shm_id_1 = -1; in main() 167 rm_shm(shm_id_1); in cleanup()
|
D | shmget04.c | 61 int shm_id_1 = -1; variable 136 if ((shm_id_1 = shmget(shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL)) == -1) { in setup() 149 rm_shm(shm_id_1); in cleanup()
|
D | shmget05.c | 67 int shm_id_1 = -1; variable 101 rm_shm(shm_id_1); in main() 168 if ((shm_id_1 = shmget(shmkey, SHM_SIZE, in setup()
|
D | shmget03.c | 64 int shm_id_1 = -1; variable 137 while ((shm_id_1 = shmget(IPC_PRIVATE, SHM_SIZE, IPC_CREAT | in setup() 139 shm_id_arr[num_shms++] = shm_id_1; in setup()
|
D | shmget02.c | 62 int shm_id_1 = -1; variable 157 if ((shm_id_1 = shmget(shmkey, SHM_SIZE, IPC_CREAT | IPC_EXCL | in setup() 180 rm_shm(shm_id_1); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/ipc/shmdt/ |
D | shmdt01.c | 72 int shm_id_1 = -1; variable 107 shared = shmat(shm_id_1, 0, 0); in main() 128 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality() 195 if ((shm_id_1 = shmget(shmkey, INT_SIZE, SHM_RW | IPC_CREAT | in setup() 202 shared = shmat(shm_id_1, 0, 0); in setup() 219 rm_shm(shm_id_1); in cleanup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget01.c | 31 static int shm_id_1 = -1; variable 43 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) { in test_hugeshmget() 81 shm_id_1 = shmget(shmkey, shm_size, in setup() 83 if (shm_id_1 == -1) in setup() 89 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmget03.c | 37 static int shm_id_1 = -1; variable 84 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup() 86 while (shm_id_1 != -1) { in setup() 87 shm_id_arr[num_shms++] = shm_id_1; in setup() 93 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
|
D | hugeshmget05.c | 32 static int shm_id_1 = -1; variable 91 shm_id_1 = shmget(shmkey, shm_size, in setup() 93 if (shm_id_1 == -1) in setup() 102 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmget02.c | 30 static int shm_id_1 = -1; variable 100 shm_id_1 = shmget(shmkey, shm_size, in setup() 102 if (shm_id_1 == -1) in setup() 108 rm_shm(shm_id_1); in cleanup()
|