Searched refs:open (Results 201 - 225 of 1863) sorted by relevance

1234567891011>>

/freebsd-current/crypto/openssh/openbsd-compat/regress/
H A Dclosefromtest.c43 if ((fds[i] = open("/dev/null", O_RDONLY)) == -1)
/freebsd-current/contrib/libfido2/openbsd-compat/
H A Dposix_win.c32 return (open(path, flags, mode));
H A Dposix_win.h39 #define open(path, ...) posix_open(path, __VA_ARGS__) macro
/freebsd-current/contrib/mandoc/
H A Dcompat_mkstemps.c53 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 Dread_dos_attributes.c40 int fd = open(argv[1], O_RDONLY | O_CLOEXEC);
/freebsd-current/tools/test/stress2/misc/
H A Dlink.sh118 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 Dadvlock.sh30 # 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 Dtmpfile_003_pos.c21 * 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 Dmkfiles.c52 if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) {
H A Ddosmode_readonly_write.c28 * 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 Dfile_fadvise.c87 if ((fd = open(filename, O_RDWR, 0666)) < 0) {
88 perror("open");
/freebsd-current/sys/contrib/openzfs/lib/libspl/os/linux/
H A Dgethostid.c71 int fd = open("/etc/hostid", O_RDONLY | O_CLOEXEC);
/freebsd-current/bin/cp/tests/
H A Dsparse.c28 if ((fd = open(filename, O_RDONLY)) < 0 ||
/freebsd-current/contrib/tcp_wrappers/
H A Dshell_cmd.c80 if (open("/dev/null", 2) != 0) {
81 error = "open /dev/null: %m";
/freebsd-current/tests/sys/vm/
H A Dmmap_map_32bit_helper.c26 fd = open("/dev/zero", O_RDONLY);
28 err(1, "open failed");
/freebsd-current/share/examples/kld/cdev/test/
H A Dtestcdev.c96 if ((kernel_fd = open("/dev/" CDEV_DEVICE, O_RDWR)) == -1) {
/freebsd-current/lib/libsecureboot/
H A Dreadfile.c63 if ((fd = open(path, O_RDONLY)) < 0)
/freebsd-current/share/examples/ses/srcs/
H A Dgetobjstat.c57 fd = open(v[1], O_RDONLY);
/freebsd-current/libexec/rtld-elf/tests/
H A Dcommon.c71 return open(name, O_RDONLY | O_DIRECTORY);
/freebsd-current/usr.bin/bc/
H A Dscan.l288 err(1, "cannot open %s", filename);
309 err(1, "cannot open %s", filename);
/freebsd-current/tests/sys/kern/pipe/
H A Dpipe_overcommit2_test.c56 returnval = open(template, O_RDONLY);
/freebsd-current/tools/tools/commitsdb/
H A Dquery_commit_db19 open DB, "< $dbname" or die "$!\n";
47 open DB, "< $dbname" or die "$!\n";
/freebsd-current/tests/sys/ses/
H A Dcommon.h48 fd = open(g.gl_pathv[i], oflags);
/freebsd-current/usr.sbin/lptcontrol/
H A Dlptcontrol.c99 if ((fd = open(device, O_WRONLY)) < 0)
100 err(1, "open");
/freebsd-current/tools/tools/mfi/
H A Dmfi_checkq.c58 fd = open("/dev/mfi0", O_RDWR);
60 printf("couldn't open mfi0: %s\n", strerror(errno));

Completed in 159 milliseconds

1234567891011>>