[Midnightbsd-cvs] src [10545] tag
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jun 7 19:07:01 EDT 2018
Revision: 10545
http://svnweb.midnightbsd.org/src/?rev=10545
Author: laffer1
Date: 2018-06-07 19:07:00 -0400 (Thu, 07 Jun 2018)
Log Message:
-----------
tag
Modified Paths:
--------------
trunk/lib/libc/stdlib/hcreate.3
trunk/lib/libc/stdlib/hcreate.c
trunk/lib/libc/stdlib/heapsort.c
trunk/lib/libc/stdlib/imaxabs.3
trunk/lib/libc/stdlib/imaxabs.c
trunk/lib/libc/stdlib/imaxdiv.3
trunk/lib/libc/stdlib/imaxdiv.c
trunk/lib/libc/stdlib/insque.3
trunk/lib/libc/stdlib/insque.c
trunk/lib/libc/stdlib/l64a.c
trunk/lib/libc/stdlib/labs.3
trunk/lib/libc/stdlib/labs.c
trunk/lib/libc/stdlib/ldiv.3
trunk/lib/libc/stdlib/ldiv.c
trunk/lib/libc/stdlib/llabs.3
trunk/lib/libc/stdlib/llabs.c
trunk/lib/libc/stdlib/lldiv.3
trunk/lib/libc/stdlib/lldiv.c
trunk/lib/libc/stdlib/lsearch.3
trunk/lib/libc/stdlib/lsearch.c
trunk/lib/libc/stdlib/memory.3
trunk/lib/libc/stdlib/merge.c
trunk/lib/libc/stdlib/posix_memalign.3
trunk/lib/libc/stdlib/ptsname.3
trunk/lib/libc/stdlib/ptsname.c
trunk/lib/libc/stdlib/ql.h
trunk/lib/libc/stdlib/qr.h
trunk/lib/libc/stdlib/qsort.3
trunk/lib/libc/stdlib/qsort.c
trunk/lib/libc/stdlib/qsort_r.c
trunk/lib/libc/stdlib/quick_exit.3
trunk/lib/libc/stdlib/quick_exit.c
trunk/lib/libc/stdlib/radixsort.3
trunk/lib/libc/stdlib/radixsort.c
trunk/lib/libc/stdlib/rand.3
trunk/lib/libc/stdlib/rand.c
trunk/lib/libc/stdlib/random.3
trunk/lib/libc/stdlib/random.c
trunk/lib/libc/stdlib/rb.h
trunk/lib/libc/stdlib/reallocarray.c
trunk/lib/libc/stdlib/realpath.3
trunk/lib/libc/stdlib/strfmon.3
trunk/lib/libc/stdlib/strtod.3
trunk/lib/libc/stdlib/strtol.3
trunk/lib/libc/stdlib/strtouq.c
trunk/lib/libc/stdlib/system.3
trunk/lib/libc/stdlib/tdelete.c
trunk/lib/libc/stdlib/tfind.c
trunk/lib/libc/stdlib/tsearch.3
Property Changed:
----------------
trunk/lib/libc/stdlib/hcreate.3
trunk/lib/libc/stdlib/imaxabs.3
trunk/lib/libc/stdlib/imaxdiv.3
trunk/lib/libc/stdlib/insque.3
trunk/lib/libc/stdlib/labs.3
trunk/lib/libc/stdlib/ldiv.3
trunk/lib/libc/stdlib/llabs.3
trunk/lib/libc/stdlib/lldiv.3
trunk/lib/libc/stdlib/lsearch.3
trunk/lib/libc/stdlib/malloc.3
trunk/lib/libc/stdlib/memory.3
trunk/lib/libc/stdlib/posix_memalign.3
trunk/lib/libc/stdlib/ptsname.3
trunk/lib/libc/stdlib/qsort.3
trunk/lib/libc/stdlib/quick_exit.3
trunk/lib/libc/stdlib/radixsort.3
trunk/lib/libc/stdlib/rand.3
trunk/lib/libc/stdlib/random.3
trunk/lib/libc/stdlib/realpath.3
trunk/lib/libc/stdlib/strfmon.3
trunk/lib/libc/stdlib/strtod.3
trunk/lib/libc/stdlib/strtol.3
trunk/lib/libc/stdlib/system.3
trunk/lib/libc/stdlib/tsearch.3
Modified: trunk/lib/libc/stdlib/hcreate.3
===================================================================
--- trunk/lib/libc/stdlib/hcreate.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/hcreate.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\"-
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -26,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/hcreate.3 206622 2010-04-14 19:08:06Z uqs $
.\"
.Dd July 6, 2008
.Dt HCREATE 3
Property changes on: trunk/lib/libc/stdlib/hcreate.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/hcreate.c
===================================================================
--- trunk/lib/libc/stdlib/hcreate.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/hcreate.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,4 +1,5 @@
-/* $NetBSD: hcreate.c,v 1.2 2001/02/19 21:26:04 ross Exp $ */
+/* $MidnightBSD$ */
+/* $NetBSD: hcreate.c,v 1.6 2008/07/21 12:05:43 lukem Exp $ */
/*
* Copyright (c) 2001 Christopher G. Demetriou
@@ -15,7 +16,7 @@
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed for the
- * NetBSD Project. See http://www.netbsd.org/ for
+ * NetBSD Project. See http://www.NetBSD.org/ for
* information about NetBSD.
* 4. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
@@ -49,10 +50,10 @@
#include <sys/cdefs.h>
#if 0
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: hcreate.c,v 1.2 2001/02/19 21:26:04 ross Exp $");
+__RCSID("$NetBSD: hcreate.c,v 1.6 2008/07/21 12:05:43 lukem Exp $");
#endif /* LIBC_SCCS and not lint */
#endif
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/hcreate.c 269491 2014-08-04 00:51:57Z pfg $");
#include <sys/types.h>
#include <sys/queue.h>
@@ -142,7 +143,6 @@
while (!SLIST_EMPTY(&htable[idx])) {
ie = SLIST_FIRST(&htable[idx]);
SLIST_REMOVE_HEAD(&htable[idx], link);
- free(ie->ent.key);
free(ie);
}
}
Modified: trunk/lib/libc/stdlib/heapsort.c
===================================================================
--- trunk/lib/libc/stdlib/heapsort.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/heapsort.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -13,7 +14,7 @@
* 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.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -34,7 +35,7 @@
static char sccsid[] = "@(#)heapsort.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/heapsort.c 251069 2013-05-28 20:57:40Z emaste $");
#include <errno.h>
#include <stddef.h>
Modified: trunk/lib/libc/stdlib/imaxabs.3
===================================================================
--- trunk/lib/libc/stdlib/imaxabs.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/imaxabs.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2001 Mike Barcroft <mike at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/imaxabs.3 86737 2001-11-21 16:19:50Z ru $
.\"
.Dd November 14, 2001
.Dt IMAXABS 3
Property changes on: trunk/lib/libc/stdlib/imaxabs.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/imaxabs.c
===================================================================
--- trunk/lib/libc/stdlib/imaxabs.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/imaxabs.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2001 Mike Barcroft <mike at FreeBSD.org>
* All rights reserved.
@@ -25,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/imaxabs.c 86368 2001-11-15 02:05:03Z mike $");
#include <inttypes.h>
Modified: trunk/lib/libc/stdlib/imaxdiv.3
===================================================================
--- trunk/lib/libc/stdlib/imaxdiv.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/imaxdiv.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2001 Mike Barcroft <mike at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/imaxdiv.3 86737 2001-11-21 16:19:50Z ru $
.\"
.Dd November 14, 2001
.Dt IMAXDIV 3
Property changes on: trunk/lib/libc/stdlib/imaxdiv.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/imaxdiv.c
===================================================================
--- trunk/lib/libc/stdlib/imaxdiv.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/imaxdiv.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2001 Mike Barcroft <mike at FreeBSD.org>
* All rights reserved.
@@ -25,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/imaxdiv.c 301459 2016-06-05 18:11:52Z ache $");
#include <inttypes.h>
@@ -37,9 +38,11 @@
retval.quot = numer / denom;
retval.rem = numer % denom;
+#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
if (numer >= 0 && retval.rem < 0) {
retval.quot++;
retval.rem -= denom;
}
+#endif
return (retval);
}
Modified: trunk/lib/libc/stdlib/insque.3
===================================================================
--- trunk/lib/libc/stdlib/insque.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/insque.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\"
.\" Initial implementation:
.\" Copyright (c) 2002 Robert Drehmel
@@ -6,7 +7,7 @@
.\" As long as the above copyright statement and this notice remain
.\" unchanged, you can do what ever you want with this file.
.\"
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/insque.3 111503 2003-02-25 21:59:36Z robert $
.\"
.Dd October 10, 2002
.Dt INSQUE 3
Property changes on: trunk/lib/libc/stdlib/insque.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/insque.c
===================================================================
--- trunk/lib/libc/stdlib/insque.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/insque.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* Initial implementation:
* Copyright (c) 2002 Robert Drehmel
@@ -7,7 +8,7 @@
* unchanged, you can do what ever you want with this file.
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/insque.c 108644 2003-01-04 07:34:41Z tjr $");
#define _SEARCH_PRIVATE
#include <search.h>
Modified: trunk/lib/libc/stdlib/l64a.c
===================================================================
--- trunk/lib/libc/stdlib/l64a.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/l64a.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* Written by J.T. Conklin <jtc at NetBSD.org>.
* Public domain.
@@ -10,20 +11,15 @@
#endif
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/l64a.c 302193 2016-06-25 10:08:04Z ed $");
+#include <stdint.h>
#include <stdlib.h>
-#define ADOT 46 /* ASCII '.' */
-#define ASLASH ADOT + 1 /* ASCII '/' */
-#define A0 48 /* ASCII '0' */
-#define AA 65 /* ASCII 'A' */
-#define Aa 97 /* ASCII 'a' */
-
char *
l64a(long value)
{
- static char buf[8];
+ static char buf[7];
(void)l64a_r(value, buf, sizeof(buf));
return (buf);
@@ -32,21 +28,18 @@
int
l64a_r(long value, char *buffer, int buflen)
{
- long v;
- int digit;
+ static const char chars[] =
+ "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+ uint32_t v;
- v = value & (long)0xffffffff;
- for (; v != 0 && buflen > 1; buffer++, buflen--) {
- digit = v & 0x3f;
- if (digit < 2)
- *buffer = digit + ADOT;
- else if (digit < 12)
- *buffer = digit + A0 - 2;
- else if (digit < 38)
- *buffer = digit + AA - 12;
- else
- *buffer = digit + Aa - 38;
+ v = value;
+ while (buflen-- > 0) {
+ if (v == 0) {
+ *buffer = '\0';
+ return (0);
+ }
+ *buffer++ = chars[v & 0x3f];
v >>= 6;
}
- return (v == 0 ? 0 : -1);
+ return (-1);
}
Modified: trunk/lib/libc/stdlib/labs.3
===================================================================
--- trunk/lib/libc/stdlib/labs.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/labs.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -13,7 +14,7 @@
.\" 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.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -30,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)labs.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/labs.3 251672 2013-06-13 00:19:30Z emaste $
.\"
.Dd November 14, 2001
.Dt LABS 3
Property changes on: trunk/lib/libc/stdlib/labs.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/labs.c
===================================================================
--- trunk/lib/libc/stdlib/labs.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/labs.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -10,7 +11,7 @@
* 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.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,7 +32,7 @@
static char sccsid[] = "@(#)labs.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/labs.c 251672 2013-06-13 00:19:30Z emaste $");
#include <stdlib.h>
Modified: trunk/lib/libc/stdlib/ldiv.3
===================================================================
--- trunk/lib/libc/stdlib/ldiv.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/ldiv.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -13,7 +14,7 @@
.\" 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.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -30,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)ldiv.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/ldiv.3 251672 2013-06-13 00:19:30Z emaste $
.\"
.Dd November 14, 2001
.Dt LDIV 3
Property changes on: trunk/lib/libc/stdlib/ldiv.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/ldiv.c
===================================================================
--- trunk/lib/libc/stdlib/ldiv.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/ldiv.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -13,7 +14,7 @@
* 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.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -34,7 +35,7 @@
static char sccsid[] = "@(#)ldiv.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/ldiv.c 301459 2016-06-05 18:11:52Z ache $");
#include <stdlib.h> /* ldiv_t */
@@ -48,9 +49,11 @@
r.quot = num / denom;
r.rem = num % denom;
+#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
if (num >= 0 && r.rem < 0) {
r.quot++;
r.rem -= denom;
}
+#endif
return (r);
}
Modified: trunk/lib/libc/stdlib/llabs.3
===================================================================
--- trunk/lib/libc/stdlib/llabs.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/llabs.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2001 Mike Barcroft <mike at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/llabs.3 86737 2001-11-21 16:19:50Z ru $
.\"
.Dd November 14, 2001
.Dt LLABS 3
Property changes on: trunk/lib/libc/stdlib/llabs.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/llabs.c
===================================================================
--- trunk/lib/libc/stdlib/llabs.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/llabs.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2001 Mike Barcroft <mike at FreeBSD.org>
* All rights reserved.
@@ -25,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/llabs.c 86368 2001-11-15 02:05:03Z mike $");
#include <stdlib.h>
Modified: trunk/lib/libc/stdlib/lldiv.3
===================================================================
--- trunk/lib/libc/stdlib/lldiv.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/lldiv.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2001 Mike Barcroft <mike at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/lldiv.3 86737 2001-11-21 16:19:50Z ru $
.\"
.Dd November 14, 2001
.Dt LLDIV 3
Property changes on: trunk/lib/libc/stdlib/lldiv.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/lldiv.c
===================================================================
--- trunk/lib/libc/stdlib/lldiv.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/lldiv.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2001 Mike Barcroft <mike at FreeBSD.org>
* All rights reserved.
@@ -25,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/lldiv.c 301459 2016-06-05 18:11:52Z ache $");
#include <stdlib.h>
@@ -37,9 +38,11 @@
retval.quot = numer / denom;
retval.rem = numer % denom;
+#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
if (numer >= 0 && retval.rem < 0) {
retval.quot++;
retval.rem -= denom;
}
+#endif
return (retval);
}
Modified: trunk/lib/libc/stdlib/lsearch.3
===================================================================
--- trunk/lib/libc/stdlib/lsearch.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/lsearch.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\"
.\" Initial implementation:
.\" Copyright (c) 2002 Robert Drehmel
@@ -6,9 +7,9 @@
.\" As long as the above copyright statement and this notice remain
.\" unchanged, you can do what ever you want with this file.
.\"
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/lsearch.3 298529 2016-04-24 03:15:10Z wblock $
.\"
-.Dd October 11, 2002
+.Dd April 17, 2016
.Dt LSEARCH 3
.Os
.Sh NAME
@@ -81,6 +82,47 @@
Both functions return
.Dv NULL
if an error occurs.
+.Sh EXAMPLES
+.Bd -literal
+#include <search.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+static int
+element_compare(const void *p1, const void *p2)
+{
+ int left = *(const int *)p1;
+ int right = *(const int *)p2;
+
+ return (left - right);
+}
+
+int
+main(int argc, char **argv)
+{
+ const int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
+ size_t element_size = sizeof(array[0]);
+ size_t array_size = sizeof(array) / element_size;
+ int key;
+ void *element;
+
+ printf("Enter a number: ");
+ if (scanf("%d", &key) != 1) {
+ printf("Bad input\en");
+ return (EXIT_FAILURE);
+ }
+
+ element = lfind(&key, array, &array_size, element_size,
+ element_compare);
+
+ if (element != NULL)
+ printf("Element found: %d\en", *(int *)element);
+ else
+ printf("Element not found\en");
+
+ return (EXIT_SUCCESS);
+}
+.Ed
.Sh SEE ALSO
.Xr bsearch 3 ,
.Xr hsearch 3 ,
Property changes on: trunk/lib/libc/stdlib/lsearch.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/lsearch.c
===================================================================
--- trunk/lib/libc/stdlib/lsearch.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/lsearch.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* Initial implementation:
* Copyright (c) 2002 Robert Drehmel
@@ -8,7 +9,7 @@
*/
#include <sys/types.h>
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/lsearch.c 105250 2002-10-16 14:29:23Z robert $");
#define _SEARCH_PRIVATE
#include <search.h>
Index: trunk/lib/libc/stdlib/malloc.3
===================================================================
--- trunk/lib/libc/stdlib/malloc.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/malloc.3 2018-06-07 23:07:00 UTC (rev 10545)
Property changes on: trunk/lib/libc/stdlib/malloc.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/memory.3
===================================================================
--- trunk/lib/libc/stdlib/memory.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/memory.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -9,7 +10,7 @@
.\" 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.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -26,7 +27,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)memory.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/memory.3 251672 2013-06-13 00:19:30Z emaste $
.\"
.Dd June 4, 1993
.Dt MEMORY 3
Property changes on: trunk/lib/libc/stdlib/memory.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/merge.c
===================================================================
--- trunk/lib/libc/stdlib/merge.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/merge.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -13,7 +14,7 @@
* 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.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -34,7 +35,7 @@
static char sccsid[] = "@(#)merge.c 8.2 (Berkeley) 2/14/94";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/merge.c 251672 2013-06-13 00:19:30Z emaste $");
/*
* Hybrid exponential search/linear search merge sort with hybrid
Modified: trunk/lib/libc/stdlib/posix_memalign.3
===================================================================
--- trunk/lib/libc/stdlib/posix_memalign.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/posix_memalign.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (C) 2006 Jason Evans <jasone at FreeBSD.org>.
.\" All rights reserved.
.\"
Property changes on: trunk/lib/libc/stdlib/posix_memalign.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/ptsname.3
===================================================================
--- trunk/lib/libc/stdlib/ptsname.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/ptsname.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\"
.\" Copyright (c) 2002 The FreeBSD Project, Inc.
.\" All rights reserved.
@@ -29,7 +30,7 @@
.\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/ptsname.3 240412 2012-09-12 17:54:09Z emaste $
.\"
.Dd August 20, 2008
.Dt PTSNAME 3
Property changes on: trunk/lib/libc/stdlib/ptsname.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/ptsname.c
===================================================================
--- trunk/lib/libc/stdlib/ptsname.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/ptsname.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2008 Ed Schouten <ed at FreeBSD.org>
* All rights reserved.
@@ -29,7 +30,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/ptsname.c 240412 2012-09-12 17:54:09Z emaste $");
#endif /* not lint */
#include "namespace.h"
Modified: trunk/lib/libc/stdlib/ql.h
===================================================================
--- trunk/lib/libc/stdlib/ql.h 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/ql.h 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/******************************************************************************
*
* Copyright (C) 2002 Jason Evans <jasone at FreeBSD.org>.
Modified: trunk/lib/libc/stdlib/qr.h
===================================================================
--- trunk/lib/libc/stdlib/qr.h 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/qr.h 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/******************************************************************************
*
* Copyright (C) 2002 Jason Evans <jasone at FreeBSD.org>.
Modified: trunk/lib/libc/stdlib/qsort.3
===================================================================
--- trunk/lib/libc/stdlib/qsort.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/qsort.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -13,7 +14,7 @@
.\" 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.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -30,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)qsort.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/qsort.3 251672 2013-06-13 00:19:30Z emaste $
.\"
.Dd February 20, 2013
.Dt QSORT 3
Property changes on: trunk/lib/libc/stdlib/qsort.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/qsort.c
===================================================================
--- trunk/lib/libc/stdlib/qsort.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/qsort.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -10,7 +11,7 @@
* 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.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,7 +32,7 @@
static char sccsid[] = "@(#)qsort.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/qsort.c 319291 2017-05-31 06:26:37Z delphij $");
#include <stdlib.h>
@@ -41,47 +42,53 @@
typedef int cmp_t(const void *, const void *);
#endif
static inline char *med3(char *, char *, char *, cmp_t *, void *);
-static inline void swapfunc(char *, char *, int, int);
+static inline void swapfunc(char *, char *, size_t, int, int);
-#define min(a, b) (a) < (b) ? a : b
+#define MIN(a, b) ((a) < (b) ? a : b)
/*
* Qsort routine from Bentley & McIlroy's "Engineering a Sort Function".
*/
-#define swapcode(TYPE, parmi, parmj, n) { \
- long i = (n) / sizeof (TYPE); \
- TYPE *pi = (TYPE *) (parmi); \
- TYPE *pj = (TYPE *) (parmj); \
+#define swapcode(TYPE, parmi, parmj, n) { \
+ size_t i = (n) / sizeof (TYPE); \
+ TYPE *pi = (TYPE *) (parmi); \
+ TYPE *pj = (TYPE *) (parmj); \
do { \
TYPE t = *pi; \
*pi++ = *pj; \
*pj++ = t; \
- } while (--i > 0); \
+ } while (--i > 0); \
}
-#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
- es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
+#define SWAPINIT(TYPE, a, es) swaptype_ ## TYPE = \
+ ((char *)a - (char *)0) % sizeof(TYPE) || \
+ es % sizeof(TYPE) ? 2 : es == sizeof(TYPE) ? 0 : 1;
static inline void
-swapfunc(a, b, n, swaptype)
- char *a, *b;
- int n, swaptype;
+swapfunc(char *a, char *b, size_t n, int swaptype_long, int swaptype_int)
{
- if(swaptype <= 1)
+ if (swaptype_long <= 1)
swapcode(long, a, b, n)
+ else if (swaptype_int <= 1)
+ swapcode(int, a, b, n)
else
swapcode(char, a, b, n)
}
-#define swap(a, b) \
- if (swaptype == 0) { \
+#define swap(a, b) \
+ if (swaptype_long == 0) { \
long t = *(long *)(a); \
*(long *)(a) = *(long *)(b); \
*(long *)(b) = t; \
+ } else if (swaptype_int == 0) { \
+ int t = *(int *)(a); \
+ *(int *)(a) = *(int *)(b); \
+ *(int *)(b) = t; \
} else \
- swapfunc(a, b, es, swaptype)
+ swapfunc(a, b, es, swaptype_long, swaptype_int)
-#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
+#define vecswap(a, b, n) \
+ if ((n) > 0) swapfunc(a, b, n, swaptype_long, swaptype_int)
#ifdef I_AM_QSORT_R
#define CMP(t, x, y) (cmp((t), (x), (y)))
@@ -98,7 +105,7 @@
{
return CMP(thunk, a, b) < 0 ?
(CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
- :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
+ :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
}
#ifdef I_AM_QSORT_R
@@ -105,17 +112,18 @@
void
qsort_r(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp)
#else
-#define thunk NULL
+#define thunk NULL
void
qsort(void *a, size_t n, size_t es, cmp_t *cmp)
#endif
{
char *pa, *pb, *pc, *pd, *pl, *pm, *pn;
- size_t d, r;
+ size_t d1, d2;
int cmp_result;
- int swaptype, swap_cnt;
+ int swaptype_long, swaptype_int, swap_cnt;
-loop: SWAPINIT(a, es);
+loop: SWAPINIT(long, a, es);
+ SWAPINIT(int, a, es);
swap_cnt = 0;
if (n < 7) {
for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es)
@@ -130,7 +138,8 @@
pl = a;
pn = (char *)a + (n - 1) * es;
if (n > 40) {
- d = (n / 8) * es;
+ size_t d = (n / 8) * es;
+
pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk);
pm = med3(pm - d, pm, pm + d, cmp, thunk);
pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk);
@@ -175,21 +184,43 @@
}
pn = (char *)a + n * es;
- r = min(pa - (char *)a, pb - pa);
- vecswap(a, pb - r, r);
- r = min(pd - pc, pn - pd - es);
- vecswap(pb, pn - r, r);
- if ((r = pb - pa) > es)
+ d1 = MIN(pa - (char *)a, pb - pa);
+ vecswap(a, pb - d1, d1);
+ d1 = MIN(pd - pc, pn - pd - es);
+ vecswap(pb, pn - d1, d1);
+
+ d1 = pb - pa;
+ d2 = pd - pc;
+ if (d1 <= d2) {
+ /* Recurse on left partition, then iterate on right partition */
+ if (d1 > es) {
#ifdef I_AM_QSORT_R
- qsort_r(a, r / es, es, thunk, cmp);
+ qsort_r(a, d1 / es, es, thunk, cmp);
#else
- qsort(a, r / es, es, cmp);
+ qsort(a, d1 / es, es, cmp);
#endif
- if ((r = pd - pc) > es) {
- /* Iterate rather than recurse to save stack space */
- a = pn - r;
- n = r / es;
- goto loop;
+ }
+ if (d2 > es) {
+ /* Iterate rather than recurse to save stack space */
+ /* qsort(pn - d2, d2 / es, es, cmp); */
+ a = pn - d2;
+ n = d2 / es;
+ goto loop;
+ }
+ } else {
+ /* Recurse on right partition, then iterate on left partition */
+ if (d2 > es) {
+#ifdef I_AM_QSORT_R
+ qsort_r(pn - d2, d2 / es, es, thunk, cmp);
+#else
+ qsort(pn - d2, d2 / es, es, cmp);
+#endif
+ }
+ if (d1 > es) {
+ /* Iterate rather than recurse to save stack space */
+ /* qsort(a, d1 / es, es, cmp); */
+ n = d1 / es;
+ goto loop;
+ }
}
-/* qsort(pn - r, r / es, es, cmp);*/
}
Modified: trunk/lib/libc/stdlib/qsort_r.c
===================================================================
--- trunk/lib/libc/stdlib/qsort_r.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/qsort_r.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,8 +1,9 @@
+/* $MidnightBSD$ */
/*
* This file is in the public domain. Originally written by Garrett
* A. Wollman.
*
- * $FreeBSD$
+ * $FreeBSD: stable/10/lib/libc/stdlib/qsort_r.c 103165 2002-09-10 02:04:49Z wollman $
*/
#define I_AM_QSORT_R
#include "qsort.c"
Modified: trunk/lib/libc/stdlib/quick_exit.3
===================================================================
--- trunk/lib/libc/stdlib/quick_exit.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/quick_exit.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,6 +1,7 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2011 David Chisnall
.\" All rights reserved.
-.\"
+.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -9,7 +10,7 @@
.\" 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.
-.\"
+.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -21,10 +22,10 @@
.\" 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.
-.\"
-.\" $FreeBSD$
.\"
-.Dd December 7, 2011
+.\" $FreeBSD: stable/10/lib/libc/stdlib/quick_exit.3 321148 2017-07-18 18:21:00Z ngie $
+.\"
+.Dd December 13, 2014
.Dt QUICK_EXIT 3
.Os
.Sh NAME
@@ -35,7 +36,7 @@
.Sh SYNOPSIS
.In stdlib.h
.Ft _Noreturn void
-.Fn quick_exit "void"
+.Fn quick_exit "int status"
.Sh DESCRIPTION
The
.Fn quick_exit
Property changes on: trunk/lib/libc/stdlib/quick_exit.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/quick_exit.c
===================================================================
--- trunk/lib/libc/stdlib/quick_exit.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/quick_exit.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2011 David Chisnall
* All rights reserved.
@@ -23,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $FreeBSD$
+ * $FreeBSD: stable/10/lib/libc/stdlib/quick_exit.c 228528 2011-12-15 11:16:41Z theraven $
*/
#include <stdlib.h>
Modified: trunk/lib/libc/stdlib/radixsort.3
===================================================================
--- trunk/lib/libc/stdlib/radixsort.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/radixsort.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -9,7 +10,7 @@
.\" 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.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -26,7 +27,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)radixsort.3 8.2 (Berkeley) 1/27/94
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/radixsort.3 251672 2013-06-13 00:19:30Z emaste $
.\"
.Dd January 27, 1994
.Dt RADIXSORT 3
Property changes on: trunk/lib/libc/stdlib/radixsort.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/radixsort.c
===================================================================
--- trunk/lib/libc/stdlib/radixsort.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/radixsort.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -13,7 +14,7 @@
* 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.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -34,7 +35,7 @@
static char sccsid[] = "@(#)radixsort.c 8.2 (Berkeley) 4/28/95";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/radixsort.c 251672 2013-06-13 00:19:30Z emaste $");
/*
* Radixsort routines.
Modified: trunk/lib/libc/stdlib/rand.3
===================================================================
--- trunk/lib/libc/stdlib/rand.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/rand.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -13,7 +14,7 @@
.\" 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.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -30,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)rand.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/rand.3 251672 2013-06-13 00:19:30Z emaste $
.\"
.Dd April 2, 2013
.Dt RAND 3
Property changes on: trunk/lib/libc/stdlib/rand.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/rand.c
===================================================================
--- trunk/lib/libc/stdlib/rand.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/rand.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -10,7 +11,7 @@
* 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.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -33,7 +34,7 @@
static char sccsid[] = "@(#)rand.c 8.1 (Berkeley) 6/14/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/rand.c 301445 2016-06-05 14:31:36Z ache $");
#include "namespace.h"
#include <sys/param.h>
@@ -49,15 +50,7 @@
static int
do_rand(unsigned long *ctx)
{
-#ifdef USE_WEAK_SEEDING
/*
- * Historic implementation compatibility.
- * The random sequences do not vary much with the seed,
- * even with overflowing.
- */
- return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)RAND_MAX + 1));
-#else /* !USE_WEAK_SEEDING */
-/*
* Compute x = (7^5 * x) mod (2^31 - 1)
* without overflowing 31 bits:
* (2^31 - 1) = 127773 * (7^5) + 2836
@@ -67,64 +60,45 @@
*/
long hi, lo, x;
- /* Must be in [1, 0x7ffffffe] range at this point. */
- hi = *ctx / 127773;
- lo = *ctx % 127773;
+ /* Transform to [1, 0x7ffffffe] range. */
+ x = (*ctx % 0x7ffffffe) + 1;
+ hi = x / 127773;
+ lo = x % 127773;
x = 16807 * lo - 2836 * hi;
if (x < 0)
x += 0x7fffffff;
+ /* Transform to [0, 0x7ffffffd] range. */
+ x--;
*ctx = x;
- /* Transform to [0, 0x7ffffffd] range. */
- return (x - 1);
-#endif /* !USE_WEAK_SEEDING */
+ return (x);
}
int
-rand_r(unsigned int *ctx)
+rand_r(unsigned *ctx)
{
u_long val;
int r;
-#ifdef USE_WEAK_SEEDING
val = *ctx;
-#else
- /* Transform to [1, 0x7ffffffe] range. */
- val = (*ctx % 0x7ffffffe) + 1;
-#endif
r = do_rand(&val);
-
-#ifdef USE_WEAK_SEEDING
- *ctx = (unsigned int)val;
-#else
- *ctx = (unsigned int)(val - 1);
-#endif
+ *ctx = (unsigned)val;
return (r);
}
-static u_long next =
-#ifdef USE_WEAK_SEEDING
- 1;
-#else
- 2;
-#endif
+static u_long next = 1;
int
-rand()
+rand(void)
{
return (do_rand(&next));
}
void
-srand(seed)
-u_int seed;
+srand(unsigned seed)
{
next = seed;
-#ifndef USE_WEAK_SEEDING
- /* Transform to [1, 0x7ffffffe] range. */
- next = (next % 0x7ffffffe) + 1;
-#endif
}
@@ -136,7 +110,7 @@
* data from the kernel.
*/
void
-sranddev()
+sranddev(void)
{
int mib[2];
size_t len;
@@ -146,10 +120,6 @@
mib[0] = CTL_KERN;
mib[1] = KERN_ARND;
sysctl(mib, 2, (void *)&next, &len, NULL, 0);
-#ifndef USE_WEAK_SEEDING
- /* Transform to [1, 0x7ffffffe] range. */
- next = (next % 0x7ffffffe) + 1;
-#endif
}
Modified: trunk/lib/libc/stdlib/random.3
===================================================================
--- trunk/lib/libc/stdlib/random.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/random.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -9,7 +10,7 @@
.\" 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.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -26,7 +27,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)random.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/random.3 301454 2016-06-05 16:21:53Z ache $
.\"
.Dd April 2, 2013
.Dt RANDOM 3
@@ -175,8 +176,8 @@
.Fn initstate
is called with less than 8 bytes of state information, or if
.Fn setstate
-detects that the state information has been garbled, error
-messages are printed on the standard error output.
+detects that the state information has been garbled,
+NULL is returned.
.Sh SEE ALSO
.Xr arc4random 3 ,
.Xr lrand48 3 ,
Property changes on: trunk/lib/libc/stdlib/random.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/random.c
===================================================================
--- trunk/lib/libc/stdlib/random.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/random.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -10,7 +11,7 @@
* 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.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,13 +32,12 @@
static char sccsid[] = "@(#)random.c 8.2 (Berkeley) 5/19/95";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/stdlib/random.c 301443 2016-06-05 13:39:31Z ache $");
#include "namespace.h"
#include <sys/param.h>
#include <sys/sysctl.h>
#include <stdint.h>
-#include <stdio.h>
#include <stdlib.h>
#include "un-namespace.h"
@@ -138,11 +138,7 @@
*/
#define MAX_TYPES 5 /* max number of types above */
-#ifdef USE_WEAK_SEEDING
-#define NSHUFF 0
-#else /* !USE_WEAK_SEEDING */
#define NSHUFF 50 /* to drop some "seed -> 1st value" linearity */
-#endif /* !USE_WEAK_SEEDING */
static const int degrees[MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 };
static const int seps [MAX_TYPES] = { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 };
@@ -163,23 +159,12 @@
static uint32_t randtbl[DEG_3 + 1] = {
TYPE_3,
-#ifdef USE_WEAK_SEEDING
-/* Historic implementation compatibility */
-/* The random sequences do not vary much with the seed */
- 0x9a319039, 0x32d9c024, 0x9b663182, 0x5da1f342, 0xde3b81e0, 0xdf0a6fb5,
- 0xf103bc02, 0x48f340fb, 0x7449e56b, 0xbeb1dbb0, 0xab5c5918, 0x946554fd,
- 0x8c2e680f, 0xeb3d799f, 0xb11ee0b7, 0x2d436b86, 0xda672e2a, 0x1588ca88,
- 0xe369735d, 0x904f35f7, 0xd7158fd6, 0x6fa6f051, 0x616e6b96, 0xac94efdc,
- 0x36413f93, 0xc622c298, 0xf5a42ab8, 0x8a88d77b, 0xf5ad9d0e, 0x8999220b,
- 0x27fb47b9,
-#else /* !USE_WEAK_SEEDING */
- 0x991539b1, 0x16a5bce3, 0x6774a4cd, 0x3e01511e, 0x4e508aaa, 0x61048c05,
- 0xf5500617, 0x846b7115, 0x6a19892c, 0x896a97af, 0xdb48f936, 0x14898454,
- 0x37ffd106, 0xb58bff9c, 0x59e17104, 0xcf918a49, 0x09378c83, 0x52c7a471,
- 0x8d293ea9, 0x1f4fc301, 0xc3db71be, 0x39b44e1c, 0xf8a44ef9, 0x4c8b80b1,
- 0x19edc328, 0x87bf4bdd, 0xc9b240e5, 0xe9ee4b1b, 0x4382aee7, 0x535b6b41,
- 0xf3bec5da
-#endif /* !USE_WEAK_SEEDING */
+ 0x2cf41758, 0x27bb3711, 0x4916d4d1, 0x7b02f59f, 0x9b8e28eb, 0xc0e80269,
+ 0x696f5c16, 0x878f1ff5, 0x52d9c07f, 0x916a06cd, 0xb50b3a20, 0x2776970a,
+ 0xee4eb2a6, 0xe94640ec, 0xb1d65612, 0x9d1ed968, 0x1043f6b7, 0xa3432a76,
+ 0x17eacbb9, 0x3c09e2eb, 0x4f8c2b3, 0x708a1f57, 0xee341814, 0x95d0e4d2,
+ 0xb06f216c, 0x8bd2e72e, 0x8f7c38d7, 0xcfc6a8fc, 0x2a59495, 0xa20d2a69,
+ 0xe29d12d1
};
/*
@@ -216,17 +201,9 @@
static uint32_t *end_ptr = &randtbl[DEG_3 + 1];
static inline uint32_t
-good_rand(int32_t x)
+good_rand(uint32_t ctx)
{
-#ifdef USE_WEAK_SEEDING
/*
- * Historic implementation compatibility.
- * The random sequences do not vary much with the seed,
- * even with overflowing.
- */
- return (1103515245 * x + 12345);
-#else /* !USE_WEAK_SEEDING */
-/*
* Compute x = (7^5 * x) mod (2^31 - 1)
* wihout overflowing 31 bits:
* (2^31 - 1) = 127773 * (7^5) + 2836
@@ -234,18 +211,17 @@
* Park and Miller, Communications of the ACM, vol. 31, no. 10,
* October 1988, p. 1195.
*/
- int32_t hi, lo;
+ int32_t hi, lo, x;
- /* Can't be initialized with 0, so use another value. */
- if (x == 0)
- x = 123459876;
+ /* Transform to [1, 0x7ffffffe] range. */
+ x = (ctx % 0x7ffffffe) + 1;
hi = x / 127773;
lo = x % 127773;
x = 16807 * lo - 2836 * hi;
if (x < 0)
x += 0x7fffffff;
- return (x);
-#endif /* !USE_WEAK_SEEDING */
+ /* Transform to [0, 0x7ffffffd] range. */
+ return (x - 1);
}
/*
@@ -341,15 +317,12 @@
char *ostate = (char *)(&state[-1]);
uint32_t *int_arg_state = (uint32_t *)arg_state;
+ if (n < BREAK_0)
+ return (NULL);
if (rand_type == TYPE_0)
state[-1] = rand_type;
else
state[-1] = MAX_TYPES * (rptr - state) + rand_type;
- if (n < BREAK_0) {
- (void)fprintf(stderr,
- "random: not enough state (%ld bytes); ignored.\n", n);
- return (0);
- }
if (n < BREAK_1) {
rand_type = TYPE_0;
rand_deg = DEG_0;
@@ -408,24 +381,15 @@
uint32_t rear = new_state[0] / MAX_TYPES;
char *ostate = (char *)(&state[-1]);
+ if (type != TYPE_0 && rear >= degrees[type])
+ return (NULL);
if (rand_type == TYPE_0)
state[-1] = rand_type;
else
state[-1] = MAX_TYPES * (rptr - state) + rand_type;
- switch(type) {
- case TYPE_0:
- case TYPE_1:
- case TYPE_2:
- case TYPE_3:
- case TYPE_4:
- rand_type = type;
- rand_deg = degrees[type];
- rand_sep = seps[type];
- break;
- default:
- (void)fprintf(stderr,
- "random: state info corrupted; not changed.\n");
- }
+ rand_type = type;
+ rand_deg = degrees[type];
+ rand_sep = seps[type];
state = new_state + 1;
if (rand_type != TYPE_0) {
rptr = &state[rear];
@@ -460,7 +424,7 @@
if (rand_type == TYPE_0) {
i = state[0];
- state[0] = i = (good_rand(i)) & 0x7fffffff;
+ state[0] = i = good_rand(i);
} else {
/*
* Use local variables rather than static variables for speed.
@@ -467,7 +431,7 @@
*/
f = fptr; r = rptr;
*f += *r;
- i = (*f >> 1) & 0x7fffffff; /* chucking least random bit */
+ i = *f >> 1; /* chucking least random bit */
if (++f >= end_ptr) {
f = state;
++r;
Modified: trunk/lib/libc/stdlib/rb.h
===================================================================
--- trunk/lib/libc/stdlib/rb.h 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/rb.h 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
*******************************************************************************
*
Modified: trunk/lib/libc/stdlib/reallocarray.c
===================================================================
--- trunk/lib/libc/stdlib/reallocarray.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/reallocarray.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/* $OpenBSD: reallocarray.c,v 1.2 2014/12/08 03:45:00 bcook Exp $ */
/*
* Copyright (c) 2008 Otto Moerbeek <otto at drijf.net>
Modified: trunk/lib/libc/stdlib/realpath.3
===================================================================
--- trunk/lib/libc/stdlib/realpath.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/realpath.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -12,7 +13,7 @@
.\" 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.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -29,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)realpath.3 8.2 (Berkeley) 2/16/94
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/realpath.3 251672 2013-06-13 00:19:30Z emaste $
.\"
.Dd May 11, 2012
.Dt REALPATH 3
@@ -42,7 +43,7 @@
.Sh SYNOPSIS
.In stdlib.h
.Ft "char *"
-.Fn realpath "const char *pathname" "char *resolved_path"
+.Fn realpath "const char * restrict pathname" "char * restrict resolved_path"
.Sh DESCRIPTION
The
.Fn realpath
Property changes on: trunk/lib/libc/stdlib/realpath.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/strfmon.3
===================================================================
--- trunk/lib/libc/stdlib/strfmon.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/strfmon.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2001 Jeroen Ruigrok van der Werven <asmodai at FreeBSD.org>
.\" All rights reserved.
.\"
Property changes on: trunk/lib/libc/stdlib/strfmon.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/strtod.3
===================================================================
--- trunk/lib/libc/stdlib/strtod.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/strtod.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
Property changes on: trunk/lib/libc/stdlib/strtod.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/strtol.3
===================================================================
--- trunk/lib/libc/stdlib/strtol.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/strtol.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
Property changes on: trunk/lib/libc/stdlib/strtol.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/strtouq.c
===================================================================
--- trunk/lib/libc/stdlib/strtouq.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/strtouq.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
Modified: trunk/lib/libc/stdlib/system.3
===================================================================
--- trunk/lib/libc/stdlib/system.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/system.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
Property changes on: trunk/lib/libc/stdlib/system.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/lib/libc/stdlib/tdelete.c
===================================================================
--- trunk/lib/libc/stdlib/tdelete.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/tdelete.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/* $NetBSD: tdelete.c,v 1.2 1999/09/16 11:45:37 lukem Exp $ */
/*
Modified: trunk/lib/libc/stdlib/tfind.c
===================================================================
--- trunk/lib/libc/stdlib/tfind.c 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/tfind.c 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/* $NetBSD: tfind.c,v 1.2 1999/09/16 11:45:37 lukem Exp $ */
/*
Modified: trunk/lib/libc/stdlib/tsearch.3
===================================================================
--- trunk/lib/libc/stdlib/tsearch.3 2018-06-07 23:06:13 UTC (rev 10544)
+++ trunk/lib/libc/stdlib/tsearch.3 2018-06-07 23:07:00 UTC (rev 10545)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" $NetBSD$
.\" Copyright (c) 1997 Todd C. Miller <Todd.Miller at courtesan.com>
.\" All rights reserved.
Property changes on: trunk/lib/libc/stdlib/tsearch.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list