/freebsd-13-stable/tests/sys/cddl/zfs/bin/ |
H A D | file_check.c | 66 if ((bigfd = open(argv[1], O_RDONLY)) == -1) { 67 (void) printf("open %s failed %d\n", argv[1], errno);
|
H A D | mmapwrite.c | 81 if ((fd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666)) == -1) { 82 perror("open");
|
H A D | randfree_file.c | 81 if ((fd = open(filename, O_RDWR|O_CREAT|O_TRUNC)) < 0) { 82 perror("open");
|
H A D | rm_lnkcnt_zero_file.c | 99 *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 D | pipe_overcommit2_test.c | 57 returnval = open(template, O_RDONLY);
|
/freebsd-13-stable/tools/regression/security/cap_test/ |
H A D | cap_test_capmode.c | 77 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 D | exceptions_test.cpp | 65 const sqlite::database db = sqlite::database::open( 88 sqlite::database db = sqlite::database::open(
|
H A D | database_test.cpp | 68 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 D | acplex.l | 64 OPEN|open { return (OPEN); }
|
/freebsd-13-stable/contrib/googletest/googlemock/test/ |
H A D | gmock_output_test.py | 157 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 D | badioctl.c | 66 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 D | TestFunctionLookup.java | 50 consumer.open(); 86 consumer.open();
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/ |
H A D | rm_lnkcnt_zero_file.c | 108 *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 D | 01.t | 28 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 D | calc_tickadj.in | 33 open my $dfh, $drift_file or die "Could not open $drift_file: $!\n";
|
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_mkdirat.c | 61 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1); 106 ATF_REQUIRE((fd = open(SDIR, O_CREAT|O_RDWR, 0644)) != -1);
|
H A D | t_mkfifoat.c | 61 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 D | nohup.c | 111 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 D | dn11.c | 64 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 D | uucplock.c | 72 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 D | file-write.c | 53 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 D | varname.mk | 19 ${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 D | fexecve.cc | 31 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 D | redir.c | 68 #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 D | ssh-keysign.c | 185 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");
|