Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/rpc __RCSID police
details: https://anonhg.NetBSD.org/src/rev/b0e0dbeeedd1
branches: trunk
changeset: 551622:b0e0dbeeedd1
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Sep 09 03:56:39 2003 +0000
description:
__RCSID police
diffstat:
lib/libc/rpc/clnt_bcast.c | 8 +-
lib/libc/rpc/clnt_dg.c | 7 +-
lib/libc/rpc/clnt_generic.c | 7 +-
lib/libc/rpc/clnt_simple.c | 7 +-
lib/libc/rpc/getnetconfig.c | 12 +-
lib/libc/rpc/getnetpath.c | 12 +-
lib/libc/rpc/mt_misc.c | 7 +-
lib/libc/rpc/rpc_generic.c | 192 +------------------------------------------
lib/libc/rpc/rpc_soc.c | 7 +-
lib/libc/rpc/rpcb_clnt.c | 8 +-
lib/libc/rpc/rpcb_prot.c | 7 +-
lib/libc/rpc/rpcb_st_xdr.c | 7 +-
lib/libc/rpc/svc_auth.c | 7 +-
lib/libc/rpc/svc_dg.c | 7 +-
lib/libc/rpc/svc_generic.c | 7 +-
lib/libc/rpc/svc_raw.c | 7 +-
lib/libc/rpc/svc_simple.c | 7 +-
17 files changed, 96 insertions(+), 220 deletions(-)
diffs (truncated from 585 to 300 lines):
diff -r 272794f007c6 -r b0e0dbeeedd1 lib/libc/rpc/clnt_bcast.c
--- a/lib/libc/rpc/clnt_bcast.c Tue Sep 09 03:56:23 2003 +0000
+++ b/lib/libc/rpc/clnt_bcast.c Tue Sep 09 03:56:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clnt_bcast.c,v 1.11 2003/09/09 00:22:17 itojun Exp $ */
+/* $NetBSD: clnt_bcast.c,v 1.12 2003/09/09 03:56:39 itojun Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -34,13 +34,15 @@
/* #ident "@(#)clnt_bcast.c 1.18 94/05/03 SMI" */
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
#if 0
-#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)clnt_bcast.c 1.15 89/04/21 Copyr 1988 Sun Micro";
+#else
+__RCSID("$NetBSD: clnt_bcast.c,v 1.12 2003/09/09 03:56:39 itojun Exp $");
#endif
#endif
-
/*
* clnt_bcast.c
* Client interface to broadcast service.
diff -r 272794f007c6 -r b0e0dbeeedd1 lib/libc/rpc/clnt_dg.c
--- a/lib/libc/rpc/clnt_dg.c Tue Sep 09 03:56:23 2003 +0000
+++ b/lib/libc/rpc/clnt_dg.c Tue Sep 09 03:56:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clnt_dg.c,v 1.11 2003/09/09 00:22:17 itojun Exp $ */
+/* $NetBSD: clnt_dg.c,v 1.12 2003/09/09 03:56:39 itojun Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -34,9 +34,12 @@
/* #ident "@(#)clnt_dg.c 1.23 94/04/22 SMI" */
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
#if 0
-#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)clnt_dg.c 1.19 89/03/16 Copyr 1988 Sun Micro";
+#else
+__RCSID("$NetBSD: clnt_dg.c,v 1.12 2003/09/09 03:56:39 itojun Exp $");
#endif
#endif
diff -r 272794f007c6 -r b0e0dbeeedd1 lib/libc/rpc/clnt_generic.c
--- a/lib/libc/rpc/clnt_generic.c Tue Sep 09 03:56:23 2003 +0000
+++ b/lib/libc/rpc/clnt_generic.c Tue Sep 09 03:56:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clnt_generic.c,v 1.21 2003/01/18 11:29:04 thorpej Exp $ */
+/* $NetBSD: clnt_generic.c,v 1.22 2003/09/09 03:56:39 itojun Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -34,9 +34,12 @@
/* #ident "@(#)clnt_generic.c 1.20 94/05/03 SMI" */
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
#if 0
-#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)clnt_generic.c 1.32 89/03/16 Copyr 1988 Sun Micro";
+#else
+__RCSID("$NetBSD: clnt_generic.c,v 1.22 2003/09/09 03:56:39 itojun Exp $");
#endif
#endif
diff -r 272794f007c6 -r b0e0dbeeedd1 lib/libc/rpc/clnt_simple.c
--- a/lib/libc/rpc/clnt_simple.c Tue Sep 09 03:56:23 2003 +0000
+++ b/lib/libc/rpc/clnt_simple.c Tue Sep 09 03:56:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clnt_simple.c,v 1.23 2003/01/18 11:29:04 thorpej Exp $ */
+/* $NetBSD: clnt_simple.c,v 1.24 2003/09/09 03:56:39 itojun Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -34,9 +34,12 @@
/* #ident "@(#)clnt_simple.c 1.17 94/04/24 SMI" */
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
#if 0
-#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)clnt_simple.c 1.49 89/01/31 Copyr 1984 Sun Micro";
+#else
+__RCSID("$NetBSD: clnt_simple.c,v 1.24 2003/09/09 03:56:39 itojun Exp $");
#endif
#endif
diff -r 272794f007c6 -r b0e0dbeeedd1 lib/libc/rpc/getnetconfig.c
--- a/lib/libc/rpc/getnetconfig.c Tue Sep 09 03:56:23 2003 +0000
+++ b/lib/libc/rpc/getnetconfig.c Tue Sep 09 03:56:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getnetconfig.c,v 1.11 2003/04/29 14:56:05 scw Exp $ */
+/* $NetBSD: getnetconfig.c,v 1.12 2003/09/09 03:56:40 itojun Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -29,11 +29,15 @@
* 2550 Garcia Avenue
* Mountain View, California 94043
*/
-/*
-#ifndef lint
+
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
static char sccsid[] = "@(#)getnetconfig.c 1.12 91/12/19 SMI";
+#else
+__RCSID("$NetBSD: getnetconfig.c,v 1.12 2003/09/09 03:56:40 itojun Exp $");
#endif
-*/
+#endif
/*
* Copyright (c) 1989 by Sun Microsystems, Inc.
diff -r 272794f007c6 -r b0e0dbeeedd1 lib/libc/rpc/getnetpath.c
--- a/lib/libc/rpc/getnetpath.c Tue Sep 09 03:56:23 2003 +0000
+++ b/lib/libc/rpc/getnetpath.c Tue Sep 09 03:56:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getnetpath.c,v 1.7 2003/01/18 11:29:04 thorpej Exp $ */
+/* $NetBSD: getnetpath.c,v 1.8 2003/09/09 03:56:40 itojun Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -29,11 +29,15 @@
* 2550 Garcia Avenue
* Mountain View, California 94043
*/
-/*
-#ifndef lint
+
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
+#if 0
static char sccsid[] = "@(#)getnetpath.c 1.11 91/12/19 SMI";
+#else
+__RCSID("$NetBSD: getnetpath.c,v 1.8 2003/09/09 03:56:40 itojun Exp $");
#endif
-*/
+#endif
/*
* Copyright (c) 1989 by Sun Microsystems, Inc.
diff -r 272794f007c6 -r b0e0dbeeedd1 lib/libc/rpc/mt_misc.c
--- a/lib/libc/rpc/mt_misc.c Tue Sep 09 03:56:23 2003 +0000
+++ b/lib/libc/rpc/mt_misc.c Tue Sep 09 03:56:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mt_misc.c,v 1.2 2003/01/18 11:29:05 thorpej Exp $ */
+/* $NetBSD: mt_misc.c,v 1.3 2003/09/09 03:56:40 itojun Exp $ */
/*
* Define and initialize MT data for libnsl.
@@ -7,6 +7,11 @@
/* #pragma ident "@(#)mt_misc.c 1.24 93/04/29 SMI" */
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
+__RCSID("$NetBSD: mt_misc.c,v 1.3 2003/09/09 03:56:40 itojun Exp $");
+#endif
+
#include "reentrant.h"
#include <rpc/rpc.h>
#include <sys/time.h>
diff -r 272794f007c6 -r b0e0dbeeedd1 lib/libc/rpc/rpc_generic.c
--- a/lib/libc/rpc/rpc_generic.c Tue Sep 09 03:56:23 2003 +0000
+++ b/lib/libc/rpc/rpc_generic.c Tue Sep 09 03:56:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_generic.c,v 1.14 2003/09/09 00:22:17 itojun Exp $ */
+/* $NetBSD: rpc_generic.c,v 1.15 2003/09/09 03:56:40 itojun Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -39,6 +39,11 @@
*
*/
+#include <sys/cdefs.h>
+#if defined(LIBC_SCCS) && !defined(lint)
+__RCSID("$NetBSD: rpc_generic.c,v 1.15 2003/09/09 03:56:40 itojun Exp $");
+#endif
+
#include "namespace.h"
#include "reentrant.h"
#include <sys/types.h>
@@ -861,188 +866,3 @@
return 0;
}
-
-/* $OpenBSD: ip_id.c,v 1.6 2002/03/15 18:19:52 millert Exp $ */
-
-/*
- * Copyright 1998 Niels Provos <provos%citi.umich.edu@localhost>
- * All rights reserved.
- *
- * Theo de Raadt <deraadt%openbsd.org@localhost> came up with the idea of using
- * such a mathematical system to generate more random (yet non-repeating)
- * ids to solve the resolver/named problem. But Niels designed the
- * actual system based on the constraints.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Niels Provos.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * seed = random 31bit
- * n = prime, g0 = generator to n,
- * j = random so that gcd(j,n-1) == 1
- * g = g0^j mod n will be a generator again.
- *
- * X[0] = random seed.
- * X[n] = a*X[n-1]+b mod m is a Linear Congruential Generator
- * with a = 7^(even random) mod m,
- * b = random with gcd(b,m) == 1
- * m = 1836660096 and a maximal period of m-1.
- *
- * The transaction id is determined by:
- * id[n] = seed xor (g^X[n] mod n)
- *
- * Effectivly the id is restricted to the lower 31 bits, thus
- * yielding two different cycles by toggling the msb on and off.
- * This avoids reuse issues caused by reseeding.
- */
-
-#define RU_OUT 180 /* Time after wich will be reseeded */
-#define RU_MAX 1000000000 /* Uniq cycle, avoid blackjack prediction */
-#define RU_GEN 2 /* Starting generator */
-#define RU_N 2147483629 /* RU_N-1 = 2^2*3^2*59652323 */
-#define RU_AGEN 7 /* determine ru_a as RU_AGEN^(2*rand) */
-#define RU_M 1836660096 /* RU_M = 2^7*3^15 - don't change */
-
-#define PFAC_N 3
-const static u_int32_t pfacts[PFAC_N] = {
- 2,
- 3,
- 59652323
-};
-
-static u_int32_t ru_x;
-static u_int32_t ru_seed, ru_seed2;
-static u_int32_t ru_a, ru_b;
-static u_int32_t ru_g;
-static u_int32_t ru_counter = 0;
-static u_int32_t ru_msb = 0;
-static long ru_reseed;
-
-static u_int32_t pmod(u_int32_t, u_int32_t, u_int32_t);
-static void initid(void);
-
-/*
- * Do a fast modular exponation, returned value will be in the range
- * of 0 - (mod-1)
- */
-static u_int32_t
-pmod(u_int32_t gen, u_int32_t exp, u_int32_t mod)
-{
- u_int64_t s, t, u;
-
- s = 1;
- t = gen;
- u = exp;
-
- while (u) {
- if (u & 1)
- s = (s * t) % mod;
- u >>= 1;
- t = (t * t) % mod;
- }
Home |
Main Index |
Thread Index |
Old Index