Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 34) sorted by relevance

12

/bionic/libc/system_properties/
Dcontext_node.cpp52 PropertiesFilename filename(filename_, context_); in Open() local
54 pa_ = prop_area::map_prop_area_rw(filename.c_str(), context_, fsetxattr_failed); in Open()
56 pa_ = prop_area::map_prop_area(filename.c_str()); in Open()
81 PropertiesFilename filename(filename_, context_); in CheckAccess() local
82 return access(filename.c_str(), R_OK) == 0; in CheckAccess()
Dcontexts_split.cpp44 ContextListNode(ContextListNode* next, const char* context, const char* filename) in ContextListNode() argument
45 : ContextNode(strdup(context), filename), next(next) { in ContextListNode()
195 PropertiesFilename filename(filename_, "properties_serial"); in MapSerialPropertyArea() local
198 filename.c_str(), "u:object_r:properties_serial:s0", fsetxattr_failed); in MapSerialPropertyArea()
200 serial_prop_area_ = prop_area::map_prop_area(filename.c_str()); in MapSerialPropertyArea()
205 bool ContextsSplit::InitializePropertiesFromFile(const char* filename) { in InitializePropertiesFromFile() argument
206 FILE* file = fopen(filename, "re"); in InitializePropertiesFromFile()
284 bool ContextsSplit::Initialize(bool writable, const char* filename, bool* fsetxattr_failed, bool) { in Initialize() argument
285 filename_ = filename; in Initialize()
Dsystem_properties.cpp64 bool SystemProperties::Init(const char* filename) { in Init() argument
73 properties_filename_ = filename; in Init()
107 bool SystemProperties::AreaInit(const char* filename, bool* fsetxattr_failed) { in AreaInit() argument
108 return AreaInit(filename, fsetxattr_failed, false); in AreaInit()
113 bool SystemProperties::AreaInit(const char* filename, bool* fsetxattr_failed, in AreaInit() argument
115 properties_filename_ = filename; in AreaInit()
Dprop_area.cpp55 prop_area* prop_area::map_prop_area_rw(const char* filename, const char* context, in map_prop_area_rw() argument
60 const int fd = open(filename, O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC | O_EXCL, 0444); in map_prop_area_rw()
75 "fsetxattr failed to set context (%s) for \"%s\"", context, filename); in map_prop_area_rw()
140 prop_area* prop_area::map_prop_area(const char* filename) { in map_prop_area() argument
141 int fd = open(filename, O_CLOEXEC | O_NOFOLLOW | O_RDONLY); in map_prop_area()
/bionic/tools/versioner/src/
DSymbolDatabase.cpp40 std::unordered_set<std::string> getSymbols(const std::string& filename) { in getSymbols() argument
42 auto binaryOrError = createBinary(filename); in getSymbols()
44 errx(1, "failed to open library at %s: %s\n", filename.c_str(), in getSymbols()
50 errx(1, "failed to parse %s as ELF", filename.c_str()); in getSymbols()
57 errx(1, "failed to get symbol name for symbol in %s: %s", filename.c_str(), in getSymbols()
76 for (auto&& [filename, required] : wanted_files) { in parsePlatform()
77 std::string path = platform_dir + "/" + filename; in parsePlatform()
DDeclarationDatabase.h112 std::string filename; member
117 return std::tie(filename, start, end) < std::tie(rhs.filename, rhs.start, rhs.end);
150 fprintf(out, "@ %s:%u:%u", StripPrefix(location.filename, base_path).str().c_str(),
DDeclarationDatabase.cpp199 auto filename = src_manager.getFilename(expansion_range.getBegin()); in VisitDeclaratorDecl() local
200 if (filename != src_manager.getFilename(expansion_range.getEnd())) { in VisitDeclaratorDecl()
205 .filename = filename.str(), in VisitDeclaratorDecl()
224 location.filename.c_str(), location.start.line, location.start.column); in VisitDeclaratorDecl()
401 ss << loc.filename << ":" << loc.start.line << ":" << loc.start.column; in to_string()
DDriver.cpp187 static std::vector<const char*> getCC1Command(CompilationType type, const std::string& filename) { in getCC1Command() argument
198 result.push_back(filename.c_str()); in getCC1Command()
243 const std::string& filename) { in compileHeader() argument
245 std::vector<const char*> cc1_flags = getCC1Command(type, filename); in compileHeader()
DSymbolDatabase.h28 std::unordered_set<std::string> getSymbols(const std::string& filename);
DDriver.h40 const std::string& filename);
/bionic/libdl/
Dlibdl.cpp32 void* __loader_dlopen(const char* filename, int flags, const void* caller_addr);
68 void* __loader_android_dlopen_ext(const char* filename,
86 void* dlopen(const char* filename, int flag) { in dlopen() argument
88 return __loader_dlopen(filename, flag, caller_addr); in dlopen()
135 void* android_dlopen_ext(const char* filename, int flag, const android_dlextinfo* extinfo) { in android_dlopen_ext() argument
137 return __loader_android_dlopen_ext(filename, flag, extinfo, caller_addr); in android_dlopen_ext()
/bionic/linker/
Ddlfcn.cpp58 void* __loader_android_dlopen_ext(const char* filename,
84 void* __loader_dlopen(const char* filename, int flags, const void* caller_addr) __LINKER_PUBLIC__;
136 static void* dlopen_ext(const char* filename, in dlopen_ext() argument
142 void* result = do_dlopen(filename, flags, extinfo, caller_addr); in dlopen_ext()
150 void* __loader_android_dlopen_ext(const char* filename, in __loader_android_dlopen_ext() argument
154 return dlopen_ext(filename, flags, extinfo, caller_addr); in __loader_android_dlopen_ext()
157 void* __loader_dlopen(const char* filename, int flags, const void* caller_addr) { in __loader_dlopen() argument
158 return dlopen_ext(filename, flags, nullptr, caller_addr); in __loader_dlopen()
Dlinker_crt_pad_segment_test.cpp49 static std::string GetTestElfPath(const std::string& filename) { in GetTestElfPath() argument
52 return test_data_dir + "/" + filename; in GetTestElfPath()
/bionic/libc/bionic/
Dgrp_pwd_file.h40 MmapFile(const char* filename, const char* required_prefix);
76 PasswdFile(const char* filename, const char* required_prefix);
92 GroupFile(const char* filename, const char* required_prefix);
Dgrp_pwd_file.cpp196 MmapFile::MmapFile(const char* filename, const char* required_prefix) in MmapFile() argument
197 : filename_(filename), required_prefix_(required_prefix) { in MmapFile()
322 PasswdFile::PasswdFile(const char* filename, const char* required_prefix) in PasswdFile() argument
323 : mmap_file_(filename, required_prefix) { in PasswdFile()
338 GroupFile::GroupFile(const char* filename, const char* required_prefix) in GroupFile() argument
339 : mmap_file_(filename, required_prefix) { in GroupFile()
/bionic/libc/tools/
Dgenfunctosyscallnrs.py59 for filename in args.files:
60 m = re.search(r"libseccomp_gen_syscall_nrs_([^/]+)", filename)
61 syscall_NRs[m.group(1)] = parse_syscall_NRs(filename)
Dgenseccomp.py304 for filename in args.files:
305 if filename.lower().endswith('.txt'):
306 if filename.lower().endswith('priority.txt'):
307 priority_file = filename
309 syscall_files.append(filename)
311 m = re.search(r"libseccomp_gen_syscall_nrs_([^/]+)", filename)
312 syscall_NRs[m.group(1)] = parse_syscall_NRs(filename)
Dgenerate_notice.py170 for filename in sorted(filenames):
171 path = os.path.join(directory, filename)
/bionic/libc/system_properties/include/system_properties/
Dsystem_properties.h54 bool Init(const char* filename);
56 bool AreaInit(const char* filename, bool* fsetxattr_failed);
57 bool AreaInit(const char* filename, bool* fsetxattr_failed, bool load_default_path);
Dcontext_node.h37 ContextNode(const char* context, const char* filename) in ContextNode() argument
38 : context_(context), pa_(nullptr), no_access_(false), filename_(filename) { in ContextNode()
Dcontexts_pre_split.h41 virtual bool Initialize(bool, const char* filename, bool*, bool) override { in Initialize() argument
42 pre_split_prop_area_ = prop_area::map_prop_area(filename); in Initialize()
Dcontexts_split.h41 virtual bool Initialize(bool writable, const char* filename, bool* fsetxattr_failed,
55 bool InitializePropertiesFromFile(const char* filename);
Dprop_area.h94 static prop_area* map_prop_area_rw(const char* filename, const char* context,
96 static prop_area* map_prop_area(const char* filename);
Dcontexts.h39 virtual bool Initialize(bool writable, const char* filename, bool* fsetxattr_failed,
/bionic/libc/kernel/uapi/linux/
Dbcm933xx_hcs.h18 char filename[64]; member

12