Home
last modified time | relevance | path

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

12

/bionic/tests/
Dsys_prctl_test.cpp83 auto err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0); in TEST() local
84 EXPECT_EQ(0, err); in TEST()
92 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_SYS_ADMIN, 0, 0); in TEST()
93 EXPECT_EQ(-1, err); in TEST()
96 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_SYS_ADMIN, 0, 0); in TEST()
97 EXPECT_EQ(0, err); in TEST()
99 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, CAP_SYS_ADMIN, 0, 0); in TEST()
100 EXPECT_EQ(0, err); in TEST()
103 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, ULONG_MAX, 0, 0); in TEST()
104 EXPECT_EQ(-1, err); in TEST()
[all …]
Dnetdb_test.cpp199 int err; in TEST() local
200 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
210 result = gethostbyname_r("localhost", &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST()
221 int err; in TEST() local
222 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
232 result = gethostbyname2_r("localhost", AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST()
250 int err; in TEST() local
251 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
261 result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent2, buf2, sizeof(buf2), &hp2, &err); in TEST()
272 int err; in TEST() local
[all …]
Dclang_fortify_tests.cpp109 if (stdin_saved < 0) err(1, "failed to dup stdin"); in SetUp()
112 if (devnull < 0) err(1, "failed to open /dev/null"); in SetUp()
114 if (!dup2(devnull, STDIN_FILENO)) err(1, "failed to overwrite stdin"); in SetUp()
432 if (pipe(pipe_fds)) err(1, "pipe failed"); in FORTIFY_TEST()
435 if (close(pipe_fds[1])) err(1, "close failed"); in FORTIFY_TEST()
Dfdtrack_test.cpp224 err(1, "pipe failed");
232 err(1, "pipe failed");
240 err(1, "socketpair failed");
Dsys_ptrace_test.cpp382 err(1, "failed to create pipe"); in PtraceResumptionTest()
388 err(1, "failed to create pipe"); in PtraceResumptionTest()
393 err(1, "failed to fork worker"); in PtraceResumptionTest()
402 err(1, "prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY) failed for pid %d", getpid()); in PtraceResumptionTest()
Dleak_test.cpp93 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()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfvwrite.c88 goto err; in __sfvwrite()
118 goto err; in __sfvwrite()
138 goto err; in __sfvwrite()
143 goto err; in __sfvwrite()
178 goto err; in __sfvwrite()
182 goto err; in __sfvwrite()
192 goto err; in __sfvwrite()
201 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-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/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.cpp126 err(1, "failed to create directory '%s'", dirname(path).c_str()); in writeFileLines()
436 err(1, "failed to open directory %s", src_dir.c_str()); in preprocessHeaders()
442 err(1, "path '%s' doesn't start with source dir '%s'", ent->fts_path, src_dir.c_str()); in preprocessHeaders()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Derr.c35 err(int eval, const char *fmt, ...) in err() function
43 DEF_WEAK(err);
/bionic/libc/system_properties/
Dprop_area.cpp339 const int err = foreach_property(to_prop_bt(&trie->left), propfn, cookie); in foreach_property() local
340 if (err < 0) return false; in foreach_property()
350 const int err = foreach_property(to_prop_bt(&trie->children), propfn, cookie); in foreach_property() local
351 if (err < 0) return false; in foreach_property()
355 const int err = foreach_property(to_prop_bt(&trie->right), propfn, cookie); in foreach_property() local
356 if (err < 0) return false; in foreach_property()
/bionic/libc/tzcode/
Dlocaltime.c433 int err = nread < 0 ? errno : EINVAL; in tzloadbody() local
435 return err; in tzloadbody()
693 int err = tzloadbody(name, sp, doextend, lsp); in tzload() local
695 return err; in tzload()
1272 int err = tzload(name, sp, true); in zoneinit() local
1273 if (err != 0 && name && name[0] != ':' && tzparse(name, sp, false)) in zoneinit()
1274 err = 0; in zoneinit()
1275 if (err == 0) in zoneinit()
1277 return err; in zoneinit()
1358 int err = zoneinit(sp, name); in tzalloc() local
[all …]
/bionic/libc/kernel/uapi/asm-x86/asm/
Dsigcontext.h120 __u32 err; member
153 __u64 err; member
177 __u32 err; member
214 __u64 err; member
/bionic/libc/kernel/uapi/linux/
Duhid.h83 __u16 err; member
96 __u16 err; member
133 __u16 err; member
Dcn_proc.h43 __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/include/
Derr.h53 __noreturn void err(int __status, const char* __fmt, ...) __printflike(2, 3);
/bionic/libc/kernel/uapi/xen/
Dprivcmd.h51 int __user * err; member
/bionic/libc/dns/nameser/
Dns_parse.c51 #define RETERR(err) do { errno = (err); return (-1); } while (/*NOTREACHED*//*CONSTCOND*/0) argument

12