/bionic/tests/ |
D | TemporaryFile.h | 42 unlink(filename); in ~GenericTemporaryFile() 47 fd = open(filename, O_RDWR); in reopen() 51 char filename[1024]; variable 57 snprintf(filename, sizeof(filename), "%s/TemporaryFile-XXXXXX", tmp_dir); in init() 58 fd = mk_fn(filename); in init()
|
D | sys_stat_test.cpp | 76 path = tf.filename; in TEST() 141 static void AssertFileModeEquals(mode_t expected_mode, const char* filename) { in AssertFileModeEquals() argument 143 ASSERT_EQ(0, stat(filename, &sb)); in AssertFileModeEquals() 151 ASSERT_EQ(0, fchmodat(AT_FDCWD, tf.filename, 0751, 0)); in TEST() 152 AssertFileModeEquals(0751, tf.filename); in TEST() 158 int result = fchmodat(AT_FDCWD, tf.filename, 0751, AT_SYMLINK_NOFOLLOW); in TEST() 163 AssertFileModeEquals(0751, tf.filename); in TEST() 176 snprintf(linkname, sizeof(linkname), "%s.link", tf.filename); in TEST() 178 ASSERT_EQ(0, symlink(tf.filename, linkname)); in TEST() 180 AssertFileModeEquals(0751, tf.filename); in TEST() [all …]
|
D | sys_xattr_test.cpp | 27 ASSERT_EQ(0, setxattr(tf.filename, "user.foo", "bar", 4, 0)); in TEST() 28 ASSERT_EQ(4, getxattr(tf.filename, "user.foo", buf, sizeof(buf))); in TEST() 31 ASSERT_EQ(4, lgetxattr(tf.filename, "user.foo", buf, sizeof(buf))); in TEST() 70 int fd = open(tf.filename, O_PATH); in TEST() 88 int fd = open(tf.filename, O_PATH); in TEST() 117 int fd = open(tf.filename, O_PATH); in TEST()
|
D | utils.h | 102 std::string filename = android::base::StringPrintf("/proc/%d/stat", tid.load()); in WaitUntilThreadSleep() local 107 ASSERT_TRUE(android::base::ReadFileToString(filename, &content)); in WaitUntilThreadSleep()
|
D | sys_time_test.cpp | 48 ASSERT_EQ(0, utimes(tf.filename, NULL)); in TEST()
|
D | unistd_test.cpp | 157 ASSERT_EQ(0, truncate(tf.filename, 123)); in TEST() 160 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST() 167 ASSERT_EQ(0, truncate64(tf.filename, 123)); in TEST() 170 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST() 180 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST() 190 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST() 380 ASSERT_NE(-1, fd = open(tf.filename, O_RDONLY)); in TestFsyncFunction() 384 ASSERT_NE(-1, fd = open(tf.filename, O_RDWR)); in TestFsyncFunction() 525 rc = pathconf(tf.filename, _PC_ALLOC_SIZE_MIN); in TEST() 527 rc = pathconf(tf.filename, _PC_REC_MIN_XFER_SIZE); in TEST() [all …]
|
D | stdio_test.cpp | 764 fp = fopen(tf.filename, "r"); in TEST() 1036 FILE* fp = fopen(tf.filename, "w+"); in TEST() 1046 fp = fopen(tf.filename, "r"); in TEST() 1075 FILE* fw = fopen(tf.filename, "w"); in TEST() 1078 FILE* fr = fopen(tf.filename, "r"); in TEST() 1192 FILE* fp = fopen(tf->filename, "w+"); in TEST()
|
D | dlfcn_test.cpp | 190 static const char* filename = "libdlext_test_different_soname.so"; in TEST() local 196 handle = dlopen(filename, RTLD_NOW); in TEST() 205 void* handle_filename = dlopen(filename, RTLD_NOW | RTLD_NOLOAD); in TEST()
|
D | dlext_test.cpp | 477 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME, tf.filename)); in TEST_F() 488 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME_NORELRO, tf.filename)); in TEST_F() 508 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME, tf.filename)); in TEST_F()
|
/bionic/libdl/ |
D | libdl.c | 26 void* dlopen(const char* filename __unused, int flag __unused) { return 0; } in dlopen() 52 void* android_dlopen_ext(const char* filename __unused, int flag __unused, in android_dlopen_ext()
|
/bionic/linker/ |
D | dlfcn.cpp | 69 static void* dlopen_ext(const char* filename, int flags, in dlopen_ext() argument 72 void* result = do_dlopen(filename, flags, extinfo, caller_addr); in dlopen_ext() 80 void* android_dlopen_ext(const char* filename, int flags, const android_dlextinfo* extinfo) { in android_dlopen_ext() argument 82 return dlopen_ext(filename, flags, extinfo, caller_addr); in android_dlopen_ext() 85 void* dlopen(const char* filename, int flags) { in dlopen() argument 87 return dlopen_ext(filename, flags, nullptr, caller_addr); in dlopen()
|
D | linker_mips.cpp | 260 const char* filename = get_realpath(); in mips_check_and_adjust_fp_modes() local 261 size_t len = strlen(filename); in mips_check_and_adjust_fp_modes() 262 if (len > 4 && (strcmp(filename+len-4, ".dex") == 0 || in mips_check_and_adjust_fp_modes() 263 strcmp(filename+len-4, ".oat") == 0 )) { in mips_check_and_adjust_fp_modes()
|
/bionic/libc/kernel/uapi/linux/ |
D | bcm933xx_hcs.h | 32 char filename[64]; member
|
/bionic/libc/bionic/ |
D | system_properties.cpp | 224 static prop_area* map_prop_area_rw(const char* filename, const char* context, in map_prop_area_rw() argument 229 const int fd = open(filename, O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC | O_EXCL, 0444); in map_prop_area_rw() 244 "fsetxattr failed to set context (%s) for \"%s\"", context, filename); in map_prop_area_rw() 317 static prop_area* map_prop_area(const char* filename, bool is_legacy) { in map_prop_area() argument 318 int fd = open(filename, O_CLOEXEC | O_NOFOLLOW | O_RDONLY); in map_prop_area() 755 char filename[PROP_FILENAME_MAX]; in open() local 756 int len = __libc_format_buffer(filename, sizeof(filename), "%s/%s", in open() 764 pa_ = map_prop_area_rw(filename, context_, fsetxattr_failed); in open() 766 pa_ = map_prop_area(filename, false); in open() 791 char filename[PROP_FILENAME_MAX]; in check_access() local [all …]
|
/bionic/libc/include/android/ |
D | dlext.h | 131 extern void* android_dlopen_ext(const char* filename, int flag, const android_dlextinfo* extinfo);
|
/bionic/libc/include/ |
D | dlfcn.h | 46 extern void* dlopen(const char* filename, int flag);
|
/bionic/libc/include/sys/ |
D | _system_properties.h | 92 int __system_property_set_filename(const char *filename);
|
/bionic/libc/tools/ |
D | generate-NOTICE.py | 115 for filename in sorted(filenames): 116 path = os.path.join(directory, filename)
|
D | gensyscalls.py | 602 filename = "arch-%s/syscalls/%s.S" % (arch, syscall["func"]) 603 logging.info(">>> generating " + filename) 604 fp = create_file(filename) 607 self.new_stubs.append(filename)
|