Home
last modified time | relevance | path

Searched refs:fout (Results 1 – 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/cmd/sgs/lex/common/
H A Dheader.c47 (void) fprintf(fout, "#ident\t\"lex: %s %s\"\n", in chd1()
50 (void) fprintf(fout, "#ifndef EUC\n"); in chd1()
51 (void) fprintf(fout, "#define EUC\n"); in chd1()
52 (void) fprintf(fout, "#endif\n"); in chd1()
53 (void) fprintf(fout, "#include <stdio.h>\n"); in chd1()
54 (void) fprintf(fout, "#include <stdlib.h>\n"); in chd1()
55 (void) fprintf(fout, "#include <inttypes.h>\n"); in chd1()
56 (void) fprintf(fout, "#include <widec.h>\n"); in chd1()
58 (void) fprintf(fout, "#define YYTEXT yytext\n"); in chd1()
59 (void) fprintf(fout, "#define YYLENG yyleng\n"); in chd1()
[all …]
H A Dsub2.c322 (void) fprintf(fout, "blockdata\n"); in cgoto()
323 (void) fprintf(fout, "common /Lvstop/ vstop\n"); in cgoto()
324 (void) fprintf(fout, "define Svstop %d\n", nstates+1); in cgoto()
325 (void) fprintf(fout, "integer vstop(Svstop)\n"); in cgoto()
327 (void) fprintf(fout, "int yyvstop[] = {\n0,\n"); in cgoto()
445 (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 Dsub1.c150 if (fout) in warning()
151 (void) fflush(fout); in warning()
193 if (fout == NULL) { in lgate()
195 fout = fopen(fname, "w"); in lgate()
197 if (fout == NULL) in lgate()
200 (void) fprintf(fout, "#\n"); in lgate()
477 (void) fprintf(fout, "\n# line %d\n", yyline); in cpycom()
479 (void) fprintf(fout, in cpycom()
482 (void) putc(*t++, fout); in cpycom()
483 (void) putc(*t++, fout); in cpycom()
[all …]
H A Dparser.y310 if(!ratfor)(void) fprintf(fout,"# ");
311 (void) fprintf(fout,"define YYNEWLINE %d\n",ctable['\n']);
312 if(!ratfor)(void) fprintf(fout,"int yylex(){\nint nstr; extern int yyprevious;\n");
473 (void) fprintf(fout, "%ws\n", p);
502 if(!ratfor)(void) fprintf(fout,"# ");
503 (void) fprintf(fout, "define %ws %d\n", t, i);
524 else (void) fprintf(fout, "%ws\n", p);
580 if(ratfor)(void) fprintf(fout,"%d\n",30000+casecount);
581 else (void) fprintf(fout,"case %d:\n",casecount);
583 if(ratfor)(void) fprintf(fout,"goto 30997\n");
[all …]
/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_svcout.c79 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 Drpc_sample.c88 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 Drpc_clntout.c63 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 Drpc_cout.c127 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 Drpc_hout.c77 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 Drpc_main.c252 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 Drpc_tblout.c78 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 Drpc_util.c66 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()
/illumos-gate/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c90 static int dumpfs(fstyp_ufs_t *h, FILE *fout, FILE *ferr);
91 static void dumplog(fstyp_ufs_t *h, FILE *fout, FILE *ferr);
92 static void dumpcg(fstyp_ufs_t *h, FILE *fout, FILE *ferr, const int c);
99 int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr);
162 fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr) in fstyp_mod_dump() argument
166 return (dumpfs(h, fout, ferr)); in fstyp_mod_dump()
300 dumpfs(fstyp_ufs_t *h, FILE *fout, FILE *ferr) in dumpfs() argument
309 (void) fprintf(fout, "magic\t%x\tformat\t%s\ttime\t%s", fsp->fs_magic, in dumpfs()
312 (void) fprintf(fout, "sblkno\t%d\tcblkno\t%d\tiblkno\t%d\tdblkno\t%d\n", in dumpfs()
314 (void) fprintf(fout, in dumpfs()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/common/
H A Dud_lib.c1433 print_charspec(FILE *fout, char *name, struct charspec *cspec) in print_charspec() argument
1437 (void) fprintf(fout, in print_charspec()
1440 (void) fprintf(fout, in print_charspec()
1443 (void) fprintf(fout, "\n"); in print_charspec()
1448 print_dstring(FILE *fout, char *name, uint16_t cset, char *bufc, uint8_t length) in print_dstring() argument
1454 (void) fprintf(fout, in print_dstring()
1473 print_tstamp(FILE *fout, char *name, tstamp_t *ts) in print_tstamp() argument
1475 (void) fprintf(fout, "%s tz : %d yr : %d mo : %d da : %d " in print_tstamp()
1516 print_regid(FILE *fout, char *name, struct regid *reg, int32_t type) in print_regid() argument
1518 (void) fprintf(fout, "%s : 0x%x : \"%s\" :", in print_regid()
[all …]
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Dps_include.c41 #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 …]
/illumos-gate/usr/src/cmd/fs.d/udfs/fstyp/
H A Dfstyp.c55 FILE *fout, FILE *ferr);
62 int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr);
131 fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr) in fstyp_mod_dump() argument
137 (void) fprintf(fout, in fstyp_mod_dump()
141 ret = print_vds(h, &udfs->mvds, fout, ferr); in fstyp_mod_dump()
143 ret = print_vds(h, &udfs->rvds, fout, ferr); in fstyp_mod_dump()
223 print_vds(fstyp_udfs_t *h, struct vds *v, FILE *fout, FILE *ferr) in print_vds() argument
263 print_avd(fout, (struct anch_vol_desc_ptr *)buf); in print_vds()
277 print_pvd(fout, (struct pri_vol_desc *)buf); in print_vds()
291 print_iuvd(fout, (struct iuvd_desc *)buf); in print_vds()
[all …]
/illumos-gate/usr/src/cmd/fs.d/pcfs/fstyp/
H A Dfstyp.c135 static int dumpfs(fstyp_pcfs_t *h, FILE *fout, FILE *ferr);
142 int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr);
201 fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr) in fstyp_mod_dump() argument
205 return (dumpfs(h, fout, ferr)); in fstyp_mod_dump()
520 dumpfs(fstyp_pcfs_t *h, FILE *fout, FILE *ferr __unused) in dumpfs() argument
529 (void) fprintf(fout, "Filesystem type: FAT%d\n", h->fattype); in dumpfs()
530 (void) fprintf(fout, in dumpfs()
533 (void) fprintf(fout, in dumpfs()
536 (void) fprintf(fout, in dumpfs()
539 (void) fprintf(fout, in dumpfs()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dnames.c208 FILE *fout, *fin; in outof() local
245 if ((fout = fdopen(fd, "a")) == NULL) { in outof()
260 fprintf(fout, "From %s %s", myname, date); in outof()
262 putc(c, fout); in outof()
264 fflush(fout); in outof()
265 if (fferror(fout)) in outof()
267 fclose(fout); in outof()
304 if ((fout = fopen(fname, "a")) == NULL) { in outof()
313 fclose(fout); in outof()
319 putc(getc(fin), fout); in outof()
[all …]
/illumos-gate/usr/src/cmd/abi/appcert/scripts/
H A Dabi_index.pl387 my ($fout, $abi);
389 $fout = $fileoutput{$path};
390 if ($fout =~ /\bSPARCV9\b/) {
392 } elsif ($fout =~ /\bSPARC/) {
394 } elsif ($fout =~ /\bAMD64\b/ || $fout =~ /\bELF\s+64-bit\s+LSB\b/) {
396 } elsif ($fout =~ /\b80386\b/) {
/illumos-gate/usr/src/cmd/bnu/
H A Duuxqt.c834 char fout[MAXFULLNAME], sysout[NAMESIZE]; local
863 (void) strcpy(fout, "/dev/null");
906 (void) sscanf(&buf[1], "%256s%14s", fout, sysout);
912 expfile(fout);
913 if (chkpth(fout, CK_WRITE)) {
915 DEBUG(4, "badfile - out: %s\n", fout);
993 DEBUG(4, "fout - %s, ", fout);
1031 if (EQUALS(fout, "/dev/null"))
1180 if (!EQUALS(fout, "/dev/null")) {
1188 if ((xmv(dfile, fout)) != 0) {
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dsfsasl.c366 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;
/illumos-gate/usr/src/lib/libcurses/screen/
H A D_newterm.c47 newterm(char *type, FILE *fout, FILE *fin) in newterm() argument
49 return (newscreen(type, 0, 0, 0, fout, fin)); in newterm()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dftp.c1055 FILE *fout, *din = 0; in recvrequest() local
1205 fout = tmp_nlst; in recvrequest()
1207 fout = stdout; in recvrequest()
1210 fout = mypopen(local + 1, "w"); in recvrequest()
1211 if (fout == NULL) { in recvrequest()
1217 fout = fopen(local, mode); in recvrequest()
1218 if (fout == NULL) { in recvrequest()
1231 lseek(fileno(fout), restart_point, SEEK_SET) < 0) { in recvrequest()
1239 d = write(fileno(fout), &buf[n], c - n); in recvrequest()
1262 if ((d < 0) || ((c == 0) && (fsync(fileno(fout)) == -1))) { in recvrequest()
[all …]
/illumos-gate/usr/src/cmd/fs.d/hsfs/fstyp/
H A Dfstyp.c81 int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr);
145 fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr) in fstyp_mod_dump() argument
163 (void) fprintf(fout, in fstyp_mod_dump()
167 (void) fprintf(fout, "CD-ROM is in %s" in fstyp_mod_dump()
177 (void) fprintf(fout, "%s: %s\n", name, str_value); in fstyp_mod_dump()
180 (void) fprintf(fout, "%s %llu\n", in fstyp_mod_dump()
/illumos-gate/usr/src/cmd/lp/filter/postscript/font/
H A Dmakedev.c119 char *fout = "DESC.out"; variable
187 fdout = creat(fout, 0666); in main()
189 fprintf(stderr, "makedev: can't open %s\n", fout); in main()
236 fprintf(stderr, "makedev: can't open %s\n", fout); in dofont()

12