Commit Graph

99343 Commits

Author SHA1 Message Date
thorpej fe53f433d8 The signal trampoline runs in userspace; do not profile it. 2002-07-04 16:44:10 +00:00
thorpej 9759b269b6 Add ENTRY_NOPROFILE(). 2002-07-04 16:43:21 +00:00
kent 763eb5645a memcpy/memmove/bcopy: Add diagnostic code to check pointer wraparound.
The code is enabled only when _DIAGNOSTIC is defined.
2002-07-04 15:48:40 +00:00
junyoung 3d826105dc alloc_attr -> allocattr
Approved by Matthias Drochner.
2002-07-04 14:37:10 +00:00
itojun 2cdb2f419e japan fix due to emperor change (1988) - 4/29 is now called greenary day,
12/23 is the new emperor's birthday.
2002-07-04 14:16:56 +00:00
wiz 2ecc494864 Move LOTR dates to calendar.lotr. Add 09/11 terrorist attack.
Patch from John Franklin in misc/17461.
2002-07-04 14:09:59 +00:00
itojun 27c67ca9bc save 1 byte for trailing dot append on dn_expand() call 2002-07-04 13:27:23 +00:00
itojun 181c9736b9 correct udp-from-broadcast check. From: andre@ae-35.com 2002-07-04 12:35:19 +00:00
fvdl bda216ee7f This is the x86_64 version, not i386. 2002-07-04 12:24:40 +00:00
lukem 252d84882a a Makefile at this point is pointless... 2002-07-04 11:46:30 +00:00
fvdl 04bc80b71e Add and enable x86_64_iopl 2002-07-04 10:53:26 +00:00
blymn 8845943881 Prevent set_field_buffer from redrawing field that is attached to a form
when the form is not posted.
2002-07-04 10:51:02 +00:00
fvdl cf9727c9c6 Uncomment x86_64_iopl args. 2002-07-04 10:49:33 +00:00
fvdl 105d80aaa0 The double fault exception doesn't push an error. 2002-07-04 10:47:02 +00:00
fvdl 9fe7e89bfe Use a seperate stack for the double fault trap. 2002-07-04 10:46:21 +00:00
fvdl 860a1c9ae6 Enable the iopl syscall. 2002-07-04 10:44:00 +00:00
fvdl 03068e0f6f Print a little more info for unhandled traps. For the time being,
halt the CPU, don't call panic() (until DDB is done).
2002-07-04 10:42:00 +00:00
fvdl 9ec0782af4 Make this look a little more like -current i386 pmap.c 2002-07-04 10:38:26 +00:00
fvdl 4839f70ff2 Fix parameter passed to init_x86_64. 2002-07-04 10:34:22 +00:00
fvdl ffb9c17b1c Match parameter decl of init386 with reality. 2002-07-04 10:22:20 +00:00
itojun aafb24a06b getstring() safer by passing buffer size. millert@openbsd 2002-07-04 06:43:19 +00:00
lukem f7f117dc43 highlight that for ftp:// auto-fetches, read access is required on
intermediate directories because ftp(1) obeys RFC1738.  for [bin/15419]
2002-07-04 06:39:28 +00:00
lukem ded5b486f1 revert a chunk of the previous; we only need foo.so.x and foo.so.x.y moved
from comp to base; foo.so, and foo*.a stay in comp.
2002-07-04 03:23:32 +00:00
gson 63dd492c1a Mask MCCB interrupts since they are not currently handled
and it is not clear how they should be handled.  Fixes
kern/17071.
2002-07-04 02:20:22 +00:00
thorpej 584c5c23d3 During signal delivery, arrange to have the signal handler invoked
directly, using the trampoline only for the return path.  Saves a
"jsr" in the trampoline.

Reviewed, tested and OK'd by Steve Woodford.
2002-07-04 01:50:39 +00:00
itojun facb67f7a9 move lib[mi]387.so and friends to base/md.i386. PR 17452 2002-07-04 00:52:49 +00:00
nathanw 2b3894aa5d NetBSD/powerpc is not AIX, so #undef RS6000_TARGET.
In particular, we don't want AIX's shared-library relocation semantics.
2002-07-03 23:43:57 +00:00
yamt 4b45ab0ce1 add comment:
"if you're adding new scripts, don't forget to update
src/etc/postinstall and src/etc/mtree/special."
2002-07-03 23:31:25 +00:00
yamt 3d67d222ff add wsmoused 2002-07-03 23:29:51 +00:00
yamt 1030138025 add mixerctl and wsmoused. 2002-07-03 23:28:24 +00:00
atatat 11bb544ec0 Mostly just a rewrite of intercept_run() so the arrangement of "child"
process and "parent" process is more conducive to policy generation.
Previously, tracing of a given program worked something like this:

	fork()
	if (child)
		execprogram()
	else
		dotracing()

