Searched refs:dir_fd (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | files.cc | 35 void HandleError(const std::string& temp_path, int* dir_fd, FILE** fp) { in HandleError() argument 43 if (*dir_fd != -1) { in HandleError() 44 close(*dir_fd); in HandleError() 45 *dir_fd = -1; in HandleError() 124 int dir_fd = open(directory_path.c_str(), O_RDONLY | O_DIRECTORY); in WriteToFile() local 125 if (dir_fd < 0) { in WriteToFile() 133 HandleError(temp_path, &dir_fd, &fp); in WriteToFile() 139 HandleError(temp_path, &dir_fd, &fp); in WriteToFile() 146 HandleError(temp_path, &dir_fd, &fp); in WriteToFile() 159 HandleError(temp_path, &dir_fd, &fp); in WriteToFile() [all …]
|
/packages/modules/Virtualization/authfs/fd_server/src/ |
D | aidl.rs | 259 fn openFileInDirectory(&self, dir_fd: i32, file_path: &str) -> BinderResult<i32> { in openFileInDirectory() 266 self.insert_new_fd(dir_fd, |config| match config { in openFileInDirectory() 284 fn createFileInDirectory(&self, dir_fd: i32, basename: &str, mode: i32) -> BinderResult<i32> { in createFileInDirectory() 287 self.insert_new_fd(dir_fd, |config| match config { in createFileInDirectory() 312 dir_fd: i32, in createDirectoryInDirectory() 318 self.insert_new_fd(dir_fd, |config| match config { in createDirectoryInDirectory() 322 mkdirat(Some(dir_fd), basename, mode).map_err(new_errno_error)?; in createDirectoryInDirectory() 324 Some(dir_fd), in createDirectoryInDirectory() 338 fn deleteFile(&self, dir_fd: i32, basename: &str) -> BinderResult<()> { in deleteFile() 341 self.handle_fd(dir_fd, |config| match config { in deleteFile() [all …]
|
/packages/modules/Bluetooth/system/osi/src/ |
D | config.cc | 273 int dir_fd = -1; in config_save() local 288 dir_fd = open(directoryname.c_str(), O_RDONLY); in config_save() 289 if (dir_fd < 0) { in config_save() 350 if (fsync(dir_fd) < 0) { in config_save() 354 if (close(dir_fd) < 0) { in config_save() 366 if (dir_fd != -1) close(dir_fd); in config_save() 384 int dir_fd = -1; in checksum_save() local 399 dir_fd = open(directoryname.c_str(), O_RDONLY); in checksum_save() 400 if (dir_fd < 0) { in checksum_save() 445 if (fsync(dir_fd) < 0) { in checksum_save() [all …]
|
/packages/modules/Virtualization/authfs/src/fusefs/ |
D | file.rs | 82 FileInfo::ByPathUnderDirFd(dir_fd, related_path) => { in ensure_init_then() 83 RemoteFileReader::new_by_path(self.service.clone(), *dir_fd, related_path)? in ensure_init_then()
|
/packages/modules/Virtualization/authfs/src/file/ |
D | remote_file.rs | 54 dir_fd: i32, in new_by_path() 58 service.openFileInDirectory(dir_fd, related_path.to_str().unwrap()).map_err(|e| { in new_by_path()
|