harti
7e404c358e
No need to include if_var.h.
2004-07-28 16:34:42 +00:00
harti
1680a3ef6c
Get rid of several unneeded includes (if.h, if_var.h, if_mib.h).
2004-07-28 16:32:17 +00:00
stefanf
7cdc27d942
Use the length modifier 'll' instead of 'q' to print long longs.
2004-07-28 16:03:13 +00:00
tjr
d0c237fd3c
Document incorrect handling of multibyte characters due to limitations
...
of sh(1).
2004-07-28 15:43:33 +00:00
trhodes
05e2475f94
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
mux
8b1be14544
Remove an empty default: case to please GCC 3.4.2.
2004-07-28 14:21:25 +00:00
davidxu
f100dd95c4
Set fpu context flags to known values, zero is illegal.
2004-07-28 13:08:24 +00:00
yar
1d71ae12e0
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
des
b124db99c0
ANSIfy and constify; this now builds with GCC 3.4.
2004-07-28 11:56:03 +00:00
mux
1ac57efd01
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
kan
f630ab6cf1
Damage control. Correcly advance symtab and strtab pointers, not
...
table length values.
Spotted by: iedowse
2004-07-28 08:59:08 +00:00
kan
c8e1a3d9de
Avoid casts as lvalues.
2004-07-28 07:20:04 +00:00
kan
bc35f3d1a7
Downgrade WARNS level to more tolerable value. Attempt to fix
...
casts as lvalue usage whenever possible.
2004-07-28 07:19:15 +00:00
kan
cd51b9e3ac
Move __iniline function definition before its first usage in the file.
2004-07-28 07:17:00 +00:00
kan
4bd37031bb
Temporarily disable kernbb utility. It has to learn about new gcov data
...
format first.
2004-07-28 07:13:55 +00:00
kan
e0af363c57
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
kan
aa7daeefe5
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
kan
5008b82a17
Introduce SYSCTL_CHILDREN_SET macro which can be used in place of
...
cast as a value.
2004-07-28 07:08:39 +00:00
kan
4427f9af51
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
kan
88d0e4fb93
Introduce __used attribute which serves as logical conuterpart of
...
preexisting __unused.
2004-07-28 07:03:42 +00:00
kan
155eb2ef69
Introduce SLOT_SET macro and use it in place of casts as lvalues.
2004-07-28 07:01:33 +00:00
kan
3140931e1f
Avoid casts as lvalues.
2004-07-28 06:59:55 +00:00
kan
f70e41029a
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
kan
1fc93948ca
Initialize ; variable eraly to shut up GCC warning.
2004-07-28 06:48:36 +00:00
kan
0a2cad60a9
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
kan
48b2ea77a3
Avoid casts as lvalues.
2004-07-28 06:42:41 +00:00
kan
586367666d
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
kan
7a2c503e1b
Avoid casts as lvalues. While here, avoid storing 32bit quantities in
...
16bit locations.
2004-07-28 06:32:28 +00:00
davidxu
5610a7e068
Use P_SINGLE_EXIT to check single-threading case, P_WEXIT is not for that
...
purpose.
2004-07-28 06:30:52 +00:00
kan
65947d062b
Avoid casts as lvalues.
2004-07-28 06:30:43 +00:00
kan
4caefcbb3e
Avoid casts as lvalues.
2004-07-28 06:21:53 +00:00
kan
6cabb1fb0d
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
ps
6213728da1
Name non-physical devices.
2004-07-28 06:18:05 +00:00
kan
81bb3b51b0
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
kan
9e6b9c5d58
Allow for aggressive function inlining. This might have to be fine-tuned
...
later.
2004-07-28 06:07:02 +00:00
kan
cd2bbc3fed
Avoid casts as lvalues.
2004-07-28 06:05:41 +00:00
kan
908c4ab709
Define our own memcpy here instead of relying on GCC to provide one.
2004-07-28 06:03:27 +00:00
kan
75991fc0ed
Downgrade WARNS level until GCC 3.4.2 warning are fixed.
2004-07-28 06:00:09 +00:00
kan
bce3675a33
Avoid casts as lvalues.
2004-07-28 05:59:22 +00:00
kan
8951be1606
Downgrade WARNS level until GCC 3.4.2 warning have been fixed.
2004-07-28 05:57:48 +00:00
kan
d037fe2cca
Work around known GCC 3.4.x problem and use ANSI prototype for dremf().
2004-07-28 05:53:18 +00:00
kan
425239bf6e
Downgrade WARNS level for GCC 3.4.2.
2004-07-28 05:49:15 +00:00
kan
c80f4c2e29
Avoid casts as lvalues.
2004-07-28 05:44:52 +00:00
kan
289257fe90
Downgrage WARNS level for GCC 3.4.x.
2004-07-28 05:44:07 +00:00
kan
9cd8c33985
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
kan
7e434fe38f
s/round/fpround/ to avoid naming clash with GCC builtin function.
2004-07-28 05:41:05 +00:00
kan
939ed27f8c
Add NO_WERROR here. Binutils as does not compile cleanly with GCC 3.4.x.
2004-07-28 05:39:04 +00:00
kan
6ecc85d1ea
Add missing () to function invocation.
2004-07-28 05:37:18 +00:00
kan
6e16eb36f4
Do not use casts as lvalues.
2004-07-28 05:33:58 +00:00
kan
482ec87e2d
Bmake glue for GCC 3.4.2-prerelease.
2004-07-28 05:27:21 +00:00