NetBSD Problem Report #1106

From gnats  Sat Jun  3 22:50:47 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id WAA01623 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 3 Jun 1995 22:50:46 -0700
Message-Id: <199506040551.WAA09611@gandalf.sigmasoft.com>
Date: Sat, 3 Jun 1995 22:51:17 -0700
From: Thorsten Lockert <tholo@SigmaSoft.COM>
Reply-To: tholo@SigmaSoft.COM
To: gnats-bugs@NetBSD.ORG
Subject: make rpcgen emit prototypes in header files
X-Send-Pr-Version: 3.2

>Number:         1106
>Category:       bin
>Synopsis:       make rpcgen emit prototypes in header files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 03 23:05:02 +0000 1995
>Closed-Date:    Fri Jun 23 15:57:15 +0000 1995
>Last-Modified:  
>Originator:     Thorsten Lockert
>Release:        May 28, 1995
>Organization:
SigmaSoft, Th. Lockert
>Environment:

System: NetBSD gandalf.sigmasoft.com 1.0A NetBSD 1.0A (GANDALF) #1: Sun May 7 21:49:27 PDT 1995 tholo@gandalf.sigmasoft.com:/usr/src/sys/arch/i386/compile/GANDALF i386


>Description:
	Minor patch to rpcgen(1) to make it emit NetBSD-style prototypes
	in generated header files

>How-To-Repeat:
	Do you want to?

>Fix:
	Apply the following patch:

*** src/usr.bin/rpcgen/rpc_hout.c.orig	Sat Jun  3 22:09:11 1995
--- src/usr.bin/rpcgen/rpc_hout.c	Sat Jun  3 22:27:31 1995
***************
*** 76,82 ****
  		break;
  	}
  	if (def->def_kind != DEF_PROGRAM && def->def_kind != DEF_CONST) {
! 		f_print(fout, "bool_t xdr_%s();\n", def->def_name);
  	}
  	if (def->def_kind != DEF_CONST) {
  		f_print(fout, "\n");
--- 76,88 ----
  		break;
  	}
  	if (def->def_kind != DEF_PROGRAM && def->def_kind != DEF_CONST) {
! 		f_print(fout, "bool_t xdr_%s __P((XDR *,", def->def_name);
! 		f_print(fout, "%s ", def->def_name);
! 		if (def->def_kind != DEF_TYPEDEF ||
! 		    !isvectordef(def->def.ty.old_type, def->def.ty.rel)) {
! 			f_print(fout, "*");
! 		}
! 		f_print(fout, "));\n");
  	}
  	if (def->def_kind != DEF_CONST) {
  		f_print(fout, "\n");
***************
*** 213,219 ****
  		f_print(fout, "%s *", fixtype(proc->res_type));
  	}
  	pvname(proc->proc_name, vp->vers_num);
! 	f_print(fout, "();\n");
  }

  static
--- 219,227 ----
  		f_print(fout, "%s *", fixtype(proc->res_type));
  	}
  	pvname(proc->proc_name, vp->vers_num);
! 	f_print(fout, " __P((");
! 	ptype(proc->arg_prefix, proc->arg_type, 1);
! 	f_print(fout, "*, CLIENT *));\n");
  }

  static
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pk 
State-Changed-When: Fri Jun 23 11:57:15 EDT 1995 
State-Changed-Why:  
rpcgen replaced with newer version which supports ANSI C & C++. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.