svn commit: r240060 - in head: include/rpc sys/rpc

Konstantin Belousov kostikbel at gmail.com
Mon Sep 3 14:41:05 UTC 2012


On Mon, Sep 03, 2012 at 07:13:19AM -0700, Pedro Giffuni wrote:
> Hello,
> 
> Sorry for the brevity but I can inly anser on a mobile device
> right now ...
> 
> --- Lun 3/9/12, Konstantin Belousov <kostikbel at gmail.com> ha scritto:
> 
> > Da: Konstantin Belousov <kostikbel at gmail.com>
> > Oggetto: Re: svn commit: r240060 - in head: include/rpc sys/rpc
> > A: "Pedro F. Giffuni" <pfg at freebsd.org>
> > Cc: src-committers at freebsd.org, svn-src-all at freebsd.org, svn-src-head at freebsd.org
> > Data: Luned? 3 settembre 2012, 02:31
> > On Sun, Sep 02, 2012 at 09:04:40PM
> > +0000, Pedro F. Giffuni wrote:
> > > Author: pfg
> > > Date: Sun Sep  2 21:04:40 2012
> > > New Revision: 240060
> > > URL: http://svn.freebsd.org/changeset/base/240060
> > > 
> > > Log:
> > >   Fix RPC headers for C++
> > >   
> > >   C++ mangling will cause trouble with
> > variables like __rpc_xdr
> > >   in xdr.h so rename this to XDR.
> > Which troubles ?
> >
>  
> PR 137443
From the PR, I fail to see what is the problem in our headers, and why
the issue is not in some third-party C++ code.

It is definitely has nothing to do with C++ name mangling.

> 
> > Although not very useful due to many other namespace
> > pollution problems
> > in the rpc headers, __rpc_xdr is in the
> > implementation-reserved namespace,
> > while XDR is not.
> > 
> 
> The forced reference here is {Open}Solaris:
> 
> http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/rpc/xdr.h
> 
> OpenGrok found no reference to __rpc_xdr
> in OpenSolaris/illumos.
I see, Solaris does
	typedef struct XDR { ... } XDR;
and we now use the same trick.

So my objections, if any, were against the commit message and not the actual
code change then.

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20120903/4fd7d4d2/attachment.pgp


More information about the svn-src-all mailing list