Commit Graph

139112 Commits

Author SHA1 Message Date
elad
1ea04d9351 Oops. Put back braces... 2005-08-13 13:06:35 +00:00
elad
c62f8b0f18 The veriexec API uses dev_t and ino_t for device and inode numbers.
VOP_GETATTR() fills a struct vattr, where va_fsid and va_fileid (device
and inode..) are typed as long.

Add some casts when using these values and surround them with XXXs about
the potential size mismatch, as long can be 64 bits but dev_t and ino_t
are always 32 bits. This is safe because *for now* we're still using
32 bit inode numbers.

Discussed with blymn@.
2005-08-13 12:56:44 +00:00
elad
79b2f66712 Fix printing formats.
- size_t is %zu
  - dev_t is uint32_t is %u
  - long is %ld
2005-08-13 12:08:34 +00:00
blymn
110bb51ae7 Split out stats attach code ready for shifting
Add sysctl hooks here for the time being.
2005-08-13 10:50:50 +00:00
blymn
01d37a82c0 Remove the tape stats from here, they caused issues on non-scsipi
architectures.
2005-08-13 10:48:27 +00:00
jmmv
589ba12e9c uvm_unmap returns void, not int.
Also drop some spaces before commas, as they ought not to be there.
2005-08-13 09:49:58 +00:00
he
f35ed2ac89 Include <sys/time.h> before <sys/signalvar.h> so that copyinout_t is
defined before it is used in the second of these.

Fixes a build problem for several of our m68k ports.  I've been
waiting for a better fix, but now my "proper fix timeout" triggered.
2005-08-13 05:38:45 +00:00
fvdl
36825d8853 Comment out some currently unimplemented options, and add a few descriptions
for others (from Daniel Watt).
2005-08-13 02:03:48 +00:00
fvdl
3550dc9861 cd9660 support. Written by Daniel Watt, Walter Deignan, Ryan Gabrys,
Alan Perez-Rathke and Ram Vedam.

Prototyping, KNF, WARNS=3 by me.

Note that this is marked experimental for now. It works well enough to
make NetBSD/i386 bootable images, but does need more work.
2005-08-13 01:53:01 +00:00
fvdl
046051d487 Fix a sign warning for WARNS=3. 2005-08-13 01:49:35 +00:00
jmmv
38501db2ff Drop extra word from comment. 2005-08-12 22:31:51 +00:00
he
1bb5735b5e Check the return value from mktime() and pass any error up.
*tp > LONG_MAX is never true, so replace that check with a test
for strtol() setting errno == ERANGE (oddly, some ports' build
swallowed this without warning).

There's no guarantee that a time_t stores the same number of bits
as a long, so check for an overflow there as well, and pass any
error up.

Discussed with christos, martin and mrg.
2005-08-12 21:40:35 +00:00
ginsbach
9992d68aff Make sure the get command always exits non-zero on error. This makes things
like the following work as expected.

#!/bin/sh

if ! route -sn get default >/dev/null 2>&1; then
	echo default gateway not set
	exit 1
fi
echo default gateway set

Handle routing socket write(2) errors when they occur.  This produces
better diagnostics by allowing for handling of the special route errno
values ESRCH, EBUSY, and ENOBUFS even with the quiet (-q) option or
when doing a get command.
2005-08-12 21:23:06 +00:00
riz
9f6e077029 Add snj and riz to Release Engineering team. 2005-08-12 20:47:32 +00:00
ginsbach
9c8def382d Trim the local domain name in routename() for INET6 lookups; similar to
INET lookups.
2005-08-12 16:29:06 +00:00
macallan
87c196d064 revert previous version, will create a device node in the boot loader instead 2005-08-12 16:28:14 +00:00
christos
91b1a8d112 patch from Liam Foy to add a -F option to force a user to change her's/his
password at the next login.
2005-08-12 16:22:05 +00:00
christos
622690226a If called from syn_cache_add, we need to initialize t_state before calling
tcp_dooptions. Pointed out by yamt.
2005-08-12 14:41:00 +00:00
elad
bbf85a429b Use PRIxPTR when printing a pointer. 2005-08-12 14:08:16 +00:00
macallan
332916f171 For Krups only - attach audiocs at ebus even if there's no sound node in the
device tree. Works only as long as the cs4231 driver doesn't attempt to use
the node since we can't really supply one.
Tested on a Krups with OF 3.11.10
2005-08-12 12:46:17 +00:00
yamt
d1f3bf1181 pmap_enter: fix an uninitialized variable bug which can cause
"TLB IPI rendezvous failed".
2005-08-12 10:04:24 +00:00
yamt
03661e8f33 include callout.h explicitly. 2005-08-12 10:02:31 +00:00
hubertf
a72fe4e4bf Clarify comment that "the protocol specification dated September, 1981"
is really RFC 793.
2005-08-12 04:19:22 +00:00
junyoung
b0c452fd1f Make microcode loading work on big endian machines.
Reported and patch supplied by yongari@freebsd a long time ago.
2005-08-12 01:07:16 +00:00
christos
5910d08b05 Don't process TCP options in SYN packets after the connection has
been established. (FreeBSD-SA-05:15.tcp)
2005-08-11 22:25:18 +00:00
rpaulo
aaf548920f Explained the '-h' option. 2005-08-11 20:56:57 +00:00
rpaulo
630caafc65 Added a new ifconfig flag, -h, allowing, in conjunction with -v, the display
of interface I/O bytes in human-format.

