diff options
author | 1996-03-19 23:14:49 +0000 | |
---|---|---|
committer | 1996-03-19 23:14:49 +0000 | |
commit | 3fbbad10a5e74a7aaa576a50d86494daddc162b3 (patch) | |
tree | bec35e877279413f30916fe46b8c9a5921b002b5 /lib/libc/stdlib | |
parent | Merging w/ NetBSD 021796. (diff) | |
download | wireguard-openbsd-3fbbad10a5e74a7aaa576a50d86494daddc162b3.tar.xz wireguard-openbsd-3fbbad10a5e74a7aaa576a50d86494daddc162b3.zip |
From NetBSD: merge of 960317
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/strtod.c | 16 | ||||
-rw-r--r-- | lib/libc/stdlib/system.3 | 8 |
2 files changed, 19 insertions, 5 deletions
diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c index b13fa128f5b..f1c54639335 100644 --- a/lib/libc/stdlib/strtod.c +++ b/lib/libc/stdlib/strtod.c @@ -1,3 +1,6 @@ +/* $OpenBSD: strtod.c,v 1.2 1996/03/19 23:15:11 niklas Exp $ */ +/* $NetBSD: strtod.c,v 1.21 1996/02/16 21:19:29 mark Exp $ */ + /**************************************************************** * * The author of this software is David M. Gay. @@ -90,7 +93,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$Id: strtod.c,v 1.1.1.1 1995/10/18 08:42:19 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strtod.c,v 1.2 1996/03/19 23:15:11 niklas Exp $"; #endif /* LIBC_SCCS and not lint */ #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ @@ -103,6 +106,15 @@ static char *rcsid = "$Id: strtod.c,v 1.1.1.1 1995/10/18 08:42:19 deraadt Exp $" #endif #endif +#ifdef __arm32__ +/* + * Although the CPU is little endian the FP has different + * byte and word endianness. The byte order is still little endian + * but the word order is big endian. + */ +#define IEEE_BIG_ENDIAN +#endif + #ifdef vax #define VAX #endif @@ -224,7 +236,7 @@ IBM should be defined. * An alternative that might be better on some machines is * #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff) */ -#if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) +#if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) + defined(__arm32__) #define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \ ((unsigned short *)a)[0] = (unsigned short)c, a++) #else diff --git a/lib/libc/stdlib/system.3 b/lib/libc/stdlib/system.3 index d77a082545a..b3e3cb8e472 100644 --- a/lib/libc/stdlib/system.3 +++ b/lib/libc/stdlib/system.3 @@ -1,3 +1,6 @@ +.\" $OpenBSD: system.3,v 1.3 1996/03/19 23:15:12 niklas Exp $ +.\" $NetBSD: system.3,v 1.7 1996/02/16 22:30:46 jtc Exp $ +.\" .\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -34,7 +37,6 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)system.3 6.5 (Berkeley) 6/29/91 -.\" $Id: system.3,v 1.2 1995/11/01 16:43:27 deraadt Exp $ .\" .Dd June 29, 1991 .Dt SYSTEM 3 @@ -87,8 +89,8 @@ returns the termination status for a program that terminates with a call of .Sh SEE ALSO .Xr sh 1 , .Xr execve 2 , -.Xr popen 3 , -.Xr waitpid 3 , +.Xr waitpid 2 , +.Xr popen 3 .Sh STANDARDS The .Fn system |