matt
19cb1fa295
Don't define _NOREGNAMES since all of libkern is now compiled with it.
2011-01-17 07:07:36 +00:00
matt
156ba6dbc5
Add -D_NOREGNAMES
2011-01-16 03:22:19 +00:00
jakllsch
dc93c72587
Pacify Clang -Wformat-security.
2011-01-06 02:45:13 +00:00
jakllsch
71481e188f
Zero the in-memory super block after allocation. It contains a pointer
...
that, if not properly initialized, could be improperly deallocated.
2011-01-02 21:37:01 +00:00
christos
e5c1816344
fix slightly wrong format.
2010-12-26 23:55:52 +00:00
he
b7a6da19d6
Print size_t and ssize_t with %zd, not just %d.
...
(How did this build before?)
2010-12-26 17:48:37 +00:00
jakllsch
fbe9cca8ce
Correct recently exposed printf format problem.
2010-12-25 01:08:44 +00:00
christos
62010e9c69
panic takes a printf format too.
2010-12-24 23:12:28 +00:00
ws
45d6c7c30c
Allow multiple path separators between/after directory names.
...
Problem found while analyzing PR kern/43963.
2010-10-18 11:08:26 +00:00
jym
b60c232a64
Use standard ELF types for ELF code, instead of paddr_t. paddr_t should
...
only be used for low level code, like virtual memory internals.
2010-09-16 00:26:49 +00:00
pooka
f3c7386990
Rename jump label to something a little more negative. No, I'm
...
not doing it for cosmetic value or out of angst. See, PIC_PROLOGUE
on i386 uses the "1" label internally. Now, everything would be
fine and dandy for the first 551245 calls to random. After that
p+q is negative and the jump is taken. However, it is taken into
the middle of PIC_PROLOGUE instead of where upon superficial
examination we assumed we are jumping. This causes wrong(tm) things
to happen and "ret" triggers a jump into hyperspace.
(no, I did not see that coming)
2010-09-07 20:35:50 +00:00
christos
e5690d15fe
PR/43830: Valery Ushakov: libsa/loadfile_elf32.c loads .shstrtab into
...
unallocated memory. Don't load if counting.
2010-09-02 17:10:14 +00:00
christos
bd0a22e5e8
add a LOAD_BACKWARDS flag on sections that might load backwards.
2010-08-25 16:30:01 +00:00
christos
f2af08161f
Add a new LOAD_MINIMAL flag to avoid loading sections that might seek backwards
...
and are not really needed like the note and the symbol section.
2010-08-25 16:23:23 +00:00
chs
b078ae7e33
print the correct error code if nfs_mount() fails.
2010-08-08 18:38:31 +00:00
pooka
2b801a94d6
fix typo
2010-05-11 21:50:35 +00:00
rmind
84b7918250
Fix KASSERTMSG() to be consistent with KASSERT() logic, not inverted.
...
Hi matt@!
2010-04-25 15:39:41 +00:00
jakllsch
a6fc850cd8
Ensure cd9660_read() gives accurate EOF indication.
...
Should fix PR/42983.
2010-03-22 16:57:54 +00:00
chs
04aa4da3b0
fix copy{in,out}{,str}() to return the error returned by uvm_fault().
...
fixes PR 41813.
2010-03-20 23:31:27 +00:00
uwe
73fb9af349
Add memset to libkern on vax, moving existing memset.S to src/common.
...
While kernel source code is supposed to use <machine/macros.h> via
<sys/param.h> and pick an inline asm version from there, gcc itself
can generate direct calls to memset() for structure initialization, so
the symbol must be provided.
Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to
initialize a struct in uvm_fault_internal().
2010-03-15 11:46:49 +00:00
darran
38c72d335c
DTrace: Add support for CTF sections in the netbsd elf image, load these
...
at boot.
Add a ksyms_mod_foreach() function to iterate a callback function over the
set of elf symbols for a specific module (netbsd included).
Add kern_ctf.c and mod_ctf_get() to allow the retrieval and decompression
of CTF sections for a specific module.
2010-03-12 21:43:10 +00:00
martin
0eda8d8e5e
Add a prototype.
2010-02-11 21:28:16 +00:00
martin
dd8b03031c
fix includes
2010-02-10 23:33:56 +00:00
martin
9b40c0f8c3
Utility function to lookup a symbol value in an elf symbol table - allows,
...
for example, a bootloader to access symbols in the just loaded kernel
(or module).
2010-02-10 21:54:47 +00:00
pgoyette
d03b2461a3
Remove kern_assert.c - it's not needed here cuz it's already pulled in
...
by sys/lib/libkern/Makefile.libkern
OK pooka@
2010-01-20 18:13:40 +00:00
pooka
793cda8e13
__assert.c -> kern_assert.c
...
(I don't fully understand why __assert.c is needed here. maybe it
can be removed, but I don't have time to do a full set of mips builds
tonight)
2010-01-20 03:36:26 +00:00
pooka
654415b2b7
Get rid of last "easy" kernel symbols starting with __:
...
__assert -> kern_assert
__sigtimedwait1 -> sigtimedwait1
__wdstart -> wdstart1
The rest are MD and/or shared with userspace, so they will require
a little more involvement than what is available for this quick
"ride the 5.99.24 bump" action.
2010-01-19 22:28:30 +00:00
tsutsui
1aa1df4953
Add long long (%lld etc.) support and width (%02x etc.) support
...
in libsa printf(3). Disabled by default but enabled by
-DLIBSA_PRINTF_LONGLONG_SUPPORT and -DLIBSA_PRINTF_WIDTH_SUPPORT.
Provided by tnozaki@ for my libsa debugging. Thanks!
2010-01-19 15:26:45 +00:00
joerg
5591cac167
Keep arc4_i and arc4_j synchronised after a rekeying. This prevents
...
accidentally ending up in a short ARC4 cycle.
2010-01-18 20:54:54 +00:00
joerg
56da4fa7b5
Move AMD64's bswap64 implementation from libc to src/common and share it
...
with the kernel.
2010-01-14 02:09:46 +00:00
drochner
b265b3ebf8
RFC783 says the ErrMsg sent with an ERROR packet needs to be
...
NUL-terminated
2010-01-13 10:56:17 +00:00
elad
251a5f50bc
Don't abuse INSECURE for allowing exec() to load files not owned by uid 0.
...
Adjust references where this has been used.
2009-12-29 20:21:45 +00:00
uebayasi
e3ac1d9304
Build fix for the mips64 merge:
...
- If memset2.c is in ${SRCS}, exclude conflicting memset.c.
- If MD byte_swap_8.* is in ${SRCS}, exclude conflicting bswap64.c.
2009-12-14 12:18:14 +00:00
matt
e110dba586
Merge from matt-nb5-mips64
2009-12-14 00:47:10 +00:00
skrll
af4728306c
Rename L_ADDR to L_PCB
2009-12-10 07:57:02 +00:00
skrll
b7b0345e3d
Remove U_PCB as requested by rmind.
...
Same code before and after.
2009-12-01 09:06:16 +00:00
uebayasi
619d7bed3d
Redo the previous inverted logic. Sort alphabetically.
2009-11-21 13:37:18 +00:00
uebayasi
dd7316895f
Don't build quad support code on 64-bit platforms.
2009-11-21 13:30:23 +00:00
snj
febb7cce65
Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder).
2009-10-21 23:12:09 +00:00
bouyer
6d07b400dc
Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
...
for the booring work !
2009-10-19 18:41:07 +00:00
pooka
5e1c61c660
Don't build spcopy for rumpkern. Fixes hp700 build failure pointed
...
out by nick.
XXX: spcopy should be in the main kernel instead of libkern in any case
2009-09-22 09:57:16 +00:00
he
78569b98fc
Uh, move loadfile_aout.c in under the check for ${SA_USE_LOADFILE}
...
again, so that it's not unconditionally compiled, fixing the previous.
2009-08-25 14:10:54 +00:00
he
e408f74353
If we're on mips, don't build exec.c or loadfile_aout.c, since they
...
both deal with a.out format executables.
2009-08-21 21:12:02 +00:00
matt
7b2f3a5640
Change include of <sys/exec.h> to <sys/exec_aout.h> since these files want
...
the a.out stuff.
2009-08-16 13:26:16 +00:00
dsl
eaf64f1b6c
Move that majority of the 'SRCS+= foo.c' into the main Makefile.libkern.
...
Any .S files added by the arch/*/Makefile.inc cause the .c file to
be excluded.
Specific exclusions added using NO_SRCS to match previous files.
At least sparc, sparc64, i386, amd64 and vax GENERIC still build.
(There is a fubar with the naming of the byte-swap files ...)
2009-08-14 19:23:53 +00:00
skrll
89ec5e3d9c
Put back random.S. Hi dsl!
2009-08-12 22:49:37 +00:00
dsl
e46010532d
Remove some .c files accidentally left on the .S lines
2009-08-12 21:24:57 +00:00
dsl
cfac8834d7
Split the lines that add .c to SRCS from those that add .S
...
No changes (apart from the order) intended.
2009-08-12 21:20:40 +00:00
dsl
6f5236b423
Use stuff from libc/Makefile to auto-remove .c files if a .S has been added.
...
Use it to dispose of tne .c files that were already only conditionally
added.
2009-08-12 21:18:42 +00:00
joerg
0578c2ad0f
Move popcount et al to src/common and add popcount32/popcount64.
...
Requested by rmind@. MD should now override popcount32/popcount64 and
provide the aliases as fitting.
2009-07-21 14:55:32 +00:00
kiyohara
b922a542ab
Fix little bit, and add a few files.
...
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
2009-07-20 11:23:04 +00:00
roy
5f399f5c68
Use a function to add extra data to the vendor area so that data added
...
remains constant for both DISCOVER and REQUEST messages.
2009-07-10 12:16:31 +00:00
roy
4cd4e97af9
We should request the DHCP parameters we need.
2009-07-10 02:55:42 +00:00
he
b1946a6b32
Back out the addition of memset.c to the vax libkern, and instead do
...
as tsutsui@ suggested, and include <sys/param.h> in sha2.c instead.
On the vax, this causes <machine/macros.h> to be included, and it contains
that machine's memset() macro+inline.
2009-06-18 15:22:24 +00:00
he
78443215c7
Add memset.c, so that the references from sha2.c can be satisfied, and
...
so that the kernel and puffs applications can link again.
2009-06-18 07:56:04 +00:00
pgoyette
28469fc250
Implement snprintb_m(3) to provide multi-line bit/bit-field decode.
...
Discussed on tech-kern.
2009-05-13 02:50:31 +00:00
roy
235c0d4ef6
We should check for potential overflows.
...
ok: martin
2009-05-06 23:56:49 +00:00
skrll
8516d55745
Merge nick-hppapmap.
...
This is a port of the OpenBSD pmap and trap handling code to get us
- Performance boost on some/all machines.
- Well on the way to PA2.0 (in 32bit mode) support. Several
machines probe hardware, but fail sometime after interrupts
are enabled.
Other things changed / fixed on the branch are
- update autoconf to use the OpenBSD code.
- com @ dino is very close to being supported.
- HPPA_REDZONE has been replaced with a working redzone which
is enabled with DIAGNOSTIC.
- UPAGES has been halved in size.
- power(4) from OpenBSD to fix a few bugs.
- updated list of modules from OpenBSD.
- initial ports of uturn(4), astro(4) and elroy(4).
- update some copyrights (remove advertising clause, etc.)
Thanks to mjf for some of the above, testing and listening.
2009-04-30 07:01:26 +00:00
lukem
94ec558cb9
fix sign-compare issue
2009-04-11 10:57:55 +00:00
he
c05f1c0f90
Make the function declaration the same for the big-endian case as
...
for the little-endian case, and consistent with the libkern.h
declaration. Fixes build problem for at least hp700 and evbbarm-eb.
2009-03-26 22:18:14 +00:00
tls
3559a90485
Fix compilation error on 64-bit platforms.
2009-03-25 19:21:39 +00:00
tls
a34cd18b76
Fix build problems caused by crc32 addition to libkern. Also, this makes
...
the i386 bootblocks about 2K smaller than they were before we monkeyed
with crc32 at all.
2009-03-25 18:41:06 +00:00
darran
36ea3668b9
Fixes PR kern/41069 and PR kern/41070.
...
Extends the Opencrypto API to allow the destination buffer size to be
specified when its not the same size as the input buffer (i.e. for
operations like compress and decompress).
The crypto_op and crypt_n_op structures gain a u_int dst_len field.
The session_op structure gains a comp_alg field to specify a compression
algorithm.
Moved four ioctls to new ids; CIOCGSESSION, CIOCNGSESSION, CIOCCRYPT,
and CIOCNCRYPTM.
Added four backward compatible ioctls; OCIOCGSESSION, OCIOCNGSESSION,
OCIOCCRYPT, and OCIOCNCRYPTM.
Backward compatibility is maintained in ocryptodev.h and ocryptodev.c which
implement the original ioctls and set dst_len and comp_alg to 0.
Adds user-space access to compression features.
Adds software gzip support (CRYPTO_GZIP_COMP).
Adds the fast version of crc32 from zlib to libkern. This should be generally
useful and provide a place to start normalizing the various crc32 routines
in the kernel. The crc32 routine is used in this patch to support GZIP.
With input and support from tls@NetBSD.org .
2009-03-25 01:26:12 +00:00
tsutsui
9c6c3c68dd
Don't use gcc's __builtin_*() functions #if defined(_STANDALONE)
...
because they could be larger than __OPTIMIZE_SIZE__'ed libsa ones and
__builtin_memcpy() on vax rejects NULL (i.e. copying from/to address 0x0).
No particular comments on tech-toolchain.
Tested on alpha, arc, cobalt, hp300, i386, landisk, macppc, news68k, sgimips,
sparc, sparc64, sun3, and vax (on simh).
2009-03-23 13:41:00 +00:00
tsutsui
9d27968892
Allow MD standalone Makefiles overriding MI libsa settings
...
by SA_EXTRADIR variable passed via SAMISCMAKEFLAGS.
2009-03-20 11:31:30 +00:00
tsutsui
3c7a0b7662
Revert previous. MI libsa doesn't provide bcmp().
2009-03-19 10:20:54 +00:00
he
3b9146b27b
Add a prototype for the bcmp() function as well.
2009-03-19 08:38:12 +00:00
cegger
c363a9cb62
bzero -> memset
2009-03-18 16:00:08 +00:00
tsutsui
d0b9e6c924
- remove bcmp(9), bcopy(9), and bzero(9) from libkern since <sys/systm.h> has
...
macro which replace them with mem*() functions in #ifdef _KERNEL as noted
in man pages
- move declarations of bcopy(3) and bzero(3) into <lib/libsa/stand.h>
since they are still in libsa for some MD standalone sources
(I guess all bcmp(3) in standalone sources have been replaced with memcmp(3)
but they should be replaced with memcmp() anyway)
2009-03-18 12:25:06 +00:00
cegger
248cdce283
ansify function definitions
2009-03-15 21:33:51 +00:00
dsl
82357f6d42
ANSIfy another 1261 function definitions.
...
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8
Change about 4500 of the K&R function definitions to ANSI ones.
...
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
dsl
02cdf4d2c8
Remove all the __P() from sys (excluding sys/dist)
...
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +00:00
cube
9f700fdcd2
Follow the syntax of file conditionals for makeoptions, using minor case
...
versions of options.
2009-03-13 18:25:58 +00:00
tsutsui
82127a2dd2
Use EXT2_DINODE_SIZE() to get offset of inode, not struct ext2fs_dinode array.
2009-03-02 10:25:00 +00:00
christos
6eda90fc68
catch up with variable inode size.
2009-03-01 19:37:16 +00:00
isaki
80a3550743
Revert previous one. It has already fixed in net.h,v 1.25.
2009-01-31 06:22:46 +00:00
isaki
28468b1f07
Fix build error. Declare getsecs() before (re-)defining it.
2009-01-31 04:11:28 +00:00
he
fddc3457b2
Change the use of formally undocumented features, which have now been
...
made to fail. Specifically, change
.ifdef(SYMBOL) -> .ifdef SYMBOL or .if defined(SYMBOL),
and corresponding for .ifndef.
Also correct one error in lib/libm/Makefile (.ifdef (${MKCOMPLEX} != "no")?!?).
2009-01-18 20:42:11 +00:00
tsutsui
4459b5fdab
I really hate silly hacks inside #ifndef _STANDALONE in libsa sources...
2009-01-18 02:59:02 +00:00
tsutsui
3f38114d96
Remove __P().
2009-01-17 14:00:36 +00:00
tsutsui
69cf32a782
Replace time_t values in libsa sources with the following two types
...
to avoid unnecessary 64 bit ops which would make binaries larger:
satime_t (currently unsigned int):
numbers in seconds returned by the machine dependent getsecs() function
which are used to measure relative time
saseconds_t (currently int):
numbers in seconds used to specify timeout to network drivers
Per discussion on current-users.
2009-01-12 11:32:43 +00:00
uwe
533bbdff7e
These copy of gcc millicode routines is now included in librump (that
...
sucks in all libkern sources), so mark them ".hidden". I'm not sure
if this is the best course of action (dropping millicode from librump
might be a better idea), but it's the quickest fix to get sh3 builds
going again for now.
2009-01-07 22:15:18 +00:00
pooka
fed3c1df66
Fix PIC version, it was missing one dereference. Thanks to spz
...
for access to m68k hardware for testing.
2009-01-06 01:24:56 +00:00
pooka
cbd549e79b
Fix previous. I have no idea what crack I was on when I "tested" them.
2009-01-05 01:16:09 +00:00
pooka
59f8fc8f6e
Split variables out of Makefile into Makefile.libkern so that we
...
can easily just .include it for the proper SRCS etc. definitions
in case we're interested in the files but not in building an actual
libkern.{a,o}. for librump
2009-01-04 18:00:55 +00:00
pooka
c5889d575e
Support PIC for inclusion in librump. (m68k untested)
2009-01-04 17:10:46 +00:00
christos
9a5d3f2817
replace bitmask_snprintf(9) with snprintb(3)
2008-12-16 22:35:21 +00:00
ad
5d7468ebd2
msdosfs -> msdos
2008-11-24 11:27:20 +00:00
matt
0ad7281825
Add new ptree (Patricia / RADIX tree) implementation to NetBSD.
2008-11-20 23:50:08 +00:00
ad
5bf641af07
For the x86 boot loader, autoload a kernel module corresponding to the
...
root file system type.
2008-11-19 12:36:41 +00:00
ad
c6555ead19
Our qsort() is inappropriate for kernel use because it makes recursive
...
calls. Replace it with a kheapsort() function in kernel. Pointed out
by tron@.
2008-11-16 16:15:58 +00:00
ad
e5c4df967a
Make qsort() available in libkern.
2008-11-16 15:01:26 +00:00
matt
74b13f5d12
Use RET/RETc as appropriate
2008-10-15 18:07:46 +00:00
matt
02ed53f8f6
Need to be __clz[sd]i2
2008-10-14 17:23:33 +00:00
matt
01a00ce83a
Add a _clzsi2 for armv4 platforms.
2008-10-14 03:16:20 +00:00
christos
a93db399ff
add a LOAD_NOTE flag to make loading the note optional.
2008-09-25 20:59:38 +00:00
gmcgarry
0de5da9678
Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
...
preprocessor macros.
2008-09-08 23:36:53 +00:00
gmcgarry
3c9a95916d
Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
2008-08-29 00:02:21 +00:00
matt
41f74018fd
Add KASSERTMSG(e, msg) for umass.c. XXX directly calls panic.
2008-07-02 15:25:08 +00:00
matt
67b10687dc
Add CTASSERT (compile time assert) from FreeBSD.
...
Causes sources to fail to compile:
<file>:<line>: error: size of array '__ctassert<line>' is negative
2008-07-02 14:39:20 +00:00
matt
48717a981d
Move rb.c from sys/lib/libkern to common so it can be in both libc and libkern.
2008-06-30 19:03:59 +00:00
matt
da597625e8
Add some significant improvements to the red-black tree implementation.
...
Shrink size of rb_node by 25% (merge parent/father pointer and flags).
2008-06-30 16:36:18 +00:00
matt
d982b23b25
Nuke MOVED support. Move rb_parent out of rb_nodes and make it it's own
...
member.
2008-06-25 04:56:08 +00:00
christos
e4992af055
Make rb use masks instead of bitfields, because it is more portable (bitfields
...
to unsigned long are not portable), and produces tighter code. Tested on
amd64. approved by gimpy.
2008-06-25 03:06:25 +00:00
christos
e9ad0762c7
Include cpuset.
2008-06-15 20:34:18 +00:00
tron
a36c431c01
Use proper C99 syntax to statically initialize a "rb_node" structure to
...
fix the build.
2008-06-06 12:29:59 +00:00
ad
13c7f6ff40
Move lib/libkern/rb.h to sys/rb.h, so it can be used by kernel header
...
files.
2008-06-04 14:31:15 +00:00
ad
e69aa3297c
Take $MACHINE into account when looking for modules.
2008-05-20 16:04:08 +00:00
ad
5cb8dd92fe
Extract kernel version from the note section and stuff into a global
...
netbsd_version.
2008-05-20 14:41:06 +00:00
chris
f10d13fdee
Extend tftp_stat to return the size of the file, rather than -1.
...
It's not very efficient, as it has to read the whole file, and count the
block sizes. However, this is the only way to work out the size using the
tftp protocol.
This is needed to support loading modules from a tftp server with pxeboot.
2008-05-11 11:29:12 +00:00
mlelstv
a4002c76a9
There is also ARP_DEBUG for those who need it.
2008-05-11 04:53:15 +00:00
ad
1717063e94
Let twiddle() be disabled at runtime.
2008-04-30 16:18:09 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
garbled
1ad3697abd
Back out the ppc assembler changes for memcpy/memmove/memcmp on evbppc.
...
It breaks the explora because the cpu (403) cannot deal with unaligned
accesses. Reported by Juergen Hannken-Illjes.
2008-04-18 05:34:04 +00:00
tsutsui
52dab5df0c
Fix a warning in #ifdef RARP_DEBUG. PR kern/20314
2008-04-05 05:15:33 +00:00
christos
efe07f9c02
fix again
2008-03-25 23:24:38 +00:00
christos
55feb339a9
fix bcopy again
2008-03-25 23:23:13 +00:00
christos
8ac6bd68d8
fix bcopy prototype
2008-03-25 23:21:04 +00:00
christos
3d8daf0799
add a prototype for bcopy.
2008-03-25 23:19:51 +00:00
christos
19d181b7f5
add bcopy and bzero for loadfile for now. Should get rid of it.
2008-03-25 23:12:31 +00:00
christos
9ebe85fa97
remove stray comment
2008-03-25 22:55:25 +00:00
christos
8f0af7be4b
fix typo
2008-03-25 22:54:54 +00:00
christos
e1b834bdd8
- use mem* instead of b* routines, and kill the b* routines.
...
- use the mem* routines from libc.
XXX: There will be some lossage, but I am fixing it.
2008-03-25 21:23:50 +00:00
rtr
16ebb0dc79
when the char being searched for is not found strchr() must return NULL
...
not a pointer to the terminating '\0'. the only time we return a pointer
to the terminating '\0' is when the char being searched for is '\0'.
fixes problem observed booting -current install
http://mail-index.netbsd.org/current-users/2008/03/20/msg001445.html
2008-03-21 10:24:13 +00:00
he
0db6a6b023
When compiling for _STANDALONE, omit a bunch of headers which aren't really
...
needed and which trigger build problems.
(These two files should probably be unified and put under common/...)
2008-03-18 20:11:43 +00:00
dsl
2bb9a33a0f
Add a strchr() - for dosfs in particular.
...
The i386 asm version in src/common is rather larger than this one.
2008-03-14 22:27:32 +00:00
dsl
2694fcbd4b
Add a local strcasecmp() instead of pulling the bloat from libkern.
2008-03-14 22:21:53 +00:00
tsutsui
5d07958fe3
Fix typo in comment.
2008-02-25 15:33:20 +00:00
matt
c2b9622034
Don't need to that particular in mtprng_random(). Use 2 values instead of 8.
2008-02-17 22:49:11 +00:00
matt
ab1d549cb1
Improve my version of mtprng_random. Reshuffle things. Add an compatible
...
version of init_by_array.
2008-02-02 01:13:04 +00:00
simonb
e99e83279b
Check _STANDALONE as well as _KERNEL when choosing headers to include.
...
Also pull in <lib/libkern/libkern.h> so we get prototypes and a struct
mtprng_state declaration.
2008-01-31 08:23:13 +00:00
simonb
4cbecce6c5
Have mtprng_random() call mtprng_rawrandom() to get more
...
random data instead of calling itself. Much nicer to the
stack...
2008-01-31 03:37:13 +00:00
simonb
ba30aadce1
Check against correct constant in a KASSERT().
2008-01-31 03:34:04 +00:00
matt
3056c4f69a
Add Mersenne Twister prototypes and state struct to libkern.h
...
Cleanup a comment. s/RLEN/MTPRNG_RLEN/g s/POS1/MTPRNG_POS1/g
Remove unneeded test code.
2008-01-31 02:36:09 +00:00
matt
cd27642585
Add Mersenne Twister PRNG implementation. This is a new implementation.
2008-01-31 02:09:54 +00:00
simonb
d8de5b102b
Remove support for NetBSD/pc532.
2008-01-09 11:25:58 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
tsutsui
e5434d17a5
ANSIfy.
2007-12-29 17:54:41 +00:00
tsutsui
c3a9c74a16
ANSIfy and some KNF.
2007-12-29 16:54:49 +00:00
jmcneill
e38d794d0c
libkern bits for usermode port.
2007-12-29 14:39:33 +00:00
perry
b6a2ef7569
Convert many of the uses of __attribute__ to equivalent
...
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
perry
970ad9314d
Remove __attribute__((__noreturn__)) from things already marked __dead
...
Found by the department of redundancy department.
2007-12-24 15:46:45 +00:00
joerg
45f2572a92
Add virtual i8254 for x86emu.
2007-12-21 17:45:50 +00:00
joerg
151d068190
Add glue for x86emu and build it as part of i386/ALL.
2007-12-13 17:25:19 +00:00
tsutsui
2dc9b9cb28
ufs_ls.c doesn't belong to lfs.
2007-12-08 16:00:25 +00:00
isaki
48e1704028
Use standard error code (EIO) instead of standalone error code
...
(ESHORT). Because loadfile_*() is used with or without
_STANDALONE, therefore, don't use error code in "saerrno.h".
Pointed out by and discussed with he@.
2007-12-03 09:51:30 +00:00
tsutsui
0a953ce07e
- also pass correct size on dealloc() of in-memory superblock data
...
- also call dealloc() for group descriptor blocks
2007-12-02 06:47:43 +00:00
tsutsui
8d7676534f
Allocate correct size for in-memory data struct m_ext2fs
...
(which is larger than SBSIZE).
2007-12-02 06:12:35 +00:00
tsutsui
48db0a5603
- fix description about index structure of an inode to match ext2fs_dinode
...
- put more byteswap ops on reading block numbers in indirect blocks
(XXX: untested on big endian machines)
2007-12-02 05:23:40 +00:00