diff options
author | 2009-10-16 12:15:03 +0000 | |
---|---|---|
committer | 2009-10-16 12:15:03 +0000 | |
commit | 384cfdc17f187fdfda3c3de624a12d09397918b3 (patch) | |
tree | 829022ef0c09ec5d77cf4e4b653040c3a44dd31e /lib/libc/arch | |
parent | sort flags in synopsis, usage, and description. (diff) | |
download | wireguard-openbsd-384cfdc17f187fdfda3c3de624a12d09397918b3.tar.xz wireguard-openbsd-384cfdc17f187fdfda3c3de624a12d09397918b3.zip |
teach gdtoa & its subroutines that malloc can fail; in which case
ecvt, fcvt, gcvt, *printf, strtof, strtod, strtold act per ieee
1003.1. after these massive changes, remove unused files which
would not work now. reported by Maksymilian Arciemowicz; ok theo
Diffstat (limited to 'lib/libc/arch')
-rw-r--r-- | lib/libc/arch/vax/gdtoa/strtof.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/arch/vax/gdtoa/strtof.c b/lib/libc/arch/vax/gdtoa/strtof.c index 7ae20c2f894..11105f0effd 100644 --- a/lib/libc/arch/vax/gdtoa/strtof.c +++ b/lib/libc/arch/vax/gdtoa/strtof.c @@ -65,6 +65,10 @@ strtof(CONST char *s, char **sp) case STRTOG_Infinite: u.L[0] = 0xffff7fff; break; + + case STRTOG_NoMemory: + errno = ERANGE; + return (HUGE_VALF); } if (k & STRTOG_Neg) u.L[0] |= 0x00008000L; |