Home
last modified time | relevance | path

Searched refs:shm_id_1 (Results 1 – 23 of 23) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ipc/shmctl/
Dshmctl01.c53 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 …]
Dshmctl03.c65 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()
Dshmctl02.c65 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/
Dshmat01.c51 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()
Dshmat03.c64 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()
Dshmat02.c64 int shm_id_1 = -1; variable
88 {&shm_id_1, 0, EINVAL}, in setup_tc()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c69 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()
Dhugeshmget03.c70 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()
Dhugeshmget05.c71 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()
Dhugeshmget02.c62 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/
Dhugeshmat01.c70 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()
Dhugeshmat03.c68 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()
Dhugeshmat02.c68 static int shm_id_1 = -1; variable
85 &shm_id_1, NULL, EINVAL},
/external/ltp/testcases/kernel/syscalls/ipc/shmget/
Dshmget01.c64 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()
Dshmget04.c61 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()
Dshmget05.c66 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()
Dshmget03.c64 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()
Dshmget02.c62 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/
Dhugeshmdt01.c69 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/
Dhugeshmctl03.c72 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()
Dhugeshmctl01.c78 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()
Dhugeshmctl02.c65 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/
Dshmdt01.c72 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()