/freebsd-current/crypto/openssh/openbsd-compat/regress/ |
H A D | closefromtest.c | 43 if ((fds[i] = open("/dev/null", O_RDONLY)) == -1)
|
/freebsd-current/contrib/libfido2/openbsd-compat/ |
H A D | posix_win.c | 32 return (open(path, flags, mode));
|
H A D | posix_win.h | 39 #define open(path, ...) posix_open(path, __VA_ARGS__) macro
|
/freebsd-current/contrib/mandoc/ |
H A D | compat_mkstemps.c | 53 fd = open(path, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/linux_dos_attributes/ |
H A D | read_dos_attributes.c | 40 int fd = open(argv[1], O_RDONLY | O_CLOEXEC);
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | link.sh | 118 if ((fd = open(name1, O_RDWR | O_CREAT, 0644)) == -1) 119 err(1, "open(%s)", name1); 125 if ((fd = open(name1, O_RDWR | O_CREAT, 0644)) == -1) 126 err(1, "open(%s)", name1); 150 if ((fd = open(name1, O_RDWR | O_CREAT, 0644)) == -1) 151 err(1, "open(%s)", name1); 158 if ((fd = open(name1, O_RDWR | O_CREAT, 0644)) == -1) 159 err(1, "open(%s)", name1);
|
H A D | advlock.sh | 30 # The first change closes a race where an open() that will block with O_SHLOCK 34 # preventing other threads from successfully completing a writable open(). 36 # The second change closes a race where a read-only open() with O_SHLOCK or 38 # another descriptor that had the advisory lock and was blocking the open() 40 # open() then attempts to call exec() on the file it locked, it can fail with 124 if ((fd = open(cmdline[0], O_RDONLY | O_SHLOCK)) == -1) 125 err(1, "open(%s). %d", cmdline[0], __LINE__); 144 if ((fd = open(cmdline[0], O_WRONLY | O_EXLOCK)) == -1) { 146 err(1, "open(%s). %d", cmdline[0], __LINE__); 167 if ((fd = open(cmdlin [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/ |
H A D | tmpfile_003_pos.c | 21 * 1. open(2) with O_TMPFILE|O_EXCL. 44 fd = open(penv[0], O_RDWR|O_TMPFILE|O_EXCL, 0666); 46 err(2, "open(%s)", penv[0]);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | mkfiles.c | 52 if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) {
|
H A D | dosmode_readonly_write.c | 28 * We should be able to open a file RW, set READONLY, and still write to the fd. 56 fd = open(path, O_CREAT|O_RDWR, 0777); 58 err(EXIT_FAILURE, "%s: open failed", path);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/file/ |
H A D | file_fadvise.c | 87 if ((fd = open(filename, O_RDWR, 0666)) < 0) { 88 perror("open");
|
/freebsd-current/sys/contrib/openzfs/lib/libspl/os/linux/ |
H A D | gethostid.c | 71 int fd = open("/etc/hostid", O_RDONLY | O_CLOEXEC);
|
/freebsd-current/bin/cp/tests/ |
H A D | sparse.c | 28 if ((fd = open(filename, O_RDONLY)) < 0 ||
|
/freebsd-current/contrib/tcp_wrappers/ |
H A D | shell_cmd.c | 80 if (open("/dev/null", 2) != 0) { 81 error = "open /dev/null: %m";
|
/freebsd-current/tests/sys/vm/ |
H A D | mmap_map_32bit_helper.c | 26 fd = open("/dev/zero", O_RDONLY); 28 err(1, "open failed");
|
/freebsd-current/share/examples/kld/cdev/test/ |
H A D | testcdev.c | 96 if ((kernel_fd = open("/dev/" CDEV_DEVICE, O_RDWR)) == -1) {
|
/freebsd-current/lib/libsecureboot/ |
H A D | readfile.c | 63 if ((fd = open(path, O_RDONLY)) < 0)
|
/freebsd-current/share/examples/ses/srcs/ |
H A D | getobjstat.c | 57 fd = open(v[1], O_RDONLY);
|
/freebsd-current/libexec/rtld-elf/tests/ |
H A D | common.c | 71 return open(name, O_RDONLY | O_DIRECTORY);
|
/freebsd-current/usr.bin/bc/ |
H A D | scan.l | 288 err(1, "cannot open %s", filename); 309 err(1, "cannot open %s", filename);
|
/freebsd-current/tests/sys/kern/pipe/ |
H A D | pipe_overcommit2_test.c | 56 returnval = open(template, O_RDONLY);
|
/freebsd-current/tools/tools/commitsdb/ |
H A D | query_commit_db | 19 open DB, "< $dbname" or die "$!\n"; 47 open DB, "< $dbname" or die "$!\n";
|
/freebsd-current/tests/sys/ses/ |
H A D | common.h | 48 fd = open(g.gl_pathv[i], oflags);
|
/freebsd-current/usr.sbin/lptcontrol/ |
H A D | lptcontrol.c | 99 if ((fd = open(device, O_WRONLY)) < 0) 100 err(1, "open");
|
/freebsd-current/tools/tools/mfi/ |
H A D | mfi_checkq.c | 58 fd = open("/dev/mfi0", O_RDWR); 60 printf("couldn't open mfi0: %s\n", strerror(errno));
|