summaryrefslogtreecommitdiff
path: root/sys/lib
AgeCommit message (Collapse)Author
2007-06-26Fix the description of loadfile() semantics in comment (and kill "andTom Cosgrove
and" at the same time).
2007-05-30Pull out the ELF loadfile pieces from the standalone libraries, so thatTom Cosgrove
both 32- and 64-bit versions can be created (previously only one or the other could be built for a given boot loader). Use this to allow the i386 and amd64 boot blocks to boot both ELF32 and ELF64 kernels (i.e. amd64 boot blocks can now load i386 kernels, and vice versa). Obviously the system must support LONG mode in order to successfully run the amd64 kernel once it is loaded. Advice and discussions from/with dale@ (going back three years). Much testing nick@ and todd@; thanks.
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
2007-03-16Re-initialise f_seekp to 0 on a successful read_inode() return.Marc Aurele La France
Fixes a problem that prevented the booting of a kernel that, to be found, needs more than one block per directory iin its path to be read. ok miod@, deraadt@
2007-01-04Revert 1.11 and load .shstrtab, as it is currently needed for /dev/ksymsMiod Vallat
proper operation.
2006-12-30do not load unneeded stringtab sections; avoids backward seeking; from ↵Michael Shalayeff
netbsd; tested by miod@ and martin@; deraadt@ ok
2006-11-29make it compile w/ debug defined; miod@ okMichael Shalayeff
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-11use SEEK_SET; chl@tuxfamily.orgTheo de Raadt
2006-10-06import supah pieces from netbsdMichael Shalayeff
2006-09-18Import a slightly stripped down strtoll(3) from stdlibMarco Pfatschbacher
into libsa as it is needed for boot(8) > 4G support. With help from mickey@ i386 and amd64 tests by me, alpha test by mickey@ OK mickey@, miod@, deraadt@
2006-09-18Add a hand rolled 64bit hex printf that can be used outside ofMarco Pfatschbacher
LIBSA_LONGLONG_PRINTF which requires 64bit math support. With help from mickey@ Tested on i386, amd64 and on alpha by mickey@ OK mickey@, miod@, deraadt@
2006-07-20adler32_combine() is not used by anything AND requires qdivrem so ifdef it ↵Michael Shalayeff
out; millert@ deraadt@ ok
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