Searched refs:open (Results 276 - 300 of 1407) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/usr.sbin/nandtool/
H A Dnand_readoob.c62 if ((fd_out = open(out, O_WRONLY | O_CREAT, 0666)) == -1) {
63 perrorf("Cannot open %s", out);
70 perrorf("Cannot open %s", dev);
H A Dnand_writeoob.c66 perrorf("Cannot open %s", dev);
70 if ((fd_in = open(in, O_RDONLY)) == -1) {
71 perrorf("Cannot open %s", in);
/freebsd-11-stable/usr.sbin/pw/
H A Dpw_log.c60 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600);
/freebsd-11-stable/usr.bin/mkuzip/
H A Dmkuz_insize.c59 ffd = open(statfsbuf.f_mntfromname, O_RDONLY);
61 warn("open(%s, O_RDONLY)", statfsbuf.f_mntfromname);
/freebsd-11-stable/contrib/lua/src/
H A Dlfunc.c66 pp = &p->u.open.next;
71 uv->u.open.next = *pp; /* link it to list of open upvalues */
72 uv->u.open.touched = 1;
87 L->openupval = uv->u.open.next; /* remove from 'open' list */
H A Dlfunc.h39 struct { /* (when open) */
42 } open; member in union:UpVal::__anon3413
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/
H A Dt_ftok.c68 fd = open(path, O_RDONLY | O_CREAT, 0600);
/freebsd-11-stable/usr.bin/patch/
H A Dutil.c65 fromfd = open(from, O_RDONLY);
170 tofd = open(to, O_CREAT|O_TRUNC|O_WRONLY, 0666);
173 fromfd = open(from, O_RDONLY, 0);
281 ttyfd = open(_PATH_TTY, O_RDONLY);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DRandomNumberGenerator.cpp69 int Fd = open("/dev/urandom", O_RDONLY);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/posix/
H A DFileSystemPosix.cpp79 return llvm::sys::RetryAfterSignal(-1, ::open, path, flags, mode);
/freebsd-11-stable/contrib/file/src/
H A Dseccomp.c209 ALLOW_RULE(open);
247 /* special restrictions for open, prevent opening files for writing */
248 if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 1,
252 if (seccomp_rule_add(ctx, SCMP_ACT_ERRNO(EACCES), SCMP_SYS(open), 1,
256 if (seccomp_rule_add(ctx, SCMP_ACT_ERRNO(EACCES), SCMP_SYS(open), 1,
/freebsd-11-stable/tools/tools/kdrv/
H A DKernelDriver150 set fh [open $fname r];
396 set fh [open $fname a];
412 set fh [open $fname a];
432 set fh [open $fname a];
449 set fh [open $fname a];
469 set fh [open $fname a];
500 set fh [open $fname r];
531 set fh [open $fname r];
558 set fh [open $fname r];
597 set fh [open
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mmap.c188 if ((fd = open(dev, O_RDONLY)) >= 0) {
251 fd = open(path, O_RDWR | O_CREAT, 0600);
304 fd = open(path, O_WRONLY | O_CREAT, 0700);
379 fd = open(path, O_RDWR | O_CREAT, 0700);
388 fd = open(path, O_RDONLY);
427 fd = open(path, O_RDWR | O_CREAT, 0700);
479 fd = open(path, O_RDWR | O_CREAT, 0700);
H A Dt_stat.c67 fd = open(path, O_RDONLY | O_CREAT, 0600);
213 fd[i] = open(path, O_WRONLY | O_CREAT, 0600);
257 fd = open(path, O_RDONLY | O_CREAT, 0600);
291 fd = open(path, O_WRONLY | O_CREAT, 0600);
380 fd = open(path, O_WRONLY | O_CREAT, 0600);
/freebsd-11-stable/usr.sbin/mlxcontrol/
H A Dcommand.c199 if ((fd = open(ctrlrpath(ctrlr), 0)) < 0) {
200 warn("can't open %s", ctrlrpath(ctrlr));
214 if ((fd = open(drivepath(unit), 0)) < 0) {
215 warn("can't open %s", drivepath(unit));
431 if ((fd = open(ctrlrpath(unit), 0)) < 0) {
432 warn("can't open %s", ctrlrpath(unit));
489 if ((fd = open(ctrlrpath(unit), 0)) < 0) {
490 warn("can't open %s", ctrlrpath(unit));
561 if ((fd = open(drivepath(unit), 0)) < 0) {
562 warn("can't open
[all...]
/freebsd-11-stable/usr.sbin/cpucontrol/
H A Dcpucontrol.c161 fd = open(dev, O_RDONLY);
211 fd = open(dev, O_RDONLY);
325 fd = open(dev, op == OP_READ ? O_RDONLY : O_WRONLY);
351 fd = open(dev, O_RDWR);
375 fd = open(dev, O_RDONLY);
/freebsd-11-stable/crypto/heimdal/appl/telnet/telnetd/
H A Dsys_term.c398 p=open(*q, O_RDWR);
444 p = open(line, O_RDWR);
480 p = open(myline, 2);
496 p = open(myline, 2);
838 t = open(_PATH_TTY, O_RDWR);
965 * Make sure that other people can't open the
976 t = open(line, O_RDWR|O_NOCTTY);
992 t = open(line, O_RDWR|O_NOCTTY);
1003 i = open(line, O_RDWR);
1025 * Close the hard fd to /dev/ttypXXX, and re-open throug
[all...]
/freebsd-11-stable/contrib/ntp/scripts/
H A Dsummary.in125 open INPUT, "$directory/$fname" or warn "can't open $directory/$fname: $!";
126 open OUTPUT, ">>$out_file" or die "can't open $out_file: $!";
194 open INPUT, "$directory/$fname" or warn "can't open $directory/$fname: $!";
195 open OUTPUT, ">>$out_file" or die "can't open $out_file: $!";
286 open INPUT, "$directory/$fname";
287 open OUTPU
[all...]
/freebsd-11-stable/lib/libc/tests/sys/
H A Dsendfile_test.c293 dest_fd = open(dest_filename, O_RDONLY);
294 ATF_REQUIRE_MSG(dest_fd != -1, "open failed");
345 fd = open(SOURCE_FILE, O_RDONLY);
346 ATF_REQUIRE_MSG(fd != -1, "open failed: %s", strerror(errno));
583 fd = open(SOURCE_FILE, O_RDONLY);
584 ATF_REQUIRE_MSG(fd != -1, "open failed: %s", strerror(errno));
709 fd = open(SOURCE_FILE, O_RDONLY);
710 ATF_REQUIRE_MSG(fd != -1, "open failed: %s", strerror(errno));
712 fd2 = open(SOURCE_FILE ".full", O_RDONLY);
713 ATF_REQUIRE_MSG(fd2 != -1, "open faile
[all...]
/freebsd-11-stable/contrib/serf/buckets/
H A Dbwtp_buckets.c39 int open; member in struct:__anon56
77 ctx->open = 0;
94 ctx->open = 1;
111 ctx->open = 0;
128 ctx->open = 0;
237 (ctx->open ? "OPEN " : ""),
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/ttyio/
H A Dt_ptm.c67 if ((fdm = open("/dev/ptm", O_RDWR)) == -1) {
152 REQUIRE_ERRNO((fds = open(pty, O_RDWR|O_NOCTTY)), -1);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_pcf.c60 * pcf_start - open the device and initialize data for processing
76 fd = open(device, O_RDONLY);
79 fd = open(device, O_RDONLY);
/freebsd-11-stable/contrib/binutils/binutils/
H A Drename.c35 /* We need to open the file in binary modes on system where that makes
57 fromfd = open (from, O_RDONLY | O_BINARY);
61 tofd = open (to, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, 0777);
/freebsd-11-stable/contrib/libstdc++/scripts/
H A Dmake_graphs.py75 html_f = open(doc_dir + '/' + html_f_name)
156 html_f = open(doc_dir + '/' + html_f_name, 'w')
/freebsd-11-stable/contrib/gcclibs/libiberty/
H A Dpex-djgpp.c86 return open (name, O_RDONLY | (binary ? O_BINARY : O_TEXT));
97 return open (name,

Completed in 148 milliseconds

<<11121314151617181920>>