Searched refs:open (Results 251 - 275 of 1863) sorted by relevance

<<11121314151617181920>>

/freebsd-current/tools/test/stress2/misc/
H A Dposix_openpt2.sh97 if ((fd = open(p->fts_path, O_RDONLY)) > 0)
124 if ((slavefd = open(slave, O_RDWR|O_NOCTTY)) == -1)
125 err(1, "open(%s)", slave);
H A Dprocfs5.sh77 fd = open(name, O_RDONLY);
79 err(1, "open");
H A Dmmap28.sh83 if ((rfd = open("/dev/random", O_RDONLY)) == -1)
84 err(1, "open(/dev/random)");
87 if ((fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0640)) == -1)
88 err(1,"open(%s)", path);
H A Dspin.sh111 /* open(2) blocked on "ufs" for minutes */
112 if ((fd = open("rendezvous", O_CREAT, 0644)) == -1)
113 err(1, "open()");
H A Dkevent10.sh75 if (open(fn, O_RDWR | O_CREAT, 0666) == -1)
H A Dprocfs4.sh109 if ((fd = open(path, O_RDWR)) == -1)
110 if ((fd = open(path, O_RDONLY)) == -1)
H A Dmd8.sh87 if ((fd = open(path, O_RDONLY)) == -1)
88 err(1, "open(%s)", path);
93 if ((fd = open(path, O_WRONLY)) == -1)
94 err(1, "open(%s)", path);
99 if ((fd = open(path, O_RDONLY)) == -1)
100 err(1, "open(%s)", path);
/freebsd-current/tools/test/stress2/testcases/lockf2/
H A Dlockf2.c84 if ((fd = open(file,O_CREAT | O_TRUNC | O_RDWR, 0600)) == -1)
107 if ((fd = open(file, O_RDWR, 0600)) == -1)
108 err(1, "open(%s)", file);
/freebsd-current/crypto/openssh/
H A Dsshbuf-io.c86 if ((fd = open(path, O_RDONLY)) == -1)
105 if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)) == -1)
H A Dssh-keysign.c192 if ((fd = open(_PATH_DEVNULL, O_RDWR)) < 2)
204 key_fd[i++] = open(_PATH_HOST_DSA_KEY_FILE, O_RDONLY);
206 key_fd[i++] = open(_PATH_HOST_ECDSA_KEY_FILE, O_RDONLY);
207 key_fd[i++] = open(_PATH_HOST_ED25519_KEY_FILE, O_RDONLY);
208 key_fd[i++] = open(_PATH_HOST_XMSS_KEY_FILE, O_RDONLY);
209 key_fd[i++] = open(_PATH_HOST_RSA_KEY_FILE, O_RDONLY);
240 fatal("could not open any host key");
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Drm_lnkcnt_zero_file.c107 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
109 perror("fail to open test file, refreshing it");
133 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
/freebsd-current/tools/test/stress2/tools/
H A Dbench.c75 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
77 err(1, "open(%s)", file);
106 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
108 err(1, "open(%s)", file);
135 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
137 err(1, "open(%s)", file);
168 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
170 err(1, "open(%s)", file);
200 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
202 err(1, "open(
[all...]
/freebsd-current/contrib/googletest/googletest/test/
H A Dgoogletest-json-outfiles-test.py170 with open(output_file1) as f:
173 with open(output_file2) as f:
/freebsd-current/usr.bin/ar/
H A Dacplex.l62 OPEN|open { return (OPEN); }
/freebsd-current/tests/sys/audit/
H A Dfile-write.c51 ATF_REQUIRE((filedesc = open(path, O_CREAT, mode)) != -1);
96 ATF_REQUIRE((filedesc = open(path, O_CREAT | O_RDWR)) != -1);
/freebsd-current/usr.bin/tip/libacu/
H A Ddn11.c54 if ((dn = open(acu, 1)) < 0) {
58 printf("acu open error...");
81 * open line - will return on carrier
83 if ((FD = open(DV, 2)) < 0) {
87 printf("dialup line open failed...");
/freebsd-current/tests/sys/cddl/zfs/bin/
H A Drm_lnkcnt_zero_file.c97 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
118 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
/freebsd-current/crypto/openssl/test/recipes/
H A D02-test_ordinals.t28 open(my $fh, '<', $filename);
/freebsd-current/contrib/kyua/utils/sqlite/
H A Ddatabase_test.cpp68 sqlite::database db = sqlite::database::open(fs::path("test.db"),
79 sqlite::database::open(fs::path("missing.db"), sqlite::open_readonly));
88 sqlite::database db = sqlite::database::open(fs::path("test.db"),
112 sqlite::database::open(fs::path("protected/test.db"),
168 const sqlite::database db = sqlite::database::open(fs::path("test.db"),
186 sqlite::database db = sqlite::database::open(fs::path("test.db"),
/freebsd-current/contrib/capsicum-test/
H A Dfexecve.cc31 exec_fd_ = open(exec_prog_.c_str(), O_RDONLY);
33 fprintf(stderr, "Error! Failed to open %s\n", exec_prog_.c_str());
65 int fd = open(temp_script_filename_, O_RDWR|O_CREAT, 0755);
117 int fd = open(exec_prog_noexec_.c_str(), O_RDONLY);
133 int fd = open(exec_prog_setuid_.c_str(), O_RDONLY);
157 fd = open(temp_script_filename_, O_RDONLY);
179 int dfd = open(".", O_DIRECTORY|O_RDONLY);
/freebsd-current/bin/sh/
H A Dredir.c60 #define CLOSED -1 /* fd was not open before redir */
94 * We suppress interrupts so that we won't leave open file
99 * arrives after INTOFF and before open blocks.
177 if ((f = open(fname, O_RDONLY)) < 0)
178 error("cannot open %s: %s", fname, strerror(errno));
182 if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0)
189 if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
192 if ((f = open(fname, O_WRONLY, 0666)) < 0)
207 if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
212 if ((f = open(fnam
[all...]
/freebsd-current/tests/sys/fs/fusefs/
H A Dcopy_file_range.cc71 SET_OUT_HEADER_LEN(out, open);
72 out.body.open.fh = fh;
73 out.body.open.open_flags = flags;
184 fd1 = open(FULLPATH1, O_RDONLY);
185 fd2 = open(FULLPATH2, O_WRONLY);
239 fd1 = open(FULLPATH1, O_RDONLY);
240 fd2 = open(FULLPATH2, O_RDWR);
317 fd1 = open(FULLPATH1, O_RDONLY);
319 fd2 = open(FULLPATH2, O_WRONLY);
371 fd = open(FULLPAT
[all...]
H A Dlseek.cc73 fd = open(FULLPATH, O_RDONLY);
107 fd = open(FULLPATH, O_RDONLY);
136 fd = open(FULLPATH, O_RDONLY);
171 fd = open(FULLPATH, O_RDONLY);
200 fd = open(FULLPATH, O_RDONLY);
232 fd = open(FULLPATH, O_RDONLY);
264 fd = open(FULLPATH, O_RDONLY);
304 fd = open(FULLPATH, O_RDONLY);
336 fd = open(FULLPATH, O_RDONLY);
373 fd = open(FULLPAT
[all...]
H A Dcreate.cc143 fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
184 fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
205 EXPECT_EQ(-1, open(FULLPATH, O_CREAT | O_EXCL, mode));
251 SET_OUT_HEADER_LEN(out, open);
254 fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
288 fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
319 fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
343 EXPECT_EQ(-1, open(FULLPATH, O_CREAT | O_EXCL, mode));
366 fd = open(FULLPATH, O_CREAT | O_EXCL, mode);
407 fd = open(FULLPAT
[all...]
/freebsd-current/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c28 * This regression test attempts to confirm that the flags used at open-time
74 * operation or that open is properly impacted by permissions, just that once
75 * a file descriptor is held, open-time limitations are implemented.
153 * Before we get started, confirm that we can't open directories writable.
161 dfd = open(directory, mode);
185 * Directories should only open with O_RDONLY. Notice that we use
206 * dup() should work regardless of open mode.
210 fd = open(path, mode);
212 notok_mode(testname, "open", mode);
232 * dup2() should work regardless of open mod
[all...]

Completed in 176 milliseconds

<<11121314151617181920>>