for (l = defined; l != NULL; l = l->next) { def = (definition *) l->val; if (def->def_kind == DEF_PROGRAM) { for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) { f_print(fout, "\nstatic void "); pvname(def->def_name, vp->vers_num); f_print(fout, "();"); }
if( nomain ) return;  #ifdef __GNU_LIBRARY__ if (Cflag) f_print(fout, "\nint\nmain(int argc, char **argv)\n"); else { f_print(fout, "\nint\nmain(argc, argv)\n"); f_print(fout, "\tint argc;\n"); f_print(fout, "\tchar **argv;\n"); } #else f_print(fout, "\nmain()\n"); #endif f_print(fout, "{\n"); if (inetdflag) { write_inetmost(infile);  } else { if( tirpcflag ) { if (netflag) { f_print(fout, "\tregister SVCXPRT *%s;\n", TRANSP); f_print(fout, "\tstruct netconfig *nconf = NULL;\n");
write_most(){	list *l;	definition *def;	version_list *vp;	for (l = defined; l != NULL; l = l->next) {		def = (definition *) l->val;		if (def->def_kind == DEF_PROGRAM) {			for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) {				f_print(fout, "\nstatic void ");				pvname(def->def_name, vp->vers_num);				f_print(fout, "();");			}		}	}	f_print(fout, "\n\n");	f_print(fout, "main()\n");	f_print(fout, "{\n");	f_print(fout, "\tSVCXPRT *%s;\n", TRANSP);	f_print(fout, "\n");	for (l = defined; l != NULL; l = l->next) {		def = (definition *) l->val;		if (def->def_kind != DEF_PROGRAM) {			continue;		}		for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) { 			f_print(fout, "\t(void)pmap_unset(%s, %s);\n", def->def_name, vp->vers_name);		}	}}