/titanic_44/usr/src/cmd/sgs/lex/common/ |
H A D | header.c | 49 (void) fprintf(fout, "#ident\t\"lex: %s %s\"\n", in chd1() 52 (void) fprintf(fout, "#ifndef EUC\n"); in chd1() 53 (void) fprintf(fout, "#define EUC\n"); in chd1() 54 (void) fprintf(fout, "#endif\n"); in chd1() 55 (void) fprintf(fout, "#include <stdio.h>\n"); in chd1() 56 (void) fprintf(fout, "#include <stdlib.h>\n"); in chd1() 57 (void) fprintf(fout, "#include <inttypes.h>\n"); in chd1() 58 (void) fprintf(fout, "#include <widec.h>\n"); in chd1() 60 (void) fprintf(fout, "#define YYTEXT yytext\n"); in chd1() 61 (void) fprintf(fout, "#define YYLENG yyleng\n"); in chd1() [all …]
|
H A D | sub2.c | 324 (void) fprintf(fout, "blockdata\n"); in cgoto() 325 (void) fprintf(fout, "common /Lvstop/ vstop\n"); in cgoto() 326 (void) fprintf(fout, "define Svstop %d\n", nstates+1); in cgoto() 327 (void) fprintf(fout, "integer vstop(Svstop)\n"); in cgoto() 329 (void) fprintf(fout, "int yyvstop[] = {\n0,\n"); in cgoto() 447 (void) (ratfor ? fprintf(fout, "end\n") : fprintf(fout, "0};\n")); in cgoto() 838 (void) fprintf(fout, "/* actions for state %d */", s); in acompute() 840 (void) putc('\n', fout); in acompute() 844 fprintf(fout, "data vstop(%d)/%d/\n", in acompute() 846 fprintf(fout, "%d,\n", temp[i])); in acompute() [all …]
|
H A D | sub1.c | 149 if (fout) 150 (void) fflush(fout); 192 if (fout == NULL) { in lgate() 194 fout = fopen(fname, "w"); in lgate() 196 if (fout == NULL) in lgate() 199 (void) fprintf(fout, "#\n"); in lgate() 476 (void) fprintf(fout, "\n# line %d\n", yyline); in cpycom() 478 (void) fprintf(fout, in cpycom() 481 (void) putc(*t++, fout); in cpycom() 482 (void) putc(*t++, fout); in cpycom() [all …]
|
H A D | parser.y | 334 if(!ratfor)(void) fprintf(fout,"# "); 335 (void) fprintf(fout,"define YYNEWLINE %d\n",ctable['\n']); 336 if(!ratfor)(void) fprintf(fout,"int yylex(){\nint nstr; extern int yyprevious;\n"); 497 (void) fprintf(fout,WSFMT("%ws\n"),p); 526 if(!ratfor)(void) fprintf(fout,"# "); 527 (void) fprintf(fout,WSFMT("define %ws %d\n"),t,i); 548 else (void) fprintf(fout, WSFMT("%ws\n"),p); 604 if(ratfor)(void) fprintf(fout,"%d\n",30000+casecount); 605 else (void) fprintf(fout,"case %d:\n",casecount); 607 if(ratfor)(void) fprintf(fout,"goto 30997\n"); [all …]
|
/titanic_44/usr/src/cmd/rpcgen/ |
H A D | rpc_svcout.c | 79 f_print(fout, "\t\t_xdr_%s = (xdrproc_t)\n", rname); in p_xdrfunc() 80 f_print(fout, "\t\t xdr_%s;\n", stringfix(typename)); in p_xdrfunc() 82 f_print(fout, "\t\t_xdr_%s = xdr_%s;\n", in p_xdrfunc() 90 f_print(fout, "static "); in internal_proctype() 92 f_print(fout, "*"); in internal_proctype() 99 f_print(fout, "\tif (!rpc_control(RPC_SVC_MTMODE_SET, &mode)) {\n"); in write_mtauto() 101 f_print(fout, "\t\texit(1);\n\t}\n"); in write_mtauto() 113 f_print(fout, "%s int _rpcpmstart;", var_type); in write_most() 114 f_print(fout, "\t\t/* Started by a port monitor ? */\n"); in write_most() 116 f_print(fout, "%s int _rpcfdtype;", var_type); in write_most() [all …]
|
H A D | rpc_sample.c | 88 f_print(fout, "\n\nvoid\n"); in write_sample_client() 91 f_print(fout, "(char *host)\n{\n"); in write_sample_client() 93 f_print(fout, "(host)\n\tchar *host;\n{\n"); in write_sample_client() 94 f_print(fout, "\tCLIENT *clnt;\n"); in write_sample_client() 98 f_print(fout, "\t"); in write_sample_client() 100 f_print(fout, "enum clnt_stat retval_%d;\n", ++i); in write_sample_client() 102 f_print(fout, "\t"); in write_sample_client() 107 f_print(fout, "void *"); in write_sample_client() 108 f_print(fout, "result_%d;\n", i); in write_sample_client() 112 f_print(fout, " *result_%d;\n", ++i); in write_sample_client() [all …]
|
H A D | rpc_clntout.c | 63 f_print(fout, in write_stubs() 65 f_print(fout, "static struct timeval TIMEOUT = { %d, 0 };\n", in write_stubs() 83 f_print(fout, "\n"); in write_program() 86 f_print(fout, "*\n"); in write_program() 90 f_print(fout, "enum clnt_stat \n"); in write_program() 95 f_print(fout, "{\n"); in write_program() 98 f_print(fout, "}\n"); in write_program() 120 f_print(fout, "("); in printarglist() 125 f_print(fout, "*argp, "); in printarglist() 129 f_print(fout, "*%s, ", result); in printarglist() [all …]
|
H A D | rpc_cout.c | 127 f_print(fout, "\n"); in print_generic_header() 128 f_print(fout, "bool_t\n"); in print_generic_header() 130 f_print(fout, "xdr_%s(", procname); in print_generic_header() 131 f_print(fout, "XDR *xdrs, "); in print_generic_header() 132 f_print(fout, "%s ", procname); in print_generic_header() 134 f_print(fout, "*"); in print_generic_header() 135 f_print(fout, "objp)\n{\n\n"); in print_generic_header() 137 f_print(fout, "xdr_%s(xdrs, objp)\n", procname); in print_generic_header() 138 f_print(fout, "\tXDR *xdrs;\n"); in print_generic_header() 139 f_print(fout, "\t%s ", procname); in print_generic_header() [all …]
|
H A D | rpc_hout.c | 77 f_print(fout, "\n"); in print_datadef() 109 f_print(fout, "\n"); in print_funcdef() 145 f_print(fout, "extern bool_t xdr_%s();\n", name); in print_xdr_func_def() 147 f_print(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", name, in print_xdr_func_def() 175 f_print(fout, "struct %s {\n", name); in pargdef() 178 f_print(fout, "};\n"); in pargdef() 179 f_print(fout, "typedef struct %s %s;\n", name, name); in pargdef() 181 f_print(fout, "\n"); in pargdef() 193 f_print(fout, "struct %s {\n", name); in pstructdef() 196 f_print(fout, "};\n"); in pstructdef() [all …]
|
H A D | rpc_main.c | 252 fout = stdout; in open_output() 262 fout = fopen(outfile, "w"); in open_output() 263 if (fout == NULL) { in open_output() 275 f_print(fout, "/*\n"); in add_warning() 276 f_print(fout, " * Please do not edit this file.\n"); in add_warning() 277 f_print(fout, " * It was generated using rpcgen.\n"); in add_warning() 278 f_print(fout, " */\n\n"); in add_warning() 414 f_print(fout, "#include \"%s\"\n", include); in c_output() 418 f_print(fout, "#include <rpc/rpc.h>\n"); in c_output() 422 f_print(fout, "\n#ifndef _KERNEL\n"); in c_output() [all …]
|
H A D | rpc_tblout.c | 78 f_print(fout, "\n"); in write_tables() 102 f_print(fout, tbl_hdr, progvers); in write_table() 109 f_print(fout, null_entry); in write_table() 111 f_print(fout, null_entry_b); in write_table() 116 f_print(fout, in write_table() 128 f_print(fout, in write_table() 131 f_print(fout, in write_table() 139 f_print(fout, "_"); in write_table() 142 f_print(fout, "),\n"); in write_table() 156 f_print(fout, tbl_end); in write_table() [all …]
|
H A D | rpc_util.c | 66 FILE *fout; /* file pointer of current output */ variable 168 f_print(fout, "enum "); in ptype() 170 f_print(fout, "struct "); in ptype() 174 f_print(fout, "bool_t "); in ptype() 176 f_print(fout, "char *"); in ptype() 178 f_print(fout, "void "); in ptype() 180 f_print(fout, "%s ", follow ? fixtype(type) : type); in ptype() 231 f_print(fout, "%s_%s_svc", locase(pname), vnum); in pvname_svc() 237 f_print(fout, "%s_%s", locase(pname), vnum); in pvname()
|
/titanic_44/usr/src/cmd/fs.d/ufs/fstyp/ |
H A D | fstyp.c | 92 static int dumpfs(fstyp_ufs_t *h, FILE *fout, FILE *ferr); 93 static void dumplog(fstyp_ufs_t *h, FILE *fout, FILE *ferr); 94 static void dumpcg(fstyp_ufs_t *h, FILE *fout, FILE *ferr, const int c); 101 int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr); 164 fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr) in fstyp_mod_dump() argument 168 return (dumpfs(h, fout, ferr)); in fstyp_mod_dump() 302 dumpfs(fstyp_ufs_t *h, FILE *fout, FILE *ferr) in dumpfs() argument 311 (void) fprintf(fout, "magic\t%x\tformat\t%s\ttime\t%s", fsp->fs_magic, in dumpfs() 314 (void) fprintf(fout, "sblkno\t%d\tcblkno\t%d\tiblkno\t%d\tdblkno\t%d\n", in dumpfs() 316 (void) fprintf(fout, in dumpfs() [all …]
|
/titanic_44/usr/src/cmd/fs.d/udfs/fstyp/ |
H A D | ud_lib.c | 1444 print_charspec(FILE *fout, char *name, struct charspec *cspec) in print_charspec() argument 1448 (void) fprintf(fout, in print_charspec() 1451 (void) fprintf(fout, in print_charspec() 1454 (void) fprintf(fout, "\n"); in print_charspec() 1459 print_dstring(FILE *fout, char *name, uint16_t cset, char *bufc, uint8_t length) in print_dstring() argument 1465 (void) fprintf(fout, in print_dstring() 1484 print_tstamp(FILE *fout, char *name, tstamp_t *ts) in print_tstamp() argument 1486 (void) fprintf(fout, "%s tz : %d yr : %d mo : %d da : %d " in print_tstamp() 1527 print_regid(FILE *fout, char *name, struct regid *reg, int32_t type) in print_regid() argument 1529 (void) fprintf(fout, "%s : 0x%x : \"%s\" :", in print_regid() [all …]
|
H A D | fstyp.c | 57 FILE *fout, FILE *ferr); 64 int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr); 133 fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr) in fstyp_mod_dump() argument 139 (void) fprintf(fout, in fstyp_mod_dump() 143 ret = print_vds(h, &udfs->mvds, fout, ferr); in fstyp_mod_dump() 145 ret = print_vds(h, &udfs->rvds, fout, ferr); in fstyp_mod_dump() 225 print_vds(fstyp_udfs_t *h, struct vds *v, FILE *fout, FILE *ferr) in print_vds() argument 265 print_avd(fout, (struct anch_vol_desc_ptr *)buf); in print_vds() 279 print_pvd(fout, (struct pri_vol_desc *)buf); in print_vds() 293 print_iuvd(fout, (struct iuvd_desc *)buf); in print_vds() [all …]
|
/titanic_44/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | ps_include.c | 41 #define var(x) fprintf(fout, "/%s %g def\n", #x, x) 72 ps_include(FILE *fin, FILE *fout, int page_no, int whiteout, in ps_include() argument 172 print(fout, PS_head); in ps_include() 175 print(fout, PS_setup); in ps_include() 176 copy(fin, fout, &prolog); in ps_include() 178 copy(fin, fout, &global[i]); in ps_include() 179 copy(fin, fout, &page); in ps_include() 180 copy(fin, fout, &trailer); in ps_include() 181 print(fout, PS_tail); in ps_include() 189 print(FILE *fout, char **s) in print() argument [all …]
|
/titanic_44/usr/src/cmd/fs.d/pcfs/fstyp/ |
H A D | fstyp.c | 136 static int dumpfs(fstyp_pcfs_t *h, FILE *fout, FILE *ferr); 143 int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr); 202 fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr) in fstyp_mod_dump() argument 206 return (dumpfs(h, fout, ferr)); in fstyp_mod_dump() 507 dumpfs(fstyp_pcfs_t *h, FILE *fout, FILE *ferr) in dumpfs() argument 509 (void) fprintf(fout, in dumpfs() 512 (void) fprintf(fout, in dumpfs() 515 (void) fprintf(fout, in dumpfs() 518 (void) fprintf(fout, in dumpfs() 521 (void) fprintf(fout, in dumpfs() [all …]
|
/titanic_44/usr/src/cmd/mailx/ |
H A D | names.c | 207 FILE *fout, *fin; in outof() local 244 if ((fout = fdopen(fd, "a")) == NULL) { in outof() 259 fprintf(fout, "From %s %s", myname, date); in outof() 261 putc(c, fout); in outof() 263 fflush(fout); in outof() 264 if (fferror(fout)) in outof() 266 fclose(fout); in outof() 303 if ((fout = fopen(fname, "a")) == NULL) { in outof() 312 fclose(fout); in outof() 318 putc(getc(fin), fout); in outof() [all …]
|
/titanic_44/usr/src/cmd/abi/appcert/scripts/ |
H A D | abi_index.pl | 391 my ($fout, $abi); 393 $fout = $fileoutput{$path}; 394 if ($fout =~ /\bSPARCV9\b/) { 396 } elsif ($fout =~ /\bSPARC/) { 398 } elsif ($fout =~ /\bAMD64\b/ || $fout =~ /\bELF\s+64-bit\s+LSB\b/) { 400 } elsif ($fout =~ /\b80386\b/) {
|
/titanic_44/usr/src/cmd/fs.d/cachefs/cfsd/ |
H A D | cfsd_all.c | 282 FILE *fout; in all_cachefstab_update() local 286 fout = fopen(CACHEFSTAB, "w"); in all_cachefstab_update() 287 if (fout == NULL) { in all_cachefstab_update() 294 fprintf(fout, "%s\n", cache_object_p->i_cachedir); in all_cachefstab_update() 297 if (fclose(fout)) in all_cachefstab_update()
|
/titanic_44/usr/src/lib/libcurses/screen/ |
H A D | _newterm.c | 49 newterm(char *type, FILE *fout, FILE *fin) in newterm() argument 51 return (newscreen(type, 0, 0, 0, fout, fin)); in newterm()
|
/titanic_44/usr/src/cmd/sendmail/src/ |
H A D | sfsasl.c | 366 sfdcsasl(fin, fout, conn, tmo) in sfdcsasl() argument 368 SM_FILE_T **fout; 395 info.fp = *fout; 408 sm_io_setinfo(*fout, SM_IO_WHAT_TIMEOUT, &tmo); 411 *fout = newout; 937 sfdctls(fin, fout, con) in sfdctls() argument 939 SM_FILE_T **fout; 960 info.fp = *fout; 971 *fout = tlsout;
|
/titanic_44/usr/src/cmd/bnu/ |
H A D | uuxqt.c | 836 char fout[MAXFULLNAME], sysout[NAMESIZE]; local 865 (void) strcpy(fout, "/dev/null"); 908 (void) sscanf(&buf[1], "%256s%14s", fout, sysout); 914 expfile(fout); 915 if (chkpth(fout, CK_WRITE)) { 917 DEBUG(4, "badfile - out: %s\n", fout); 995 DEBUG(4, "fout - %s, ", fout); 1033 if (EQUALS(fout, "/dev/null")) 1182 if (!EQUALS(fout, "/dev/null")) { 1190 if ((xmv(dfile, fout)) != 0) { [all …]
|
/titanic_44/usr/src/cmd/fs.d/cachefs/mount/ |
H A D | mount.c | 1363 FILE *fout; in record_mount() local 1370 fout = fopen(buf, "w"); in record_mount() 1371 if (fout == NULL) { in record_mount() 1376 fprintf(fout, "cachedir: %s\n", cachedirp); in record_mount() 1377 fprintf(fout, "mnt_point: %s\n", mntp); in record_mount() 1379 fprintf(fout, "special: %s\n", specp); in record_mount() 1382 fprintf(fout, "backpath: %s\n", backfsp); in record_mount() 1383 fprintf(fout, "backfstype: %s\n", backfstypep); in record_mount() 1384 fprintf(fout, "cacheid: %s\n", cacheidp); in record_mount() 1385 fprintf(fout, "cachefs_options: %s\n", optionp); in record_mount() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | ftp.c | 1051 FILE *fout, *din = 0; in recvrequest() local 1201 fout = tmp_nlst; in recvrequest() 1203 fout = stdout; in recvrequest() 1206 fout = mypopen(local + 1, "w"); in recvrequest() 1207 if (fout == NULL) { in recvrequest() 1213 fout = fopen(local, mode); in recvrequest() 1214 if (fout == NULL) { in recvrequest() 1227 lseek(fileno(fout), restart_point, SEEK_SET) < 0) { in recvrequest() 1235 d = write(fileno(fout), &buf[n], c - n); in recvrequest() 1258 if ((d < 0) || ((c == 0) && (fsync(fileno(fout)) == -1))) { in recvrequest() [all …]
|