tls
a34cd18b76
Fix build problems caused by crc32 addition to libkern. Also, this makes
...
the i386 bootblocks about 2K smaller than they were before we monkeyed
with crc32 at all.
2009-03-25 18:41:06 +00:00
tsutsui
3e9910f3b8
Disable a sanity check output buffer != NULL in _STANDALONE case.
...
Some kernels are loaded at address 0x0 by bootloaders and
output buffer address could be zero in such case.
Fixes "read text" errors on loading install floppy of NetBSD/news68k 4.0,
reported by KIYOHARA Takashi on port-news68k.
2007-12-22 00:52:03 +00:00
christos
b7c6768d3d
Coverity CID 3206: Add assertion for NULL deref.
2006-05-13 22:05:04 +00:00
dsl
2fd2e12bd8
Don't bloat the standalone images with preset CRC tables and large routines.
...
Ideally some of the loops need de-unrolling as well (and in adler32.c).
Makes the i386 install floppies fit.
2006-02-18 18:39:58 +00:00
christos
b85ba082e0
Sprinkle __UNCONST and fix some casts to make this pass WARNS=4
...
Note, that we cannot fix this properly because it will break the zlib.h API.
2006-01-27 00:45:27 +00:00
uwe
d6cc4d7850
If __NetBSD__ && (_KERNEL || _STANDALONE) - don't try to pull in
...
limits.h to guess what a four byte type is, just use uint32_t.
2006-01-25 23:15:55 +00:00
christos
a1f9f4c090
change DEBUG to ZLIB_DEBUG.
2006-01-16 17:02:29 +00:00
christos
5a1ae2ecf2
Avoid possible name shadowing with min and max (from libkern).
2006-01-16 03:23:10 +00:00
christos
c08686ce36
add NetBSD ifdefs
2006-01-14 20:28:58 +00:00
christos
49473ec58b
- include <sys/types.h>
...
- add z_ptrdiff_t
- add NetBSD ifdefs.
2006-01-14 20:27:34 +00:00
christos
86a96dbd0e
use z_ptrdiff_t instead of ptrdiff_t directly.
2006-01-14 20:26:26 +00:00
christos
8f50ba1350
rename write to wwrite to avoid variable shadowing.
2006-01-14 20:26:05 +00:00
christos
aaf4ece63a
from www.zlib.net
2006-01-14 20:10:22 +00:00