Searched refs:open (Results 176 - 200 of 1863) sorted by relevance

1234567891011>>

/freebsd-current/contrib/kyua/store/
H A Dread_backend_test.cpp51 sqlite::database db = sqlite::database::open(
71 ATF_REQUIRE_THROW_RE(store::error, "Cannot open 'missing.db': ",
87 sqlite::database db = sqlite::database::open(
100 ATF_REQUIRE_THROW_RE(store::error, "Cannot open 'missing.db': ",
115 sqlite::database db = sqlite::database::open(
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/
H A DTestEnable.java51 consumer.open();
117 consumer2.open();
138 consumer.open();
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/
H A Dt_ttyname.c53 fd = open("XXX", O_RDONLY);
68 fd = open("/etc/passwd", O_RDONLY);
114 fd = open("/etc/passwd", O_RDONLY);
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/
H A Dt_truncate.c59 fd = open(path, O_RDWR | O_CREAT, 0600);
95 fd = open("/etc/passwd", O_RDONLY, 0400);
119 fd = open(path, O_RDWR | O_CREAT, 0600);
H A Dt_unlink.c59 fd = open(path, O_RDWR | O_CREAT, 0666);
66 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1);
119 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1);
/freebsd-current/contrib/netbsd-tests/fs/fifofs/
H A Dt_fifo.c45 fd = open(FIFO_FILE_PATH, O_WRONLY, 0);
49 err(1, "Child: can't open fifo in write mode");
122 if ((fd = open(FIFO_FILE_PATH, O_WRONLY, 0)) == -1)
123 err(1, "failed to open fifo");
140 if ((fd = open(FIFO_FILE_PATH, O_RDONLY, 0)) == -1) {
144 err(1, "Failed to open the fifo in read mode");
/freebsd-current/contrib/googletest/googlemock/test/
H A Dgmock_output_test.py42 from io import open # pylint: disable=redefined-builtin, g-importing-member namespace
159 golden_file = open(GOLDEN_PATH, 'rb')
183 golden_file = open(GOLDEN_PATH, 'wb')
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_read_data_large.c36 #define open _open macro
95 tmpfilefd = open(tmpfilename, O_WRONLY | O_CREAT | O_BINARY);
97 tmpfilefd = open(tmpfilename, O_WRONLY | O_CREAT | O_BINARY, 0777);
/freebsd-current/tools/test/stress2/misc/
H A Dflock_open_close.sh107 fd = open(binary, O_RDWR | O_EXLOCK);
111 * close its open fd's (thus releasing the
117 err(2, "can't open %s", binary);
128 (void)open(av[0], O_RDONLY | O_SHLOCK);
H A Ddevfs2.sh37 # open(c4c08510,e6d06d00) at open+0x18
74 if ((fd = open("/dev/zero", O_RDONLY)) == -1)
75 perror("open /dev/zero");
H A Dfpclone2.sh90 if ((fd = open("/dev/fpclone", O_RDONLY)) == -1)
91 err(1, "open(/dev/fpclone");
109 if ((fd = open("/dev/fpclone", O_WRONLY)) == -1)
110 err(1, "open(/dev/fpclone");
H A Dkevent5.sh80 if ((fd = open(file1, O_RDONLY, 0)) == -1)
81 err(1, "open(%s)(2)", file1);
105 if ((fd = open(file2, O_RDONLY, 0)) == -1)
106 err(1, "open(%s)(2)", file2);
145 if ((fd = open(file1, O_CREAT | O_TRUNC | O_RDWR, 0660)) ==
147 err(1, "open(%s)", file1);
149 if ((fd = open(file2, O_CREAT | O_TRUNC | O_RDWR, 0660)) ==
151 err(1, "open(%s)", file2);
H A Dmkfifo3.sh111 if((fd = open(file, O_RDONLY)) == -1)
113 err(1, "open(%s, O_RDONLY @ %d)",
123 if ((fd = open(file, O_WRONLY)) == -1)
125 err(1, "open(%s, O_WRONLY @ %d)",
H A Dposix_fadvise3.sh97 if ((fd = open("/tmp/posix_fadvise3.data", O_RDONLY)) == -1)
98 err(1, "open()");
109 if ((fd = open("/tmp/posix_fadvise3.data", O_RDONLY)) == -1)
110 err(1, "open()");
H A Dpty2.sh77 if ((fd = open(IN, O_RDONLY)) == -1) {
79 err(1, "open(%s)", IN);
H A Dtmpfs14.sh91 if ((fd = open(file, O_RDWR | O_CREAT, 0644)) == -1)
92 err(1, "open(%s)", file);
100 if ((fd = open(file, O_RDWR | O_CREAT, 0644)) == -1)
101 err(1, "open(%s)", file);
H A Dvnodes.sh69 fd = open(dname, O_RDWR);
72 err(1, "open(%s)", dname);
/freebsd-current/contrib/lib9p/example/
H A Dserver.c72 rootfd = open(path, O_DIRECTORY);
75 err(1, "cannot open root directory");
/freebsd-current/contrib/capsicum-test/
H A Dmini-me.c25 /* Expect to already be in capability mode: check we can't open a file */
28 int fd = open("/etc/passwd", O_RDONLY);
30 fprintf(stderr,"[%d] %s unexpectedly able to open file\n", getpid(), argv[0]);
/freebsd-current/contrib/lib9p/backend/
H A Dbackend.h38 int (*open)(void *, struct l9p_request *); member in struct:l9p_backend
/freebsd-current/contrib/netbsd-tests/lib/libc/stdlib/
H A Dt_system.c60 fd = open(path, O_RDONLY);
/freebsd-current/contrib/netbsd-tests/lib/libposix/
H A Dt_rename.c57 REQUIRE_LIBC(open("t1", O_CREAT | O_TRUNC | O_WRONLY, 0600), -1);
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dcrypto-rand.c49 fd = open(seedfile, O_RDONLY | O_BINARY | O_CLOEXEC);
/freebsd-current/crypto/heimdal/lib/roken/
H A Dmkstemp.c64 fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600);
/freebsd-current/contrib/ntp/scripts/deprecated/
H A Dfreq_adj.in21 open(DM, "/var/run/dmesg.boot");
56 open(DF, $driftfile) || die "Can't open driftfile ($driftfile): $!\n";

Completed in 213 milliseconds

1234567891011>>