[illumos-Developer] webrev #687: rpcgen should not generate absolute #includes

Stepan Zastupov stepan.zastupov at gmail.com
Wed May 11 09:09:31 PDT 2011


If you specify path like this "../../foo.x" then rpcgen generate file
which include "../../foo.h".
For a real example, see "usr/src/cmd/idmap/idmapd/rpc_svc.c".

On Wed, May 11, 2011 at 7:46 PM, Gary Mills <mills at cc.umanitoba.ca> wrote:
> On Wed, May 11, 2011 at 07:10:47PM +0400, Stepan Zastupov wrote:
>> This patch introduce option -p to prevent rpcgen from generating
>> includes with absolute paths.
>> A few notes:
>> 1) I use basename(3) function, which conforms to POSIX.1-2001. Is it fine?
>> 2) I haven't documented the option since I'm not sure is '-p' a good name.
>>
>> http://cr.illumos.org/view/mchniy2i/illumos-687-webrev/
>
> I've been using rpcgen for some time on Solaris 9 and 10, but I've
> never seen it generate absolute paths for includes.  Is this a
> recently-introduced bug?  Do you have to do something special to
> make it do that?
>
> --
> -Gary Mills-        -Unix Group-        -Computer and Network Services-
>



More information about the Developer mailing list