Lines Matching refs:id
44 int id = semget(key, 1, IPC_CREAT|0666); in TEST() local
45 ASSERT_NE(id, -1); in TEST()
50 ASSERT_EQ(0, semctl(id, 0, IPC_STAT, &ds)); in TEST()
53 ASSERT_EQ(0, semctl(id, 0, GETVAL)); in TEST()
57 ASSERT_EQ(0, semop(id, ops, 1)); in TEST()
58 ASSERT_EQ(1, semctl(id, 0, GETVAL)); in TEST()
64 ASSERT_EQ(-1, semtimedop(id, ops, 1, &ts)); in TEST()
66 ASSERT_EQ(1, semctl(id, 0, GETVAL)); in TEST()
70 ASSERT_EQ(0, semop(id, ops, 1)); in TEST()
71 ASSERT_EQ(0, semctl(id, 0, GETVAL)); in TEST()
74 ASSERT_EQ(0, semctl(id, 0, IPC_RMID)); in TEST()