Searched refs:open (Results 226 - 250 of 1863) sorted by relevance

1234567891011>>

/freebsd-current/tests/sys/cddl/zfs/bin/
H A Dfile_check.c64 if ((bigfd = open(argv[1], O_RDONLY)) == -1) {
65 (void) printf("open %s failed %d\n", argv[1], errno);
H A Drandfree_file.c79 if ((fd = open(filename, O_RDWR|O_CREAT|O_TRUNC)) < 0) {
80 perror("open");
H A Dmmapwrite.c79 if ((fd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666)) == -1) {
80 perror("open");
/freebsd-current/usr.bin/fsync/
H A Dfsync.c52 if ((fd = open(argv[i], O_RDONLY)) == -1) {
53 warn("open %s", argv[i]);
/freebsd-current/tools/tools/aac/
H A Daac_checkq.c61 fd = open("/dev/aac0", O_RDWR);
63 printf("couldn't open aac0: %s\n", strerror(errno));
/freebsd-current/tools/regression/security/cap_test/
H A Dcap_test_capmode.c72 REQUIRE(fd_file = open("/tmp/cap_capmode", O_RDWR|O_CREAT, 0644));
73 REQUIRE(fd_close = open("/dev/null", O_RDWR));
74 REQUIRE(fd_dir = open("/tmp", O_RDONLY));
99 CHECK_CAPMODE(open, "/dev/null", O_RDWR);
/freebsd-current/usr.bin/tip/tip/
H A Dhunt.c70 * order to get an open file descriptor placed in FD.
71 * Otherwise, as for a DN-11, the open will have to
72 * be done in the "open" routine.
78 FD = open(cp, (O_RDWR |
/freebsd-current/crypto/openssl/test/recipes/
H A D15-test_mp_rsa.t112 open(my $fh, "<", $cleartext) or return 0;
116 open($fh, "<", $decrypted ) or return 0;
/freebsd-current/tools/test/stress2/tools/
H A Dserial.c25 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0)
/freebsd-current/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/
H A DSimpleExecutorDylibManager.h40 Expected<tpctypes::DylibHandle> open(const std::string &Path, uint64_t Mode);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DEPCGenericDylibManager.h50 Expected<tpctypes::DylibHandle> open(StringRef Path, uint64_t Mode);
/freebsd-current/contrib/libarchive/tar/test/
H A Dtest_option_fflags.c40 fd = open(pathname, O_RDONLY | O_NONBLOCK);
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_failures.c43 fd = open("dir/testfile", O_WRONLY | O_CREAT | O_BINARY, 0777);
/freebsd-current/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-current/contrib/elftoolchain/ar/
H A Dacplex.l64 OPEN|open { return (OPEN); }
/freebsd-current/contrib/kyua/utils/sqlite/
H A Dexceptions_test.cpp65 const sqlite::database db = sqlite::database::open(
88 sqlite::database db = sqlite::database::open(
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/
H A DTestFunctionLookup.java50 consumer.open();
86 consumer.open();
/freebsd-current/contrib/netbsd-tests/lib/libc/c063/
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);
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);
/freebsd-current/contrib/pjdfstest/tests/utimensat/
H A D01.t28 expect 0 open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
/freebsd-current/tools/test/stress2/misc/
H A Dmmap.sh54 fd = open("/dev/mem", O_RDWR);
56 perror("open");
H A Dposix_fadvise.sh62 if ((fd = open("posix_fadvise.c", O_RDONLY)) == -1)
63 err(1, "open()");
H A Dposix_fadvise2.sh66 if ((fd = open(file[i], O_RDONLY)) == -1)
67 err(1, "open(%s)", file[i]);
H A Dposix_openpt.sh73 if ((slavefd = open(slave, O_RDWR|O_NOCTTY)) == -1)
74 err(1, "open(%s)", slave);
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);

Completed in 272 milliseconds

1234567891011>>