Searched refs:O_RDONLY (Results 126 - 150 of 847) sorted by relevance

1234567891011>>

/freebsd-11-stable/usr.bin/mkuzip/
H A Dmkuz_insize.c59 ffd = open(statfsbuf.f_mntfromname, O_RDONLY);
61 warn("open(%s, O_RDONLY)", statfsbuf.f_mntfromname);
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/
H A Dt_ftok.c68 fd = open(path, O_RDONLY | O_CREAT, 0600);
/freebsd-11-stable/contrib/expat/xmlwf/
H A Dunixfilemap.c64 fd = topen(name, O_RDONLY);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/
H A DFileAction.cpp41 m_arg = O_NOCTTY | O_RDONLY;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DRandomNumberGenerator.cpp69 int Fd = open("/dev/urandom", O_RDONLY);
/freebsd-11-stable/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c187 ret = openat(dfd_cap, "cap_create", O_CREAT | O_RDONLY, 0600);
188 CHECK_RESULT(openat(O_CREATE | O_RDONLY),
210 ret = openat(dfd_cap, "cap_fsync", O_FSYNC | O_RDONLY);
211 CHECK_RESULT(openat(O_FSYNC | O_RDONLY),
222 ret = openat(dfd_cap, "cap_fsync", O_SYNC | O_RDONLY);
223 CHECK_RESULT(openat(O_SYNC | O_RDONLY),
242 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDONLY);
243 CHECK_RESULT(openat(O_TRUNC | O_RDONLY),
447 dirfd = open(dir, O_RDONLY | O_DIRECTORY);
453 tmpfd = open("/tmp", O_RDONLY | O_DIRECTOR
[all...]
/freebsd-11-stable/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c38 * aio_read(2) O_RDONLY or O_RDWR yes
43 * extattr_get_fd(2) O_RDONLY or O_RDWR no
44 * extattr_list_fd(2) O_RDONLY or O_RDWR no
57 * getdents(2) O_RDONLY directory yes
59 * mmap(2) PROT_READ O_RDONLY or O_RDWR yes
61 * mmap(2) PROT_WRITE + MAP_PRIV O_RDONLY or O_RDWR yes
62 * mmap(2) PROT_EXEC O_RDONLY or O_RDWR yes
63 * pread(2) O_RDONLY or O_RDWR yes
64 * preadv(2) O_RDONLY or O_RDWR yes
67 * read(2) O_RDONLY o
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/c063/
H A Dt_renameat.c71 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1);
72 ATF_REQUIRE((nfd = open(NDIR, O_RDONLY, 0)) != -1);
H A Dt_readlinkat.c69 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
125 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
H A Dt_mkdirat.c61 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mkfifo.c92 fd = open(path, O_RDONLY);
175 * If we open the FIFO as O_NONBLOCK, the O_RDONLY
179 fd = open(path, O_RDONLY | O_NONBLOCK);
H A Dt_socketpair.c63 while ((i = open("/", O_RDONLY)) < 3)
131 fd = open("/", O_RDONLY);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_pcf.c76 fd = open(device, O_RDONLY);
79 fd = open(device, O_RDONLY);
/freebsd-11-stable/contrib/pjdfstest/tests/ftruncate/
H A D00.t45 expect EINVAL -u 65534 open ${n0} O_RDONLY : ftruncate 0 123
/freebsd-11-stable/contrib/ntp/sntp/libopts/
H A Dtext_mmap.c132 mapinfo->txt_zero_fd = open("/dev/zero", O_RDONLY);
188 int o_flag = FILE_WRITABLE(prot, flags) ? O_RDWR : O_RDONLY;
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-enet.c156 GETENETDEVICE(0, O_RDONLY, &if_fd);
158 if_fd = open("/dev/enet", O_RDONLY, 0);
/freebsd-11-stable/contrib/netbsd-tests/fs/vfs/
H A Dt_vfsops.c110 fd = rump_sys_fhopen(fhp, fhsize, O_RDONLY);
152 ATF_REQUIRE_ERRNO(ESTALE, rump_sys_fhopen(fhp, fhsize, O_RDONLY) == -1);
H A Dt_union.c52 fd = rump_sys_open(pathb, O_RDONLY);
141 RL(fd = rump_sys_open(mp, O_RDONLY));
H A Dt_rwtoro.c99 RL(file_fd = rump_sys_open(file_path, O_RDONLY));
109 RL(file_fd = rump_sys_open(file_path, O_RDONLY));
/freebsd-11-stable/contrib/mdocml/
H A Dcatman.c127 if ((in_fd = open(path, O_RDONLY)) == -1) {
245 if ((dstdir_fd = open(argv[1], O_RDONLY | O_DIRECTORY)) == -1)
/freebsd-11-stable/usr.sbin/acpi/acpidump/
H A Dacpi_user.c65 acpi_mem_fd = open("/dev/mem", O_RDONLY);
206 if ((acpi_mem_fd = open(infile, O_RDONLY)) == -1)
/freebsd-11-stable/stand/powerpc/kboot/
H A Dkbootfdt.c54 fd = host_open(path, O_RDONLY, 0);
80 pfd = host_open(subpath, O_RDONLY, 0);
/freebsd-11-stable/lib/libc/tests/gen/
H A Ddir2_test.c64 dirfd = open(tmpdir, O_RDONLY | O_DIRECTORY);
141 dirfd = open(tmpdir, O_RDONLY | O_DIRECTORY);
/freebsd-11-stable/stand/liblua/
H A Dlstd.c46 m = O_RDONLY;
170 fd = open(name, O_RDONLY);
/freebsd-11-stable/usr.bin/lockf/
H A Dlockf.c174 if ((fd = open(name, O_RDONLY|O_EXLOCK|flags, 0666)) == -1) {
239 if ((fd = open(name, O_RDONLY|O_EXLOCK, 0666)) == -1) {

Completed in 289 milliseconds

1234567891011>>