summaryrefslogtreecommitdiff
path: root/sys/lib
AgeCommit message (Collapse)Author
2006-02-06typos from alexey dobriyan;Jason McIntyre
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2006-01-04Switch to the C version of random() on m68k platforms. It is almost as fastMiod Vallat
as the assembly version on 0[234]0, but *fifteen* times faster than it on 68060 systems, since it uses a form of muls.l which has to be emulated. And since we use random() for statclock variance, this means we were gratuitously doing an average of 100 emulation traps per second. ok deraadt@ millert@
2005-08-01I'm Positive these are Type-O.Miod Vallat
2005-07-20not neededTheo de Raadt
2005-07-20add moddi3, needed by new libzTheo de Raadt
2005-07-20Update to zlib 1.2.3; OK deraadt@Todd C. Miller
2005-07-13do not leak memory if read()ing section headers fails; from Andrey Matveev ↵Michael Shalayeff
<evol@online.ptt.ru>
2005-07-06Fix bounds check for incomplete code sets so they cannot overflow the codesTodd C. Miller
array. From Mark Adler.
2005-05-24-ansi considered harmful, even in commentsTodd C. Miller
2005-04-01hppa64 bitsMichael Shalayeff
2005-02-13Remove __P usage in sys that has crept back in.Jonathan Gray
'Looks fine' millert@, ok miod@
2004-12-03zlib-1.21 here tooDamien Miller
2004-11-28sync from libcMichael Shalayeff
2004-11-28a tiny hppa64 bitMichael Shalayeff
2004-10-0864 bit safe over entire address rangePer Fogelstrom
2004-09-23make it compile with _STANDALONE, ok deraadt@Per Fogelstrom
2004-09-22Add code to let 32bit code *printf() {u,}int64_t values.Miod Vallat
Only enabled if libsa is compiled with the adequate define, so as not to grow bootblocks which do not need this feature. ok deraadt@
2004-09-21Keep providing a 32bit only version of bzero() #ifdef _STANDALONE, asMiod Vallat
bootblocks are compiled as 32bit code.
2004-09-18slightly 64 bit improvedPer Fogelstrom
2004-09-09Changes for 64 bit kernel. Some functions needis to be rewritten orPer Fogelstrom
optimized to take advantage of full 64 bit width registers.
2004-08-26Fix for DoS caused by incorrect error handling. From Dmitry V. Levin.Otto Moerbeek
ok miller@ henning@
2004-08-13add missing copyrightPer Fogelstrom
2004-08-11mips64 nowPer Fogelstrom
2004-08-11move to mips64Per Fogelstrom
2004-08-07ansi and some missing protosTheo de Raadt
2004-07-22Remove some register keywords to make this compile on amd64.Artur Grabowski
2004-07-09Fix buffer writing in cd9660 code, written by Tom and myself, examined by tobyDale Rahn
and tested in-tree for a while.
2004-06-22Change of variable name from read to nread, to reduce differenceTom Cosgrove
from NetBSD version. ok weingart@
2004-06-21add bounded attribute to some functions. anil tested and ok'edJun-ichiro itojun Hagino
2004-05-07Replace RSA-derived md5 code with code derived from Colin Plumb's PD version.Todd C. Miller
This moves md5.c out of libkern and into sys/crypto where it belongs (as requested by markus@). Note that md5.c is still mandatory (dev/rnd.c uses it). Verified with IPsec + hmac-md5 and tcp md5sig. OK henning@ and hshoexer@
2004-05-06add back strchr/strrchr; from dhartmeiTheo de Raadt
2004-04-02remove terms 3 & 4 for drochner@NetBSD.org; as seen on netbsd listsTheo de Raadt
2004-04-01It turns out that the so-called fast ffs(3) routines were wrong, as soon asMiod Vallat
more than one bit is set, as the ff1 instruction counts from the highest order. However, gcc/m88k with optimization enabled would use a correct, short sequence based upon ff1 and tweaks, to achieve the intended result, hence i did not catch this flaw initially. So revert to the C implementation - it is correct, still decently fast, and will only be used when compiling at -O0.
2004-03-24Do not check for writing to address zero on vax, since this is whereMiod Vallat
we want to be able to load a .gz kernel. ok deraadt@
2004-03-19Enter pxeboot, derived from the NetBSD implementation. InitiallyTom Cosgrove
intended to support network installs using bsd.rd over TFTP. Thanks to the many who tested, including Diana Eichert. ok deraadt@
2004-02-27change amd64's MACHINE_ARCH from x86_64 to amd64. There are many manyTheo de Raadt
reasons for this, quite a few of them technical, and not all of them in response to Intel's broken ia32e crud. The gcc toolchain stays at x86_64 for now.
2004-02-10Allow /boot to load read-only data segments in ELF kernels.Tom Cosgrove
Thanks to miod@ for testing on many archs. ok deraadt@.
2004-02-03no quad stuff on amd64 either; from art@Michael Shalayeff
2004-02-01tag...Dale Rahn
2004-02-01Kernel library bits for arm, from NetBSD.Dale Rahn
2004-01-28an amd64 arch support.Michael Shalayeff
hacked by art@ from netbsd sources and then later debugged by me into the shape where it can host itself. no bootloader yet as needs redoing from the recent advanced i386 sources (anyone? ;)
2004-01-22use C comments, works betterTheo de Raadt
2004-01-21A faster ffs() routine based upon the ff1 assembly instruction.Miod Vallat
2004-01-03put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macrosMarc Espie
to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@.
2003-12-18Move -DDYNAMIC_CRC_TABLE into the main libz MakefileTodd C. Miller
2003-12-17#include <lib/libsa/stand.h> instead of just <stand.h> so we can avoidTodd C. Miller
adding an extra -I for each libz Makefile. This is how the old kernel libz was.
2003-12-17No need to build infback.c here after all.Todd C. Miller
2003-12-17_ZLIB_PRIVATE is not used anywhereTodd C. Miller
2003-12-16Add #ifdef SMALL and #ifdef SLOW and include sys/unistd.h instead of unistd.hTodd C. Miller