Home
last modified time | relevance | path

Searched refs:errp (Results 1 – 9 of 9) sorted by relevance

/external/cn-cbor/src/
Dcn-create.c15 if (errp) {errp->err = CN_CBOR_NO_ERROR;} \
17 if (!(v)) { if (errp) {errp->err = CN_CBOR_ERR_OUT_OF_MEMORY;} return NULL; }
19 cn_cbor* cn_cbor_map_create(CBOR_CONTEXT_COMMA cn_cbor_errback *errp) in cn_cbor_map_create() argument
32 cn_cbor_errback *errp) in cn_cbor_data_create() argument
46 cn_cbor_errback *errp) in cn_cbor_string_create() argument
60 cn_cbor_errback *errp) in cn_cbor_int_create() argument
96 cn_cbor_errback *errp) in cn_cbor_map_put() argument
101 if (errp) {errp->err = CN_CBOR_ERR_INVALID_PARAMETER;} in cn_cbor_map_put()
111 cn_cbor_errback *errp) in cn_cbor_mapput_int() argument
118 if (errp) {errp->err = CN_CBOR_ERR_INVALID_PARAMETER;} in cn_cbor_mapput_int()
[all …]
Dcn-cbor.c241 cn_cbor* cn_cbor_decode(const unsigned char* buf, size_t len CBOR_CONTEXT, cn_cbor_errback *errp) { in cn_cbor_decode() argument
259 if (errp) { in cn_cbor_decode()
260 errp->err = pb.err; in cn_cbor_decode()
261 errp->pos = pb.buf - (unsigned char *)buf; in cn_cbor_decode()
/external/cn-cbor/include/cn-cbor/
Dcn-cbor.h221 cn_cbor* cn_cbor_decode(const uint8_t *buf, size_t len CBOR_CONTEXT, cn_cbor_errback *errp);
282 cn_cbor* cn_cbor_map_create(CBOR_CONTEXT_COMMA cn_cbor_errback *errp);
296 cn_cbor_errback *errp);
313 cn_cbor_errback *errp);
325 cn_cbor_errback *errp);
339 cn_cbor_errback *errp);
355 cn_cbor_errback *errp);
374 cn_cbor_errback *errp);
383 cn_cbor* cn_cbor_array_create(CBOR_CONTEXT_COMMA cn_cbor_errback *errp);
395 cn_cbor_errback *errp);
/external/ltp/lib/
Drandom_range.c278 long random_range(int min, int max, int mult, char **errp) in random_range() argument
289 if (errp != NULL) { in random_range()
291 *errp = errbuf; in random_range()
325 if (errp != NULL) { in random_range()
329 *errp = errbuf; in random_range()
334 if (errp != NULL) { in random_range()
335 *errp = NULL; in random_range()
365 long random_rangel(long min, long max, long mult, char **errp) in random_rangel() argument
376 if (errp != NULL) { in random_rangel()
378 *errp = errbuf; in random_rangel()
[all …]
/external/libnl/lib/route/cls/
Dematch_syntax.y35 %parse-param {char **errp}
53 static void yyerror(void *scanner, char **errp, struct nl_list_head *root, const char *msg)
56 *errp = strdup(msg);
58 *errp = NULL;
191 *errp = strdup("Unable to allocate ematch object");
206 *errp = strdup("Unable to allocate ematch object");
224 *errp = strdup("Unable to allocate ematch object");
251 *errp = strdup("Unable to allocate ematch object");
270 *errp = strdup("Unable to allocate ematch object");
422 if (asprintf(errp, "invalid pattern \"%s\"", $1) == -1)
[all …]
Dematch.c631 int rtnl_ematch_parse_expr(const char *expr, char **errp, in rtnl_ematch_parse_expr() argument
651 if ((err = ematch_parse(scanner, errp, &tree->et_list)) != 0) { in rtnl_ematch_parse_expr()
/external/valgrind/coregrind/
Dvg_preloaded.c280 int VG_REPLACE_FUNCTION_ZU(VG_Z_LIBC_SONAME, get_error)(int *errp);
281 int VG_REPLACE_FUNCTION_ZU(VG_Z_LIBC_SONAME, get_error)(int *errp) in VG_REPLACE_FUNCTION_ZU()
291 int VG_REPLACE_FUNCTION_ZU(VG_Z_LIBC_SONAME, set_error)(int *errp, int err);
292 int VG_REPLACE_FUNCTION_ZU(VG_Z_LIBC_SONAME, set_error)(int *errp, int err) in VG_REPLACE_FUNCTION_ZU()
294 *errp = err; in VG_REPLACE_FUNCTION_ZU()
/external/ltp/testcases/kernel/fs/doio/
Diogen.c584 char pattern, *errp; in form_iorequest() local
675 length = random_range(minlength, maxlength, mult, &errp); in form_iorequest()
676 if (errp != NULL) { in form_iorequest()
697 length = random_range(minlength, maxlength, mult, &errp); in form_iorequest()
698 if (errp != NULL) { in form_iorequest()
737 offset = random_range(minoffset, maxoffset, mult, &errp); in form_iorequest()
738 if (errp != NULL) { in form_iorequest()
879 nstrides = random_range(Minstrides, maxstride, 1, &errp); in form_iorequest()
880 if (errp != NULL) { in form_iorequest()
/external/dnsmasq/src/
Dlease.c163 static void ourprintf(int *errp, char *format, ...) in ourprintf() argument
168 if (!(*errp) && vfprintf(daemon->lease_stream, format, ap) < 0) in ourprintf()
169 *errp = errno; in ourprintf()