Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/ipc/shmctl/
Dshmctl01.c54 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 …]
Dshmctl03.c66 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()
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/mem/hugetlb/hugeshmat/
Dhugeshmat01.c47 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()
Dhugeshmat03.c48 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()
Dhugeshmat02.c48 static int shm_id_1 = -1; variable
65 {&shm_id_1, NULL, EINVAL},
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c48 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/
Dhugeshmctl03.c51 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()
Dhugeshmctl01.c53 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()
Dhugeshmctl02.c41 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/
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.c67 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()
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/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()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c31 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()
Dhugeshmget03.c37 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()
Dhugeshmget05.c32 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()
Dhugeshmget02.c30 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()