Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include/rpc Always use the reentrant rpc_createerr. Otherwis...



details:   https://anonhg.NetBSD.org/src/rev/771870588168
branches:  trunk
changeset: 329745:771870588168
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jun 06 14:31:24 2014 +0000

description:
Always use the reentrant rpc_createerr. Otherwise every threaded program
that uses rpc needs to define _REENTRANT to work properly. We'll keep
compatibility but setting the old variable in the library, but we are not
advertising it anymore.

diffstat:

 include/rpc/clnt.h |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r 0a99a21c4bc1 -r 771870588168 include/rpc/clnt.h
--- a/include/rpc/clnt.h        Fri Jun 06 14:28:58 2014 +0000
+++ b/include/rpc/clnt.h        Fri Jun 06 14:31:24 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clnt.h,v 1.21 2011/08/30 17:06:20 plunky Exp $ */
+/*     $NetBSD: clnt.h,v 1.22 2014/06/06 14:31:24 christos Exp $       */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -451,14 +451,10 @@
        struct rpc_err cf_error; /* useful when cf_stat == RPC_PMAPFAILURE */
 };
 
-#ifdef _REENTRANT
 __BEGIN_DECLS
 extern struct rpc_createerr    *__rpc_createerr(void);
 __END_DECLS
 #define rpc_createerr          (*(__rpc_createerr()))
-#else
-extern struct rpc_createerr rpc_createerr;
-#endif /* _REENTRANT */
 
 /*
  * The simplified interface:



Home | Main Index | Thread Index | Old Index