Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 38) sorted by relevance

12

/bionic/tests/
Dsys_prctl_test.cpp78 auto err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0); in TEST() local
79 EXPECT_EQ(0, err); in TEST()
87 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_SYS_ADMIN, 0, 0); in TEST()
88 EXPECT_EQ(-1, err); in TEST()
91 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_SYS_ADMIN, 0, 0); in TEST()
92 EXPECT_EQ(0, err); in TEST()
94 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, CAP_SYS_ADMIN, 0, 0); in TEST()
95 EXPECT_EQ(0, err); in TEST()
98 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, ULONG_MAX, 0, 0); in TEST()
99 EXPECT_EQ(-1, err); in TEST()
[all …]
Dnetdb_test.cpp200 int err; in TEST() local
201 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
211 result = gethostbyname_r("localhost", &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST()
222 int err; in TEST() local
223 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
233 result = gethostbyname2_r("localhost", AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST()
251 int err; in TEST() local
252 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
262 result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST()
280 int err = 0; in TEST() local
[all …]
Dfdtrack_test.cpp271 err(1, "pipe failed");
279 err(1, "pipe failed");
287 err(1, "socketpair failed");
Dsys_ptrace_test.cpp387 err(1, "failed to create pipe"); in PtraceResumptionTest()
393 err(1, "failed to create pipe"); in PtraceResumptionTest()
398 err(1, "failed to fork worker"); in PtraceResumptionTest()
407 err(1, "prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY) failed for pid %d", getpid()); in PtraceResumptionTest()
Dleak_test.cpp94 err(1, "failed to parse maps"); in GetMappingSize()
/bionic/benchmarks/
Dunistd_benchmark.cpp52 std::string err = android::base::StringPrintf("Fork failed: %s", strerror(errno)); in BM_unistd_fork_call() local
53 state.SkipWithError(err.c_str()); in BM_unistd_fork_call()
58 std::string err = android::base::StringPrintf("waitpid call failed: %s", strerror(errno)); in BM_unistd_fork_call() local
59 state.SkipWithError(err.c_str()); in BM_unistd_fork_call()
61 std::string err = android::base::StringPrintf( in BM_unistd_fork_call() local
63 state.SkipWithError(err.c_str()); in BM_unistd_fork_call()
Dmalloc_map_benchmark.cpp55 err(1, "FillInVmaStats failed"); in Gather()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfvwrite.c87 goto err; in __sfvwrite()
118 goto err; in __sfvwrite()
138 goto err; in __sfvwrite()
151 goto err; in __sfvwrite()
186 goto err; in __sfvwrite()
190 goto err; in __sfvwrite()
200 goto err; in __sfvwrite()
209 err: in __sfvwrite()
Dvasprintf.c41 goto err; in vasprintf()
45 goto err; in vasprintf()
53 goto err; in vasprintf()
59 err: in vasprintf()
/bionic/libc/dns/resolv/
Dherror.c127 hstrerror(int err) { in hstrerror() argument
128 if (err < 0) in hstrerror()
130 else if (err < h_nerr) in hstrerror()
131 return (h_errlist[err]); in hstrerror()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Derr.c35 err(int eval, const char *fmt, ...) in err() function
43 DEF_WEAK(err);
/bionic/tools/versioner/src/
DVFS.cpp43 err(1, "failed to open directory %s", path.c_str()); in addDirectoryToVFS()
54 err(1, "failed to open header '%s'", file_path); in addDirectoryToVFS()
86 err(1, "failed to open %s", header_path.c_str()); in createCommonVFS()
DUtils.cpp35 err(1, "getcwd failed"); in getWorkingDir()
49 err(1, "failed to open directory '%s'", directory.c_str()); in collectHeaders()
Dversioner.cpp76 err(1, "sched_getaffinity failed"); in getCpuCount()
112 err(1, "failed to open dependency directory '%s'", dir_path.c_str()); in collectRequirements()
126 err(1, "failed to stat dependency '%s'", dependency.c_str()); in collectRequirements()
221 err(1, "failed to create temporary file"); in compileHeaders()
540 err(1, "failed to stat platform directory '%s'", platform_dir.c_str()); in main()
621 err(1, "failed to get realpath for path '%s'", argv[optind]); in main()
651 err(1, "failed to stat '%s'", path); in main()
DPreprocessor.cpp127 err(1, "failed to create directory '%s'", dirname(path).c_str()); in writeFileLines()
446 err(1, "failed to open directory %s", src_dir.c_str()); in preprocessHeaders()
452 err(1, "path '%s' doesn't start with source dir '%s'", ent->fts_path, src_dir.c_str()); in preprocessHeaders()
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dglob.c535 int err; in glob0() local
600 if ((err = glob1(patbuf, pglob, limit)) != 0) in glob0()
601 return(err); in glob0()
722 int err, too_long, saverrno, saverrno2; in glob3() local
743 err = err_aborted(pglob, errno, buf); in glob3()
746 return (err); in glob3()
749 err = 0; in glob3()
769 err = GLOB_NOSPACE; in glob3()
796 if (too_long && (err = err_aborted(pglob, ENAMETOOLONG, in glob3()
808 err = glob2(pathbuf, --dc, pathend_last, restpattern, in glob3()
[all …]
/bionic/libc/kernel/uapi/linux/
Duhid.h71 __u16 err; member
84 __u16 err; member
121 __u16 err; member
Dcn_proc.h38 __u32 err; member
/bionic/libc/bionic/
Dbionic_netlink.cpp84 nlmsgerr* err = reinterpret_cast<nlmsgerr*>(NLMSG_DATA(hdr)); in ReadResponses() local
85 errno = (hdr->nlmsg_len >= NLMSG_LENGTH(sizeof(nlmsgerr))) ? -err->error : EIO; in ReadResponses()
/bionic/libc/kernel/uapi/asm-x86/asm/
Dsigcontext.h108 __u32 err; member
141 __u64 err; member
165 __u32 err; member
202 __u64 err; member
/bionic/libc/system_properties/
Dprop_area.cpp342 const int err = foreach_property(to_prop_trie_node(&trie->left), propfn, cookie); in foreach_property() local
343 if (err < 0) return false; in foreach_property()
353 const int err = foreach_property(to_prop_trie_node(&trie->children), propfn, cookie); in foreach_property() local
354 if (err < 0) return false; in foreach_property()
358 const int err = foreach_property(to_prop_trie_node(&trie->right), propfn, cookie); in foreach_property() local
359 if (err < 0) return false; in foreach_property()
/bionic/libc/tzcode/
Dlocaltime.c487 int err = nread < 0 ? errno : EINVAL; in tzloadbody() local
489 return err; in tzloadbody()
814 int err = tzloadbody(name, sp, doextend, lsp); in tzload() local
816 return err; in tzload()
1445 int err = tzload(name, sp, true); in zoneinit() local
1446 if (err != 0 && name && name[0] != ':' && tzparse(name, sp, NULL)) in zoneinit()
1447 err = 0; in zoneinit()
1448 if (err == 0) in zoneinit()
1449 err = scrub_abbrs(sp); in zoneinit()
1450 return err; in zoneinit()
[all …]
/bionic/libc/include/
Derr.h53 __noreturn void err(int __status, const char* _Nullable __fmt, ...) __printflike(2, 3);
/bionic/libc/kernel/uapi/xen/
Dprivcmd.h39 int * err; member
/bionic/libc/dns/nameser/
Dns_parse.c51 #define RETERR(err) do { errno = (err); return (-1); } while (/*NOTREACHED*//*CONSTCOND*/0) argument

12