Commit Graph

211673 Commits

Author SHA1 Message Date
martin
7a598c266d Try to estimate the number of locked pages the mincore() test will need and
check it against resource limits, skipping the tests if it probably is too
low.
2012-06-05 08:44:21 +00:00
abs
8f45a59205 Adjust the WSDISPLAY_COMPAT_USL comment to mention wsconscfg, to at least
give a hint that its not just for third party compat. No functional change.
2012-06-05 08:44:07 +00:00
abs
37d94841fa If a port is going to have wscons for virtual terminals then it really makes
sense to enable WSDISPLAY_COMPAT_USL so the system can switch between the
virtual terminals...
2012-06-05 08:41:36 +00:00
martin
f8fdd418df Measure kinfo_proc2::p_vm_vsize in pages, as it was always documented.
This value seems to never have been used anywhere.
This makes it consistent with it's cousin p_vm_msize (which is in pages as
well and has several uses).
2012-06-05 08:23:05 +00:00
sjg
b711398c86 Re-raising SIGINT etc, after running .INTERRUPT
provides much more reliable shutdown on some systems.
Based on CompatInterrupt in FreeBSD's make.
2012-06-05 06:11:51 +00:00
christos
ab0e24a0c8 new bind 2012-06-05 00:57:09 +00:00
christos
672c75b90f Merge bind-9.9.1-P1 to fix:
Processing of DNS resource records where the rdata field is zero length
may cause various issues for the servers handling them.
CVE: CVE-2012-1667
2012-06-05 00:38:45 +00:00
christos
e2fcebd868 bump for bind-9.9.1-P1 2012-06-05 00:37:46 +00:00
christos
f2d8e54f16 don't crash if add_history is called from an empty line. Called from
nslookup in new bind.
XXX: pullup to 6
2012-06-05 00:30:22 +00:00
sjg
5408a8dad9 Fix findenv() to fully match name 2012-06-04 22:45:05 +00:00
riastradh
482b8291f9 Use two separate comments for stub where IN_RENAME was. 2012-06-04 22:01:07 +00:00
joerg
02682f7d23 ANSIfy 2012-06-04 20:56:40 +00:00
sjg
8d38755103 Var_UnExport() and setenv() can both realloc environ.
Use a common variable (savedEnv) to track that to avoid wasting memory.
Also, if providing setenv and unsetenv, do getenv too to ensure a consistent
set.
2012-06-04 20:34:20 +00:00
rkujawa
553cd10b7f Add empb(4) page to distribution list 2012-06-04 20:19:28 +00:00
rkujawa
7e119a70fa Add man page for recently introduced empb(4). 2012-06-04 20:16:57 +00:00
riastradh
b8c3b27f99 Kill the IN_RENAME in-core inode flag in ufs and ext2fs.
Now that rename works we need not to wave this sort of voodoo at it.

ok dholland
2012-06-04 20:13:47 +00:00
riastradh
93765c12f0 Fix typo in comment: bp->b_bcount, not bp->b_count. 2012-06-04 19:58:57 +00:00
riastradh
2881e7e069 Fix ext2fs's scary cross-block directory message too.
(See rev. 1.3 of sys/ufs/ufs/ufs_rename.c for the analysis.)
2012-06-04 19:45:59 +00:00
rkujawa
e38ac060b1 Finally add support for memory space access for empb(4). Buggy but better than nothing. 2012-06-04 19:45:50 +00:00
riastradh
487d92ffe0 Kill scary message about cross-block directories and fix its cause.
Add a bunch of kasserts to check more stringently that ufs_direnter
did not compact across directory blocks.  Don't bother fetching
subsequent I/O blocks from the directory: ufs_lookup guarantees that
it's not necessary, and the kasserts check this to be sure.

The message fired when we were looking at the start of an I/O block,
not when we crossed from the end of one to the start of another.  I
believe it fired only when tulr->ulr_offset was a multiple of the I/O
block size (fs_bsize), which can happen if ufs_lookup either finds an
entry or finds free space at the start of an I/O block.

If ufs_lookup found an entry, none of this ulr recalculation logic
should kick in -- if tvp != NULL, then tulr->ulr_count is garbage, so
it's not merely unnecessary but wrong (although I suspect harmless in
the end) to read it in ufs_rename_overlap_p in consideration of
whether to recalculate fulr.

Discussed with chuq and dholland.

