/bionic/tests/ |
D | grp_pwd_file_test.cpp | 29 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/ |
D | generate_uapi_headers.sh | 73 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 …]
|
D | update_all.py | 46 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/ |
D | res_debug.c | 155 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 …]
|
D | res_data.cpp | 93 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()
|
D | res_debug.h | 26 # define Aerror(statp, file, string, error, address) /*empty*/ argument 27 # define Perror(statp, file, string, error) /*empty*/ argument
|
/bionic/libc/bionic/ |
D | assert.cpp | 35 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()
|
D | error.cpp | 76 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/ |
D | linker_namespaces.cpp | 37 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()
|
D | linker_utils.h | 38 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);
|
D | linker_utils.cpp | 119 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()
|
D | ld.config.format.md | 1 # 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/ |
D | SECCOMP_BLOCKLIST_COMMON.TXT | 1 # 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.
|
D | SECCOMP_PRIORITY.TXT | 1 # 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.
|
D | SECCOMP_ALLOWLIST_SYSTEM.TXT | 1 # 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.
|
D | SECCOMP_BLOCKLIST_APP.TXT | 1 # 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/ |
D | README.md | 4 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/ |
D | fdsan.md | 5 fdsan is a file descriptor sanitizer added to Android in API level 29. 12 …file descriptor sanitizer) detects mishandling of file descriptor ownership, which tend to manifes… 47 …file descriptor mismanagement by enforcing file descriptor ownership. Like how most memory allocat… 49 …file 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 …]
|
D | README.md | 16 * [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/ |
D | CHECK.h | 26 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/ |
D | properties_filename.h | 36 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/ |
D | README.md | 19 `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/ |
D | context_lookup_benchmark.cpp | 60 TemporaryFile file; in LegacyPropertyMapping() local 61 if (!WriteStringToFd(property_contexts, file.fd)) { in LegacyPropertyMapping() 65 if (!InitializePropertiesFromFile(file.path)) { in LegacyPropertyMapping()
|
D | contexts_split.cpp | 206 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/ |
D | ev_streams.c | 79 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()
|