Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 20 of 20) sorted by relevance

/system/extras/toolchain-extras/
Dprofile-clang-openat.cpp29 int __real_open(const char* pathname, int flags, ...);
36 static bool is_coverage_trace(const char* pathname) { in is_coverage_trace() argument
37 if (strncmp(pathname, PROFRAW_START, strlen(PROFRAW_START)) == 0) return true; in is_coverage_trace()
41 __attribute__((weak)) int __wrap_open(const char* pathname, int flags, ...) { in __wrap_open() argument
43 return __real_open(pathname, flags); in __wrap_open()
51 int ret = __real_open(pathname, flags, mode); in __wrap_open()
52 if (ret != -1 && is_coverage_trace(pathname)) fchmod(ret, mode); in __wrap_open()
/system/iorap/src/inode2filename/
Dsystem_call.h30 virtual int stat(const char *pathname, struct stat *statbuf) = 0;
50 virtual int stat(const char *pathname, struct stat *statbuf) override { in stat()
51 return ::stat(pathname, statbuf); in stat()
/system/bpf/libbpf_android/include/bpf/
DBpfMap.h51 BpfMap<Key, Value>(const char* pathname, uint32_t flags) {
52 int map_fd = mapRetrieve(pathname, flags);
57 explicit BpfMap<Key, Value>(const char* pathname) : BpfMap<Key, Value>(pathname, 0) {}
255 explicit BpfMapRO<Key, Value>(const char* pathname)
256 : BpfMap<Key, Value>(pathname, BPF_F_RDONLY) {}
/system/core/init/
Dcompare-bootcharts.py78 def parse_proc_file(pathname, process_map, jiffy_record=None): argument
80 with tarfile.open(pathname + '/bootchart.tgz', 'r:*') as tf:
Dutil.h55 bool mkdir_recursive(const std::string& pathname, mode_t mode);
60 bool is_dir(const char* pathname);
Dutil.cpp284 bool is_dir(const char* pathname) { in is_dir() argument
286 if (stat(pathname, &info) == -1) { in is_dir()
DREADME.md134 service <name> <pathname> [ <argument> ]*
/system/extras/ioshark/
Dcompile_ioshark_subr.c66 void *files_db_lookup(char *pathname) in files_db_lookup() argument
71 hash = jenkins_one_at_a_time_hash(pathname, strlen(pathname)); in files_db_lookup()
75 if (strcmp(db_node->filename, pathname) == 0) in files_db_lookup()
Dcompile_ioshark.c176 get_pathname(char *buf, char *pathname, enum file_op file_op) in get_pathname() argument
216 strcpy(pathname, s); in get_pathname()
/system/iorap/src/maintenance/
Dcontroller.h33 virtual int Execve(const std::string& pathname,
42 virtual int Execve(const std::string& pathname,
Dcontroller.cc75 int Exec::Execve(const std::string& pathname, in Execve() argument
81 return execve(pathname.c_str(), (char**)argv_ptr.get(), envp); in Execve()
/system/netd/libnetdutils/
DSyscalls.cpp44 StatusOr<UniqueFd> open(const std::string& pathname, int flags, mode_t mode) const override { in open() argument
45 UniqueFd fd(::open(pathname.c_str(), flags, mode)); in open()
47 return statusFromErrno(errno, "open(\"" + pathname + "\"...) failed"); in open()
/system/tools/mkbootimg/tests/
Dmkbootimg_test.py45 def generate_test_file(pathname, size, seed=None): argument
47 random.seed(os.path.basename(pathname) if seed is None else seed)
48 with open(pathname, 'wb') as f:
50 return pathname
/system/vold/
DUtils.h177 status_t DeleteDirContentsAndDir(const std::string& pathname);
178 status_t DeleteDirContents(const std::string& pathname);
DUtils.cpp1317 status_t DeleteDirContentsAndDir(const std::string& pathname) { in DeleteDirContentsAndDir() argument
1318 status_t res = DeleteDirContents(pathname); in DeleteDirContentsAndDir()
1322 if (TEMP_FAILURE_RETRY(rmdir(pathname.c_str())) < 0 && errno != ENOENT) { in DeleteDirContentsAndDir()
1323 PLOG(ERROR) << "rmdir failed on " << pathname; in DeleteDirContentsAndDir()
1326 LOG(VERBOSE) << "Success: rmdir on " << pathname; in DeleteDirContentsAndDir()
1330 status_t DeleteDirContents(const std::string& pathname) { in DeleteDirContents() argument
1332 std::unique_ptr<DIR, decltype(&closedir)> dirp(opendir(pathname.c_str()), closedir); in DeleteDirContents()
1337 PLOG(ERROR) << "Failed to opendir " << pathname; in DeleteDirContents()
/system/netd/libnetdutils/include/netdutils/
DMockSyscalls.h37 StatusOr<UniqueFd>(const std::string& pathname, int flags, mode_t mode));
DSyscalls.h45 virtual StatusOr<UniqueFd> open(const std::string& pathname, int flags,
/system/logging/logcat/
Dlogcat.cpp116 static int openLogFile(const char* pathname, size_t sizeKB) { in openLogFile() argument
117 int fd = open(pathname, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP); in openLogFile()
129 static void closeLogFile(const char* pathname) { in closeLogFile() argument
130 int fd = open(pathname, O_WRONLY | O_CLOEXEC); in closeLogFile()
/system/extras/app-launcher/
DREADME53 (b) (Optional) Add code to get the /system block device pathname. This is
/system/extras/ioblame/
DREADME87 the pathname of the file and the amount of data written out.
221 Allowing ioblame to track <pathname, amount of data written>