summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-04-13 23:20:16 +0000
committeralfred <alfred@FreeBSD.org>2001-04-13 23:20:16 +0000
commit9c4024b5eda0b717c792ff9c1f7a25558350660a (patch)
tree8038ca18b2ca9b2693cccacfeac147500bfbf8fc
parent2ff08a4f5971af5d1debbf5e02143f8c6ece05e4 (diff)
downloadFreeBSD-src-9c4024b5eda0b717c792ff9c1f7a25558350660a.zip
FreeBSD-src-9c4024b5eda0b717c792ff9c1f7a25558350660a.tar.gz
Turn -b (BSD socket compat mode) back on by default, as we don't have TLI/XTI
-rw-r--r--usr.bin/rpcgen/rpc_main.c10
-rw-r--r--usr.bin/rpcgen/rpcgen.19
2 files changed, 19 insertions, 0 deletions
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c
index 2674b3a..5c0752b 100644
--- a/usr.bin/rpcgen/rpc_main.c
+++ b/usr.bin/rpcgen/rpc_main.c
@@ -152,7 +152,11 @@ int newstyle; /* newstyle of passing arguments (by value) */
int Cflag = 0; /* ANSI C syntax */
int CCflag = 0; /* C++ files */
static int allfiles; /* generate all files */
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+int tirpcflag = 0; /* generating code for tirpc, by default */
+#else
int tirpcflag = 1; /* generating code for tirpc, by default */
+#endif
xdrfunc *xdrfunc_head = NULL; /* xdr function list */
xdrfunc *xdrfunc_tail = NULL; /* xdr function list */
pid_t childpid;
@@ -1170,7 +1174,11 @@ parseargs(argc, argv, cmd)
* generating backward compatible
* code
*/
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+ tirpcflag = 1;
+#else
tirpcflag = 0;
+#endif
break;
case 'I':
@@ -1266,7 +1274,9 @@ parseargs(argc, argv, cmd)
}
} else { /* 4.1 mode */
pmflag = 0; /* set pmflag only in tirpcmode */
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
inetdflag = 1; /* inetdflag is TRUE by default */
+#endif
if (cmd->nflag) { /* netid needs TIRPC */
warnx("cannot use netid flag without TIRPC");
return (0);
diff --git a/usr.bin/rpcgen/rpcgen.1 b/usr.bin/rpcgen/rpcgen.1
index c00dda4..ad118cd 100644
--- a/usr.bin/rpcgen/rpcgen.1
+++ b/usr.bin/rpcgen/rpcgen.1
@@ -246,6 +246,15 @@ Generate transport specific
.Tn RPC
code for older versions
of the operating system.
+.Pp
+Note: in
+.Fx ,
+this compatibility flag is turned on by
+default since
+.Fx
+supports only the older
+.Tn ONC RPC
+library.
.It Fl c
Compile into
.Tn XDR
OpenPOWER on IntegriCloud