/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 | 40 for file in sorted(files): 41 _, ext = os.path.splitext(file) 44 src_file = os.path.normpath(os.path.join(root, file))
|
/bionic/libc/dns/resolv/ |
D | res_debug.c | 137 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument 140 fprintf(file, ";; res options:"); in fp_resstat() 143 fprintf(file, " %s", p_option(mask)); in fp_resstat() 144 putc('\n', file); in fp_resstat() 151 int pflag, FILE *file) in do_section() argument 168 fprintf(file, ";; memory allocation failure\n"); in do_section() 177 fprintf(file, ";; ns_parserr: %s\n", in do_section() 181 putc('\n', file); in do_section() 185 fprintf(file, ";; %s SECTION:\n", in do_section() 188 fprintf(file, ";;\t%s, type = %s, class = %s\n", in do_section() [all …]
|
D | res_debug.h | 26 # define Aerror(statp, file, string, error, address) /*empty*/ argument 27 # define Perror(statp, file, string, error) /*empty*/ argument
|
D | res_data.c | 156 fp_query(const u_char *msg, FILE *file) { in fp_query() argument 157 fp_nquery(msg, PACKETSZ, file); in fp_query() 161 fp_nquery(const u_char *msg, int len, FILE *file) { in fp_nquery() argument 165 res_pquery(&_nres, msg, len, file); in fp_nquery()
|
/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() 51 if (file_is_in_dir(file, dir)) { in is_accessible() 57 if (file_is_in_dir(file, dir)) { in is_accessible() 63 if (file_is_under_dir(file, dir)) { in is_accessible()
|
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 | 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 | 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_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.
|
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.
|
/bionic/docs/ |
D | fdsan.md | 8 …file descriptor sanitizer) detects mishandling of file descriptor ownership, which tend to manifes… 43 …file descriptor mismanagement by enforcing file descriptor ownership. Like how most memory allocat… 45 …file descriptor. The tag consists of an 8-bit type byte that identifies the type of the owner (`en… 47 If a file descriptor that's been marked with a tag is closed with an incorrect tag, or without a ta… 63 The likelihood of fdsan catching a file descriptor error is proportional to the percentage of file … 134 fdsan_test: good failed to write?!: Bad file descriptor 136 …g out file descriptor too early, or someone else is helpfully closing it for us. Let's use `androi… 158 Now that we've guarded the file descriptor with fdsan, we should be able to find where the double c… 163 Abort message: 'attempted to close file descriptor 3, expected to be unowned, actually owned by uni… 186 …coverage. What actually happened is that the culprit closed `bystander`'s file descriptor between … [all …]
|
/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/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()
|
D | eventlib_p.h | 86 evFileID file; member 129 evFileID file; member 172 struct { evFile *this; int eventmask; } file; member
|
/bionic/libc/system_properties/ |
D | contexts_split.cpp | 212 FILE* file = fopen(filename, "re"); in InitializePropertiesFromFile() local 213 if (!file) { in InitializePropertiesFromFile() 222 while (getline(&buffer, &line_len, file) > 0) { in InitializePropertiesFromFile() 254 fclose(file); in InitializePropertiesFromFile()
|
/bionic/tools/versioner/src/ |
D | SymbolFileParser.cpp | 58 file(path, std::ios_base::in), in SymbolFileParser() 64 if (!file) { in parse() 90 while (std::getline(file, line)) { in hasNextLine() 295 std::ifstream file; member in __anoned2a43990111::SymbolFileParser
|
/bionic/ |
D | README.md | 41 The dynamic linker. When you run a dynamically-linked executable, its ELF file 50 The `tests/` directory contains unit tests. Roughly arranged as one file per 51 publicly-exported header file. 68 # because it's architecture-specific. There will be a .mk file in here that 119 # switching the file to C++ and cleaning it up. 134 # to Android's use of a single file (with corresponding index) to contain 163 2. Add constants (and perhaps types) to the appropriate header file. 166 the appropriate POSIX header file in libc/include/ includes the 167 relevant file or files. 168 3. Add function declarations to the appropriate header file. Don't forget [all …]
|
/bionic/libdl/ |
D | NOTICE | 107 (d) If the Work includes a "NOTICE" text file as part of its 110 within such NOTICE file, excluding those notices that do not 112 of the following places: within a NOTICE text file distributed 117 of the NOTICE file are for informational purposes only and 142 origin of the Work and reproducing the content of the NOTICE file. 185 comment syntax for the file format. We also recommend that a 186 file or class name and description of purpose be included on the 193 you may not use this file except in compliance with the License.
|
/bionic/benchmarks/ |
D | bionic_benchmarks.cpp | 553 static bool FileExists(const std::string& file) { in FileExists() argument 555 return stat(file.c_str(), &st) != -1 && S_ISREG(st.st_mode); in FileExists() 582 std::string file(android::base::GetExecutableDirectory() + "/suites/" + opts.xmlpath); in main() local 583 if (opts.xmlpath[0] == '/' || !FileExists(file)) { in main() 587 opts.xmlpath = file; in main()
|