Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 38) sorted by relevance

12

/bionic/linker/
Dlinker_namespaces.cpp49 for (const auto& dir : ld_library_paths_) { in is_accessible() local
50 if (file_is_in_dir(file, dir)) { in is_accessible()
55 for (const auto& dir : default_library_paths_) { in is_accessible() local
56 if (file_is_in_dir(file, dir)) { in is_accessible()
61 for (const auto& dir : permitted_paths_) { in is_accessible() local
62 if (file_is_under_dir(file, dir)) { in is_accessible()
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);
Dlinker_utils.cpp119 bool file_is_in_dir(const std::string& file, const std::string& dir) { in file_is_in_dir() argument
120 const char* needle = dir.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
130 const char* needle = dir.c_str(); in file_is_under_dir()
Dld.config.format.md16 The format is `dir.<section_name>=<directory>`
28 # The following line maps section to a dir. Binaries ran from this location will use namespaces
30 dir.example_section=/system/bin/example
/bionic/libc/bionic/
Dtmpfile.cpp100 char* tempnam(const char* dir, const char* prefix) { in tempnam() argument
107 if (tmpdir != nullptr) dir = tmpdir; in tempnam()
111 if (dir == nullptr) dir = "/data/local/tmp"; in tempnam()
118 if (asprintf(&path, "%s/%sXXXXXXXXXX", dir, prefix) == -1) return nullptr; in tempnam()
Dexec.cpp147 const char* dir; in execvpe() local
148 while ((dir = strsep(&strsep_buf, ":"))) { in execvpe()
151 if (*dir == '\0') dir = const_cast<char*>("."); in execvpe()
153 size_t dir_len = strlen(dir); in execvpe()
157 mempcpy(mempcpy(mempcpy(buf, dir, dir_len), "/", 1), name, name_len + 1); in execvpe()
Dscandir.cpp95 DIR* dir = nullptr; in scandirat() local
97 dir = opendir(dir_name); in scandirat()
101 dir = fdopendir(dir_fd); in scandirat()
105 ScopedReaddir reader(dir); in scandirat()
Dgrp_pwd_file.cpp108 const char* dir() const { in dir() function
116 if (name() == nullptr || dir() == nullptr || shell() == nullptr) { in ToPasswdState()
142 CopyFieldToString(passwd_state->dir_buffer_, dir(), sizeof(passwd_state->dir_buffer_)); in ToPasswdState()
/bionic/libc/kernel/tools/
Dgenerate_uapi_headers.sh82 for dir in "${search_dirs[@]}"; do
83 copy_hdrs "${dir}" ${tgt_dir}/$(basename ${dir})
131 for dir in "${search_dirs[@]}"; do
132 verify_modified_hdrs "${dir}" ${tgt_dir}/$(basename ${dir}) "${kernel_dir}"
Dutils.py66 for dir in dirs:
68 if os.path.isdir(dir):
70 os.mkdir(dir)
/bionic/libc/system_properties/include/system_properties/
Dproperties_filename.h36 PropertiesFilename(const char* dir, const char* file) { in PropertiesFilename() argument
37 if (snprintf(filename_, sizeof(filename_), "%s/%s", dir, file) >= in PropertiesFilename()
/bionic/libc/private/
DScopedReaddir.h28 explicit ScopedReaddir(DIR* dir) { in ScopedReaddir() argument
29 dir_ = dir; in ScopedReaddir()
/bionic/libc/kernel/uapi/linux/
Derspan.h16 __u8 o : 1, gra : 2, dir : 1, hwid : 4; member
19 __u8 hwid : 4, dir : 1, gra : 2, o : 1; member
/bionic/libc/kernel/uapi/drm/
Darmada_drm.h16 #define ARMADA_IOCTL(dir,name,str) DRM_ ##dir(DRM_COMMAND_BASE + DRM_ARMADA_ ##name, struct drm_arm… argument
Dqaic_accel.h126 __u32 dir; member
135 __u32 dir; member
139 __u32 dir; member
/bionic/tests/
Dsys_shm_test.cpp41 TemporaryDir dir; in TEST() local
42 key_t key = ftok(dir.path, 1); in TEST()
Dfcntl_test.cpp323 TemporaryDir dir; in TEST() local
327 int fd = open(dir.path, O_TMPFILE | O_RDWR, perms); in TEST()
342 std::string final_path = android::base::StringPrintf("%s/named_now", dir.path); in TEST()
353 fd = open(dir.path, O_TMPFILE | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); in TEST()
357 AT_FDCWD, android::base::StringPrintf("%s/no_chance", dir.path).c_str(), in TEST()
Dsys_msg_test.cpp42 TemporaryDir dir; in TEST() local
43 key_t key = ftok(dir.path, 1); in TEST()
Dfdsan_test.cpp132 DIR* dir = opendir("/dev/"); in TEST_F() local
133 ASSERT_TRUE(dir); in TEST_F()
134 EXPECT_FDSAN_DEATH(close(dirfd(dir)), "actually owned by DIR"); in TEST_F()
Dsys_sem_test.cpp44 TemporaryDir dir; in TEST() local
45 key_t key = ftok(dir.path, 1); in TEST()
Dgrp_pwd_file_test.cpp40 const char* dir, const char* shell) { in FindAndCheckPasswdEntry() argument
50 EXPECT_STREQ(dir, name_passwd.pw_dir); in FindAndCheckPasswdEntry()
62 EXPECT_STREQ(dir, id_passwd.pw_dir); in FindAndCheckPasswdEntry()
Difaddrs_test.cpp105 dirent* dir; in TEST() local
106 while ((dir = readdir(d.get())) != nullptr) { in TEST()
107 if (dir->d_type == DT_LNK) { in TEST()
108 sys_class_net.push_back(std::string(dir->d_name)); in TEST()
/bionic/build/
Drun-on-host.sh40 dir=$1
43 src=$dir/$name
/bionic/libc/kernel/uapi/asm-generic/
Dioctl.h34 #define _IOC(dir,type,nr,size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | ((nr) << _I… argument
/bionic/benchmarks/linker_relocation/
Drun_bench_with_ninja.sh48 --keep-tmp-dir Don't delete the temporary directory on exit
112 $top/gen_bench.sh --keep-tmp-dir --skip-gen-bench

12