Home
last modified time | relevance | path

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

12

/bionic/tests/
Dsys_time_test.cpp28 ASSERT_EQ(0, utimes(tf.filename, nullptr)); in TEST()
37 ASSERT_EQ(-1, utimes(tf.filename, tv)); in TEST()
40 ASSERT_EQ(-1, utimes(tf.filename, tv)); in TEST()
46 ASSERT_EQ(-1, utimes(tf.filename, tv)); in TEST()
49 ASSERT_EQ(-1, utimes(tf.filename, tv)); in TEST()
82 ASSERT_EQ(0, futimesat(AT_FDCWD, tf.filename, nullptr)); in TEST()
91 ASSERT_EQ(-1, futimesat(AT_FDCWD, tf.filename, tv)); in TEST()
94 ASSERT_EQ(-1, futimesat(AT_FDCWD, tf.filename, tv)); in TEST()
100 ASSERT_EQ(-1, futimesat(AT_FDCWD, tf.filename, tv)); in TEST()
103 ASSERT_EQ(-1, futimesat(AT_FDCWD, tf.filename, tv)); in TEST()
[all …]
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()
88 int fd = open(tf.filename, O_PATH); in TEST()
117 int fd = open(tf.filename, O_PATH); in TEST()
Dunistd_test.cpp169 ASSERT_EQ(0, truncate(tf.filename, 123)); in TEST()
172 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
179 ASSERT_EQ(0, truncate64(tf.filename, 123)); in TEST()
182 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
192 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
202 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
392 ASSERT_NE(-1, fd = open(tf.filename, O_RDONLY)); in TestFsyncFunction()
396 ASSERT_NE(-1, fd = open(tf.filename, O_RDWR)); in TestFsyncFunction()
665 rc = pathconf(tf.filename, _PC_ALLOC_SIZE_MIN); in TEST()
667 rc = pathconf(tf.filename, _PC_REC_MIN_XFER_SIZE); in TEST()
[all …]
Dutils.h118 std::string filename = android::base::StringPrintf("/proc/%d/stat", tid.load()); in WaitUntilThreadSleep() local
123 ASSERT_TRUE(android::base::ReadFileToString(filename, &content)); in WaitUntilThreadSleep()
Dstdio_test.cpp894 fp = fopen(tf.filename, "r"); in TEST()
1154 FILE* fp = fopen(tf.filename, "w+"); in TEST()
1164 fp = fopen(tf.filename, "r"); in TEST()
1193 FILE* fw = fopen(tf.filename, "w"); in TEST()
1196 FILE* fr = fopen(tf.filename, "r"); in TEST()
1310 FILE* fp = fopen(tf->filename, "w+"); in TEST()
1426 ASSERT_EQ(0, remove(tf.filename)); in TEST()
1427 ASSERT_EQ(-1, lstat(tf.filename, &sb)); in TEST()
1436 ASSERT_EQ(-1, remove(tf.filename)); in TEST()
Ddlext_test.cpp478 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(kLibName, tf.filename)); in TEST_F()
489 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(kLibNameNoRelro, tf.filename)); in TEST_F()
509 ASSERT_NO_FATAL_FAILURE(CreateRelroFile(kLibName, tf.filename)); in TEST_F()
515 …ASSERT_NO_FATAL_FAILURE(SpawnChildrenAndMeasurePss(kLibName, tf.filename, false, &without_sharing)… in TEST_F()
516 ASSERT_NO_FATAL_FAILURE(SpawnChildrenAndMeasurePss(kLibName, tf.filename, true, &with_sharing)); in TEST_F()
Ddlfcn_test.cpp224 static const char* filename = "libdlext_test_different_soname.so"; in TEST() local
230 handle = dlopen(filename, RTLD_NOW); in TEST()
239 void* handle_filename = dlopen(filename, RTLD_NOW | RTLD_NOLOAD); in TEST()
/bionic/tools/versioner/src/
DSymbolDatabase.cpp38 std::unordered_set<std::string> getSymbols(const std::string& filename) { in getSymbols() argument
40 auto binaryOrError = createBinary(filename); in getSymbols()
42 errx(1, "failed to open library at %s: %s\n", filename.c_str(), in getSymbols()
48 errx(1, "failed to parse %s as ELF", filename.c_str()); in getSymbols()
55 errx(1, "failed to get symbol name for symbol in %s: %s", filename.c_str(), in getSymbols()
69 const std::string& filename, bool required) { in readPlatformFile() argument
79 "/arch-" + to_string(type.arch) + "/symbols/" + filename; in readPlatformFile()
90 errx(1, "failed to find platform file '%s' for %s", filename.c_str(), to_string(type).c_str()); in readPlatformFile()
DDeclarationDatabase.h113 std::string filename; member
118 return std::tie(filename, start, end) < std::tie(rhs.filename, rhs.start, rhs.end);
147 fprintf(out, "@ %s:%u:%u", StripPrefix(location.filename, base_path).str().c_str(),
DSymbolDatabase.h27 std::unordered_set<std::string> getSymbols(const std::string& filename);
DDriver.h40 const std::string& filename);
DDriver.cpp174 static std::vector<const char*> getCC1Command(CompilationType type, const std::string& filename) { in getCC1Command() argument
185 result.push_back(filename.c_str()); in getCC1Command()
230 const std::string& filename) { in compileHeader() argument
232 std::vector<const char*> cc1_flags = getCC1Command(type, filename); in compileHeader()
DDeclarationDatabase.cpp127 .filename = start_loc.getFilename(), in VisitDecl()
202 location.filename.c_str(), location.start.line, location.start.column); in VisitDecl()
350 ss << loc.filename << ":" << loc.start.line << ":" << loc.start.column; in to_string()
/bionic/libdl/
Dlibdl.c27 void* __loader_dlopen(const char* filename, int flags, const void* caller_addr);
63 void* __loader_android_dlopen_ext(const char* filename,
101 void* dlopen(const char* filename, int flag) { in dlopen() argument
103 return __loader_dlopen(filename, flag, caller_addr); in dlopen()
146 void* android_dlopen_ext(const char* filename, int flag, const android_dlextinfo* extinfo) { in android_dlopen_ext() argument
148 return __loader_android_dlopen_ext(filename, flag, extinfo, caller_addr); in android_dlopen_ext()
/bionic/libc/kernel/uapi/linux/
Dbcm933xx_hcs.h32 char filename[64]; member
/bionic/linker/
Ddlfcn.cpp81 static void* dlopen_ext(const char* filename, in dlopen_ext() argument
87 void* result = do_dlopen(filename, flags, extinfo, caller_addr); in dlopen_ext()
95 void* __android_dlopen_ext(const char* filename, in __android_dlopen_ext() argument
99 return dlopen_ext(filename, flags, extinfo, caller_addr); in __android_dlopen_ext()
102 void* __dlopen(const char* filename, int flags, const void* caller_addr) { in __dlopen() argument
103 return dlopen_ext(filename, flags, nullptr, caller_addr); in __dlopen()
/bionic/libc/bionic/
Dsystem_properties.cpp211 static prop_area* map_prop_area_rw(const char* filename, const char* context, in map_prop_area_rw() argument
216 const int fd = open(filename, O_RDWR | O_CREAT | O_NOFOLLOW | O_CLOEXEC | O_EXCL, 0444); in map_prop_area_rw()
231 "fsetxattr failed to set context (%s) for \"%s\"", context, filename); in map_prop_area_rw()
296 static prop_area* map_prop_area(const char* filename) { in map_prop_area() argument
297 int fd = open(filename, O_CLOEXEC | O_NOFOLLOW | O_RDONLY); in map_prop_area()
808 char filename[PROP_FILENAME_MAX]; in open() local
809 int len = __libc_format_buffer(filename, sizeof(filename), "%s/%s", property_filename, context_); in open()
816 pa_ = map_prop_area_rw(filename, context_, fsetxattr_failed); in open()
818 pa_ = map_prop_area(filename); in open()
843 char filename[PROP_FILENAME_MAX]; in check_access() local
[all …]
/bionic/libc/include/android/
Ddlext.h132 void* android_dlopen_ext(const char* filename, int flag, const android_dlextinfo* extinfo)
/bionic/libc/include/sys/
D_system_properties.h64 int __system_property_set_filename(const char *filename);
/bionic/libc/include/
Ddlfcn.h53 void* dlopen(const char* filename, int flag);
/bionic/libc/tools/
Dgenerate-NOTICE.py115 for filename in sorted(filenames):
116 path = os.path.join(directory, filename)
Dgensyscalls.py607 filename = "arch-%s/syscalls/%s.S" % (arch, syscall["func"])
608 logging.info(">>> generating " + filename)
609 fp = create_file(filename)
612 self.new_stubs.append(filename)
Dgenseccomp.py222 files = [open(filename) for filename in ANDROID_SYSCALL_FILES]

12