Lines Matching refs:fdset

15         _cleanup_fdset_free_ FDSet *fdset = NULL;  in TEST()  local
20 assert_se(fdset_new_fill(&fdset) >= 0); in TEST()
21 assert_se(fdset_contains(fdset, fd)); in TEST()
29 _cleanup_fdset_free_ FDSet *fdset = NULL; in TEST() local
35 fdset = fdset_new(); in TEST()
36 assert_se(fdset); in TEST()
37 copyfd = fdset_put_dup(fdset, fd); in TEST()
39 assert_se(fdset_contains(fdset, copyfd)); in TEST()
40 assert_se(!fdset_contains(fdset, fd)); in TEST()
47 _cleanup_fdset_free_ FDSet *fdset = NULL; in TEST() local
54 fdset = fdset_new(); in TEST()
55 assert_se(fdset); in TEST()
56 assert_se(fdset_put(fdset, fd)); in TEST()
58 assert_se(fdset_cloexec(fdset, false) >= 0); in TEST()
63 assert_se(fdset_cloexec(fdset, true) >= 0); in TEST()
74 _cleanup_fdset_free_ FDSet *fdset = NULL; in TEST() local
81 fdset = fdset_new(); in TEST()
82 assert_se(fdset); in TEST()
83 copyfd = fdset_put_dup(fdset, fd); in TEST()
86 assert_se(fdset_close_others(fdset) >= 0); in TEST()
97 FDSet *fdset = NULL; in TEST() local
103 fdset = fdset_new(); in TEST()
104 assert_se(fdset); in TEST()
105 assert_se(fdset_put(fdset, fd) >= 0); in TEST()
106 assert_se(fdset_remove(fdset, fd) >= 0); in TEST()
107 assert_se(!fdset_contains(fdset, fd)); in TEST()
108 fdset_free(fdset); in TEST()
117 FDSet *fdset = NULL; in TEST() local
125 fdset = fdset_new(); in TEST()
126 assert_se(fdset); in TEST()
127 assert_se(fdset_put(fdset, fd) >= 0); in TEST()
128 assert_se(fdset_put(fdset, fd) >= 0); in TEST()
129 assert_se(fdset_put(fdset, fd) >= 0); in TEST()
131 FDSET_FOREACH(a, fdset) { in TEST()
137 fdset_free(fdset); in TEST()
144 _cleanup_fdset_free_ FDSet *fdset = NULL; in TEST() local
150 fdset = fdset_new(); in TEST()
151 assert_se(fdset); in TEST()
153 assert_se(fdset_isempty(fdset)); in TEST()
154 assert_se(fdset_put(fdset, fd) >= 0); in TEST()
155 assert_se(!fdset_isempty(fdset)); in TEST()
162 _cleanup_fdset_free_ FDSet *fdset = NULL; in TEST() local
168 fdset = fdset_new(); in TEST()
169 assert_se(fdset); in TEST()
171 assert_se(fdset_steal_first(fdset) < 0); in TEST()
172 assert_se(fdset_put(fdset, fd) >= 0); in TEST()
173 assert_se(fdset_steal_first(fdset) == fd); in TEST()
174 assert_se(fdset_steal_first(fdset) < 0); in TEST()
175 assert_se(fdset_put(fdset, fd) >= 0); in TEST()
182 _cleanup_fdset_free_ FDSet *fdset = NULL; in TEST() local
184 assert_se(fdset_new_array(&fdset, fds, 4) >= 0); in TEST()
185 assert_se(fdset_size(fdset) == 4); in TEST()
186 assert_se(fdset_contains(fdset, 10)); in TEST()
187 assert_se(fdset_contains(fdset, 11)); in TEST()
188 assert_se(fdset_contains(fdset, 12)); in TEST()
189 assert_se(fdset_contains(fdset, 13)); in TEST()