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

1234567891011>>

/freebsd-13-stable/tests/sys/cddl/zfs/bin/
H A Dfile_check.c66 if ((bigfd = open(argv[1], O_RDONLY)) == -1) {
67 (void) printf("open %s failed %d\n", argv[1], errno);
H A Dmmapwrite.c81 if ((fd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666)) == -1) {
82 perror("open");
H A Drandfree_file.c81 if ((fd = open(filename, O_RDWR|O_CREAT|O_TRUNC)) < 0) {
82 perror("open");
H A Drm_lnkcnt_zero_file.c99 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
120 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
/freebsd-13-stable/tests/sys/kern/pipe/
H A Dpipe_overcommit2_test.c57 returnval = open(template, O_RDONLY);
/freebsd-13-stable/tools/regression/security/cap_test/
H A Dcap_test_capmode.c77 REQUIRE(fd_file = open("/tmp/cap_capmode", O_RDWR|O_CREAT, 0644));
78 REQUIRE(fd_close = open("/dev/null", O_RDWR));
79 REQUIRE(fd_dir = open("/tmp", O_RDONLY));
104 CHECK_CAPMODE(open, "/dev/null", O_RDWR);
/freebsd-13-stable/contrib/kyua/utils/sqlite/
H A Dexceptions_test.cpp65 const sqlite::database db = sqlite::database::open(
88 sqlite::database db = sqlite::database::open(
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-13-stable/contrib/elftoolchain/ar/
H A Dacplex.l64 OPEN|open { return (OPEN); }
/freebsd-13-stable/contrib/googletest/googlemock/test/
H A Dgmock_output_test.py157 golden_file = open(GOLDEN_PATH, 'rb')
174 golden_file = open(GOLDEN_PATH, 'wb')
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/
H A Dbadioctl.c66 if ((random = open("/dev/random", O_RDONLY)) == -1)
67 fatal("couldn't open /dev/random");
91 fd = open("/devices/pseudo/dtrace@0:dtrace", O_RDONLY);
94 fatal("couldn't open DTrace pseudo device");
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/
H A DTestFunctionLookup.java50 consumer.open();
86 consumer.open();
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/
H A Drm_lnkcnt_zero_file.c108 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
110 perror("fail to open test file, refreshing it");
134 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644);
/freebsd-13-stable/contrib/pjdfstest/tests/utimensat/
H A D01.t28 expect 0 open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
/freebsd-13-stable/contrib/ntp/scripts/calc_tickadj/
H A Dcalc_tickadj.in33 open my $dfh, $drift_file or die "Could not open $drift_file: $!\n";
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/c063/
H A Dt_mkdirat.c61 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
106 ATF_REQUIRE((fd = open(SDIR, O_CREAT|O_RDWR, 0644)) != -1);
H A Dt_mkfifoat.c61 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
106 ATF_REQUIRE((fd = open(FIFO, O_CREAT|O_RDWR, 0644)) != -1);
/freebsd-13-stable/usr.bin/nohup/
H A Dnohup.c111 fd = open(p, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR);
117 fd = open(p = path, O_RDWR | O_CREAT | O_APPEND,
122 errx(EXIT_MISC, "can't open a nohup.out file");
/freebsd-13-stable/usr.bin/tip/libacu/
H A Ddn11.c64 if ((dn = open(acu, 1)) < 0) {
68 printf("acu open error...");
91 * open line - will return on carrier
93 if ((FD = open(DV, 2)) < 0) {
97 printf("dialup line open failed...");
/freebsd-13-stable/usr.bin/tip/tip/
H A Duucplock.c72 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660);
78 fd = open(tbuf, O_RDWR, 0);
81 fprintf(stderr, "Can't open lock file.\n");
/freebsd-13-stable/tests/sys/audit/
H A Dfile-write.c53 ATF_REQUIRE((filedesc = open(path, O_CREAT, mode)) != -1);
98 ATF_REQUIRE((filedesc = open(path, O_CREAT | O_RDWR)) != -1);
/freebsd-13-stable/contrib/bmake/unit-tests/
H A Dvarname.mk19 ${VARNAME}= 3 open parentheses
20 .if "${VAR(((}}}}" != "3 open parentheses}}}"
28 # balanced. At the end of the line, there are still 3 levels open, which
/freebsd-13-stable/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-13-stable/bin/sh/
H A Dredir.c68 #define CLOSED -1 /* fd was not open before redir */
102 * We suppress interrupts so that we won't leave open file
107 * arrives after INTOFF and before open blocks.
185 if ((f = open(fname, O_RDONLY)) < 0)
186 error("cannot open %s: %s", fname, strerror(errno));
190 if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0)
197 if ((f = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
200 if ((f = open(fname, O_WRONLY, 0666)) < 0)
215 if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
220 if ((f = open(fnam
[all...]
/freebsd-13-stable/crypto/openssh/
H A Dssh-keysign.c185 if ((fd = open(_PATH_DEVNULL, O_RDWR)) < 2)
193 key_fd[i++] = open(_PATH_HOST_DSA_KEY_FILE, O_RDONLY);
194 key_fd[i++] = open(_PATH_HOST_ECDSA_KEY_FILE, O_RDONLY);
195 key_fd[i++] = open(_PATH_HOST_ED25519_KEY_FILE, O_RDONLY);
196 key_fd[i++] = open(_PATH_HOST_XMSS_KEY_FILE, O_RDONLY);
197 key_fd[i++] = open(_PATH_HOST_RSA_KEY_FILE, O_RDONLY);
224 fatal("could not open any host key");

Completed in 182 milliseconds

1234567891011>>