Lines Matching full:handle
9 #include <semanage/handle.h>
13 int parse_init(semanage_handle_t * handle,
20 ERR(handle,
45 int parse_open(semanage_handle_t * handle, parse_info_t * info)
50 ERR(handle, "could not open file %s: %s",
83 int parse_skip_space(semanage_handle_t * handle, parse_info_t * info)
136 ERR(handle, "out of memory, could not allocate buffer");
141 int parse_assert_noeof(semanage_handle_t * handle, parse_info_t * info)
145 ERR(handle, "unexpected end of file (%s: %u)",
153 int parse_assert_space(semanage_handle_t * handle, parse_info_t * info)
156 if (parse_assert_noeof(handle, info) < 0)
160 ERR(handle, "missing whitespace (%s: %u):\n%s",
165 if (parse_skip_space(handle, info) < 0)
171 int parse_assert_ch(semanage_handle_t * handle,
175 if (parse_assert_noeof(handle, info) < 0)
179 ERR(handle, "expected character \'%c\', but found \'%c\' "
190 int parse_assert_str(semanage_handle_t * handle,
196 if (parse_assert_noeof(handle, info) < 0)
200 ERR(handle, "experted string \"%s\", but found \"%s\" "
234 int parse_fetch_int(semanage_handle_t * handle,
242 if (parse_fetch_string(handle, info, &str, delim) < 0)
246 ERR(handle, "expected a numeric value: (%s: %u)\n%s",
253 ERR(handle, "could not parse numeric value \"%s\": "
264 ERR(handle, "could not fetch numeric value");
269 int parse_fetch_string(semanage_handle_t * handle,
277 if (parse_assert_noeof(handle, info) < 0)
287 ERR(handle, "expected non-empty string, but did not "
295 ERR(handle, "out of memory");
305 ERR(handle, "could not fetch string value");