Home
last modified time | relevance | path

Searched refs:shm_id2 (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/ltp/testcases/kernel/syscalls/ipc/shmctl/
H A Dshmctl02.c40 static int shm_id2 = -1; variable
64 {&shm_id2, IPC_SET, (struct shmid_ds *)-1, EFAULT},
65 {&shm_id2, IPC_STAT, (struct shmid_ds *)-1, EFAULT},
66 {&shm_id2, -1, &buf, EINVAL},
120 shm_id2 = SAFE_SHMGET(shmkey2, SHM_SIZE, IPC_CREAT | IPC_EXCL | SHM_RW); in setup()
131 if (shm_id2 >= 0) in cleanup()
132 SAFE_SHMCTL(shm_id2, IPC_RMID, NULL); in cleanup()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/ipc/shmat/
H A Dshmat02.c28 static int shm_id2 = -1; variable
41 {&shm_id2, &unaligned_addr, EINVAL, 0},
42 {&shm_id2, &aligned_addr, EACCES, 1},
77 shm_id2 = SAFE_SHMGET(shm_key1, INT_SIZE, SHM_RW | IPC_CREAT | IPC_EXCL); in setup()
84 if (shm_id2 != -1) in cleanup()
85 SAFE_SHMCTL(shm_id2, IPC_RMID, NULL); in cleanup()