diff options
author | niklas <> | 1996-03-19 23:15:14 +0000 |
---|---|---|
committer | niklas <> | 1996-03-19 23:15:14 +0000 |
commit | b12abff2eedd6c25979b3dc8890ef07b15432ea8 (patch) | |
tree | 2603354cf92c21ad3bdd387ed8be630a43b05f72 /src/lib/libc/stdlib | |
parent | 83a23009542c2672b009a5ad496e0a28417a37f9 (diff) | |
download | openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.tar.gz openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.tar.bz2 openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.zip |
From NetBSD: merge of 960317
Diffstat (limited to 'src/lib/libc/stdlib')
-rw-r--r-- | src/lib/libc/stdlib/strtod.c | 16 | ||||
-rw-r--r-- | src/lib/libc/stdlib/system.3 | 8 |
2 files changed, 19 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/strtod.c b/src/lib/libc/stdlib/strtod.c index b13fa128f5..f1c5463933 100644 --- a/src/lib/libc/stdlib/strtod.c +++ b/src/lib/libc/stdlib/strtod.c | |||
@@ -1,3 +1,6 @@ | |||
1 | /* $OpenBSD: strtod.c,v 1.2 1996/03/19 23:15:11 niklas Exp $ */ | ||
2 | /* $NetBSD: strtod.c,v 1.21 1996/02/16 21:19:29 mark Exp $ */ | ||
3 | |||
1 | /**************************************************************** | 4 | /**************************************************************** |
2 | * | 5 | * |
3 | * The author of this software is David M. Gay. | 6 | * The author of this software is David M. Gay. |
@@ -90,7 +93,7 @@ | |||
90 | */ | 93 | */ |
91 | 94 | ||
92 | #if defined(LIBC_SCCS) && !defined(lint) | 95 | #if defined(LIBC_SCCS) && !defined(lint) |
93 | static char *rcsid = "$Id: strtod.c,v 1.1.1.1 1995/10/18 08:42:19 deraadt Exp $"; | 96 | static char *rcsid = "$OpenBSD: strtod.c,v 1.2 1996/03/19 23:15:11 niklas Exp $"; |
94 | #endif /* LIBC_SCCS and not lint */ | 97 | #endif /* LIBC_SCCS and not lint */ |
95 | 98 | ||
96 | #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ | 99 | #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 $" | |||
103 | #endif | 106 | #endif |
104 | #endif | 107 | #endif |
105 | 108 | ||
109 | #ifdef __arm32__ | ||
110 | /* | ||
111 | * Although the CPU is little endian the FP has different | ||
112 | * byte and word endianness. The byte order is still little endian | ||
113 | * but the word order is big endian. | ||
114 | */ | ||
115 | #define IEEE_BIG_ENDIAN | ||
116 | #endif | ||
117 | |||
106 | #ifdef vax | 118 | #ifdef vax |
107 | #define VAX | 119 | #define VAX |
108 | #endif | 120 | #endif |
@@ -224,7 +236,7 @@ IBM should be defined. | |||
224 | * An alternative that might be better on some machines is | 236 | * An alternative that might be better on some machines is |
225 | * #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff) | 237 | * #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff) |
226 | */ | 238 | */ |
227 | #if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) | 239 | #if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) + defined(__arm32__) |
228 | #define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \ | 240 | #define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \ |
229 | ((unsigned short *)a)[0] = (unsigned short)c, a++) | 241 | ((unsigned short *)a)[0] = (unsigned short)c, a++) |
230 | #else | 242 | #else |
diff --git a/src/lib/libc/stdlib/system.3 b/src/lib/libc/stdlib/system.3 index d77a082545..b3e3cb8e47 100644 --- a/src/lib/libc/stdlib/system.3 +++ b/src/lib/libc/stdlib/system.3 | |||
@@ -1,3 +1,6 @@ | |||
1 | .\" $OpenBSD: system.3,v 1.3 1996/03/19 23:15:12 niklas Exp $ | ||
2 | .\" $NetBSD: system.3,v 1.7 1996/02/16 22:30:46 jtc Exp $ | ||
3 | .\" | ||
1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 4 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. |
2 | .\" All rights reserved. | 5 | .\" All rights reserved. |
3 | .\" | 6 | .\" |
@@ -34,7 +37,6 @@ | |||
34 | .\" SUCH DAMAGE. | 37 | .\" SUCH DAMAGE. |
35 | .\" | 38 | .\" |
36 | .\" from: @(#)system.3 6.5 (Berkeley) 6/29/91 | 39 | .\" from: @(#)system.3 6.5 (Berkeley) 6/29/91 |
37 | .\" $Id: system.3,v 1.2 1995/11/01 16:43:27 deraadt Exp $ | ||
38 | .\" | 40 | .\" |
39 | .Dd June 29, 1991 | 41 | .Dd June 29, 1991 |
40 | .Dt SYSTEM 3 | 42 | .Dt SYSTEM 3 |
@@ -87,8 +89,8 @@ returns the termination status for a program that terminates with a call of | |||
87 | .Sh SEE ALSO | 89 | .Sh SEE ALSO |
88 | .Xr sh 1 , | 90 | .Xr sh 1 , |
89 | .Xr execve 2 , | 91 | .Xr execve 2 , |
90 | .Xr popen 3 , | 92 | .Xr waitpid 2 , |
91 | .Xr waitpid 3 , | 93 | .Xr popen 3 |
92 | .Sh STANDARDS | 94 | .Sh STANDARDS |
93 | The | 95 | The |
94 | .Fn system | 96 | .Fn system |