Commit Graph

147602 Commits

Author SHA1 Message Date
simonb 704bdea4ca Use "GZIPPROG" instead of "GZIP", as gzip(1) uses the GZIP environment
variable to store options.
2006-05-29 16:47:07 +00:00
drochner ad909cf73e export ntp_gettime() and ntp_timestatus(), for use by compat code 2006-05-29 16:43:05 +00:00
chap 5d80ae61bf Clarify that to avoid ioctl(SIOCGNATS): Input/output error, ipf must be
enabled (ipf -E) before ipnat is used; this detail is automated by the
rc scripts, but not by ipnat itself. ipf's author agrees this is a doc
bug.

Closes PR kern/33409.
2006-05-29 16:09:46 +00:00
drochner 305932c524 Remove passing of an uninitialized variable found by gcc4.
(The variable was not used by the called function, so remove the
argument completely.)
2006-05-29 15:17:29 +00:00
drochner 3a1bb8a2ff gcc4 found that it can't store
#define  TULIP_TXTIMER           4
in
u_int32_t tulip_txtimer : 2;        /* transmission timer */

gcc4 appears to be right. "tulip_txtimer" is purely used by software,
so give it the full integer.
(Appearently the txtimer could never work.)
2006-05-29 15:12:57 +00:00
drochner 46e4eb1dd0 NetBSD has now "struct timespec" in ntptimeval 2006-05-29 10:04:13 +00:00
drochner 837ecb8ce8 support the new ntp_gettime() syscall and add compatibility for the old one 2006-05-29 10:02:56 +00:00
drochner 4f2e2f7d77 regen 2006-05-29 09:58:51 +00:00
drochner 42a3bd3098 Extend "struct ntptimeval" for the needs of "timecounters".
Allocate a new syscall for ntp_gettime() and set up COMPAT_30 for
the old one.
2006-05-29 09:57:54 +00:00
drochner 21166bafa5 regen 2006-05-29 09:46:54 +00:00
drochner 9575ca7cfd Remove emulation of ntp_gettime. In preparation for "timecounters" we
will change "struct ntptimeval", so some translation would be necessary.
ntp_gettine is considered dispensable, the only userland program known
to use it is "ntptime".
2006-05-29 09:44:51 +00:00
hubertf 5fdc69efae Xref a few more manpages: user(8), group(8), ... 2006-05-29 01:38:33 +00:00
bouyer 85cd924c0e Remove unused file. Pointed out by Pavel Cahyna.
Probably unused since kernel config files were moved to i386/conf.
2006-05-28 17:14:59 +00:00
elad 5d7aa1a613 Make netstat use sysctl when dumping routing tables/stats.
Heavily based on similar code from Claudio Jeker (at OpenBSD).

While here, fix inet/inet6 sysctl stuff commited previously to
actually work, and some other nits to make netstat more sysctl
friendly.

One step closer to losing setgid kmem on this one...
2006-05-28 16:51:40 +00:00
pavel ad560fa074 Give Xen its own linker script, which does not set the physical load address
specially. In Xen, the system is already in virtual mode when the kernel is
started, so the old behavior of setting physical address to virtual address
was actually correct, and the previous change made NetBSD/Xen kernels
unbootable.

