Home
last modified time | relevance | path

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

/bionic/tests/
DTemporaryFile.h42 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()
Dsys_stat_test.cpp76 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 …]
Dsys_xattr_test.cpp27 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()
87 int fd = open(tf.filename, O_PATH); in TEST()
Dunistd_test.cpp142 ASSERT_EQ(0, truncate(tf.filename, 123)); in TEST()
145 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
152 ASSERT_EQ(0, truncate64(tf.filename, 123)); in TEST()
155 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
165 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
175 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
368 ASSERT_NE(-1, fd = open(tf.filename, O_RDONLY)); in TestFsyncFunction()
372 ASSERT_NE(-1, fd = open(tf.filename, O_RDWR)); in TestFsyncFunction()
512 rc = pathconf(tf.filename, _PC_ALLOC_SIZE_MIN); in TEST()
514 rc = pathconf(tf.filename, _PC_REC_MIN_XFER_SIZE); in TEST()
[all …]
Dsys_time_test.cpp48 ASSERT_EQ(0, utimes(tf.filename, NULL)); in TEST()
Ddlext_test.cpp386 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME, tf.filename)); in TEST_F()
397 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME_NORELRO, tf.filename)); in TEST_F()
417 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(LIBNAME, tf.filename)); in TEST_F()
Ddlfcn_test.cpp190 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()
Dstdio_test.cpp718 fp = fopen(tf.filename, "r"); in TEST()
982 FILE* fp = fopen(tf.filename, "w+"); in TEST()
992 fp = fopen(tf.filename, "r"); in TEST()
Dpthread_test.cpp725 std::string filename = android::base::StringPrintf("/proc/%d/stat", pid.load()); in WaitUntilThreadSleep() local
730 ASSERT_TRUE(android::base::ReadFileToString(filename, &content)); in WaitUntilThreadSleep()
/bionic/libc/tools/zoneinfo/
Dupdate-tzdata.py78 def FtpRetrieveFile(ftp, filename): argument
79 ftp.retrbinary('RETR %s' % filename, open(filename, 'wb').write)
225 for filename in ftp.nlst():
226 if filename.startswith('tzdata20') and filename.endswith('.tar.gz'):
227 tzdata_filenames.append(filename)
242 for filename in tzdata_filenames:
243 if filename > current_filename:
244 print 'Found new tzdata: %s' % filename
247 FtpRetrieveFileAndSignature(ftp, filename)
249 HttpRetrieveFileAndSignature(http, filename)
[all …]
/bionic/libdl/
Dlibdl.c26 void* dlopen(const char* filename __unused, int flag __unused) { return 0; } in dlopen()
41 void* android_dlopen_ext(const char* filename __unused, int flag __unused, const android_dlextinfo*… in android_dlopen_ext()
/bionic/linker/
Ddlfcn.cpp70 static void* dlopen_ext(const char* filename, int flags, const android_dlextinfo* extinfo) { in dlopen_ext() argument
72 soinfo* result = do_dlopen(filename, flags, extinfo); in dlopen_ext()
80 void* android_dlopen_ext(const char* filename, int flags, const android_dlextinfo* extinfo) { in android_dlopen_ext() argument
81 return dlopen_ext(filename, flags, extinfo); in android_dlopen_ext()
84 void* dlopen(const char* filename, int flags) { in dlopen() argument
85 return dlopen_ext(filename, flags, nullptr); in dlopen()
/bionic/libc/kernel/uapi/linux/
Dbcm933xx_hcs.h32 char filename[64]; member
/bionic/libc/include/android/
Ddlext.h103 extern void* android_dlopen_ext(const char* filename, int flag, const android_dlextinfo* extinfo);
/bionic/libc/include/
Ddlfcn.h46 extern void* dlopen(const char* filename, int flag);
/bionic/libc/include/sys/
D_system_properties.h91 int __system_property_set_filename(const char *filename);
/bionic/libc/tools/
Dgenerate-NOTICE.py115 for filename in sorted(filenames):
116 path = os.path.join(directory, filename)
Dgensyscalls.py586 filename = "arch-%s/syscalls/%s.S" % (arch, syscall["func"])
587 logging.info(">>> generating " + filename)
588 fp = create_file(filename)
591 self.new_stubs.append(filename)
/bionic/libc/bionic/
Dsystem_properties.cpp586 int __system_property_set_filename(const char *filename) in __system_property_set_filename() argument
588 size_t len = strlen(filename); in __system_property_set_filename()
592 strcpy(property_filename, filename); in __system_property_set_filename()