Commit Graph

211396 Commits

Author SHA1 Message Date
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
mrg 2ae34fcc5d document usbd_open_pipe*(). fix some minor errors.
prepare to re-structure a lot of stuff.
2012-06-02 23:33:16 +00:00
mrg 9c94f403d6 greatly expand the discussion on transfers and provide most of the details
needed to alloc, setup, transfer and obtain the status of them.
this takes care of:
  - usbd_close_pipe
  - usbd_alloc_xfer
  - usbd_free_xfer
  - usbd_setup{,_default,_isoc}_xfer
  - usbd_transfer
  - usbd_{bulk,intr}_transfer
  - usbd_transfer_sync{,_sig}
  - usbd_get_xfer_status
as well as callback and request information.

update the list of functions missing real descriptions.  there are about
30 usbdi.h and 35 usbdi_util.h functions remaining.
2012-06-02 23:10:12 +00:00
joerg b203f35690 Don't depend on __P. 2012-06-02 22:54:52 +00:00
uwe 310c8e11f2 Claim copyright (per Joerg's request). 2012-06-02 22:15:15 +00:00
mrg 62d6a317f7 enable building with ath* at pci?. it worked but my pci atheros card
seems to make netbsd lock up when you try to use it, on at least
ofppc, macppc, amd64 platofrms and last i tried on sparc64, causes
alignment faults.  oh well.
2012-06-02 21:47:46 +00:00
dsl 0836a9f544 Add support for unsigned decimal values. 2012-06-02 21:38:09 +00:00
dsl e21a34c25e Add some pre-processor magic to verify that the type of the data item
passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
2012-06-02 21:36:41 +00:00
dsl d50a2c9fa0 Add a __always_inline 2012-06-02 21:27:51 +00:00
skrll b0ba536ed5 Whitespace. 2012-06-02 20:50:41 +00:00
roy b7ddb5da20 Ensure that we request a buffer big enough, although with the current
terminfo specification this should never happen.
Correctly return NULL when realloc(3) fails.
2012-06-02 19:10:33 +00:00
christos 632a99a18c put back missing break; 2012-06-02 18:32:27 +00:00
martin 86b8339d8d adapt to new reality 2012-06-02 16:52:18 +00:00
mlelstv 7c7e8556c3 avoid namespace pollution when debugging
don't panic when printing data for a dead (NULL) connection
2012-06-02 16:52:11 +00:00
christos cf50f3a20b the gnu tag name is valid for both type 1 (abi) and type 3 (build id) 2012-06-02 16:48:13 +00:00
christos fd4605203e - fix some mallocs not to have casts and specify sizeof(*var)
- if the index magic is 0, don't complain, just return an error.
- make dprintfs use __func__
2012-06-02 16:26:24 +00:00
martin 10212e900c Stopgap fix for PR kern/46463: disallow passing of kqueue descriptors
via SCM_RIGHT anxiliary socket messages.
2012-06-02 16:16:16 +00:00
martin 7849de7539 Remove an unused variable 2012-06-02 15:54:02 +00:00
christos 44184cf8bf PR/46521: Jim Bernard: remove duplicate -o 2012-06-02 15:52:24 +00:00
njoly f567e6f954 Adjust test for recent atf_machine (amd64) -> atf_arch (x86_64)
change.
2012-06-02 14:52:28 +00:00
christos b779684dca p->out is always NULL here 2012-06-02 14:37:38 +00:00
christos 13118cd147 PR/46518: Nat Sloss: stbi splash: compressed PNG file causes panic
Make the kernel FREE macro behave like the userland free(3), i.e. accept NULL
2012-06-02 14:30:04 +00:00
martin 51747486d1 Nat Sloss in PR kern/46516: advance fb pointer by stride, not logical
width of the splash image.
2012-06-02 14:24:00 +00:00
njoly fd5f5a6e67 Switch from Op to Oo/Oc for nested block. 2012-06-02 14:19:20 +00:00
njoly 4abd1e694d Add missing El macro. 2012-06-02 14:04:34 +00:00
njoly 9ed150d1de Adjust 'Video' column width. 2012-06-02 13:54:49 +00:00
njoly 39880f6377 Fix Bl -tag width arguments. 2012-06-02 11:54:07 +00:00
njoly a3f13c1d14 Kill extra El macro. 2012-06-02 10:25:07 +00:00