Home
last modified time | relevance | path

Searched refs:shm_id_2 (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ipc/shmctl/
Dshmctl02.c66 int shm_id_2 = -1; variable
82 &shm_id_2, IPC_SET, (struct shmid_ds *)-1, EFAULT},
85 &shm_id_2, IPC_STAT, (struct shmid_ds *)-1, EFAULT},
91 &shm_id_2, -1, &buf, EINVAL},
94 &shm_id_2, SHM_LOCK, &buf, EPERM},
97 &shm_id_2, SHM_UNLOCK, &buf, EPERM}
194 if ((shm_id_2 = shmget(shmkey2, SHM_SIZE, IPC_CREAT | IPC_EXCL | in setup()
209 rm_shm(shm_id_2); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c42 static int shm_id_2 = -1; variable
60 {&shm_id_2, IPC_SET, (struct shmid_ds *)-1, EFAULT},
62 {&shm_id_2, IPC_STAT, (struct shmid_ds *)-1, EFAULT},
66 {&shm_id_2, -1, &buf, EINVAL},
112 shm_id_2 = shmget(shmkey + 1, shm_size, in setup()
114 if (shm_id_2 == -1) in setup()
121 rm_shm(shm_id_2); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat02.c49 static int shm_id_2 = -1; variable
67 {&shm_id_2, (void *)NADDR, EINVAL}
107 shm_id_2 = shmget(shmkey++, shm_size, in setup()
109 if (shm_id_2 == -1) in setup()
115 rm_shm(shm_id_2); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget02.c59 int shm_id_2 = -1; in test_hugeshmget() local
62 shm_id_2 = shmget(*(tcases[i].skey), 0, 0); in test_hugeshmget()
63 if (shm_id_2 != -1) in test_hugeshmget()
64 shmctl(shm_id_2, IPC_RMID, NULL); in test_hugeshmget()