summaryrefslogtreecommitdiff
path: root/sys/lib/libkern
AgeCommit message (Collapse)Author
2005-02-13Remove __P usage in sys that has crept back in.Jonathan Gray
'Looks fine' millert@, ok miod@
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-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-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-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-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-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-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
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-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-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-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-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-04-29Get rid of more unwanted pieces of code.Miod Vallat
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
2003-01-28add a rule to built bzero.po as wellMichael Shalayeff
2002-11-11powerpc uses memset for bzero, do this for profiled version also.Dale Rahn
2002-09-15use mi strlcpy here as wellMichael Shalayeff
2002-09-06Remove 64-bit gcc emulation stuff. We're not using it.Artur Grabowski
2002-08-27do not just bail out of the copy loop, but go to theMichael Shalayeff
'done' label for the job finish. major register missallocation for copyonfault, fix it. clean the space regs after use.
2002-08-13syncMichael Shalayeff
2002-08-11Use _C_LABEL for c symbols.Artur Grabowski
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-05-20syncMichael Shalayeff
2002-04-28IEEE 754 floating point completion code, and implementation of thePeter Valchev
FP_C (Floating Point Control Quadword). From ross@NetBSD. Added a way to disable it with option NO_IEEE, which appears on the ramdisks to save space. This affects only programs compiled with -mieee, and what it essentially does is enabling infinities and NaNs, instead of generating SIGFPE on division by zero, overflow, etc. ok art, deraadt
2002-04-24Introduce a new file, machine/internal_types.h, to hold that specific archMarc Espie
type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
2002-03-14First round of __P removal in sysTodd C. Miller