Lines Matching refs:ii
45 for (FileMap::iterator ii = files.begin(); ii != files.end(); ++ii) { in FORK_TEST() local
46 std::string key = ii->first + " cap"; in FORK_TEST()
47 caps[key] = dup(ii->second); in FORK_TEST()
49 EXPECT_OK(caps[key]) << " on " << ii->first; in FORK_TEST()
60 for (FileMap::iterator ii = all.begin(); ii != all.end(); ++ii) { in FORK_TEST() local
61 EXPECT_OK(fcntl(ii->second, F_GETFL, 0)) << " on " << ii->first; in FORK_TEST()
62 int cap = dup(ii->second); in FORK_TEST()
63 EXPECT_OK(cap) << " on " << ii->first; in FORK_TEST()
64 EXPECT_OK(cap_rights_limit(cap, &r_ro)) << " on " << ii->first; in FORK_TEST()
65 EXPECT_EQ(-1, fcntl(cap, F_GETFL, 0)) << " on " << ii->first; in FORK_TEST()
66 EXPECT_EQ(ENOTCAPABLE, errno) << " on " << ii->first; in FORK_TEST()
69 for (FileMap::iterator ii = all.begin(); ii != all.end(); ++ii) { in FORK_TEST() local
70 close(ii->second); in FORK_TEST()
135 for (int ii = 0; ii < FCNTL_NUM_RIGHTS; ++ii) { in CheckFcntl() local
136 if (cap_rights_contains(&(fcntl_rights[ii]), &rights)) { in CheckFcntl()
137 if (ok_index == -1) ok_index = ii; in CheckFcntl()
140 EXPECT_NOTCAPABLE(fcntl(caps[ii], cmd, arg)); in CheckFcntl()
161 for (int ii = 0; ii < FCNTL_NUM_RIGHTS; ++ii) { in TEST() local
162 caps[ii] = dup(fd); in TEST()
163 EXPECT_OK(caps[ii]); in TEST()
164 EXPECT_OK(cap_rights_limit(caps[ii], &(fcntl_rights[ii]))); in TEST()
165 sock_caps[ii] = dup(sock); in TEST()
166 EXPECT_OK(sock_caps[ii]); in TEST()
167 EXPECT_OK(cap_rights_limit(sock_caps[ii], &(fcntl_rights[ii]))); in TEST()
205 for (int ii = 0; ii < FCNTL_NUM_RIGHTS; ++ii) { in TEST() local
206 close(sock_caps[ii]); in TEST()
207 close(caps[ii]); in TEST()