Commit Graph

152524 Commits

Author SHA1 Message Date
christos
2979ced6e8 - Instead of wondering if to syslog an error, do so, but in the called
function.
- use snprintf instead of sprintf.
2006-10-15 19:33:03 +00:00
martin
ac4b729ce4 Add some initializers 2006-10-15 19:32:37 +00:00
martin
61baadbc7f Add missing initializer 2006-10-15 19:29:10 +00:00
christos
cdb23ba9fb add a volatile variable to prevent vfork/longjmp clobbering. 2006-10-15 19:27:21 +00:00
martin
3176f67f9e Sprinkle some __unused 2006-10-15 19:22:59 +00:00
martin
cb5d206224 __unused policy 2006-10-15 19:22:17 +00:00
christos
227b8ed7f9 delete junk I accidentally committed. 2006-10-15 19:11:58 +00:00
christos
dc579d1dcf de-lint. 2006-10-15 19:08:48 +00:00
christos
56ec5c798d die on lint errors. 2006-10-15 19:07:38 +00:00
martin
637106d04b Make it compile with -Wextra on big endian machines (at lest the #if in the
definition of struct rb_ndoe on the endianess is the only explanation I have
why nobody complained about this on i386 - I don't understand why it makes a
difference for gcc though)
2006-10-15 19:04:28 +00:00
apb
76eb981a6d Mention some things I did recently: "find ... -exec ... +", ps -o changes,
and building with shell != /bin/sh.
2006-10-15 18:51:20 +00:00
christos
6cbdf318bf - make a variable volatile, that gcc warns vfork will clobber.
- don't blindly walk before the beginning of the buffer because of a
  corrupt dependency file. In this case the first character of the
  dependency file was a :
2006-10-15 18:50:47 +00:00
christos
2bd08fcc54 in the same way that we need an extra level for arrays, do the same for struct. 2006-10-15 18:18:54 +00:00
christos
4ac7ff4bf5 Another test. 2006-10-15 18:17:09 +00:00
dsl
fb889ecbbd Change a 'while' loop to a 'for' loop so we can add 'free(line)' into the
loop continue part.  Remove the 'free(line)' from teh end of the loop body,
change the gotos into continues and collapse out some 'else if's.
All in the name of code transparency.  No functional changes.
2006-10-15 18:08:14 +00:00
rpaulo
1c1f230e81 Move comments to proper places. 2006-10-15 17:53:30 +00:00
rpaulo
ebc62e8a33 Update structure. 2006-10-15 17:48:07 +00:00
rpaulo
a70594d346 Add a new tcp_congctl(9) structure member for congestion experienced callback.
Needed by HSTCP.
2006-10-15 17:45:06 +00:00
christos
ce2c90c7c1 fix incomplete initializers 2006-10-15 16:14:46 +00:00
christos
a8756e84f2 prevent empty else. 2006-10-15 16:14:08 +00:00
christos
6b9a17545b comment out dead code. 2006-10-15 16:13:12 +00:00
christos
3b77d4bc25 instead of using the (void)&foo kludge to avoid longjmp clobbering of variables
make the variables volatile as needed.
2006-10-15 16:12:02 +00:00
christos
b24124a73d static before const. 2006-10-15 16:11:04 +00:00
christos
1d0c670b9c add a NULL callback initializer 2006-10-15 16:10:38 +00:00
perry
35a6eb4807 Make the declarations of wday_name and mon_name less eccentric. I
suppose they were legal before, but lint was unhappy about them. It
was probably unhappy for the wrong reasons, but I think it certainly
wasn't something one would want anyway. Declaring a string of length
three to have storage of length three without room for the nul is
asking for trouble even if it does work in context, and there was no
reason not to state how many days there are in a week or months in a
year -- they aren't onerous and aren't going to change.

NOTE: If this code isn't being synced with the central TZCODE stuff,
it probably should be KNFed etc. It is full of K&R declarations,
register, lots of eccentricities, etc.
2006-10-15 15:32:42 +00:00
christos
7bce0c7216 Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.
2006-10-15 15:20:09 +00:00
christos
23d1e65c52 array init test 2006-10-15 15:09:38 +00:00
christos
3e006796cf previous fix broke array initializers. 2006-10-15 15:08:20 +00:00
xtraeme
dda1409777 Sync IDE/SATA drivers with i386/GENERIC. Fixes PR port-amd64/34829. 2006-10-15 14:41:49 +00:00
xtraeme
0c5839fcb7 Enable Bluetooth support and devices (except bt3c that requires pcmcia)
for Xen.
2006-10-15 14:34:56 +00:00
adrianp
9480ff5303 Change the default sshd configuration file so that only protocol version 2
is enabled by default.  Users can manually add back support for protocol
version 1 in their sshd_config if they have a specific need for it.