That means that if you "systrace -a named", named would fork and
background itself, but you would never get your prompt back because
systrace didn't exit.  Now it works like this:

	fork()
	if (interactive)
		if (child)
			execprogram()
		else
			dotracing()
	else
		if (parent)
			execprogram()
		else
			fork()
			if (parent)
				exit(0)
			setsid()
			dotracing()

This makes it *much* easier to do automated policy generation for
tasks run from rc.d.  Or, for that matter, makes it much easier to use
systrace with tasks run from rc.d.
2002-07-03 22:54:38 +00:00
kleink 41b912792c postive -> positive 2002-07-03 22:28:28 +00:00
wiz 3560ae7f37 Sort options in getopt string. 2002-07-03 22:19:25 +00:00
hubertf 1b7f271a58 * Add missing 'break'
* cosmetic update in getoipt string

Patch supplied by Brian Ginsbach <ginsbach@cray.com> in PR 17473.
2002-07-03 22:12:46 +00:00
wiz 84d465bb02 Improve last. 2002-07-03 22:12:38 +00:00
wiz 53e326dd05 Fix error output for negative argument to '-w'.
Also update usage to include -w.
Patches from Brian Ginsbach in bin/17471.
2002-07-03 22:10:28 +00:00
hubertf e925e82dbe Document missing -w option.
Patch submitted by Brian Ginsbach <ginsbach@cray.com> in PR 17472.
2002-07-03 22:07:33 +00:00
thorpej 2807c6789c Rename SB_UPDATE_TAIL() to SB_EMPTY_FIXUP(), per suggestion from
Jonathan Stone.
2002-07-03 21:39:40 +00:00
thorpej 668640a43d Rename sbappend_stream() to sbappendstream(), per suggestion from
Jonathan Stone.
2002-07-03 21:36:57 +00:00
matt 25036f6b2d Properly compensate for rounding the start of a mem_region up. 2002-07-03 20:41:20 +00:00
thorpej 3590793675 Apply rev. 1.68 of uipc_socket.c to kttcp_soreceive():
Fix 2 bugs with MSG_WAITALL.  The first is to not block forever if one is
trying to MSG_PEEK for more than the socket can hold.  The second is that
before sleeping waiting for more data, upcall the protocol telling it you
have just received data so it can kick itself to re-fill the just drained
socket buffer.
2002-07-03 19:36:52 +00:00
thorpej 6b3c143231 Bump the OS version to 1.6C: socket buffer structure changed. 2002-07-03 19:11:41 +00:00
thorpej 0585ce1489 Make insertion of data into socket buffers O(C):
* Keep pointers to the first and last mbufs of the last record in the
  socket buffer.
* Use the sb_lastrecord pointer in the sbappend*() family of functions
  to avoid traversing the packet chain to find the last record.
* Add a new sbappend_stream() function for stream protocols which
  guarantee that there will never be more than one record in the
  socket buffer.  This function uses the sb_mbtail pointer to perform
  the data insertion.  Make TCP use sbappend_stream().

On a profiling run, this makes sbappend of a TCP transmission using
a 1M socket buffer go from 50% of the time to .02% of the time.

Thanks to Bill Sommerfeld and YAMAMOTO Takashi for their debugging
assistance!
2002-07-03 19:06:47 +00:00
pooka ff89c16683 adapt for vis()/svis() check separation 2002-07-03 17:18:09 +00:00
pooka 2fcb6fa0a5 add check for HAVE_USER_FROM_UID 2002-07-03 17:17:35 +00:00
pooka c695034447 work around FreeBSD defining user_from_uid() in stdlib.h 2002-07-03 17:17:04 +00:00
pooka d8c01a3d2a Fine-grain checking somewhat:
* check for user_from_uid() in addition to pwcache_userdb()
* check for svis() in addition to vis()
2002-07-03 17:16:26 +00:00
msaitoh 37c7dda3e2 regen 2002-07-03 16:51:36 +00:00
msaitoh e8a90d330f add ServerWorks CMIC LE, CMIC SL and CIOB-X2 2002-07-03 16:51:02 +00:00
itojun 412f69af85 re-enable ssh-keysign's sbit. sync w/openbsd 2002-07-03 14:23:49 +00:00