Searched refs:ofd (Results 1 - 25 of 113) sorted by relevance

12345

/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dreread-readsym.exp23 set ofd [open $gdbfile w]
25 puts $ofd "file ${binfile}"
26 puts $ofd "shell sleep 1; touch ${binfile}"
27 puts $ofd "run"
28 puts $ofd "file"
29 puts $ofd "file ${binfile}"
30 puts $ofd "shell sleep 1; touch ${binfile}"
31 puts $ofd "run"
32 puts $ofd "file"
33 puts $ofd "fil
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dreread-readsym.exp23 set ofd [open $gdbfile w]
25 puts $ofd "file ${binfile}"
26 puts $ofd "shell sleep 1; touch ${binfile}"
27 puts $ofd "run"
28 puts $ofd "file"
29 puts $ofd "file ${binfile}"
30 puts $ofd "shell sleep 1; touch ${binfile}"
31 puts $ofd "run"
32 puts $ofd "file"
33 puts $ofd "fil
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/ld/testsuite/ld-elf/
H A Dsec64k.exp62 if [catch { set ofd [open $sfile w] } x] {
70 puts $ofd " .global start"
71 puts $ofd "start:"
72 puts $ofd " .global _start"
73 puts $ofd "_start:"
74 puts $ofd " .global __start"
75 puts $ofd "__start:"
76 puts $ofd " .global main"
77 puts $ofd "main:"
78 puts $ofd "
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/ld/testsuite/ld-m68k/
H A Dm68k-got.exp36 if [catch { set ofd [open "tmpdir/$testname.s" w] } msg] {
81 puts $ofd "\t.text"
82 puts $ofd "\t.align 2"
83 puts $ofd "\t.globl $func"
84 puts $ofd "\t.type $func,@function"
85 puts $ofd "$func:"
86 puts $ofd "\tlink.w %fp,#0"
87 puts $ofd "\tmove.l %a5,-(%sp)"
88 puts $ofd "\tmove.l #_GLOBAL_OFFSET_TABLE_@GOTPC, %a5"
89 puts $ofd "\tle
[all...]
/netbsd-current/sys/arch/ews4800mips/stand/common/
H A Dinckern.c41 FILE *ifd, *ofd; local
48 ofd = stdout;
63 if ((optarg == 0) || (ofd = fopen(optarg, "w")) == 0)
69 fprintf(ofd, "#include <lib/libsa/stand.h>\n");
70 fprintf(ofd, "#include <lib/libkern/libkern.h>\n");
71 fprintf(ofd, "#include \"local.h\"\n");
72 fprintf(ofd, "uint8_t kernel_binary[");
74 fprintf(ofd, "%d];\n", total);
75 fprintf(ofd, "int kernel_binary_size = %d;\n", total);
77 fprintf(ofd, "]
[all...]
/netbsd-current/external/bsd/mdocml/dist/
H A Dtag.h22 int ofd; member in struct:tag_files
H A Dtag.c61 int ofd; local
64 ofd = -1;
88 if ((tag_files.ofd = dup(STDOUT_FILENO)) == -1)
98 if ((ofd = mkstemp(tag_files.ofn)) == -1)
103 if (dup2(ofd, STDOUT_FILENO) == -1)
105 close(ofd);
118 if (ofd != -1)
119 close(ofd);
120 if (tag_files.ofd != -1)
121 close(tag_files.ofd);
[all...]
/netbsd-current/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dpipe.c139 int ofd[2]; local
154 if (_pipe (ofd, 4096, O_BINARY | O_NOINHERIT) < 0)
159 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
178 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0)
197 /* The child process doesn't inherit ifd[0], ifd[1], ofd[0], ofd[1],
219 close (ofd[0]);
230 close (ofd[1]);
237 fd[1] = ofd[
[all...]
/netbsd-current/distrib/cdrom/macppc_mkboothfs/
H A Dmkboothfs.c69 int ofd; local
84 if ((ofd = open(boothfs, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
101 write(ofd, buf, BSIZE);
122 write(ofd, buf, BSIZE);
132 write(ofd, buf, BSIZE);
138 write(ofd, buf, BSIZE);
144 write(ofd, buf, MACPPC_BOOT_BLOCK_MAX_SIZE);
151 if (write(ofd, buf, BOOTDATASIZE) != BOOTDATASIZE)
155 close(ofd);
/netbsd-current/tests/lib/libc/c063/
H A Dt_linkat.c63 int ofd, nfd, fd; local
71 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1);
73 ATF_REQUIRE(linkat(ofd, BASEFILE, nfd, BASETARGET, 0) == 0);
74 ATF_REQUIRE(close(ofd) == 0);
149 int ofd, nfd, fd; local
158 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1);
160 ATF_REQUIRE(linkat(ofd, BASELINK, nfd, BASETARGET,
162 ATF_REQUIRE(close(ofd) == 0);
182 int ofd, nfd, fd; local
191 ATF_REQUIRE((ofd
[all...]
H A Dt_renameat.c61 int ofd, nfd, fd; local
71 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1);
73 ATF_REQUIRE(renameat(ofd, BASEFILE, nfd, BASETARGET) == 0);
74 ATF_REQUIRE(close(ofd) == 0);
/netbsd-current/external/bsd/nvi/dist/ipc/
H A Dipc_method.c87 ipviwin->ofd = ipvi->ofd;
113 if (sendmsg(ipvi->ofd, &mh, 0) == -1)
128 ipviwin->ofd = sockets[0];
194 return vi_send(ipvi->ofd, NULL, &ipb);
205 return vi_send(ipvi->ofd, "1", &ipb);
217 return vi_send(ipvi->ofd, "12", &ipb);
229 return vi_send(ipvi->ofd, "a", &ipb);
244 return vi_send(ipvi->ofd, "a1", &ipb);
260 return vi_send(ipvi->ofd, "ab
[all...]
H A Dip_send.c39 vi_send(int ofd, const char *fmt, IP_BUF *ipbp) argument
57 if (ofd == 0) {
116 if ((nw = write(ofd, p, n)) < 0)
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.xml/
H A Dtdesc-regs.exp131 set ofd [open $regs_file w]
135 puts $ofd " <architecture>${architecture}</architecture>"
138 puts $ofd " <xi:include href=\"$src\"/>"
141 puts $ofd $line
145 close $ofd
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.xml/
H A Dtdesc-regs.exp132 set ofd [open $regs_file w]
136 puts $ofd " <architecture>${architecture}</architecture>"
139 puts $ofd " <xi:include href=\"$src\"/>"
142 puts $ofd $line
146 close $ofd
/netbsd-current/usr.bin/split/
H A Dsplit.c60 static int ifd = STDIN_FILENO, ofd = -1; /* Input/output file descriptors. */ variable
206 if (bigwrite(ofd, bfr, dist) != (size_t)dist)
217 if (bigwrite(ofd,
227 if (bigwrite(ofd, C, len) != (size_t)len)
235 if (bigwrite(ofd, bfr, len) != (size_t)len)
270 if (bigwrite(ofd, Cs, bcnt) != (size_t)bcnt)
281 if (bigwrite(ofd, Cs, bcnt) != (size_t)bcnt)
321 if (ofd == -1) {
324 } else if (close(ofd) != 0)
367 if ((ofd
[all...]
/netbsd-current/tests/lib/libc/db/
H A Dh_db.c93 static int ofd = STDOUT_FILENO; /* Standard output fd. */ variable
128 if ((ofd = open(optarg,
187 if (ofd == STDOUT_FILENO && (t = strchr(p, '\n')) != NULL)
207 if (write(ofd, p + 1, len - 1) != (ssize_t)len - 1 ||
208 write(ofd, "\n", 1) != 1)
344 (void)close(ofd);
376 (void)write(ofd, data.data, data.size);
377 if (ofd == STDOUT_FILENO)
378 (void)write(ofd, "\n", 1);
385 if (ofd !
[all...]
/netbsd-current/external/bsd/ipf/dist/samples/
H A Dproxy.c142 int onoff, ofd, slen; local
161 ofd = socket(AF_INET, SOCK_DGRAM, 0);
166 (void) connect(ofd, (struct sockaddr *)&usin, sizeof(usin));
168 (void) getsockname(ofd, (struct sockaddr *)&usin, &slen);
169 close(ofd);
172 if ((ofd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
175 if (bind(ofd, (struct sockaddr *)&usin, sizeof(usin)))
178 if (getsockname(ofd, (struct sockaddr *)&usin, &slen))
223 if (connect(ofd, (struct sockaddr *)&usin, sizeof(usin)))
226 relay(in, out, ofd);
[all...]
H A Drelay.c31 int relay(ifd, ofd, rfd)
32 int ifd, ofd, rfd;
42 if (nfd < ofd)
43 nfd = ofd;
55 FD_SET(ofd, &wfds);
74 if (n && FD_ISSET(ofd, &wfds)) {
75 rw = write(ofd, iwt, iwh - iwt);
/netbsd-current/lib/libedit/
H A Drefresh.c544 wchar_t *ofd, *ols, *oe, *nfd, *nls, *ne; local
554 ofd = o;
566 while (ofd < o) {
589 if (*ofd == '\0' && *nfd == '\0') {
596 while ((o > ofd) && (n > nfd) && (*--o == *--n))
610 * case 1: insert: scan from nfd to nls looking for *ofd
612 if (*ofd) {
613 for (c = *ofd, n = nfd; n < nls; n++) {
615 for (o = ofd, p = n;
627 osb = ofd;
[all...]
/netbsd-current/bin/ksh/
H A Dio.c231 ksh_dup2(ofd, nfd, errok)
232 int ofd;
236 int ret = dup2(ofd, nfd);
272 restfd(fd, ofd)
273 int fd, ofd;
277 if (ofd < 0) /* original fd closed */
279 else if (fd != ofd) {
280 ksh_dup2(ofd, fd, true); /* XXX: what to do if this fails? */
281 close(ofd);
/netbsd-current/usr.sbin/lpr/lpd/
H A Dprintjob.c99 static int ofd; /* output filter file descriptor */ variable
312 (void)write(ofd, FF, strlen(FF));
314 (void)write(ofd, TR, strlen(TR));
561 (void)write(ofd, FF, strlen(FF));
567 if (write(ofd, buf, n) != n) {
584 fo = ofd;
716 write(ofd, "\031\1", 2);
1019 (void)write(ofd, FF, strlen(FF));
1022 (void)write(ofd, class, strlen(class));
1023 (void)write(ofd, "
[all...]
/netbsd-current/external/bsd/openpam/dist/lib/libpam/
H A Dopenpam_ttyconv.c106 prompt_tty(int ifd, int ofd, const char *message, char *response, int echo) argument
135 if (write(ofd, message, strlen(message)) < 0) {
188 write(ofd, " timed out", 10);
229 write(ofd, "\n", 1);
313 int ifd, ofd, ret; local
321 ofd = STDOUT_FILENO;
326 ofd = ifd;
328 ret = prompt_tty(ifd, ofd, message, response, echo);
/netbsd-current/external/gpl3/gdb.old/dist/ld/testsuite/ld-scripts/
H A Dsysroot-prefix.exp159 if [catch { set ofd [open $scriptname w] } x] {
165 puts $ofd "$finalscript"
166 close $ofd
/netbsd-current/sys/arch/pmax/stand/smallnet/setnetimage/
H A Dsetnetimage.c79 int ifd, ofd, i, nsegs; local
102 if ((ofd = open(bootfile, O_RDWR)) < 0)
108 if (fstat(ofd, &osb) == -1)
114 MAP_FILE | MAP_SHARED, ofd, 0)) == (void *)-1)
211 close(ofd);

Completed in 372 milliseconds

12345