summaryrefslogtreecommitdiff
path: root/sys/lib/libkern
AgeCommit message (Collapse)Author
2007-05-25"boundries" -> "boundaries" in various comments. Started by Diego Casati.Kenneth R Westerback
2007-05-14move hppa to __HAVE_CPUINFOMartin Reindl
input from miod@, ok kettenis@
2007-05-04more locc() diesTheo de Raadt
2007-05-04locc() is dead, spotted by miodTheo de Raadt
2007-05-04move bcd tables to the only place that uses them (the unused mcd driver);Theo de Raadt
ok miod
2007-05-04remove strcpy and strcat from the kernel; they are dead and unused code.Reyk Floeter
(OpenBSD does not use strcat/strcpy in the kernel, if people do it in external modules they should update their code) ok deraadt@
2007-05-03some shorter code is better codeTheo de Raadt
2006-11-17Move m88k memory copy and fill functions to libkern. The copy functions willMiod Vallat
no longer share the same code, but will be instead be duplicated from the same source, so that bcopy() and memcpy() do not need to check for overlap, and memcpy() and memmove() are shorter.
2006-11-09typoTheo de Raadt
2006-10-06import supah pieces from netbsdMichael Shalayeff
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-04-01hppa64 bitsMichael Shalayeff
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