is
e203553a11
Finish support for auto-generated libkern divsi3.S.
1999-09-21 09:43:38 +00:00
ross
80fd51b82b
Fix error flow that was broken 10 days ago in the previous commit.
...
Fixes the broken i386 boot blocks and closes port-i386/8432.
1999-09-20 11:58:15 +00:00
is
897dbf6c67
Use an identical source file for the libc and the libkern version of
...
divsi3.S, conditionally compiling the divide by zero case. This way,
after a change to the one, we can just copy it over to update the other
without creating ... problems. By Chris G. Demetriou.
1999-09-20 09:22:47 +00:00
is
6b3625a6ad
Oops. The overflow code should not have been copied from the userland
...
version.
1999-09-19 15:58:02 +00:00
is
6cf532dd3d
Synchronize with fixed libc version:
...
If unsigned dividend > INT_MAX, or signed dividend == INT_MIN, be careful
to not overflow the divisor when shifting it to the left.
1999-09-17 11:42:56 +00:00
msaitoh
99ca8c39f5
unused file (we have an asm version)
1999-09-16 15:04:13 +00:00
sommerfeld
e8a86fe7eb
Include <lib/libkern/libkern.h> instead of <sys/systm.h>.
...
(the former no longer has mem* prototypes).
Remove the b* vs mem* kludge.
This change allows standalone libkern to build on alpha again.
1999-09-16 00:06:46 +00:00
itojun
65363da25e
Merge in NetBSD/sh3 from cvs.kame.net repository.
...
Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)
Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
1999-09-13 10:30:21 +00:00
drochner
ff171dfb67
-don't use DEFS.h nor SYS.h in libkern
...
-remove setjmp.S, it's not useful for libkern
1999-09-10 15:39:04 +00:00
tron
2d8e6b7e97
Add prototype for memcmp() as suggested by Anders Hjalmarsson in
...
PR kern/8360.
1999-09-10 14:05:40 +00:00
drochner
7148323ba0
sync with libc
1999-09-10 13:21:14 +00:00
ross
54ab5cdc54
* Fix the volume zero recognition bug; it was interacting with a
...
feature to avoid rereads (which was added to work around bugs in
old SRM versions that wouldn't rewind DATs, but would return no
error on rewind callbacks)
* Initialize the volzero signature in ustarfs_open(), rather than as a
side effect of the first read.
* Centralize error retry.
1999-09-10 07:22:03 +00:00
drochner
9b5129f15a
add a function to verify a password against an in-core md5 sum
1999-09-09 15:52:37 +00:00
chs
d1638a0354
sync with libc:
...
use RODATA() instead of ENTRY() for __ffstab so that it works when profiling.
1999-09-06 19:01:04 +00:00
ross
ad3beb5695
Fix read retry error case. Closes kern/8300.
...
While here, add automatic error retry up to 3 times.
1999-09-01 02:32:26 +00:00
kleink
ed6d5be482
Sync with libc: use _ALIGN_TEXT from <machine/asm.h>.
1999-08-23 09:07:35 +00:00
simonb
9e0209e2c8
Remove prototype for find_inode().
1999-08-19 00:19:16 +00:00
cgd
b43600a96e
note that these files should be easily diffable (until they share common code
1999-08-18 21:33:50 +00:00
cgd
b4ecb1b468
Add a standalone LFS implementation. Currently not merged with ufs (FFS),
...
but should be (and will be before too long). Until then, it and ufs.?
should be easily diffable.
1999-08-18 20:04:39 +00:00
cgd
cd10ee60f6
set f_seekp to 0 in ufs_open() before returning. It ended up being 0
...
in most situations, but not always: if the terminal path name component
being opened couldn't be found in the first fs block of the directory
that contained it, f_seekp would be non-zero (and Bad Things would result).
1999-08-17 02:26:32 +00:00
drochner
756fbc1ee8
fix damage in error handling crept in in 1.4
1999-07-12 12:34:57 +00:00
christos
b953fb0414
bring back my friend the twiddle.
1999-06-22 22:44:16 +00:00
christos
16e8020994
Nuke obsolete printf comment.
1999-06-22 22:09:49 +00:00
cgd
bb7cdd7c0b
don't bother initializing 'freelist' -- it can be bss
1999-05-28 19:31:51 +00:00
eeh
4f46ad62b9
Find the udivrem.m4 in the proper directory.
1999-05-09 18:51:36 +00:00
pk
502e9c5778
Add .PATH.m4
1999-05-09 09:16:15 +00:00
eeh
06e7ea9afe
Allocating a byte-array and then accessing it as 32-bit integers just won't work
...
on any machine that has alignment restrictions.
1999-05-09 00:22:46 +00:00
drochner
e6b49c7863
move intoa() from libsa:net.c to libkern, turn inet_ntoa() into a macro,
...
nuke ip_convertaddr()
1999-05-07 14:49:52 +00:00
drochner
192b3c733c
Build libraries for kernel/standalone code from within their compilation
...
directories and use .PATH to lookup the source files.
(Formerly, the libs were built from the source dirs, with MAKEOBJDIR
set to the compilation directory.)
This solves 2 problems:
-"mkdep" and "make" are now consistent about the file lookup, this fixes
bad interactions with amd reported in PR bin/7374 (Arne Juul) and
lossage reported by Andrew Gillham ("obj" dirs and relative paths still
don't work well together)
-kernel compile trees can be moved around without forcing a new
"make depend" - fixing PR kern/4021 by Martin Husemann
1999-05-07 14:28:50 +00:00
tsubai
a5bf1bf4a2
Copy from libc.
1999-05-05 12:36:40 +00:00
christos
a2c49bf69e
Nuke local prototype for closeall(). Add a new define LIBSA_NO_CLOSE so that
...
we don't try to close files, if we are not using any other I/O.
1999-04-28 13:24:12 +00:00
christos
2da63ed66f
cosmetic printf change
1999-04-28 09:12:24 +00:00
christos
0fdd24ecdc
MI loadfile (used by i386, pmax and sparc shortly)
1999-04-28 09:08:50 +00:00
christos
cd9b06e204
Don't try to use <stdio.h> (when -DDEBUG) if we are -D_STANDALONE or -D_KERNEL
...
Now the boot blocks compile with -DDEBUG
1999-04-22 16:32:01 +00:00
cgd
227295dad5
set lflag when printing pointers with %p
1999-04-20 23:04:17 +00:00
simonb
955a0aba21
Until <bsd.lib.mk> is fixed, don't try to guess whether or not to
...
use abicalls in kernel source.
1999-04-20 00:45:24 +00:00
ws
5423093850
Modify syncicache on PowerPC from an inline to a real function.
...
Support different cache line sizes with the same object code in userland.
While here, move the function to implementation name space.
1999-04-17 21:16:45 +00:00
simonb
3395bf67b0
For the "update-sources" target, don't copy any src/lib/libz sources
...
that differ only in the first line (the NetBSD RCS header).
1999-04-15 02:28:36 +00:00
simonb
351120e29a
Add uncompr.c to LIBZSRCS and zalloc.c to SRCS.
1999-04-15 00:52:58 +00:00
simonb
077cae2629
A simple implementation of zcalloc and zcfree in terms of the libsa
...
alloc and free.
1999-04-15 00:50:39 +00:00
simonb
fe27047537
Add source file, copied from lib/libz/uncompr.c.
1999-04-15 00:48:03 +00:00
christos
d15d073dcf
add getopt prototype, and externs
1999-04-14 15:23:27 +00:00
drochner
b7c510645f
move "ls" utility from i386/stand/libsa here
1999-04-14 11:32:50 +00:00
drochner
2269d36c97
make libkern compile in userland - for testing purposes
1999-04-13 19:00:30 +00:00
drochner
b6ab6f5dc1
This was an n_long, not u_long, so u_int32_t is correct.
1999-04-12 17:23:23 +00:00
ross
4634c0e3d4
libkern just got an inet_addr(), but it won't compile, no prototype. Cleanup...
...
* Add prototype to libkern.h.
* Remove the almost-identical-copy from libsa/net.[ch].
* Change its type back to the (wrong, but harmless) historical one. (u_long)
* Kill the XXX local prototype in nfs_bootparam.c
1999-04-12 01:05:01 +00:00
gwr
c0300346be
Add inet_addr.c (for nfs_bootparam.c)
1999-04-11 22:08:06 +00:00
simonb
fa38a5236c
The "found" label is not used if ALLOC_FIRST_FIT is defined.
1999-04-11 04:02:37 +00:00
simonb
6db650781c
Don't compile in sanity checks for old file systems if
...
LIBSA_NO_COMPAT_UFS is defined.
1999-04-01 05:27:54 +00:00
simonb
8f8c1f41d9
It's no use having a memcmp() that calls bcmp() if there's no bcmp() in
...
the SA library. Basically copied from ../libkern with a few less #if's
and #include's.
1999-04-01 05:12:20 +00:00