Suggested by perry@ and ghen@. Ok'ed security-officer@ and christos@
2006-10-15 14:01:53 +00:00
bouyer
305d094b01 Define x86_mfence(). Use it where appropriate. Seems to fix a hang in
the network interface front-end/back-end for me ...
2006-10-15 13:35:15 +00:00
bouyer
f3449bfa41 Set appropriate value for if_snd.ifq_maxlen; keeping it too low has a
bad impact on performances.
2006-10-15 13:34:17 +00:00
yamt
cbba26f6cd include machine/mpconfig.h so that these files can be compiled
with ACPI but without MPBIOS.
2006-10-15 13:31:18 +00:00
xtraeme
3481053ae9 Use O_DIRECT (aka Direct I/O) when -F is used. 2006-10-15 13:18:24 +00:00
peter
bc26ed070a Don't enable ALTQ in altq_pfattach. Enabling/disabling of ALTQ is already
done in the pf(4) code (pf_ioctl.c).

From OpenBSD.
2006-10-15 13:17:13 +00:00
bjh21
7b50d90366 When processing RASes, only pay attention to, and change, the PC parts of R15,
leaving the PSR bits alone.  Necessary to make regress/sys/kern/ras/ras1 pass.
2006-10-15 12:45:32 +00:00
yamt
72fc92b729 ffs_alloc: remove an assertion which is no longer true. 2006-10-15 12:23:56 +00:00
tsutsui
fec9e58b4d In vge_newbuf(), don't adjust packet length twice by m_adj(9)
in case of __NO_STRICT_ALIGNMENT. We can adjust m_data directly
since it's allocated by MCLGET(9) just above.
(though the length is not used anyway)
2006-10-15 11:52:36 +00:00
martin
a5cb9c8ff7 PR lib/34801 from David A. Holland: "static" comes first in declaration. 2006-10-15 10:55:01 +00:00
tsutsui
76a3c671ce Umm, remove a DELAY() added in previous. It seems to cause another problem. 2006-10-15 10:54:15 +00:00
tsutsui
2412a17a18 On sgimips (R5000 O2), it seems that the first EEPROM read data
right after vge_reset() could be corrupted. For workaround, add a
dummy EEPROM read in vge_reset() so that MAC address is properly
set on the machine.
While here, add a DELAY() in busy loop in vge_read_eeprom().
2006-10-15 10:33:25 +00:00
tsutsui
4751084399 Oops, use correct dmamap to sync DMA descriptors.
Found by DIAGNOSTIC code in sgimips/bus.c:_bus_dmamap_sync_mips3().
2006-10-15 09:37:27 +00:00
dsl
0195907f3d Output all debug trace output through 'debug_file' defaulting to 'stdout'.
(Almost all the debug output went there, but some went to stderr.)
Split the parsing of -d (debug flags) out into its own routine.
Allow the output filename to be changed by specifying -dF<file> to create
a log file, or -dF+<file> to append to it. <file> may be stdout or stderr.
Also change so that -d-<flags> acts on <flags> locally but doesn't copy
them to MAKEFLAGS so they aren't inherited by child makes.
I'm not 100% happy with the command line syntax for the above, so they are
currently undocumented.
2006-10-15 08:38:21 +00:00
dyoung
a42ff4b405 Make SIOCALIFADDR work for adding IPv6 addresses: initialize the
lifetime of the addresses to infinity (ND6_INFINITE_LIFETIME).

Nobody squealed when I proposed this on tech-net.
2006-10-15 07:00:44 +00:00
dyoung
ca38b620b0 Two bug fixes:
If gre_socreate1() cannot find out the socket's address, exit with
an error.  Before, it could exit *without* an error.

If gre_thread1() finds that it is without a valid socket (i.e., so
== NULL) but the configuration is "unchanged" (in initial state),
force reconfiguration.  This prevents a crash when we try to bring
up a GRE over UDP interface whose UDP endpoints have never been
specified.
2006-10-15 06:36:54 +00:00
dyoung
755be14a30 Cosmetic: join lines to conserve vertical space. 2006-10-15 06:28:53 +00:00
tsutsui
78ca0f3f54 Don't add `-I${NETBSDSRCDIR}/sys' to HOST_CPPFLAGS to pull
necessary target system headers (<fs/unicode.h> and <fs/cd9660/iso.h>)
because system headers for the host (like <sys/stat.h>) are also pulled
from there and it causes build errors if target src tree is different
from installed one on the host.
Instead, copy the necessary system headers for host's programs into
${.OBJDIR} first.

Problem reported from Geert Hendrickx, and there is no particular comment
on tech-toolchain.
2006-10-15 04:24:11 +00:00
uwe
4fcce87c8c Replace __INTR_MASK and swap dance to load PSL_RB (and doing stc/ldc
twice in the process) with code that just uses mov.l to get the bits
to clear and set in SR.

Use proper local labels.  Add rcs id.  G/c unused includes.  Add .size
2006-10-15 02:31:00 +00:00
uwe
92dc06bfcf Don't include <machine/intr.h> in asm sources. 2006-10-15 02:11:21 +00:00