christos
426a2fdd3b
Changing len from int to size_t caused an infinite loop. Noticed by chuq.
2006-01-25 13:46:09 +00:00
christos
8f67218a4b
PR/32613: Yves-Emmanuel JUTARD: Incoherencies in file sys/lib/libsa/net.h
...
- Make prototype of ether_sprintf() match the one in sys/net.
- Rename in_cksum to ip_cksum and fix its prototype. in_cksum() operates
on an mbuf and ip_cksum() operates on a plain buffer. We should not call
functions that operate on different arguments the same name (this is not
c++).
2006-01-24 17:07:19 +00:00
dsl
9813905f44
If _STANDALONE is defined, #include </lib/libsa/iodesc.h> instead of requiring
...
that the source that #includes net.h have lib/libsa in its include path.
In the non-_STANDALONE case make it easy for the user to supply their own iodesc.h.
2006-01-22 16:05:42 +00:00
dsl
05b5a4b77a
Adjust code so that it will work when _STANDALONE isn't defined.
...
Allows it to be used for mount_nfs when SMALL is set - eg install floppies/
2006-01-21 10:06:06 +00:00
uwe
ed89efb8bf
Define indp_t as signed int32_t, like ffsv1.c does.
2006-01-18 02:52:22 +00:00
christos
ddce00bf3c
Don't include zlib.h directly; redirect through libz.h; this mirrors how
...
libkern is done and let's us abstract where the real zlib.h is kept.
2006-01-14 20:16:44 +00:00
christos
a6d61f6709
constify write prototype.
2006-01-13 22:32:10 +00:00
perry
0f0296d88a
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:45:08 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
christos
50f8955b6e
64 bit inode changes.
2005-08-19 02:04:03 +00:00
christos
773f5f5489
rearrange free's and add a missing one.
2005-07-14 02:36:49 +00:00
junyoung
f465530831
Remove bcmp(). Use memcmp() instead.
2005-06-13 12:11:07 +00:00
junyoung
0ddaa77ca6
Oops, missed a semicolon.
2005-06-13 12:06:36 +00:00
junyoung
9bf0710d63
ANSI, De-__P(), and some cosmetic changes including
...
bcmp -> memcmp, bzero -> memset, bcopy -> memcpy.
2005-06-13 12:03:01 +00:00
jmc
6f594a3510
Provide HEXDIGITS as well (needed on mvme68k/stand)
2005-05-23 19:05:00 +00:00
christos
362a4a0bd5
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
...
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
2005-05-17 04:14:57 +00:00
dsl
0f5f503c2e
Use std form for a multi-line comment
2005-04-09 13:04:35 +00:00
perry
477853c351
nuke trailing whitespace
2005-02-26 22:58:54 +00:00
christos
af06392139
DECONST -> UNCONST
2004-07-01 19:04:43 +00:00
christos
b508e54615
constification fixes.
2004-06-30 13:59:22 +00:00
christos
84a3bc854d
- multiple inclusion protection.
...
- constify some prototypes.
2004-06-30 13:59:05 +00:00
christos
049fd5eb10
help with casts, and lint hints.
2004-06-30 13:58:16 +00:00
abs
3c2fbd8521
Add qsort to libsa (taken from sys/dev/vinum/vinumqsort.c) and use instead of
...
bubblesort in acorn32 bootloader. Reduces time to sort memory on A710 equipped
RiscPC from over twenty seconds to effectively instantaneous.
Update boot version to 3.30
2004-05-19 23:37:41 +00:00
drochner
ef369e0ed6
remove license clauses 3 and 4 from my cpoyright notices
2004-03-24 17:26:53 +00:00
drochner
ba017f8305
I was told I'm just an "author", not a "regent"
2004-03-24 16:21:06 +00:00
drochner
4281485619
remove license clauses 3 and 4 from my copyright notice
2004-03-24 16:03:06 +00:00
dsl
5101188f02
When searching for the superblock, check that the fs_sblockloc field
...
matches the location we read it from to ensure we don't have one of the
alternate superblocks.
Fixes part of PR kern/24809
2004-03-20 14:24:59 +00:00
dsl
7dbd0e094b
Make 'dependall' generate dependencies in these libraries.
2003-11-07 23:34:28 +00:00
he
202ba2bdcf
Add a prototype for memset().
2003-10-30 22:15:28 +00:00
he
91d100ed41
The paddr_t type is integral, so no longer compatible with NULL,
...
so use 0 instead.
2003-10-23 15:06:26 +00:00
itohy
faf6cfae4c
Rename local variables `read' to `nread' to shut up -Wshadow.
2003-10-18 06:39:12 +00:00
he
9ac0a9ed26
Um, undo last; libsa printf doesn't do %z.
2003-09-04 12:02:10 +00:00
he
bd42895755
Use the %zu format for size_t printing instead of cast + %lu.
2003-09-04 11:42:52 +00:00
he
022f01cef7
Cast size_t to u_long before printing, and use %lu instead of %d as format.
...
Fixes compilation on alpha.
2003-09-03 12:43:41 +00:00
dsl
fafabf93cc
Another attempt to get libsa to contain the right things.
...
- put a 'standards conforming' memcmp into memcmp.c
- make bcmp be a second label on the same code
- make bcmp.c be just #include "memcmp.c"
This means that libsa.o might contain both a memcmp.o and a bcmp.o, but
both contain the same code (defining both symbols) so it doesn't matter
which ld uses.
Saves worrying about which of bcmp.c and memcmp.c the architecture specific
Makefile requests.
2003-09-01 12:28:03 +00:00
fvdl
60ae17c7ae
Fix signed/unsigned warnings.
2003-08-31 22:40:13 +00:00
dsl
22588a3d36
The __strong_alias() seems to have to be in the file with the definition.
...
So make bcmp.c define bcmp and memcmp.
This should (?) fix the atari build.
(I've now no idea why the previous change defined memcpy for the alpha build.)
2003-08-29 19:53:18 +00:00
dsl
904ed3bb04
An ever sneakier way of making memcmp and bcmp use the same code:
...
__strong_alias(memcmp,bcmp)
2003-08-27 22:53:18 +00:00
dsl
d0db314661
Use memset not bzero to help shrink alpha bootxx_lfs
...
(sys/arch/alpha/stand/common/start.S also uses bzero, I don't know
any alpha opcodes so cant change that one...)
2003-08-27 22:42:08 +00:00
dsl
db4706faf9
Reduce memory footprint:
...
- use file buffer for all block reads
- only save a small amount of the indirect block list
Allows i386 bootxx_ufs code to load /boot from a filesystem with 32k blocks
while still fitting inside 64k of memory.
Code size reduced as well (by ~1k on i386).
It ought to be possible to use a buffer that is smaller than a filesystem
block. This might be needed in order to boot from filesystems with larger
block sizes.
2003-08-22 21:33:52 +00:00
elric
72e3ec4b0c
Should call ufs_close() if it isn't being built in.
2003-08-21 00:01:28 +00:00
elric
2a56d40c5c
make 'path' argument to cd9660_open 'const char *' and fix the fallout.
2003-08-21 00:00:52 +00:00
dsl
8453fb0040
make 'path' argument to ufs_open 'const char *' and fix the fallout.
2003-08-18 15:45:27 +00:00
dsl
d678060c05
KNF, fix a comment or two
2003-08-18 08:00:52 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
scw
5d91e08442
In lookup(), don't free "dir" on exit if we found a matching entry.
...
Otherwise the caller ends up with a pointer to free'd memory...
2003-07-15 13:27:07 +00:00
martin
34718fb25a
Protect opt_*.h include by _KERNEL_OPT
2003-06-23 14:17:24 +00:00
martin
d505b18964
Make sure to include opt_foo.h if a defflag option FOO is used.
2003-06-23 11:00:59 +00:00
scw
3722390978
Allow the default location of "machine/loadfile_machdep.h" to be
...
overridden if MACHINE_LOADFILE_MACHDEP is defined.
This makes life much simpler in the face of the myriad of
different boot options for the evb* ports.
2003-04-29 13:03:55 +00:00
tron
e71f089777
Remove two unused variable to fix a build problem.
2003-04-27 11:12:14 +00:00