/external/ltp/testcases/kernel/syscalls/ipc/shmctl/ |
D | shmctl01.c | 53 static int shm_id_1 = -1; variable 101 {&shm_id_1, IPC_STAT, &buf, func_istat, stat_setup}, 108 {&shm_id_1, IPC_STAT, &buf, func_istat, stat_setup}, 110 {&shm_id_1, IPC_SET, &buf, func_set, set_setup}, 111 {&shm_id_1, IPC_INFO, (struct shmid_ds *) &info, func_info, NULL}, 113 {&shm_id_1, SHM_LOCK, NULL, func_lock, NULL}, 114 {&shm_id_1, SHM_UNLOCK, NULL, func_unlock, NULL}, 115 {&shm_id_1, IPC_RMID, NULL, func_rmid, NULL}, 137 maybe_run_child(do_child, "ddd", &stat_i, &stat_time, &shm_id_1); in main() 152 shm_id_1 = shmget(shmkey, SHM_SIZE, in main() [all …]
|
D | shmctl03.c | 65 int shm_id_1 = -1; variable 80 &shm_id_1, IPC_STAT, &buf, EACCES}, 83 &shm_id_1, IPC_SET, &buf, EPERM}, 86 &shm_id_1, IPC_RMID, &buf, EPERM},}; 118 rm_shm(shm_id_1); in main() 188 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/syscalls/ipc/shmat/ |
D | shmat01.c | 51 int shm_id_1 = -1; variable 127 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality() 200 TC[0].shmid = &shm_id_1; in setup() 206 TC[1].shmid = &shm_id_1; in setup() 212 TC[2].shmid = &shm_id_1; in setup() 218 TC[3].shmid = &shm_id_1; in setup() 227 shm_id_1 = shmget(shmkey++, INT_SIZE, SHM_RW | IPC_CREAT | IPC_EXCL); in setup() 228 if (shm_id_1 == -1) in setup() 235 rm_shm(shm_id_1); in cleanup()
|
D | shmat03.c | 64 int shm_id_1 = -1; variable 100 rm_shm(shm_id_1); in main() 126 addr = shmat(shm_id_1, NULL, 0); in do_child() 168 shm_id_1 = shmget(shmkey, SHM_SIZE, SHM_RW | IPC_CREAT | IPC_EXCL); in setup() 169 if (shm_id_1 == -1) in setup()
|
D | shmat02.c | 64 int shm_id_1 = -1; variable 88 {&shm_id_1, 0, EINVAL}, in setup_tc()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget01.c | 69 static int shm_id_1 = -1; variable 92 shm_id_1 = shmget(shmkey, shm_size, in main() 94 if (shm_id_1 == -1) { in main() 98 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) { in main() 132 if (shmctl(shm_id_1, IPC_RMID, NULL) == -1) in main() 135 shm_id_1 = -1; in main() 163 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmget03.c | 70 static int shm_id_1 = -1; variable 134 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup() 136 while (shm_id_1 != -1) { in setup() 137 shm_id_arr[num_shms++] = shm_id_1; in setup() 143 shm_id_1 = shmget(IPC_PRIVATE, shm_size, in setup()
|
D | hugeshmget05.c | 71 static int shm_id_1 = -1; variable 149 shm_id_1 = shmget(shmkey, shm_size, in setup() 151 if (shm_id_1 == -1) in setup() 162 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmget02.c | 62 static int shm_id_1 = -1; variable 154 shm_id_1 = shmget(shmkey, shm_size, IPC_CREAT | IPC_EXCL | SHM_RW); in setup() 155 if (shm_id_1 == -1) in setup() 163 rm_shm(shm_id_1); in cleanup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat01.c | 70 static int shm_id_1 = -1; variable 86 &shm_id_1, 0, 0}, 92 &shm_id_1, (void *)-1, SHM_RND}, 95 &shm_id_1, 0, SHM_RDONLY} 151 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality() 223 shm_id_1 = shmget(shmkey++, shm_size, in setup() 225 if (shm_id_1 == -1) in setup() 233 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmat03.c | 68 static int shm_id_1 = -1; variable 116 addr = shmat(shm_id_1, NULL, 0); in do_child() 145 shm_id_1 = shmget(shmkey, shm_size, in setup() 147 if (shm_id_1 == -1) in setup() 157 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmat02.c | 68 static int shm_id_1 = -1; variable 85 &shm_id_1, NULL, EINVAL},
|
/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 | 66 int shm_id_1 = -1; variable 102 rm_shm(shm_id_1); in main() 169 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/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 69 static int shm_id_1 = -1; variable 105 shared = shmat(shm_id_1, 0, 0); in main() 119 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) in check_functionality() 181 shm_id_1 = shmget(shmkey, shm_size, in setup() 183 if (shm_id_1 == -1) in setup() 187 shared = shmat(shm_id_1, 0, 0); in setup() 199 rm_shm(shm_id_1); in cleanup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl03.c | 72 static int shm_id_1 = -1; variable 91 &shm_id_1, IPC_STAT, &buf, EACCES}, 94 &shm_id_1, IPC_SET, &buf, EPERM}, 97 &shm_id_1, IPC_RMID, &buf, EPERM},}; 171 shm_id_1 = shmget(shmkey, shm_size, in setup() 173 if (shm_id_1 == -1) in setup() 184 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmctl01.c | 78 static int shm_id_1 = -1; variable 134 shm_id_1 = shmget(shmkey, shm_size, in main() 136 if (shm_id_1 == -1) in main() 147 if (shmctl(shm_id_1, TC[i].cmd, &buf) == -1) { in main() 167 rval = shmat(shm_id_1, 0, 0); in set_shmat() 349 if (shmctl(shm_id_1, IPC_STAT, &buf) == -1) { in func_set() 373 if (shmctl(shm_id_1, IPC_STAT, &buf) != -1) in func_rmid() 382 shm_id_1 = -1; in func_rmid() 413 rm_shm(shm_id_1); in cleanup()
|
D | hugeshmctl02.c | 65 static int shm_id_1 = -1; variable 147 shm_id_1 = shmget(shmkey, shm_size, SHM_HUGETLB | IPC_CREAT | IPC_EXCL); in setup() 148 if (shm_id_1 == -1) in setup() 162 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()
|