Home
last modified time | relevance | path

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

1234

/aosp12/bionic/libc/include/bits/fortify/
H A Dfcntl.h59 int open(const char* const __pass_object_size pathname, int flags) in open() argument
63 return __open_2(pathname, flags); in open()
65 return __open_real(pathname, flags); in open()
74 return __open_real(pathname, flags, modes); in open()
87 return __openat_2(dirfd, pathname, flags); in openat()
89 return __openat_real(dirfd, pathname, flags); in openat()
98 return __openat_real(dirfd, pathname, flags, modes); in openat()
112 return open(pathname, flags); in open64()
120 return open(pathname, flags, modes); in open64()
132 return openat(dirfd, pathname, flags); in openat64()
[all …]
/aosp12/frameworks/libs/net/common/native/bpf_syscall_wrappers/include/
H A DBpfSyscallWrappers.h95 .pathname = ptr_to_u64(pathname), in bpfFdPin()
102 .pathname = ptr_to_u64(pathname), in bpfFdGet()
108 return bpfFdGet(pathname, flag); in mapRetrieve()
111 inline int mapRetrieveRW(const char* pathname) { in mapRetrieveRW() argument
112 return mapRetrieve(pathname, 0); in mapRetrieveRW()
115 inline int mapRetrieveRO(const char* pathname) { in mapRetrieveRO() argument
116 return mapRetrieve(pathname, BPF_F_RDONLY); in mapRetrieveRO()
119 inline int mapRetrieveWO(const char* pathname) { in mapRetrieveWO() argument
120 return mapRetrieve(pathname, BPF_F_WRONLY); in mapRetrieveWO()
123 inline int retrieveProgram(const char* pathname) { in retrieveProgram() argument
[all …]
/aosp12/hardware/google/camera/common/hal/hidl_service/
H A Dlibc_wrappers.cc41 int ret = real_function(pathname, mode); in mkfifo()
42 ALOGI("mkfifo (%s,%d) == %d", pathname, mode, ret); in mkfifo()
48 int ret = real_function(pathname, mode); in access()
55 int ret = real_function(pathname, mode); in mkdir()
56 ALOGI("mkdir (%s,%d) == %d", pathname, mode, ret); in mkdir()
59 extern "C" int rmdir(const char* pathname) { in rmdir() argument
62 int ret = real_function(pathname); in rmdir()
63 ALOGI("rmdir (%s) == %d", pathname, ret); in rmdir()
80 extern "C" int unlink(const char* pathname) { in unlink() argument
83 int ret = real_function(pathname); in unlink()
[all …]
/aosp12/bionic/libc/bionic/
H A Dopen.cpp51 int creat(const char* pathname, mode_t mode) { in creat() argument
52 return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode); in creat()
56 int open(const char* pathname, int flags, ...) { in open() argument
66 return FDTRACK_CREATE(__openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), mode)); in open()
70 int __open_2(const char* pathname, int flags) { in __open_2() argument
72 return FDTRACK_CREATE_NAME("open", __openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), 0)); in __open_2()
75 int openat(int fd, const char *pathname, int flags, ...) { in openat() argument
85 return FDTRACK_CREATE_NAME("openat", __openat(fd, pathname, force_O_LARGEFILE(flags), mode)); in openat()
89 int __openat_2(int fd, const char* pathname, int flags) { in __openat_2() argument
91 return FDTRACK_CREATE_NAME("openat", __openat(fd, pathname, force_O_LARGEFILE(flags), 0)); in __openat_2()
H A Dfchmodat.cpp39 int fchmodat(int dirfd, const char* pathname, mode_t mode, int flags) { in fchmodat() argument
50 ScopedFd fd(openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC)); in fchmodat()
61 return __fchmodat(dirfd, pathname, mode); in fchmodat()
H A Dfaccessat.cpp35 int faccessat(int dirfd, const char* pathname, int mode, int flags) { in faccessat() argument
59 return __faccessat(dirfd, pathname, mode); in faccessat()
/aosp12/frameworks/compile/mclinker/lib/Support/Windows/
H A DPathV3.inc26 size_t canonicalize(std::string& pathname) {
44 if (pathname.empty())
50 while (handler < pathname.size()) {
53 if (next >= pathname.size())
57 while (next < pathname.size() && separator == pathname[next])
60 pathname.erase(handler, next - handler - 1);
67 if (next >= pathname.size()) // '/.'
69 switch (pathname[next]) {
71 pathname.erase(handler, 2);
76 if (next >= pathname.size()) // '/..?'
[all …]
/aosp12/frameworks/compile/mclinker/lib/Support/Unix/
H A DPathV3.inc32 size_t canonicalize(std::string& pathname) {
50 if (pathname.empty())
56 while (handler < pathname.size()) {
59 if (next >= pathname.size())
63 while (next < pathname.size() && separator == pathname[next])
66 pathname.erase(handler, next - handler - 1);
73 if (next >= pathname.size()) // '/.'
75 switch (pathname[next]) {
77 pathname.erase(handler, 2);
82 if (next >= pathname.size()) // '/..?'
[all …]
/aosp12/system/extras/toolchain-extras/
H A 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()
/aosp12/packages/services/BuiltInPrintService/jni/plugins/
H A Dplugin_pdf.c71 const char *pathname) { in _print_page() argument
85 if (pathname && strlen(pathname)) { in _print_page()
91 fd = open(pathname, O_RDONLY); in _print_page()
106 LOGI("dumped %d bytes of %s to printer", nbytes, pathname); in _print_page()
113 remove(pathname); in _print_page()
H A Dplugin_pcl.c277 const char *pathname) { in _print_page() argument
307 if (pathname == NULL) { in _print_page()
312 } else if (strlen(pathname)) { in _print_page()
316 imgfile = fopen(pathname, "r"); in _print_page()
318 LOGD("_print_page(): fopen succeeded on %s", pathname); in _print_page()
321 wprint_image_init(image_info, pathname, job_params->page_num); in _print_page()
455 job_params->page_num, pathname, in _print_page()
482 LOGE("_print_page(): could not open %s", pathname); in _print_page()
/aosp12/frameworks/base/core/java/android/os/
H A DSELinux.java139 public static boolean restorecon(String pathname) throws NullPointerException { in restorecon() argument
140 if (pathname == null) { throw new NullPointerException(); } in restorecon()
141 return native_restorecon(pathname, 0); in restorecon()
154 private static native boolean native_restorecon(String pathname, int flags); in native_restorecon() argument
/aosp12/hardware/google/graphics/common/libion/test/
H A Dion_test_fixture.cpp95 std::string pathname = "/sys/kernel/debug/cma/cma-"; in getCmaUsed() local
96 pathname = pathname + heapname; in getCmaUsed()
97 pathname = pathname + "/used"; in getCmaUsed()
100 ifs.open(pathname); in getCmaUsed()
H A Dion_allocate_special.cpp30 std::string pathname = "/sys/kernel/debug/"; in flushShrinker() local
32 pathname += heapname; in flushShrinker()
33 pathname += "_shrink"; in flushShrinker()
35 int fd = open(pathname.c_str(), O_RDWR); in flushShrinker()
/aosp12/system/iorap/src/inode2filename/
H A 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()
/aosp12/bionic/tests/
H A Dutils.h105 std::string pathname; member
139 record.pathname = line + path_offset; in parse_maps()
140 if (!record.pathname.empty() && record.pathname.back() == '\n') { in parse_maps()
141 record.pathname.pop_back(); in parse_maps()
/aosp12/bionic/libc/
H A DSECCOMP_ALLOWLIST_APP.TXT10 int access:access(const char *pathname, int mode) lp32
27 int creat:creat(const char *pathname, mode_t mode) lp32
28 int unlink:unlink(const char *pathname) lp32
58 int mkdir(const char *pathname, mode_t mode) lp32
/aosp12/system/bpf/libbpf_android/include/bpf/
H A 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) {}
/aosp12/frameworks/native/cmds/installd/
H A Dutils.h118 int create_dir_if_needed(const std::string& pathname, mode_t mode);
120 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing = false);
121 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing = false);
123 int delete_dir_contents(const char *pathname,
H A Dutils.cpp539 int create_dir_if_needed(const std::string& pathname, mode_t perms) { in create_dir_if_needed() argument
543 if ((rc = stat(pathname.c_str(), &st)) != 0) { in create_dir_if_needed()
545 return mkdir(pathname.c_str(), perms); in create_dir_if_needed()
550 LOG(DEBUG) << pathname << " is not a folder"; in create_dir_if_needed()
563 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents() argument
564 return delete_dir_contents(pathname.c_str(), 0, nullptr, ignore_if_missing); in delete_dir_contents()
571 int delete_dir_contents(const char *pathname, in delete_dir_contents() argument
579 d = opendir(pathname); in delete_dir_contents()
584 ALOGE("Couldn't opendir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents()
590 if (rmdir(pathname)) { in delete_dir_contents()
[all …]
/aosp12/system/extras/ioshark/
H A 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()
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/
H A DTestFolderWrapper.java26 public TestFolderWrapper(String pathname) { in TestFolderWrapper() argument
27 super(pathname); in TestFolderWrapper()
/aosp12/frameworks/base/core/jni/
H A Dandroid_os_SELinux.cpp391 ScopedUtfChars pathname(env, pathnameStr); in native_restorecon() local
392 if (pathname.c_str() == NULL) { in native_restorecon()
397 int ret = selinux_android_restorecon(pathname.c_str(), flags); in native_restorecon()
398 ALOGV("restorecon(%s) => %d", pathname.c_str(), ret); in native_restorecon()
/aosp12/system/core/init/
H A Dcompare-bootcharts.py78 def parse_proc_file(pathname, process_map, jiffy_record=None): argument
80 with tarfile.open(pathname + '/bootchart.tgz', 'r:*') as tf:
/aosp12/system/iorap/src/maintenance/
H A Dcontroller.h33 virtual int Execve(const std::string& pathname,
42 virtual int Execve(const std::string& pathname,

1234