Searched refs:kOpenFlags (Results 1 – 6 of 6) sorted by relevance
283 int kOpenFlags; in openFileDescriptor() local286 kOpenFlags = O_WRONLY | O_CREAT | O_TRUNC; in openFileDescriptor()289 kOpenFlags = O_RDWR | O_CREAT; in openFileDescriptor()293 fd = open(in_fileUri.c_str(), kOpenFlags, kFileMode); in openFileDescriptor()
335 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CreateLoopDevice() local336 android::base::unique_fd file_fd(open(file.c_str(), kOpenFlags)); in CreateLoopDevice()401 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in MapWithLoopDeviceList() local402 unique_fd fd(open(block_device.c_str(), kOpenFlags)); in MapWithLoopDeviceList()
306 static const int kOpenFlags = (O_RDONLY | O_WRONLY | O_RDWR | O_DSYNC | O_SYNC); in CreateFromFd() local307 int open_flags = fs_flags & (kOpenFlags); in CreateFromFd()308 fs_flags = fs_flags & (~(kOpenFlags)); in CreateFromFd()
59 static constexpr int kOpenFlags = O_WRONLY | O_CREAT | O_EXCL; variable131 const int dstFd = open(destPath, kOpenFlags, kFileMode); in transcodeHelper()
211 … static const int kOpenFlags = O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in ExportFiles() local212 unique_fd fd(open(file_path.c_str(), kOpenFlags, 0644)); in ExportFiles()
395 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CheckCreateLoopDevice() local396 android::base::unique_fd file_fd(open(file.c_str(), kOpenFlags)); in CheckCreateLoopDevice()