summaryrefslogtreecommitdiff
path: root/sys/lib
AgeCommit message (Collapse)Author
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
2003-12-16Update to zlib 1.2.1Todd C. Miller
2003-12-16shrink error strings a lot; ok millertTheo de Raadt
2003-12-02KNF, ok deraadt/henningMarkus Friedl
2003-11-24make it use system bcopy/bzero (speeds up the vax about twice); from pr3549Michael Shalayeff
2003-08-25rename struct dinode to ufs1_dinode. clears the namespace and makesTed Unangst
way for some future work. no function changes yet. help testing otto@ and markus@
2003-08-11load file in one pass avoiding seeking the headers back and forth; miod@ ↵Michael Shalayeff
testing & ok (two months ago and then i forgot ;)
2003-08-11ansification and knf and protosTheo de Raadt
2003-08-08first ansiTheo de Raadt
2003-08-04Add missing close() on EFTYPE error in exec(); from Patrick LatifiTodd C. Miller
2003-07-05ansiTheo de Raadt
2003-06-23Remove strcat() and strcpy() prototypes since we no longer have thoseTodd C. Miller
functions in kernel-land. Noticed by Jim Rees; OK deraadt@
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-04Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. This got missed in the omnibus commit.
2003-06-04another 3/4Theo de Raadt
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02three four kill ...Michael Shalayeff
2003-06-02kill exec.new bit i had forgottenMichael Shalayeff
2003-06-02licence cleanupTheo de Raadt
2003-06-01strcpy/strcat/sprintf removal in all bootblocks. various testing byTheo de Raadt
various people. outside of some messy things in src/gnu, only one thing in the main tree now violates this rule: bind
2003-05-20de-register; ok millertJason Wright
2003-05-12warn on right symbols, oopsTheo de Raadt
2003-05-10warn for strcpy|strcat|sprintf|vsprintf; ok art dhartmei pval, and either ↵Theo de Raadt
henning or pb, i cannot tell which it was
2003-05-07plug a memory leakMichael Shalayeff
2003-04-29Get rid of more unwanted pieces of code.Miod Vallat
2003-04-17replaced by loadfile nowMichael Shalayeff
2003-04-17missing indentMichael Shalayeff
2003-04-15do the same ufs does: collapse extra slashes. this allows loading files from ↵Michael Shalayeff
the root of cd9660 in particular; millert@ ok
2003-03-14sync with libc versionTodd C. Miller
o ANSI function header o correct function comment o put type on its own line o swap the order of loop invariant when searching for end of dst
2003-03-14Put return type on its own line like it belong and use ANSI function header.Todd C. Miller