/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/ld/testsuite/ld-elf/ |
H A D | sec64k.exp | 61 if [catch { set ofd [open $sfile w] } x] { 69 puts $ofd " .global start" 70 puts $ofd "start:" 71 puts $ofd " .global _start" 72 puts $ofd "_start:" 73 puts $ofd " .global __start" 74 puts $ofd "__start:" 75 puts $ofd " .global main" 76 puts $ofd "main:" 77 puts $ofd " [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/ld/testsuite/ld-m68k/ |
H A D | m68k-got.exp | 36 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-6-1-5-RELEASE/sys/arch/ews4800mips/stand/common/ |
H A D | inckern.c | 41 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-6-1-5-RELEASE/distrib/cdrom/macppc_mkboothfs/ |
H A D | mkboothfs.c | 56 int ofd; local 71 if ((ofd = open(boothfs, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) 88 write(ofd, buf, BSIZE); 109 write(ofd, buf, BSIZE); 119 write(ofd, buf, BSIZE); 125 write(ofd, buf, BSIZE); 131 write(ofd, buf, MACPPC_BOOT_BLOCK_MAX_SIZE); 139 if (write(ofd, buf, BSIZE * 2) != BSIZE * 2) 143 close(ofd);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/testsuite/gdb.xml/ |
H A D | tdesc-regs.exp | 104 set ofd [open "$subdir/regs.xml" w] 108 puts $ofd " <architecture>${architecture}</architecture>" 111 puts $ofd " <xi:include href=\"$src\"/>" 114 puts $ofd $line 118 close $ofd
|
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/lib/ |
H A D | pipe.c | 144 int ofd[2]; local 159 if (_pipe (ofd, 4096, O_BINARY | O_NOINHERIT) < 0) 164 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin 183 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) 202 /* The child process doesn't inherit ifd[0], ifd[1], ofd[0], ofd[1], 224 close (ofd[0]); 235 close (ofd[1]); 242 fd[1] = ofd[ [all...] |
/netbsd-6-1-5-RELEASE/dist/nvi/ipc/ |
H A D | ipc_method.c | 86 ipviwin->ofd = ipvi->ofd; 110 sendmsg(ipvi->ofd, &mh, 0); 123 ipviwin->ofd = sockets[0]; 185 return vi_send(ipvi->ofd, NULL, &ipb); 194 return vi_send(ipvi->ofd, "1", &ipb); 205 return vi_send(ipvi->ofd, "12", &ipb); 216 return vi_send(ipvi->ofd, "a", &ipb); 229 return vi_send(ipvi->ofd, "a1", &ipb); 244 return vi_send(ipvi->ofd, "ab [all...] |
H A D | ip_send.c | 35 vi_send(int ofd, char *fmt, IP_BUF *ipbp) argument 52 if (ofd == 0) { 111 if ((nw = write(ofd, p, n)) < 0)
|
H A D | ip.h | 124 int ofd; /* Output file descriptor. */ member in struct:_ip_vi 138 int ofd; /* Output file descriptor. */ member in struct:_ip_vi_win
|
/netbsd-6-1-5-RELEASE/usr.bin/split/ |
H A D | split.c | 59 static int ifd = STDIN_FILENO, ofd = -1; /* Input/output file descriptors. */ variable 203 if (bigwrite(ofd, bfr, dist) != (size_t)dist) 214 if (bigwrite(ofd, 224 if (bigwrite(ofd, C, len) != (size_t)len) 232 if (bigwrite(ofd, bfr, len) != (size_t)len) 267 if (bigwrite(ofd, Cs, bcnt) != (size_t)bcnt) 278 if (bigwrite(ofd, Cs, bcnt) != (size_t)bcnt) 318 if (ofd == -1) { 321 } else if (close(ofd) != 0) 332 if ((ofd [all...] |
/netbsd-6-1-5-RELEASE/tests/lib/libc/db/ |
H A D | h_db.c | 90 static int ofd = STDOUT_FILENO; /* Standard output fd. */ variable 125 if ((ofd = open(optarg, 184 if (ofd == STDOUT_FILENO && (t = strchr(p, '\n')) != NULL) 204 if (write(ofd, p + 1, len - 1) != (ssize_t)len - 1 || 205 write(ofd, "\n", 1) != 1) 335 (void)close(ofd); 367 (void)write(ofd, data.data, data.size); 368 if (ofd == STDOUT_FILENO) 369 (void)write(ofd, "\n", 1); 376 if (ofd ! [all...] |
/netbsd-6-1-5-RELEASE/dist/ipf/samples/ |
H A D | proxy.c | 142 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 D | relay.c | 31 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-6-1-5-RELEASE/lib/libedit/ |
H A D | refresh.c | 504 Char *ofd, *ols, *oe, *nfd, *nls, *ne; local 514 ofd = o; 526 while (ofd < o) { 549 if (*ofd == '\0' && *nfd == '\0') { 556 while ((o > ofd) && (n > nfd) && (*--o == *--n)) 570 * case 1: insert: scan from nfd to nls looking for *ofd 572 if (*ofd) { 573 for (c = *ofd, n = nfd; n < nls; n++) { 575 for (o = ofd, p = n; 587 osb = ofd; [all...] |
/netbsd-6-1-5-RELEASE/bin/ksh/ |
H A D | io.c | 276 ksh_dup2(ofd, nfd, errok) 277 int ofd; 281 int ret = dup2(ofd, nfd); 323 restfd(fd, ofd) 324 int fd, ofd; 328 if (ofd < 0) /* original fd closed */ 330 else if (fd != ofd) { 331 ksh_dup2(ofd, fd, TRUE); /* XXX: what to do if this fails? */ 332 close(ofd);
|
/netbsd-6-1-5-RELEASE/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 99 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; 715 write(ofd, "\031\1", 2); 1017 (void)write(ofd, FF, strlen(FF)); 1020 (void)write(ofd, class, strlen(class)); 1021 (void)write(ofd, " [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/pmax/stand/smallnet/setnetimage/ |
H A D | setnetimage.c | 79 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);
|
/netbsd-6-1-5-RELEASE/dist/pppd/pppd/ |
H A D | tty.c | 933 start_charshunt(ifd, ofd) 934 int ifd, ofd; 938 cpid = safe_fork(ifd, ofd, (log_to_fd >= 0? log_to_fd: 2)); 981 * (We assume ofd >= ifd which is true the way this gets called. :-). 984 charshunt(ifd, ofd, record_file) 985 int ifd, ofd; 1047 if (ifd >= FD_SETSIZE || ofd >= FD_SETSIZE || pty_master >= FD_SETSIZE) 1049 ifd, ofd, pty_master); 1069 if (ofd != ifd) { 1070 flags = fcntl(ofd, F_GETF [all...] |
/netbsd-6-1-5-RELEASE/bin/rcp/ |
H A D | rcp.c | 479 int exists, first, ofd; local 637 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { 642 if ((bp = allocbuf(&buffer, ofd, BUFSIZ)) == NULL) { 643 (void)close(ofd); 667 j = write(ofd, bp->buf, (size_t)count); 678 (j = write(ofd, bp->buf, (size_t)count)) != count) { 682 if (ftruncate(ofd, size)) { 688 if (fchmod(ofd, omode)) 693 if (fchmod(ofd, omode & ~mask)) 700 if (futimes(ofd, t [all...] |
/netbsd-6-1-5-RELEASE/games/hack/ |
H A D | hack.save.c | 101 int fd, ofd; local 136 if ((ofd = open(lock, O_RDONLY)) < 0) { 145 getlev(ofd, hackpid, tmp); 146 (void) close(ofd);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/readline/ |
H A D | display.c | 1172 register char *ofd, *ols, *oe, *nfd, *nls, *ne; local 1271 ofd = old + temp; 1281 ofd = old + omax; 1287 for (ofd = old, nfd = new; 1288 (ofd - old < omax) && *ofd && 1293 ofd = old + old_offset; 1301 for (ofd = old, nfd = new; 1302 (ofd - old < omax) && *ofd [all...] |
/netbsd-6-1-5-RELEASE/sbin/savecore/ |
H A D | savecore.c | 520 save_kernel(int ofd, FILE *fp, char *path) argument 529 nw = write(ofd, buf, nr); 557 save_ksyms(int ofd, FILE *fp, char *path) argument 586 nw = write(ofd, &khdr, sizeof(khdr)); 612 nw = write(ofd, p, st.sd_symsize); 640 nw = write(ofd, p, st.sd_strsize); 658 int bounds, ifd, nr, nw, ofd, tryksyms; local 661 ofd = -1; 694 ofd = Create(path, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); 695 fp = fdopen(ofd, " [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/gencat/ |
H A D | gencat.c | 150 int ofd, ifd; local 173 ofd = STDOUT_FILENO; 175 ofd = open(catfile, O_WRONLY | O_CREAT | O_EXCL, 0666); 176 if (ofd < 0) { 178 if ((ofd = open(catfile, O_RDWR)) < 0) { 188 MCReadCat(ofd); 189 if (lseek(ofd, (off_t)0, SEEK_SET) == (off_t)-1) { 213 if (ftruncate(ofd, 0) != 0) { 219 MCWriteCat(ofd);
|
/netbsd-6-1-5-RELEASE/bin/pax/ |
H A D | buf_subs.c | 683 rd_wrfile(ARCHD *arcn, int ofd, off_t *left) argument 699 if (ofd < 0) 701 else if (fstat(ofd, &sb) == 0) { 725 if ((res = file_write(ofd,bufpt,cnt,&rem,&isem,sz,fnm)) <= 0) { 748 if (ofd >= 0 && isem && (arcn->sb.st_size > 0L)) 749 file_flush(ofd, fnm, isem);
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/ |
H A D | scp.c | 898 int amt, exists, first, ofd; local 1059 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { 1064 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) { 1065 (void) close(ofd); 1096 if (atomicio(vwrite, ofd, bp->buf, 1110 atomicio(vwrite, ofd, bp->buf, count) != count) { 1115 ftruncate(ofd, size) != 0) { 1121 if (fchmod(ofd, omode)) { 1128 if (fchmod(ofd, omode & ~mask)) { 1134 if (close(ofd) [all...] |