Searched refs:shmid1 (Results 1 – 3 of 3) sorted by relevance
/external/ltp/testcases/kernel/mem/shmt/ |
D | shmt05.c | 60 int shmid, shmid1; in main() local 91 if ((shmid1 = shmget(key[1], SIZE, IPC_CREAT | 0666)) < 0) { in main() 95 shmid1, errno); in main() 97 cp1 = shmat(shmid1, cp + (SIZE / 2), 0); in main() 102 shmid1, cp1, errno); in main() 111 rm_shm(shmid1); in main()
|
/external/ltp/testcases/kernel/syscalls/kill/ |
D | kill05.c | 93 int shmid1 = -1; variable 229 if ((shmid1 = shmget(semkey, getpagesize(), 0666 | IPC_CREAT)) == -1) in setup() 232 if ((flag = shmat(shmid1, 0, 0)) == (int *)-1) in setup() 234 "Failed to attach shared memory:%d", shmid1); in setup() 239 rm_shm(shmid1); in cleanup()
|
D | kill07.c | 77 int shmid1; variable 111 if ((shmid1 = shmget(semkey, (int)getpagesize(), in main() 117 if (*(flag = shmat(shmid1, 0, 0)) == -1) { in main() 236 rm_shm(shmid1); in cleanup()
|