Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 1998 09:19:11 -0800 (PST)
From:      Bill Paul <wpaul@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-include@FreeBSD.ORG
Subject:   cvs commit: src/include/rpcsvc Makefile
Message-ID:  <199801191719.JAA20231@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
wpaul       1998/01/19 09:19:10 PST

  Modified files:
    include/rpcsvc       Makefile 
  Log:
  Invoke rpcgen with -C so that headers are created with ANSI prototypes.
  
  Note: this may cause some problems in a few cases. With very old versions
  of rpcgen, if you defined a procedure called foo, then rpcen would create
  client stubs for function foo_1() and server stubs _also_ with function
  foo_1(). This only worked because of the lack of ANSI prototypes: the
  client side stub takes different arguments than the server side stub.
  (The client side takes a CLIENT * handle, while the server side wants
  an svc_req *.)
  
  To fix this conflict, rpcgen in ANSI mode generates foo_1() for the client
  and foo_1_svc() for the server. RPC server code that depends on the old
  behavior might break because of this. (Fixing it is just a matter of
  adding the _svc suffix onto the server procedure names.)
  
  Revision  Changes    Path
  1.21      +2 -2      src/include/rpcsvc/Makefile



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801191719.JAA20231>