/src/sys/dev/hpc/ |
fontconv.c | 12 FILE *ofp; variable in typeref:typename:FILE * 22 ofp = stdout; 46 fprintf(ofp, "static u_char %s%dx%d_data[] = {\n", 64 fprintf(ofp, " /* code %d */\n", code); 67 fprintf(ofp, " "); 70 fprintf(ofp, "0x%02x,", (buf[k] & 0xff)); 73 fprintf(ofp, " /* "); 77 fprintf(ofp, " */\n"); 79 fprintf(ofp, "\n"); 88 fprintf(ofp, "};\n") [all...] |
/src/usr.bin/compress/ |
compress.c | 205 FILE *ifp, *ofp; local in function:compress 217 ifp = ofp = NULL; 235 if ((ofp = zopen(out, "w", bits)) == NULL) { 241 if (fwrite(buf, 1, nr, ofp) != nr) { 251 if (fclose(ofp)) 255 ofp = NULL; 290 err: if (ofp) 291 (void)fclose(ofp); 303 FILE *ifp, *ofp; local in function:decompress 315 ifp = ofp = NULL [all...] |
/src/usr.bin/uniq/ |
uniq.c | 69 FILE *ifp, *ofp; local in function:main 76 ifp = ofp = NULL; 111 ofp = stdout; 115 ofp = stdout; 119 ofp = file(argv[1], "w"); 164 show(ofp, prevline); 177 show(ofp, prevline); 189 show(FILE *ofp, const char *str) 195 (void)fprintf(ofp, "%4d %s", repeats + 1, str); 197 (void)fprintf(ofp, "%s", str) [all...] |
/src/tests/lib/libc/stdio/ |
h_intr.c | 130 FILE *ifp, *ofp; local in function:process 153 if ((ofp = popen(opts.cmd, "w")) == NULL) { 158 setvbuf(ofp, NULL, opts.btype, opts.asize); 168 setvbuf(ofp, r ? abuf : NULL, 174 if ((i = wr_fn(ofp, buf, n)) == -1) { 181 if (fflush(ofp)) 192 if (pclose(ofp) != 0)
|
/src/usr.bin/csplit/ |
csplit.c | 108 FILE *ofp; local in function:main 203 ofp = newfile(); 204 while ((p = get_line()) != NULL && fputs(p, ofp) != EOF) 207 (void)printf("%jd\n", (intmax_t)ftello(ofp)); 208 if (fclose(ofp) != 0) 307 toomuch(FILE *ofp, long n) 337 if (ftello(ofp) < (off_t)sizeof(buf)) 338 rewind(ofp); 340 (void)fseeko(ofp, -(off_t)sizeof(buf), SEEK_CUR); 341 if (ferror(ofp)) 373 FILE *ofp; local in function:do_rexp 453 FILE *ofp; local in function:do_lineno [all...] |
/src/usr.bin/fsplit/ |
fsplit.c | 116 FILE *ofp; /* output file */ local in function:main 155 ofp = fopen(x, "w"); 156 if (ofp == NULL) { 163 fprintf(ofp, "%s", buf); 173 fclose(ofp);
|
/src/usr.bin/utoppya/ |
utoppya.c | 348 FILE *ofp, *to; local in function:cmd_get 393 ofp = stdout; 412 if ((ofp = fopen(dst, reget ? "a" : "w")) == NULL) 439 rv = fwrite(buf, 1, l, ofp); 442 if (ofp != stdout) 443 fclose(ofp); 453 if (ofp != stdout) 454 fclose(ofp);
|
/src/usr.bin/config/ |
mkmakefile.c | 89 FILE *ifp, *ofp; local in function:mkmakefile 134 if ((ofp = fopen("Makefile.tmp", "w")) == NULL) { 139 emitdefs(ofp); 145 fputs(line, ofp); 175 emitsubs(ofp, line, ifname, lineno); 178 (*fn)(ofp); 181 fflush(ofp); 182 if (ferror(ofp)) 190 if (fclose(ofp)) { 191 ofp = NULL [all...] |
/src/usr.sbin/crash/ |
crash.c | 73 static FILE *ofp; variable in typeref:typename:FILE * 100 if (ofp != stdout) { 101 (void)fflush(ofp); 102 (void)pclose(ofp); 103 ofp = stdout; 259 if (ofp != stdout) { 260 (void)fflush(ofp); 261 (void)pclose(ofp); 262 ofp = stdout; 289 assert(ofp == stdout) [all...] |
/src/usr.bin/patch/ |
patch.c | 132 static FILE *ofp = NULL; /* output file pointer */ variable in typeref:typename:FILE * 313 if (ferror(ofp) || fclose(ofp)) { 318 ofp = NULL; 354 if (ofp) 355 fclose(ofp); 356 ofp = NULL; 855 fputs(not_defined, ofp); 858 fputs(else_defined, ofp); 861 fputs(pfetch(old), ofp); [all...] |