christos
de149fb70f
bring the casts to the operands, not the operation results.
2012-03-22 15:57:29 +00:00
he
2fa47ecfcb
Lint seems to prefer that we cast via (void*) and not directly to
...
(u_char*), so follow suit.
2012-03-21 20:02:56 +00:00
matt
567219e1d7
Remove __P usage.
...
Convert to C89 prototypes.
2012-03-20 16:21:41 +00:00
martin
4eb2215803
shut up lint
2012-03-17 21:40:21 +00:00
martin
9328833c03
Mark linted
2012-03-17 20:57:35 +00:00
christos
32c2c5c3f9
don't include <sys/cdefs.h> from assembly.
2012-03-14 16:50:34 +00:00
christos
a5fd370a21
Casts and type changes to fix portability issues.
...
- int -> size_t
- adjust width of RHS of shift
- adjust widths of types
2012-03-09 15:41:16 +00:00
apb
aaa101ee8d
remove trailing white space
2012-03-02 16:22:27 +00:00
apb
2953114330
Change CTASSERT to __CTASSERT (the spelling used in <sys/cdefs.h>),
...
include <sys/cdefs.h> so that it will be defined,
and move it to a better place.
The previous CTASSERT would never have been used because
of the ifdef. If it had been used, it would have had
unwanted effects from being just after the "static inline"
that appears when BZERO is defined.
Also move the __RCSID to a more conventional location.
2012-03-02 16:19:15 +00:00
joerg
76acd27422
Make sure to create the right aliases.
2012-02-28 20:41:19 +00:00
joerg
e8bec33be1
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
...
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.
2012-01-20 14:08:04 +00:00
joerg
4041630e67
libkern.h maps memcmp, memset and strcpy to the compiler builtins on
...
some platforms, so make sure to #undef them first.
2011-11-08 16:52:11 +00:00
yamt
d837abef06
comments
2011-11-02 13:49:43 +00:00
yamt
d1036328f3
add radix_tree_empty_tagged_tree_p, a "tagged" variant of
...
radix_tree_empty_tree_p.
2011-10-25 14:11:27 +00:00
yamt
759124c59e
- add functions to scan the tree in the reverse order
...
(i wonder if it's the longest function name in the tree)
- assertions
- comments
- fix and update unittest
2011-10-14 19:42:14 +00:00
yamt
11a7e56d00
unwarp a short line
2011-10-14 16:15:54 +00:00
yamt
ccdce53c95
constify
2011-10-14 16:10:47 +00:00
yamt
82698115b1
fix "get_tag" result of unittest
2011-10-14 16:06:05 +00:00
yamt
e4944d443e
make the output of unittest a little machine-readable
2011-10-14 15:31:35 +00:00
yamt
1414ffd151
int -> unsigned int where appropriate
2011-10-14 15:18:05 +00:00
yamt
c66560279a
add a function to check if a tree is empty.
2011-10-14 15:16:59 +00:00
yamt
765c84955a
include string.h for memset
2011-10-14 15:15:27 +00:00
jym
b0471da334
Make strnlen(3) accessible in kernel. ok christos@.
2011-09-01 22:35:17 +00:00
plunky
a9b219be41
NULL does not need a cast
2011-08-31 15:48:32 +00:00
bouyer
4c44c335c5
loongson2f support:
...
- Add some loongson2 definitions to cpuregs.h, from OpenBSD
- Make sure that the at register is useable before every jump register
instruction (exept when register is k0 or k1) because -mfix-loongson2f-btb
needs the at register for its workaround
- add code to mips_fixup.c to handle the instructions added by
-mfix-loongson2f-btb
- Add a ls2-specific tlb miss handler: it doesn't have separate handler
for the xtlbmiss exeption.
- Fixes for some #ifdef MIPS3_LOONGSON2 assembly code (using the wrong
register)
2011-08-27 13:23:52 +00:00
dholland
0a54ac30f5
Requires stdint.h.
2011-08-21 21:24:34 +00:00
rmind
52b220e91d
Add kcpuset(9) - a reworked dynamic CPU set implementation for kernel.
...
Suitable for use during the early boot. MD and other implementations
should be replaced with this interface.
Discussed on: tech-kern@
2011-08-07 13:33:01 +00:00
mrg
baa3508234
add a weak alias to __ffssi2, needed for hppa gcc 4.5.
2011-08-07 01:52:47 +00:00
mrg
046047ef8e
add a weak alias for __ffssi2
2011-07-09 14:57:29 +00:00
matt
1ab92ba04c
Add long double prototypes.
2011-07-09 02:36:01 +00:00
joerg
b45fa494da
ANSIfy
2011-07-04 21:20:27 +00:00
mrg
1866376e13
sh3 needs the __ffssi2 weak symbol, too.
2011-07-04 12:18:05 +00:00
mrg
259d2a08e1
add a weak alias from ffs to __ffssi2. newsmips kernels link now.
2011-07-04 11:35:26 +00:00
mrg
de4475a299
add support for __floatunsisf().
2011-07-04 11:22:39 +00:00
mrg
88fcb00c03
add a weak alias from ffs to __ffssi2. sparc dynamic works with gcc 4.5 now.
2011-07-04 11:18:23 +00:00
matt
25ba5ff11d
Update to C89 style.
...
Fix name of floatundidf (uns -> un).
2011-07-04 06:23:50 +00:00
matt
633cce5ea2
Add a weak symbol definition for __ffssi2 so that __builtin_ffs will use
...
this if no strong defintion of __ffssi2 is available.
2011-07-03 07:13:31 +00:00
mrg
493d341048
various build fixes for gcc 4.5. from chuq. XXX i'm not sure all of
...
these work properly wtf pointer aliasing, but there are no casts at
least...
the lib/libpuffs/puffs_priv.h is definately a real bug fix.
from chuq.
2011-06-20 09:11:16 +00:00
joerg
bdaa91a3a8
Add support for size optimised versions of the assembler functions in
...
the small subdirectory. Provide more compact versions of the functions
used by bootxx in x86.
2011-06-16 16:39:14 +00:00
yamt
d93894081a
radix_tree_clear_tag:
...
- fix a bug which errornously clears tags on intermediate nodes.
- add comments.
2011-05-19 10:06:56 +00:00
yamt
464de4ca7d
radixtree: assertions
2011-05-19 10:01:21 +00:00
yamt
59a4821fb2
radixtree: comments
2011-05-19 10:00:30 +00:00
yamt
a8d2a6dea1
radixtree: comments
2011-05-19 09:58:28 +00:00
yamt
25dcdd54cb
fix _STANDALONE build
2011-04-26 20:53:34 +00:00
yamt
714ba23ee1
- fix _STANDALONE build.
...
- use __CTASSERT instead of CTASSERT. enable it for userland.
- __read_mostly.
2011-04-14 15:42:02 +00:00
yamt
949aabf781
fix _STANDALONE build
2011-04-14 15:31:20 +00:00
matt
9b4a6fec19
Add RCSIDs
2011-04-12 16:19:44 +00:00
yamt
62e2ded66d
an implementation of radix tree. the idea from linux.
2011-02-22 21:31:15 +00:00
pooka
f3da52f3a1
Add PIC variant for fetching the lock address.
...
librump.so now works on sparc
2011-02-22 18:45:10 +00:00
matt
c2f76ff004
Use END(sym)
...
use RCSID
2011-01-25 04:45:28 +00:00