Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 80) 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.py40 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/
Dres_debug.c137 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 …]
Dres_debug.h26 # define Aerror(statp, file, string, error, address) /*empty*/ argument
27 # define Perror(statp, file, string, error) /*empty*/ argument
Dres_data.c156 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/
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()
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()
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()
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);
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_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.
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.
/bionic/docs/
Dfdsan.md8file descriptor sanitizer) detects mishandling of file descriptor ownership, which tend to manifes…
43file descriptor mismanagement by enforcing file descriptor ownership. Like how most memory allocat…
45file 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/
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/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()
Deventlib_p.h86 evFileID file; member
129 evFileID file; member
172 struct { evFile *this; int eventmask; } file; member
/bionic/libc/system_properties/
Dcontexts_split.cpp212 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/
DSymbolFileParser.cpp58 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/
DREADME.md41 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/
DNOTICE107 (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/
Dbionic_benchmarks.cpp553 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()

1234