ok dholland
2012-06-04 19:37:36 +00:00
joerg
1fa9b84508 Add cdbr(3) support to tools/compat. 2012-06-04 19:06:45 +00:00
joerg
571103e860 Build getcap.c only once. 2012-06-04 18:53:02 +00:00
christos
4f3e64d772 Import bind 9.9.1-P1 2012-06-04 17:53:08 +00:00
riastradh
3ce4df2ac9 Tidy up some typos and vestiges in comments after the ulr changes. 2012-06-04 16:46:45 +00:00
njoly
0e4029fbef Small spacing fix. Unbreaks section in xref. 2012-06-04 14:24:03 +00:00
rkujawa
fca4069ffb Fix PCI interrupt handling on empb. Also, continue work on memory accesses. Now empb is good enough to handle satalink! 2012-06-04 12:56:48 +00:00
joerg
4b38c823d2 Make Alan Barrett happy and add (). 2012-06-04 10:18:01 +00:00
rmind
79afee64f7 npftest: add a module for TCP state tracking and add few test cases. 2012-06-04 00:28:34 +00:00
wiz
cad559dd33 Fix typos. 2012-06-04 00:26:29 +00:00
joerg
fc67b0cd11 Switch terminfo(3) to cdb(5). 2012-06-03 23:19:09 +00:00
joerg
1907ec3a61 Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
depend on new devname_r(3) as heart. Add /dev/pts magic directly to
devname(3). While it can lead to returning non-existing paths, the
behavior is more consistent that way. Drop caching layer in devname(3),
it doesn't buy anything for the common case of having access to the
database. Teach devname(3) proper fallback behavior of scanning /dev.
Create both old-style and new-style database for now in /etc/rc.d/sysdb.
2012-06-03 21:42:44 +00:00
joerg
e9c843846e Provide a usable thr_once for !_REENTRANT 2012-06-03 21:27:30 +00:00
joerg
f22837c031 Prototype for cdbw_stable_seeder. 2012-06-03 21:21:45 +00:00
joerg
f7ef3610be Add a special seeder for cdbw_output that gives stable results.
Hook up cdbw(3) for the tool build.
2012-06-03 21:02:50 +00:00
joerg
4f6bb5e029 Add __predict_true / __predict_false definitions. 2012-06-03 21:01:43 +00:00
rmind
227075769a Improve the wording slightly. 2012-06-03 17:12:49 +00:00
wiz
fc4d427c11 Remove superfluous Pp. New sentence, new line. Remove trailing whitespace. 2012-06-03 17:01:21 +00:00
rmind
0d6cd2ebfa rumpvfs:
- ubc_uiomove: avoid the re-lock dance, since the lock is shared these days.
- uvm_aio_aiodone: acquire the lock before modifying the page flags.

Tested by martin@.
2012-06-03 16:46:08 +00:00
dsl
5d8067f580 Use separate temporaries for the 'int' percentage and the 'long'
water marks.
Previous paniced on sparc64 due to a misaligned copy.
2012-06-03 16:23:44 +00:00
dsl
f4005a420d Remove a couple of (void *) casts added in the previous commin.
They aren't needed here (script error).
2012-06-03 13:52:46 +00:00
dsl
0334c2fd52 Fix processing of vm.bufmem_lowater and vm.bufmem_hiwater on 64bit systems.
The values are 'u_long' so copying them into an 'int' temporary
(to avoid writing an out of range value into the actual variable)
doesn't work too well at all.
Shows up on amd64 now that the sysctl values are marked as 64bit.
sparc64 must have been badly broken for ages.
2012-06-03 11:37:44 +00:00
dsl
9ba407934a Fix build - delete extra & 2012-06-03 10:59:44 +00:00
dsl
f7622c11cc Not sure why this has just started to fail!
But it really isn't a good idea to compare a uint64_t to NULL.
2012-06-03 10:53:51 +00:00
dsl
a59a164d85 Fix build now that sysctl_createv() checks its arg type. 2012-06-03 10:45:10 +00:00
sjg
81320ffe8e Handle "quoted strings" as items in a .for list 2012-06-03 04:29:40 +00:00
mrg
57caaffef7 add doucmentation for usb_{add,rem,init}_task(). 2012-06-03 02:56:36 +00:00
mrg
de6d466666 add documentation for:
- usbd_alloc_buffer
- usbd_free_buffe
- usbd_get_buffer
- usbd_do_request
- usbd_do_request_flags

begin to document the changes present on the USBMP branch:
- usbd_sync_transfer_sig
- usb_detach_wait
- usb_detach_broadcast

create a new section on device detachment.  XXX needs a code example.
2012-06-03 02:23:37 +00:00
joerg
49d8b9bb05 Spell NetBSD correctly. 2012-06-03 02:10:46 +00:00
nonaka
e18bf5b077 add rum, run, urtw, urtwn. 2012-06-03 01:47:26 +00:00
mrg
343e545c3e gives pipes and transfers their own .Sh section. 2012-06-02 23:39:03 +00:00