Lines Matching refs:fout

127 	f_print(fout, "\n");
128 f_print(fout, "bool_t\n");
130 f_print(fout, "xdr_%s(", procname);
131 f_print(fout, "XDR *xdrs, ");
132 f_print(fout, "%s ", procname);
134 f_print(fout, "*");
135 f_print(fout, "objp)\n{\n\n");
137 f_print(fout, "xdr_%s(xdrs, objp)\n", procname);
138 f_print(fout, "\tXDR *xdrs;\n");
139 f_print(fout, "\t%s ", procname);
141 f_print(fout, "*");
142 f_print(fout, "objp;\n{\n\n");
157 f_print(fout, "\trpc_inline_t *buf;\n\n");
169 f_print(fout, "\treturn (TRUE);\n");
170 f_print(fout, "}\n");
177 tabify(fout, indent);
184 f_print(fout, "if (!xdr_%s(xdrs", name);
190 f_print(fout, ", %s", arg);
197 f_print(fout, ",\n");
198 tabify(fout, indent);
200 f_print(fout, ", ");
203 f_print(fout, "sizeof (bool_t), (xdrproc_t)xdr_bool");
205 f_print(fout, "sizeof (");
207 f_print(fout, "%s ", prefix);
209 f_print(fout, "%s), (xdrproc_t)xdr_%s", type, type);
216 f_print(fout, "))\n");
217 tabify(fout, indent);
218 f_print(fout, "\treturn (FALSE);\n");
231 f_print(fout, "%s", objname);
245 f_print(fout, "%s", objname);
266 f_print(fout, "%s.%s_val, (u_int *) %s.%s_len",
269 f_print(fout,
323 f_print(fout, "\tswitch (objp->%s) {\n", def->def.un.enum_decl.name);
326 f_print(fout, "\tcase %s:\n", cl->case_name);
345 f_print(fout, "\t\tbreak;\n");
353 f_print(fout, "\tdefault:\n");
365 f_print(fout, "\t\tbreak;\n");
368 f_print(fout, "\tdefault:\n");
369 f_print(fout, "\t\treturn (FALSE);\n");
372 f_print(fout, "\t}\n");
384 tabify(fout, indent + 1);
386 f_print(fout,
390 f_print(fout,
394 f_print(fout,
398 f_print(fout, "\n");
399 tabify(fout, indent + 1);
400 f_print(fout, "if (buf == NULL) {\n");
409 tabify(fout, indent+1);
410 f_print(fout, "} else {\n");
412 f_print(fout, "#if defined(_LP64) || defined(_KERNEL)\n");
418 f_print(fout, "#else\n");
424 f_print(fout, "#endif\n");
426 tabify(fout, indent + 1);
427 f_print(fout, "}\n");
603 f_print(fout, "\t%s *tmp_%s;\n",
606 f_print(fout, "\tbool_t more_data = TRUE;\n");
607 f_print(fout, "\tbool_t first_objp = TRUE;\n\n");
609 f_print(fout, "\n\tif (xdrs->x_op == XDR_DECODE) {\n");
610 f_print(fout, "\n\t\twhile (more_data) {\n");
611 f_print(fout, "\n\t\t\tvoid bzero();\n\n");
620 f_print(fout, "\t\t\tif (!xdr_bool(xdrs, "
623 f_print(fout, "\n\t\t\tif (!more_data) {\n");
624 f_print(fout, "\t\t\t\tobjp->%s = NULL;\n", sp->tail->decl.name);
625 f_print(fout, "\t\t\t\tbreak;\n");
626 f_print(fout, "\t\t\t}\n\n");
627 f_print(fout, "\t\t\tif (objp->%s == NULL) {\n", sp->tail->decl.name);
628 f_print(fout, "\t\t\t\tobjp->%s = "
632 f_print(fout, "\t\t\t\tif (objp->%s == NULL)\n"
634 f_print(fout, "\t\t\t\tbzero(objp->%s, sizeof (%s));\n",
636 f_print(fout, "\t\t\t}\n");
637 f_print(fout, "\t\t\tobjp = objp->%s;\n", sp->tail->decl.name);
638 f_print(fout, "\t\t}\n");
640 f_print(fout, "\n\t} else if (xdrs->x_op == XDR_ENCODE) {\n");
641 f_print(fout, "\n\t\twhile (more_data) {\n");
650 f_print(fout, "\t\t\tobjp = objp->%s;\n", sp->tail->decl.name);
651 f_print(fout, "\t\t\tif (objp == NULL)\n");
652 f_print(fout, "\t\t\t\tmore_data = FALSE;\n");
654 f_print(fout, "\t\t\tif (!xdr_bool(xdrs, &more_data))\n"
657 f_print(fout, "\t\t}\n");
659 f_print(fout, "\n\t} else {\n");
660 f_print(fout, "\n\t\twhile (more_data) {\n");
665 f_print(fout, "\t\t\ttmp_%s = objp;\n", defp->def_name);
666 f_print(fout, "\t\t\tobjp = objp->%s;\n", sp->tail->decl.name);
668 f_print(fout, "\t\t\tif (objp == NULL)\n");
669 f_print(fout, "\t\t\t\tmore_data = FALSE;\n");
671 f_print(fout, "\t\t\tif (!first_objp)\n");
673 f_print(fout, "\t\t\t\tmem_free(tmp_%s, sizeof (%s));\n",
676 f_print(fout, "\t\t\telse\n\t\t\t\tfirst_objp = FALSE;\n\t\t}\n");
678 f_print(fout, "\n\t}\n");
690 f_print(fout, "\tint i;\n");
701 f_print(fout, "\n\tif (xdrs->x_op == XDR_ENCODE) {\n");
704 f_print(fout, "\t\treturn (TRUE);\n\t}"
708 f_print(fout, "\t\treturn (TRUE);\n\t}\n\n");
754 tabify(fout, indent);
755 f_print(fout, "{\n");
756 tabify(fout, indent + 1);
757 f_print(fout, "%s *genp;\n\n", decl->type);
758 tabify(fout, indent + 1);
759 f_print(fout,
761 tabify(fout, indent + 2);
762 f_print(fout, "i < %s; i++) {\n", decl->array_max);
764 tabify(fout, indent + 1);
765 f_print(fout, "}\n");
766 tabify(fout, indent);
767 f_print(fout, "}\n");
779 tabify(fout, indent);
780 f_print(fout, "{\n");
781 tabify(fout, indent + 1);
782 f_print(fout, "%s *genp;\n\n", decl->type);
783 tabify(fout, indent + 1);
784 f_print(fout,
786 tabify(fout, indent + 2);
787 f_print(fout, "i < %s; i++) {\n", decl->array_max);
789 tabify(fout, indent + 1);
790 f_print(fout, "}\n");
791 tabify(fout, indent);
792 f_print(fout, "}\n");
802 tabify(fout, indent);
804 f_print(fout, "IXDR_PUT_");
807 f_print(fout, "objp->%s = IXDR_GET_", decl->name);
809 f_print(fout, "*genp++ = IXDR_GET_");
832 f_print(fout,
835 f_print(fout, "%s(buf, *genp++);\n", upp_case);
838 f_print(fout, "%s(buf);\n", upp_case);
849 tabify(fout, indent);
851 f_print(fout, "IXDR_PUT_");
854 f_print(fout, "objp->%s = IXDR_GET_", decl->name);
856 f_print(fout, "*genp++ = IXDR_GET_");
880 f_print(fout,
883 f_print(fout, "%s(buf, *genp++);\n", upp_case);
886 f_print(fout, "%s(buf);\n", upp_case);