Searched refs:open (Results 26 - 50 of 240) sorted by relevance

12345678910

/fuchsia/zircon/system/utest/fs/
H A Dtest-link.c41 int fd = open(oldpath, O_RDWR | O_CREAT | O_EXCL, 0644);
56 int fd2 = open(newpath, O_RDONLY, 0644);
69 fd = open(newpath, O_RDONLY, 0644);
93 int fd = open("::dira/file", O_RDWR | O_CREAT | O_EXCL, 0644);
194 int fd = open("::dir/dir_child", O_RDWR | O_CREAT | O_EXCL, 0644);
198 int fd2 = open("::dir_parent_alt/dir_semi_parent/dir_child_a", O_RDWR | O_CREAT | O_EXCL, 0644);
240 int fd = open(oldpath, O_RDWR | O_CREAT | O_EXCL, 0644);
252 int fd2 = open(newpath, O_RDWR, 0644);
263 fd = open(newpath, O_RDWR, 0644);
296 int fd = open(oldpat
[all...]
H A Dtest-directory.cpp38 int fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
45 ASSERT_EQ(open(path, O_RDWR | O_CREAT | O_EXCL, 0644), -1);
66 int fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
95 int fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
127 int fd = open(files[i], O_RDWR | O_CREAT | O_EXCL, 0644);
178 int dirfd = open("::coalesce_lr", O_RDONLY | O_DIRECTORY);
203 dirfd = open("::coalesce_lr", O_RDONLY | O_DIRECTORY);
240 int fd = open("::a", O_RDWR | O_CREAT | O_EXCL, 0644);
246 fd = open("::a", O_RDWR | O_CREAT | O_EXCL, 0644);
249 ASSERT_EQ(open("
[all...]
H A Dtest-mmap.cpp35 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL);
59 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL);
95 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL);
147 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL);
182 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL);
193 int fd2 = open(kFilename, O_RDWR);
218 fd = open(kFilename, O_RDONLY);
242 int fd = open(kFilename, O_RDWR | O_CREAT | O_EXCL);
295 int fd = open("::mydir", O_RDONLY | O_DIRECTORY);
303 fd = open("
[all...]
H A Dtest-rename.c35 int fd = open("::bravo", O_RDWR | O_CREAT | O_EXCL, 0644);
48 fd = open("::alpha/charlie", O_RDWR | O_CREAT | O_EXCL, 0644);
60 fd = open("::alpha/charlie", O_RDWR | O_CREAT | O_EXCL, 0644);
99 int fd = open("::dir_before_move/file", O_RDWR | O_CREAT, 0644);
126 fd = open("::dir/file", O_RDONLY, 06444);
195 int foofd = open("::foo", O_RDONLY | O_DIRECTORY, 0644);
197 int barfd = open("::bar", O_RDONLY | O_DIRECTORY, 0644);
H A Dtest-maxfile.cpp46 int fd = open("::bigfile", O_CREAT | O_RDWR, 0644);
106 fd = open("::bigfile", O_RDWR, 0644);
147 int fda = open("::bigfile-A", O_CREAT | O_RDWR, 0644);
148 int fdb = open("::bigfile-B", O_CREAT | O_RDWR, 0644);
202 fda = open("::bigfile-A", O_RDWR, 0644);
203 fdb = open("::bigfile-B", O_RDWR, 0644);
H A Dtest-minfs.cpp32 fbl::unique_fd fd(open(kMountPath, O_RDONLY | O_DIRECTORY));
104 int fd = open(path, O_CREAT | O_RDWR);
119 fbl::unique_fd fd(open(kMountPath, O_RDONLY | O_DIRECTORY));
130 fbl::unique_fd fd(open(kMountPath, O_RDONLY | O_DIRECTORY));
143 fbl::unique_fd fd(open(kMountPath, O_RDONLY | O_DIRECTORY));
168 fbl::unique_fd fd(open(path, O_CREAT | O_RDWR));
174 fd.reset(open(path, O_CREAT | O_RDWR | O_EXCL));
263 fbl::unique_fd mnt_fd(open(kMountPath, O_RDONLY));
315 // Re-open files.
316 mnt_fd.reset(open(kMountPat
[all...]
H A Dtest-truncate.cpp30 int fd = open(filename, O_RDWR, 0644);
55 int fd = open(filename, O_RDWR | O_CREAT, 0644);
61 int fd2 = open(filename, O_RDWR | O_TRUNC, 0644);
129 int fd = open(filename, O_RDWR, 0644);
137 fd = open(filename, O_RDWR, 0644);
147 fd = open(filename, O_RDWR, 0644);
203 int fd = open(filename, O_RDWR | O_CREAT, 0644);
269 int fd = open("::truncate-sparse", O_CREAT | O_RDWR);
292 int fd = open("::truncate_errno", O_RDWR | O_CREAT | O_EXCL);
H A Dtest-append.cpp32 int fd = open("::alpha", O_RDWR | O_CREAT, 0644);
55 fd = open("::alpha", O_RDWR | O_CREAT | O_APPEND, 0644);
126 fbl::unique_fd fd(open("::append_clone", O_RDWR | O_CREAT | O_APPEND));
169 int fd = open("::append-atomic", O_WRONLY | O_CREAT | O_APPEND);
194 int fd = open("::append-atomic", O_RDONLY);
/fuchsia/zircon/system/uapp/audio-codec/
H A Daudio-codec.c12 int fd = open(dev, O_RDONLY);
/fuchsia/zircon/system/uapp/lsdev/
H A Dlsdev.c21 int fd = open(argv[1], O_RDONLY);
23 fprintf(stderr, "could not open %s: %s\n", argv[1], strerror(errno));
/fuchsia/zircon/system/uapp/tpmctl/
H A Dtpmctl.c52 int fd = open("/dev/class/tpm/000", O_RDWR);
/fuchsia/zircon/system/uapp/watch/
H A Dwatch.c34 if ((fd = open(argv[1], O_DIRECTORY | O_RDONLY)) < 0) {
35 fprintf(stderr, "cannot open directory '%s'\n", argv[1]);
/fuchsia/zircon/system/ulib/driver-info/
H A Ddriver-info-app.c31 if ((fd = open(argv[1], O_RDONLY)) >= 0) {
37 printf("error: cannot open file\n");
/fuchsia/zircon/system/utest/kernel-unittests/
H A Dkernel-unittests.cpp19 int dmctl_fd = open("/dev/misc/dmctl", O_WRONLY);
/fuchsia/zircon/third_party/ulib/backtrace/
H A Dposix.c67 descriptor = open (filename, (int) (O_RDONLY | O_BINARY | O_CLOEXEC));
/fuchsia/zircon/third_party/ulib/musl/src/legacy/
H A Dgetpass.c14 if ((fd = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC)) < 0)
/fuchsia/zircon/third_party/ulib/musl/src/mman/
H A Dshm_open.c32 return open(name, flag | O_NOFOLLOW | O_CLOEXEC | O_NONBLOCK, mode);
/fuchsia/zircon/third_party/ulib/musl/src/temp/
H A Dmkostemps.c21 if ((fd = open(template, flags | O_RDWR | O_CREAT | O_EXCL, 0600)) >= 0)
/fuchsia/zircon/system/dev/serial/serial/
H A Dserial.c26 bool open; member in struct:__anon470
146 port->open = false;
199 if (port->open) {
231 port->open = true;
253 if (port->open) {
262 port->open = true;
274 if (port->open) {
277 port->open = false;
281 zxlogf(ERROR, "port_serial_close called when not open\n");
291 if (!port->open) {
[all...]
/fuchsia/zircon/system/uapp/serial-test/
H A Dserial-test.c42 fd = open(path, O_RDWR);
83 fd = open(path, O_RDWR);
/fuchsia/zircon/system/utest/posixio/
H A Dmain.cpp74 int rc = open("", flags);
87 rc = open("", flags | O_CREAT, mode);
/fuchsia/zircon/system/utest/fs-test-utils/
H A Dfixture_test.cpp23 fbl::unique_fd fd(open(block_device_path.c_str(), O_RDONLY));
174 fbl::unique_fd ramdisk_fd(open(fixture.block_device_path().c_str(), O_RDONLY));
186 fbl::unique_fd blk_fd(open(fixture.GetFsBlockDevice().c_str(), O_RDONLY));
205 fbl::unique_fd blk_fd(open(fixture.GetFsBlockDevice().c_str(), O_RDONLY));
210 fbl::unique_fd fvm_blk_fd(open(fixture.block_device_path().c_str(), O_RDONLY));
253 fbl::unique_fd blk_fd(open(fixture.block_device_path().c_str(), O_RDONLY));
259 blk_fd.reset(open(fixture.block_device_path().c_str(), O_RDONLY));
265 blk_fd.reset(open(fixture.block_device_path().c_str(), O_RDONLY));
301 fbl::unique_fd blk_fd(open(fixture.block_device_path().c_str(), O_RDONLY));
307 blk_fd.reset(open(fixtur
[all...]
/fuchsia/zircon/system/dev/audio/usb-audio/
H A Dusb-midi-sink.c28 // mutex for synchronizing access to free_write_reqs and open
33 bool open; member in struct:__anon184
96 if (sink->open) {
99 sink->open = true;
111 sink->open = false;
193 .open = usb_midi_sink_open,
H A Dusb-midi-source.c29 // mutex for synchronizing access to free_read_reqs, completed_reads and open
32 bool open; member in struct:__anon185
101 if (source->open) {
104 source->open = true;
125 source->open = false;
187 .open = usb_midi_source_open,
/fuchsia/zircon/system/ulib/fs-management/
H A Dramdisk.cpp71 fprintf(stderr, "unable to open '%s'\n", path);
102 int fd = open(RAMCTL_PATH, O_RDWR);
104 fprintf(stderr, "Could not open ramctl\n");
179 fbl::unique_fd fd(open(ramdisk_path, O_RDWR));
181 fprintf(stderr, "Could not open ramdisk\n");
194 fbl::unique_fd fd(open(ramdisk_path, O_RDWR));
196 fprintf(stderr, "Could not open ramdisk\n");
210 fbl::unique_fd fd(open(ramdisk_path, O_RDWR));
212 fprintf(stderr, "Could not open ramdisk\n");
223 fbl::unique_fd ramdisk(open(ramdisk_pat
[all...]

Completed in 104 milliseconds

12345678910