Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 82) sorted by relevance

1234

/bionic/tests/
Dgrp_pwd_file_test.cpp29 explicit FileUnmapper(T& file) : file_(file) { in FileUnmapper() argument
39 void FindAndCheckPasswdEntry(PasswdFile* file, const char* name, uid_t uid, gid_t gid, in FindAndCheckPasswdEntry() argument
42 ASSERT_TRUE(file->FindByName(name, &name_passwd_state)) << name; in FindAndCheckPasswdEntry()
54 ASSERT_TRUE(file->FindById(uid, &id_passwd_state)) << uid; in FindAndCheckPasswdEntry()
66 void FindAndCheckGroupEntry(GroupFile* file, const char* name, gid_t gid) { in FindAndCheckGroupEntry() argument
68 ASSERT_TRUE(file->FindByName(name, &name_group_state)) << name; in FindAndCheckGroupEntry()
78 ASSERT_TRUE(file->FindById(gid, &id_group_state)) << gid; in FindAndCheckGroupEntry()
92 TemporaryFile file; in TEST() local
93 ASSERT_NE(-1, file.fd); in TEST()
95 write(file.fd, test_string, sizeof(test_string) - 1); in TEST()
[all …]
/bionic/libc/kernel/tools/
Dgenerate_uapi_headers.sh73 for file in $(ls -d ${src_dir}/* 2> /dev/null); do
74 if [[ -d "${file}" ]]; then
75 search_dirs+=("${file}")
76 elif [[ -f "${file}" ]] && [[ "${file}" =~ .h$ ]]; then
77 cp ${file} ${tgt_dir}
96 for file in $(ls -d ${src_dir}/* 2> /dev/null); do
97 if [[ -f "${file}" ]] && [[ "${file}" =~ .h$ ]]; then
99 header=$(basename ${file})
101 cp ${file} ${tgt_dir}
115 for file in $(ls -d ${src_dir}/* 2> /dev/null); do
[all …]
Dupdate_all.py46 for file in sorted(files):
47 _, ext = os.path.splitext(file)
50 src_file = os.path.normpath(os.path.join(root, file))
/bionic/libc/dns/resolv/
Dres_debug.c155 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument
158 fprintf(file, ";; res options:"); in fp_resstat()
161 fprintf(file, " %s", p_option(mask)); in fp_resstat()
162 putc('\n', file); in fp_resstat()
169 int pflag, FILE *file) in do_section() argument
186 fprintf(file, ";; memory allocation failure\n"); in do_section()
195 fprintf(file, ";; ns_parserr: %s\n", in do_section()
199 putc('\n', file); in do_section()
203 fprintf(file, ";; %s SECTION:\n", in do_section()
206 fprintf(file, ";;\t%s, type = %s, class = %s\n", in do_section()
[all …]
Dres_data.cpp93 void fp_query(const u_char* msg, FILE* file) { in fp_query() argument
94 fp_nquery(msg, PACKETSZ, file); in fp_query()
97 void fp_nquery(const u_char* msg, int len, FILE* file) { in fp_nquery() argument
99 res_pquery(gsa.get(), msg, len, file); in fp_nquery()
Dres_debug.h26 # define Aerror(statp, file, string, error, address) /*empty*/ argument
27 # define Perror(statp, file, string, error) /*empty*/ argument
/bionic/libc/bionic/
Dassert.cpp35 void __assert(const char* file, int line, const char* failed_expression) { in __assert() argument
36 async_safe_fatal("%s:%d: assertion \"%s\" failed", file, line, failed_expression); in __assert()
39 void __assert2(const char* file, int line, const char* function, const char* failed_expression) { in __assert2() argument
40 async_safe_fatal("%s:%d: %s: assertion \"%s\" failed", file, line, function, failed_expression); in __assert2()
Derror.cpp76 void error_at_line(int status, int error, const char* file, unsigned int line, const char* fmt, ...… in error_at_line() argument
80 if (last_line == line && last_file != nullptr && strcmp(last_file, file) == 0) { in error_at_line()
83 last_file = file; in error_at_line()
88 fprintf(stderr, "%s:%d: ", file, line); in error_at_line()
/bionic/linker/
Dlinker_namespaces.cpp37 bool android_namespace_t::is_accessible(const std::string& file) { in is_accessible() argument
43 const char *lib_name = basename(file.c_str()); in is_accessible()
50 if (file_is_in_dir(file, dir)) { in is_accessible()
56 if (file_is_in_dir(file, dir)) { in is_accessible()
62 if (file_is_under_dir(file, dir)) { in is_accessible()
Dlinker_utils.h38 bool file_is_in_dir(const std::string& file, const std::string& dir);
39 bool file_is_under_dir(const std::string& file, const std::string& dir);
Dlinker_utils.cpp119 bool file_is_in_dir(const std::string& file, const std::string& dir) { in file_is_in_dir() argument
121 const char* haystack = file.c_str(); in file_is_in_dir()
129 bool file_is_under_dir(const std::string& file, const std::string& dir) { in file_is_under_dir() argument
131 const char* haystack = file.c_str(); in file_is_under_dir()
Dld.config.format.md1 # Linker config file format
3 This document describes format of /system/etc/ld.config.txt file. This file can be used to customize
36 # the version specified in <dirname>/.version file, where <dirname> = dirname(executable_path)
/bionic/libc/
DSECCOMP_BLOCKLIST_COMMON.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
5 # Any entry in the blocklist must be in the syscalls file and not be in the allowlist file
7 # This file is processed by a python script named genseccomp.py.
DSECCOMP_PRIORITY.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
4 # This file is processed by a python script named genseccomp.py.
7 # the order of appearance in this file.
DSECCOMP_ALLOWLIST_SYSTEM.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
4 # This file is processed by a python script named genseccomp.py.
DSECCOMP_BLOCKLIST_APP.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
5 # Any entry in the blocklist must be in the syscalls file and not be in the allowlist file
7 # This file is processed by a python script named genseccomp.py.
/bionic/tests/headers/posix/
DREADME.md4 least_ what POSIX says. Every POSIX header file gets a corresponding
5 `.c` file in this directory. Every constant, macro, type, struct field,
6 and function in the header gets a corresponding assertion in the file.
/bionic/docs/
Dfdsan.md5 fdsan is a file descriptor sanitizer added to Android in API level 29.
12file descriptor sanitizer) detects mishandling of file descriptor ownership, which tend to manifes…
47file descriptor mismanagement by enforcing file descriptor ownership. Like how most memory allocat…
49file descriptor. The tag consists of an 8-bit type byte that identifies the type of the owner (`en…
51 If a file descriptor that's been marked with a tag is closed with an incorrect tag, or without a ta…
67 The likelihood of fdsan catching a file descriptor error is proportional to the percentage of file
138 fdsan_test: good failed to write?!: Bad file descriptor
140 …g out file descriptor too early, or someone else is helpfully closing it for us. Let's use `androi…
162 Now that we've guarded the file descriptor with fdsan, we should be able to find where the double c…
167 Abort message: 'attempted to close file descriptor 3, expected to be unowned, actually owned by uni…
[all …]
DREADME.md16 * [fdsan](fdsan.md) - bionic's file descriptor sanitizer,
18 * [fdtrack](fdtrack.md) - bionic's file descriptor tracker,
19 which helps debug file descriptor leaks.
/bionic/tests/libs/
DCHECK.h26 static inline void check_failure(const char* file, int line, const char* function, in check_failure() argument
28 fprintf(stderr, "%s:%d: %s: assertion \"%s\" failed\n", file, line, function, failed_expression); in check_failure()
/bionic/libc/system_properties/include/system_properties/
Dproperties_filename.h36 PropertiesFilename(const char* dir, const char* file) { in PropertiesFilename() argument
37 if (snprintf(filename_, sizeof(filename_), "%s/%s", dir, file) >= in PropertiesFilename()
/bionic/benchmarks/linker_relocation/
DREADME.md19 `regen/dump_relocs.py` scans an ELF file and its dependencies, outputting a JSON
20 dump, then `regen/gen_bench.py` processes the JSON file into benchmark code.
24 - with `--ninja`: generate a build.ninja instead, and build a set of ELF file
/bionic/libc/system_properties/
Dcontext_lookup_benchmark.cpp60 TemporaryFile file; in LegacyPropertyMapping() local
61 if (!WriteStringToFd(property_contexts, file.fd)) { in LegacyPropertyMapping()
65 if (!InitializePropertiesFromFile(file.path)) { in LegacyPropertyMapping()
Dcontexts_split.cpp206 FILE* file = fopen(filename, "re"); in InitializePropertiesFromFile() local
207 if (!file) { in InitializePropertiesFromFile()
216 while (getline(&buffer, &line_len, file) > 0) { in InitializePropertiesFromFile()
248 fclose(file); in InitializePropertiesFromFile()
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_streams.c79 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) in evWrite()
113 if (evSelectFD(opaqueCtx, fd, EV_READ, readable, new, &new->file) < 0) in evRead()
202 if (old->file.opaque) in evCancelRW()
203 evDeselectFD(opaqueCtx, old->file); in evCancelRW()
263 evDeselectFD(opaqueCtx, str->file); in done()
264 str->file.opaque = NULL; in done()

1234