Home
last modified time | relevance | path

Searched refs:open_flags (Results 1 – 9 of 9) sorted by relevance

/system/core/trusty/storage/proxy/
Dstorage.c52 static uint32_t insert_fd(int open_flags, int fd) in insert_fd() argument
56 if (open_flags & O_CREAT) { in insert_fd()
62 if (open_flags & O_TRUNC) { in insert_fd()
67 if (open_flags & (O_TRUNC | O_CREAT)) { in insert_fd()
244 int open_flags = O_RDWR; in storage_file_open() local
247 open_flags |= O_TRUNC; in storage_file_open()
253 open_flags |= O_CREAT | O_EXCL; in storage_file_open()
254 rc = TEMP_FAILURE_RETRY(open(path, open_flags, S_IRUSR | S_IWUSR)); in storage_file_open()
257 rc = TEMP_FAILURE_RETRY(open(path, open_flags, S_IRUSR | S_IWUSR)); in storage_file_open()
260 open_flags |= O_CREAT; in storage_file_open()
[all …]
/system/extras/ioshark/
Dconvert_format.c254 new_disk_file_op.open_flags = in main()
258 new_disk_file_op.open_flags = in main()
259 htobe32(new_disk_file_op.open_flags); in main()
Dioshark_bench.c307 if (file_op->open_flags & O_CREAT) { in do_one_io()
309 file_op->open_flags, in do_one_io()
325 file_op->open_flags, in do_one_io()
332 file_op->open_flags); in do_one_io()
334 if (file_op->open_flags & O_DIRECTORY) { in do_one_io()
342 file_op->open_flags, in do_one_io()
Dioshark.h110 #define open_flags u.open_a.flags macro
Dcompile_ioshark_subr.c265 file_op->open_flags = htobe32(file_op->open_flags); in ioshark_write_file_op()
DREADME96 #define open_flags u.open_a.flags
Dioshark_bench_subr.c712 file_op->open_flags = be32toh(file_op->open_flags); in ioshark_read_file_op()
Dcompile_ioshark.c622 disk_file_op->open_flags = in main()
/system/core/fs_mgr/libfiemap_writer/
Dfiemap_writer.cpp569 int open_flags = O_RDWR | O_CLOEXEC; in Open() local
574 open_flags |= O_CREAT | O_TRUNC; in Open()
577 TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags, S_IRUSR | S_IWUSR))); in Open()