Reviewed by Christos Zoulas and Jason Thorpe.
2005-08-11 20:56:05 +00:00
cube
9f1eb3e30f Change all archs that did:
#define clockframe somethingelse

to:

struct clockframe {
	struct somethingelse cf_se;
};

and change access macros accordingly.

That means that, at least for that very issue, things will not go
ka-boomy if you don't have the actual definition of struct clockframe
before including systm.h.
2005-08-11 20:32:55 +00:00
drochner
bbc1e050c5 imported dhcp-3.0.3 2005-08-11 17:22:35 +00:00
drochner
9fbefaf7c9 merge dhcp-3.0.3 2005-08-11 17:13:21 +00:00
drochner
1b6f9e91ef import ISC dhcp-3.0.3 onto the vendor branch 2005-08-11 16:54:17 +00:00
yamt
3a2482b78f fr_check_wrapper6: handle M_CSUM_TCPv6|M_CSUM_UDPv6. 2005-08-11 13:01:38 +00:00
yamt
bbfb2033ff pfil6_wrapper: handle M_CSUM_TCPv6|M_CSUM_UDPv6. 2005-08-11 13:01:24 +00:00
yamt
2edce77c87 document pmap_procwr. 2005-08-11 11:20:48 +00:00
pooka
9157daca51 apply cosmetics to VOP_MK/RMDIR prototypes 2005-08-11 10:49:47 +00:00
pooka
304eed6ad2 document the flags O_ALT_IO and O_NOCTTY 2005-08-11 10:35:24 +00:00
pooka
f219942c2b match section on read/write ioflags with current reality
(bump date!)
2005-08-11 10:06:38 +00:00
elad
3df38a6c89 Make inpath work like strstr again. :) 2005-08-10 21:53:01 +00:00
elad
9d164b22bc Add comments. 2005-08-10 21:33:36 +00:00
rpaulo
cccbf666c8 Query the v6 sockets only if USE_INET6 != "no". Patch provided by Jukka Salmi
on PR#30963.

ok atatat@
2005-08-10 20:32:57 +00:00
rpaulo
0459285527 Fix a typo in the islistening() routine. Patch provided by Jukka Salmi
on PR#30963.
2005-08-10 20:21:14 +00:00
xtraeme
cf10ca7b98 Add vnconfig(8). ok christos 2005-08-10 20:04:40 +00:00
rpaulo
07b524b43f Added a missing '-' in score list output. 2005-08-10 19:21:21 +00:00
elad
e4088913b5 Separate constructing the path to the policy away from systrace_addpolicy() and
into systrace_getpolicyfilename().
2005-08-10 18:19:21 +00:00
rpaulo
b0282a1ea0 Pass lint(1). 2005-08-10 17:53:28 +00:00
rpaulo
16a8e8c2e7 Enable WARNS=3. 2005-08-10 17:52:56 +00:00
rpaulo
279b6fba65 Fixed an output bug where a new-line was added due the usage of puts(3). 2005-08-10 16:10:51 +00:00
macallan
b97218831c add uni_n, 2nd ki2c, iic, deq, hardware monitors. 2005-08-10 15:57:32 +00:00
macallan
f869dc7da4 added uni_n, deq, attachments for adt7467c and adm1030c, additional attachment for ki2c 2005-08-10 14:39:25 +00:00
macallan
d9f9caa094 - don't call ki2c private functions anymore, use iic_exec() to be a good i2c citizen
- use the deq driver to find the mixer device
- add controls for bass and treble
2005-08-10 14:32:08 +00:00