Pointed out, explained and tested by <bouyer>.
2006-05-28 14:00:13 +00:00
bouyer b48d779334 Revert previous. HYPERVISOR_set_timer_op() works fine for domU, and using
HYPERVISOR_yield() cause a domain to busy-wait for some work to do (so
using HYPERVISOR_yield doen't fix the problem for dom0, and makes things much
worse for domU).
2006-05-28 13:36:28 +00:00
blymn 4a065f3379 Clean up bogus whitespace 2006-05-28 13:23:08 +00:00
blymn 3a0170518a Clean up bogus whitespace 2006-05-28 13:12:42 +00:00
blymn 8582430c8c Clean up bogus whitespace 2006-05-28 13:01:46 +00:00
tsutsui 2dba0c5647 Initialize the GT64x11 PCI timeout and retry register with a value taken
from Linux/MIPS, which improves viaide xfer performance significantly.
2006-05-28 12:52:07 +00:00
jnemeth 4c99f4ecf2 unlink temp file in error case 2006-05-28 11:33:56 +00:00
liamjfoy 62438e22ea remove some dead code
ok christos@
2006-05-28 11:07:04 +00:00
jnemeth 03f6e8b0e6 remove unused variable that broke build 2006-05-28 10:15:25 +00:00
martin b59e36a073 Move definition of the 'fb' attribute to global scope and make machfb@pci
require it. On most archs this does not change anything, but on sparc{,64}
it allows linking of kernels that have machfb as the only framebuffer.
Solution suggested by Quentin.
2006-05-28 08:57:53 +00:00
yamt 07ddfaead3 systrace_seteuid, systrace_setegid:
fix bugs in kauth change.  don't forget to update p_cred.
2006-05-28 07:08:41 +00:00
yamt 04c3beb7b1 make some internal variables static. 2006-05-28 06:52:17 +00:00
yamt 3d6707fa0d remove kauth_cred_destroy. 2006-05-28 06:50:37 +00:00
yamt b7da9130d1 remove kauth_cred_destroy, which isn't used anymore. ok'ed by Elad Efrat. 2006-05-28 06:49:27 +00:00
yamt 3ef3d785cc nfs_request: use kauth_cred_free rather than kauth_cred_destroy. 2006-05-28 06:47:58 +00:00
thorpej 77bbac0046 Test program for some basic proplib functionality. Not hooked up to the
regression suite yet.
2006-05-28 03:57:57 +00:00
thorpej e79f2cf0d1 Keep a table of unique dictionary keysyms. This way, if we have 200 devices
with the "fw-path" property, we only have one copy of the "fw-path" string
as a dictionary key.
2006-05-28 03:56:29 +00:00
thorpej 42e8dee346 Fix the way that prop_array_ensure_capacity() and _prop_array_expand()
interact.
2006-05-28 03:53:51 +00:00
elad 48404677c4 be quiet if symbol not in namelist, nothing cares 2006-05-27 23:57:32 +00:00
simonb e78022e1d6 Limit the size of any kernel buffers allocated by the VOP_READDIR
routines to MAXBSIZE.
2006-05-27 23:46:49 +00:00
elad 4ea6eb36cb add sysctl for routing stats 2006-05-27 23:08:11 +00:00
agc c52b27c275 Bump version number for the portability fix, and the dynamic number of
sessions.
2006-05-27 21:29:32 +00:00
agc 36fad19155 Rather than hardcoding the maximum number of sessions that a target can
serve simultaneously to DEFAULT_TARGET_MAX_SESSIONS, add a -s argument to
iscsi-target(8) to specify the maximum number of sessions.

Also bump default from 4 to 16.
2006-05-27 21:21:04 +00:00
bouyer 5ff62d8d84 On my system the CPU frequency reported at boot is off by about 10% (maybe
because of the jitter caused by the serial console), which is not only
cosmetic but is bad for clock accuracy. Introducing a 1s delay before reading
Xen's idea of the CPU frequency fixes this.
2006-05-27 20:48:40 +00:00
martin ad53adb7c1 Make "entries" optional - so that `echo system > /etc/isdn/isdnd.rc; isdnd`
works.
2006-05-27 20:11:14 +00:00
bouyer 2a649c320b HYPERVISOR_set_timer_op() doesn't seem to work right on a NetBSD Xen3 dom0,
the dom0 is getting a continous stream of clock interrupts. As we want an
interrupt every hz anyway, just use HYPERVISOR_yield() instead.
2006-05-27 19:57:15 +00:00
bouyer 498d4ec7e6 The receive buffer, once mapped back in the domU, is read/write and not
shared so there;s no problems marking the mbuf M_EXT_RW.
2006-05-27 19:54:59 +00:00
he 732bd1213b Remove setting of xs_status to XS_STS_DONE before calling scspi_done().
After revision 1.135 of scsipi_base.c, it's a big no-no to set
XS_STS_DONE before calling scsipi_done().  Besides, scsipi_done()
sets XS_STS_DONE itself after checking that it's not already set.

This puts this driver back in working order; before this change
the probe of the logical drives would cause a hang.
2006-05-27 17:56:39 +00:00
agc 6dff2af424 Include another header file - should make this compile on platforms where
arpa/inet.h does not include netinet/in.h automatically.

Some people do just make life harder for themselves.
2006-05-27 16:00:05 +00:00
bouyer de9d456540 A lot of work is needed in the tcp stack to handle read-only ext storage
so always copy packets from the domU to a fresh mbuf for now.
2006-05-27 13:54:35 +00:00
drochner cb566fe802 sync RCS IDs in comments, no functional change 2006-05-27 13:37:04 +00:00
bouyer 01307555ec Revert rev 1.241: calling m_makewritable() in tcp_input causes problems when
it has to change the mbuf chain. I experience hard hang on a Xen2 domU after
TCP connections have been closed, and a crash has been reported which may be
caused by this too.
2006-05-27 13:35:20 +00:00
drochner 8bd6a6b9bd reran native-gcc, fixing the COMDAT problem 2006-05-27 12:14:33 +00:00
simonb 7f2151a308 Fix previous Coverity "fix" so that it doesn't break vi completely. 2006-05-27 12:03:37 +00:00
agc 8b41108aee Clean up after the last fix. 2006-05-27 11:10:55 +00:00
yamt b1af57a6ba remove __POOL_EXPOSE. 2006-05-27 09:14:03 +00:00