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 | |
parent | 83a23009542c2672b009a5ad496e0a28417a37f9 (diff) | |
download | openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.tar.gz openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.tar.bz2 openbsd-b12abff2eedd6c25979b3dc8890ef07b15432ea8.zip |
From NetBSD: merge of 960317
-rw-r--r-- | src/lib/libc/net/inet_network.c | 10 | ||||
-rw-r--r-- | src/lib/libc/stdlib/strtod.c | 16 | ||||
-rw-r--r-- | src/lib/libc/stdlib/system.3 | 8 | ||||
-rw-r--r-- | src/lib/libc/string/strftime.3 | 7 |
4 files changed, 28 insertions, 13 deletions
diff --git a/src/lib/libc/net/inet_network.c b/src/lib/libc/net/inet_network.c index 35105fa75a..3de21a5bac 100644 --- a/src/lib/libc/net/inet_network.c +++ b/src/lib/libc/net/inet_network.c | |||
@@ -1,4 +1,5 @@ | |||
1 | /* $NetBSD: inet_network.c,v 1.4 1995/02/25 06:20:45 cgd Exp $ */ | 1 | /* $OpenBSD: inet_network.c,v 1.2 1996/03/19 23:15:08 niklas Exp $ */ |
2 | /* $NetBSD: inet_network.c,v 1.5 1996/02/17 15:35:41 hpeyerl Exp $ */ | ||
2 | 3 | ||
3 | /* | 4 | /* |
4 | * Copyright (c) 1983, 1993 | 5 | * Copyright (c) 1983, 1993 |
@@ -37,7 +38,8 @@ | |||
37 | #if 0 | 38 | #if 0 |
38 | static char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93"; | 39 | static char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93"; |
39 | #else | 40 | #else |
40 | static char rcsid[] = "$NetBSD: inet_network.c,v 1.4 1995/02/25 06:20:45 cgd Exp $"; | 41 | static char rcsid[] = "$OpenBSD: inet_network.c,v 1.2 1996/03/19 23:15:08 niklas Exp $"; |
42 | static char rcsid[] = "$NetBSD: inet_network.c,v 1.5 1996/02/17 15:35:41 hpeyerl Exp $"; | ||
41 | #endif | 43 | #endif |
42 | #endif /* LIBC_SCCS and not lint */ | 44 | #endif /* LIBC_SCCS and not lint */ |
43 | 45 | ||
@@ -80,7 +82,7 @@ again: | |||
80 | break; | 82 | break; |
81 | } | 83 | } |
82 | if (*cp == '.') { | 84 | if (*cp == '.') { |
83 | if (pp >= parts + 4) | 85 | if (pp >= parts + 3) |
84 | return (INADDR_NONE); | 86 | return (INADDR_NONE); |
85 | *pp++ = val, cp++; | 87 | *pp++ = val, cp++; |
86 | goto again; | 88 | goto again; |
@@ -89,8 +91,6 @@ again: | |||
89 | return (INADDR_NONE); | 91 | return (INADDR_NONE); |
90 | *pp++ = val; | 92 | *pp++ = val; |
91 | n = pp - parts; | 93 | n = pp - parts; |
92 | if (n > 4) | ||
93 | return (INADDR_NONE); | ||
94 | for (val = 0, i = 0; i < n; i++) { | 94 | for (val = 0, i = 0; i < n; i++) { |
95 | val <<= 8; | 95 | val <<= 8; |
96 | val |= parts[i] & 0xff; | 96 | val |= parts[i] & 0xff; |
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 |
diff --git a/src/lib/libc/string/strftime.3 b/src/lib/libc/string/strftime.3 index f14db4bb13..a6eecd95e0 100644 --- a/src/lib/libc/string/strftime.3 +++ b/src/lib/libc/string/strftime.3 | |||
@@ -1,3 +1,5 @@ | |||
1 | .\" $OpenBSD: strftime.3,v 1.2 1996/03/19 23:15:14 niklas Exp $ | ||
2 | .\" | ||
1 | .\" Copyright (c) 1989, 1991 The Regents of the University of California. | 3 | .\" Copyright (c) 1989, 1991 The Regents of the University of California. |
2 | .\" All rights reserved. | 4 | .\" All rights reserved. |
3 | .\" | 5 | .\" |
@@ -34,7 +36,6 @@ | |||
34 | .\" SUCH DAMAGE. | 36 | .\" SUCH DAMAGE. |
35 | .\" | 37 | .\" |
36 | .\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91 | 38 | .\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91 |
37 | .\" $Id: strftime.3,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $ | ||
38 | .\" | 39 | .\" |
39 | .Dd June 29, 1991 | 40 | .Dd June 29, 1991 |
40 | .Dt STRFTIME 3 | 41 | .Dt STRFTIME 3 |
@@ -157,9 +158,9 @@ the week) as a decimal number (00-53). | |||
157 | is replaced by the weekday (Sunday as the first day of the week) | 158 | is replaced by the weekday (Sunday as the first day of the week) |
158 | as a decimal number (0-6). | 159 | as a decimal number (0-6). |
159 | .It Cm \&%X | 160 | .It Cm \&%X |
160 | is replaced by the locale's appropriate date representation. | ||
161 | .It Cm \&%x | ||
162 | is replaced by the locale's appropriate time representation. | 161 | is replaced by the locale's appropriate time representation. |
162 | .It Cm \&%x | ||
163 | is replaced by the locale's appropriate date representation. | ||
163 | .It Cm \&%Y | 164 | .It Cm \&%Y |
164 | is replaced by the year with century as a decimal number. | 165 | is replaced by the year with century as a decimal number. |
165 | .It Cm \&%y | 166 | .It Cm \&%y |