Hartmut Brandt
70f920e023
No need to include if_var.h.
2004-07-28 16:34:42 +00:00
Hartmut Brandt
125469a3d8
Get rid of several unneeded includes (if.h, if_var.h, if_mib.h).
2004-07-28 16:32:17 +00:00
Stefan Farfeleder
14cc87e479
Use the length modifier 'll' instead of 'q' to print long longs.
2004-07-28 16:03:13 +00:00
Tim J. Robbins
f825dd29c2
Document incorrect handling of multibyte characters due to limitations
...
of sh(1).
2004-07-28 15:43:33 +00:00
Tom Rhodes
4f145e5e0c
Wrap the supported adapters list into an .Sh HARDWARE section.
...
Use a list to make reading the list easier on the eyes.
Add cardbus(4) and pccard(4) to the SEE ALSO section.
2004-07-28 15:35:33 +00:00
Maxime Henrion
b61cbc55fe
Remove an empty default: case to please GCC 3.4.2.
2004-07-28 14:21:25 +00:00
David Xu
0187c8ff4e
Set fpu context flags to known values, zero is illegal.
2004-07-28 13:08:24 +00:00
Yaroslav Tykhiy
a4eb4405e3
Disallow a particular kind of port theft described by the following scenario:
...
Alice is too lazy to write a server application in PF-independent
manner. Therefore she knocks up the server using PF_INET6 only
and allows the IPv6 socket to accept mapped IPv4 as well. An evil
hacker known on IRC as cheshire_cat has an account in the same
system. He starts a process listening on the same port as used
by Alice's server, but in PF_INET. As a consequence, cheshire_cat
will distract all IPv4 traffic supposed to go to Alice's server.
Such sort of port theft was initially enabled by copying the code that
implemented the RFC 2553 semantics on IPv4/6 sockets (see inet6(4)) for
the implied case of the same owner for both connections. After this
change, the above scenario will be impossible. In the same setting,
the user who attempts to start his server last will get EADDRINUSE.
Of course, using IPv4 mapped to IPv6 leads to security complications
in the first place, but there is no reason to make it even more unsafe.
This change doesn't apply to KAME since it affects a FreeBSD-specific
part of the code. It doesn't modify the out-of-box behaviour of the
TCP/IP stack either as long as mapping IPv4 to IPv6 is off by default.
MFC after: 1 month
2004-07-28 13:03:07 +00:00
Dag-Erling Smørgrav
7688459683
ANSIfy and constify; this now builds with GCC 3.4.
2004-07-28 11:56:03 +00:00
Maxime Henrion
f082437d56
Remove (at least temporarily) the check that prevents us from including
...
this file from userland. Since we export struct ifnet to userland, and
that struct ifnet now contains a struct task, userland needs to know
what struct task looks like.
We need to consider having a pointer to a struct task here instead and
forward declare struct task in the !_KERNEL case.
2004-07-28 09:12:54 +00:00
Alexander Kabaev
0171fe42f2
Damage control. Correcly advance symtab and strtab pointers, not
...
table length values.
Spotted by: iedowse
2004-07-28 08:59:08 +00:00
Alexander Kabaev
1bb0b6dee7
Avoid casts as lvalues.
2004-07-28 07:20:04 +00:00
Alexander Kabaev
617e8b416d
Downgrade WARNS level to more tolerable value. Attempt to fix
...
casts as lvalue usage whenever possible.
2004-07-28 07:19:15 +00:00
Alexander Kabaev
8568d3e3f4
Move __iniline function definition before its first usage in the file.
2004-07-28 07:17:00 +00:00
Alexander Kabaev
64349aaa88
Temporarily disable kernbb utility. It has to learn about new gcov data
...
format first.
2004-07-28 07:13:55 +00:00
Alexander Kabaev
e96993d049
Remove local malloc prototypes, which are incorrect and conflict with
...
both GCC builtin and system declared ones.
2004-07-28 07:12:30 +00:00
Alexander Kabaev
e95e2344a8
Do not predeclare __inline functions, this makes no sense and generates
...
a warning with gcc 3.4.x.
2004-07-28 07:10:03 +00:00
Alexander Kabaev
40cd002b5a
Introduce SYSCTL_CHILDREN_SET macro which can be used in place of
...
cast as a value.
2004-07-28 07:08:39 +00:00
Alexander Kabaev
e89fadd930
Emply __used attribute to prevent compiler from removing unreferenced
...
static symbols. This wasn't a problem with previous GCC releases, but
unit-at-a-time mode of GCC 3.4.2 prevents linker set components from
being emitted at all.
2004-07-28 07:07:16 +00:00
Alexander Kabaev
36efbf4ff7
Introduce __used attribute which serves as logical conuterpart of
...
preexisting __unused.
2004-07-28 07:03:42 +00:00
Alexander Kabaev
1477f58850
Introduce SLOT_SET macro and use it in place of casts as lvalues.
2004-07-28 07:01:33 +00:00
Alexander Kabaev
445e045b0d
Avoid casts as lvalues.
2004-07-28 06:59:55 +00:00
Alexander Kabaev
766f8c9247
Avoid casts as lvalues. Declare local variable as u_char * instead of
...
declaring it as u_short * and casting it back to uchar * all over the place.
2004-07-28 06:58:23 +00:00
Alexander Kabaev
a0ec13c419
Initialize ; variable eraly to shut up GCC warning.
2004-07-28 06:48:36 +00:00
Alexander Kabaev
a994007d62
Forced commit to note that prevois commit has nothing to do with casts
...
as lvalues. I meant to replace a bogus function cast with less bogus one.
2004-07-28 06:45:13 +00:00
Alexander Kabaev
00fbcda80d
Avoid casts as lvalues.
2004-07-28 06:42:41 +00:00
Alexander Kabaev
b403319b8d
Avoid using casts as lvalues. Introduce DIP_SET macro which sets proper
...
inode field based on UFS version. Use DIP ro read values and DIP_SET
to modify them throughout FFS code base.
2004-07-28 06:41:27 +00:00
Alexander Kabaev
24a06d1874
Avoid casts as lvalues. While here, avoid storing 32bit quantities in
...
16bit locations.
2004-07-28 06:32:28 +00:00
David Xu
8bda8a620c
Use P_SINGLE_EXIT to check single-threading case, P_WEXIT is not for that
...
purpose.
2004-07-28 06:30:52 +00:00
Alexander Kabaev
1f74490224
Avoid casts as lvalues.
2004-07-28 06:30:43 +00:00
Alexander Kabaev
eec256de79
Avoid casts as lvalues.
2004-07-28 06:21:53 +00:00
Alexander Kabaev
3bdee39ecb
Make __packed attribute apply to structs themselves, not their typedefs.
...
GCC 3.4.2 issues warning about that.
2004-07-28 06:19:25 +00:00
Paul Saab
d49f1379e4
Name non-physical devices.
2004-07-28 06:18:05 +00:00
Alexander Kabaev
7e86873d5c
Initialize s variable early to shut up GCC warnings.
...
Do not declare inline functions without body as this is useless in
general and generates a warning with GCC 3.4.x.
Glanced over by: dhartmei
2004-07-28 06:14:44 +00:00
Alexander Kabaev
1c052ff9fa
Allow for aggressive function inlining. This might have to be fine-tuned
...
later.
2004-07-28 06:07:02 +00:00
Alexander Kabaev
fa2edf7bcd
Avoid casts as lvalues.
2004-07-28 06:05:41 +00:00
Alexander Kabaev
d9eedfd93c
Define our own memcpy here instead of relying on GCC to provide one.
2004-07-28 06:03:27 +00:00
Alexander Kabaev
a03f8f81b7
Downgrade WARNS level until GCC 3.4.2 warning are fixed.
2004-07-28 06:00:09 +00:00
Alexander Kabaev
8518a74a8f
Avoid casts as lvalues.
2004-07-28 05:59:22 +00:00
Alexander Kabaev
bcd5ceac59
Downgrade WARNS level until GCC 3.4.2 warning have been fixed.
2004-07-28 05:57:48 +00:00
Alexander Kabaev
dd86691ec8
Work around known GCC 3.4.x problem and use ANSI prototype for dremf().
2004-07-28 05:53:18 +00:00
Alexander Kabaev
2d18d113c7
Downgrade WARNS level for GCC 3.4.2.
2004-07-28 05:49:15 +00:00
Alexander Kabaev
511938318c
Avoid casts as lvalues.
2004-07-28 05:44:52 +00:00
Alexander Kabaev
c2cc554bbe
Downgrage WARNS level for GCC 3.4.x.
2004-07-28 05:44:07 +00:00
Alexander Kabaev
e1f91dbd18
Remove stale code protected by #ifdef sparc. GCC 3.4.x adds sparc to
...
predefined symbols on all SPARC platforms and FreeBSD follows the crowd.
2004-07-28 05:43:08 +00:00
Alexander Kabaev
698784bef7
s/round/fpround/ to avoid naming clash with GCC builtin function.
2004-07-28 05:41:05 +00:00
Alexander Kabaev
aa8ad7aad0
Add NO_WERROR here. Binutils as does not compile cleanly with GCC 3.4.x.
2004-07-28 05:39:04 +00:00
Alexander Kabaev
14046059e1
Add missing () to function invocation.
2004-07-28 05:37:18 +00:00
Alexander Kabaev
2cc37f2ca4
Do not use casts as lvalues.
2004-07-28 05:33:58 +00:00
Alexander Kabaev
81efba8c9e
Bmake glue for GCC 3.4.2-prerelease.
2004-07-28 05:27:21 +00:00