Home
last modified time | relevance | path

Searched refs:open_file (Results 1 - 25 of 31) sorted by relevance

12

/third_party/fsverity-utils/programs/
H A Dcmd_enable.c26 if (!open_file(&file, filename, O_RDONLY, 0)) in read_signature()
97 if (!open_file(&file, argv[0], O_RDONLY, 0)) in fsverity_cmd_enable()
H A Dcmd_sign.c22 if (!open_file(&file, filename, O_WRONLY|O_CREAT|O_TRUNC, 0644)) in write_signature()
116 if (!open_file(&file, argv[0], O_RDONLY, 0)) in fsverity_cmd_sign()
H A Dtest_sign_digest.c44 ASSERT(open_file(&file, "testdata/file.sig", O_RDONLY, 0)); in main()
H A Dcmd_measure.c37 if (!open_file(&file, argv[i], O_RDONLY, 0)) in fsverity_cmd_measure()
H A Dutils.h41 bool open_file(struct filedes *file, const char *filename, int flags, int mode);
H A Dcmd_dump_metadata.c128 if (!open_file(&file, argv[1], O_RDONLY, 0)) in fsverity_cmd_dump_metadata()
H A Dcmd_digest.c73 if (!open_file(&file, argv[i], O_RDONLY, 0)) in fsverity_cmd_digest()
H A Dfsverity.c272 return open_file(file, arg, O_WRONLY|O_CREAT|O_TRUNC, 0644); in parse_out_metadata_option()
H A Dutils.c107 bool open_file(struct filedes *file, const char *filename, int flags, int mode) in open_file() function
/third_party/ltp/testcases/kernel/sched/sched_stress/
H A Dsched_tc6.c121 int open_file(char *, int);
180 fd = open_file(filename, O_RDWR); in main()
254 | open_file () |
260 int open_file(char *file, int open_mode) in open_file() function
/third_party/python/Lib/test/
H A Dtest_modulefinder.py290 def open_file(path): function
313 ofi = open_file(os.path.join(test_dir, line.strip()))
387 with open_file(source_path) as file:
H A Dtest_devpoll.py92 open_file = open(__file__, "rb")
93 self.addCleanup(open_file.close)
94 fd = open_file.fileno()
H A Dtest_epoll.py232 open_file = open(__file__, "rb")
233 self.addCleanup(open_file.close)
234 fd = open_file.fileno()
H A Dtest_kqueue.py234 open_file = open(__file__, "rb")
235 self.addCleanup(open_file.close)
236 fd = open_file.fileno()
H A Dtest_tempfile.py1548 with open(temp_path / "a_file.txt", "w+t") as open_file:
1549 open_file.write("Hello world!\n")
1704 with open(temp_path / "a_file.txt", "w+t") as open_file:
1705 open_file.write("Hello world!\n")
1765 open_file = open(temp_dir_2 / "open_file.txt", "w")
1766 open_file.write("Hello world!")
/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify04.c90 static void open_file(char *file) in open_file() function
183 open_file(fname); in test01()
/third_party/mesa3d/src/amd/compiler/tests/
H A Dglsl_scraper.py272 def open_file(name, mode): function
313 with open_file(infname, 'r') as infile:
320 with open_file(outfname, 'w') as outfile:
/third_party/ltp/metadata/
H A Dmetaparse.c222 static FILE *open_file(const char *dir, const char *fname) in open_file() function
256 inc = open_file(includepath, fname); in open_include()
265 inc = open_file(cmdline_includepath[i], fname); in open_include()
/third_party/elfutils/src/
H A Delfcmp.c40 static Elf *open_file (const char *fname, int *fdp, Ebl **eblp);
161 Elf *elf1 = open_file (fname1, &fd1, &ebl1); in main()
166 Elf *elf2 = open_file (fname2, &fd2, &ebl2); in main()
729 open_file (const char *fname, int *fdp, Ebl **eblp) in open_file() function
H A Delfclassify.c48 /* Set by open_file. */
81 open_file (void) in open_file() function
129 if (!open_file ()) in open_elf()
/third_party/ntfs-3g/src/
H A Dntfs-3g_common.h179 struct open_file *open_files; /* only defined in lowntfs-3g */
H A Dlowntfs-3g.c214 struct open_file { struct
215 struct open_file *next;
216 struct open_file *previous;
1606 struct open_file *of; in ntfs_fuse_open()
1679 of = (struct open_file*)malloc(sizeof(struct open_file)); in ntfs_fuse_open()
1688 of->previous = (struct open_file*)NULL; in ntfs_fuse_open()
1731 struct open_file *of; in ntfs_fuse_read()
1733 of = (struct open_file*)(long)fi->fh; in ntfs_fuse_read()
1812 struct open_file *o in ntfs_fuse_write()
[all...]
/third_party/ffmpeg/libavformat/
H A Dconcatdec.c333 static int open_file(AVFormatContext *avf, unsigned fileno) in open_file() function
684 if ((ret = open_file(avf, 0)) < 0) in concat_read_header()
701 return open_file(avf, fileno); in open_next_file()
871 if ((ret = open_file(avf, left)) < 0) in real_seek()
883 if ((ret = open_file(avf, left + 1)) < 0) in real_seek()
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/
H A Dsegment.c284 * open_file() -- open and validate file when registering a file segment.
287 static int open_file(segment_t * segp) in open_file() function
541 return open_file(segp); in segment_register()
/third_party/ntfs-3g/ntfsprogs/
H A Dntfsundelete.c1891 * open_file - Open a file to write to
1901 static int open_file(const char *pathname) in open_file() function
2048 fd = open_file(pathname); in undelete_file()
2078 fd = open_file(pathname); in undelete_file()
2388 fd = open_file(pathname); in copy_mft()

Completed in 21 milliseconds

12