Commit Graph

241912 Commits

Author SHA1 Message Date
riastradh
7256e74462 Prevent autounload while cyclics are still in use. 2016-04-09 14:50:08 +00:00
uwe
56571e06b5 Use \(em for em-dash. 2016-04-09 13:38:20 +00:00
uwe
1ecc79c9d0 Add couple of missing .Ns 2016-04-09 13:34:33 +00:00
martin
bd8b9a5dcb Add t_pslist.debug 2016-04-09 09:58:11 +00:00
riastradh
c03dceb184 Add passive references, intermediate between pserialize and refcount.
Discussed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2016/01/24/msg020069.html

API is still experimental and likely to change.  (Obvious changes:
either remove extra arguments everywhere, or shrink psref_target to a
single bit, at the expense of possibly valuable diagnostic checks.)
Should do some real testing before we use this in anger!
2016-04-09 06:21:16 +00:00
riastradh
57883e65af Fix name of example list head. 2016-04-09 05:16:23 +00:00
riastradh
4f7dd3337d Introduce pserialize-safe linked lists.
These are like LIST_* from queue(3), but issue the appropriate memory
barriers for pserialize readers and writers.

Discussed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2016/04/03/msg020365.html
2016-04-09 04:39:46 +00:00
riastradh
2233768047 Make this list diff- and sort-friendlier.
No functional change.
2016-04-08 21:53:10 +00:00
roy
5614feca68 Revert prior. 2016-04-08 14:52:56 +00:00
roy
111ee86de4 Revert prior. 2016-04-08 14:30:47 +00:00
christos
d5e7bf8bbf - remove printf
- fix indent
2016-04-08 12:01:22 +00:00
christos
7be14baef5 remove HAVE_FPARSELN 2016-04-08 11:56:43 +00:00
gson
5973801c0c Add regression tests for some past gdb bugs. 2016-04-08 10:09:16 +00:00
riastradh
feb61835e6 __diagused, not __unused -- used in an assert. 2016-04-07 23:29:59 +00:00
christos
5d7cee0467 Use sockaddr_dl_init 2016-04-07 21:41:02 +00:00
palle
d0242aefce Rework locking mechanism introduced in rev. 1.21: use __cpu_simple_lock... instead of mutex_... since this causes issues when LOCKDEBUG is defined 2016-04-07 19:46:39 +00:00
mrg
360285623c include opt_compat_netbsd.h to get COMPAT_SOCKCRED70 defined. 2016-04-07 17:48:40 +00:00
riastradh
f408525b7f Reminder to add RCSIDs in any future DRM update. 2016-04-07 15:36:42 +00:00
christos
57b625b6f2 remove more ifdefs 2016-04-07 12:06:50 +00:00
dholland
eb0c9743f2 _SC_PAGESIZE is not the page size; it's a symbolic code for retrieving
the page size.
2016-04-07 06:21:48 +00:00
christos
c586dc1f9c remove useless cast. 2016-04-07 04:04:47 +00:00
christos
03c12592a0 Add PAX_MPROTECT_DEBUG 2016-04-07 03:31:12 +00:00
christos
b988d754df - tidy up error messages
- add a length argument to arpresolve()
- add KASSERT for overflow
2016-04-07 03:22:15 +00:00
christos
cba63d3064 Don't create an RTM_MISS message for every route allocation.
GC unused code and variables.
2016-04-07 03:09:56 +00:00
macallan
06576a066a moar registers, less tpyos 2016-04-07 01:00:05 +00:00
skrll
1a04d8c9f0 Improve ddb(4) show kernhist
1) really prints all the histories merged together (rather than just the
   "first" when no argument specified
2) dumps a single history when an argument is given, e.g.
   "show kernhist usbhist"
3) uses db_printf correctly
2016-04-06 21:56:24 +00:00
roy
bb67ec8f00 Add sc_pid to sockcred so that SOCK_DGRAM and LOCAL_CREDS socket option
can learn the process id of the AF_LOCAL sender.
Add compat glue for old structure.
2016-04-06 19:45:45 +00:00
christos
ee5f11c12c pretty-print link addresses. 2016-04-06 18:04:58 +00:00
christos
d5ee3894c1 Don't interpret routing requests by interface index as arp entry additions! 2016-04-06 17:34:33 +00:00
roy
3fca7e8b13 Fix rssi 2016-04-06 15:10:35 +00:00
roy
50101ec8fb ieee80211 users in Other OS export rssi and noise as int8_t.
We should not be the odd one out for no good reason and the majority
of the ieee80211 drivers treat rssi as int8_t.
2016-04-06 14:42:16 +00:00
roy
cdda39d7e5 Revert prior, no idea why it was causing me problems, but it no longer does. 2016-04-06 11:07:58 +00:00
gson
4efe3992f9 Fully avoid the nonstandard types u_char, u_int, and u_long, which
were only used inconsistently in a few places anyway.
2016-04-06 09:57:00 +00:00
ozaki-r
59c50f3fa9 Fill rtm_addrs properly
This fixes that arp(8) on some archs (only 32bit?) shows "(weird)"
for every entries unexpectedly.

Confirmed on evbarm by ryo@ and i386 by me.
2016-04-06 08:45:46 +00:00
wiz
54920d4dc7 Drop trailing whitespace. 2016-04-06 08:18:35 +00:00
ozaki-r
25d196eae4 Fill sdl with sockaddr_dl_init
And add an assertion of if_addrlen and ll_addr.

From christos@
2016-04-06 07:59:26 +00:00
christos
7ffce30f1b revert part of previous; not needed. 2016-04-06 04:09:10 +00:00
christos
e533605fa6 Use WIFCONTINUED. 2016-04-06 03:52:27 +00:00
christos
d583d77111 Implement WIFCONTINUED using the linux value instead of the FreeBSD one... 2016-04-06 03:51:26 +00:00
christos
a071bd3ff9 - clarify si_signo difference for waitid and wait6 as per POSIX.
- implement it.
- document WIFCONTINUED
2016-04-06 03:50:03 +00:00
dholland
3f5237a6a3 improve usage 2016-04-06 03:38:31 +00:00
christos
9fe48813ae don't create ktrace records if we were not asked. 2016-04-06 03:11:31 +00:00
christos
bd76bbe652 Fix ATF_REQUIRE(false) 2016-04-06 00:52:45 +00:00
christos
5ba99e8511 Add parent notification on SIGCONT as required by waitid(2)/wait6(2) 2016-04-06 00:48:30 +00:00
christos
5629d779d4 Add wait tests. 2016-04-06 00:47:15 +00:00
christos
8283334aac Add wait6(2) tests. 2016-04-06 00:45:53 +00:00
pgoyette
b05cba24c7 Add modular dependency on zlib module. 2016-04-05 23:44:05 +00:00
pgoyette
fb73b1d308 Update dependency: zlib is only needed for the swcrypto device, not for
any other component of opencrypto.
2016-04-05 22:51:01 +00:00
roy
da98c8b8e3 Stop calling reallocarr and just do the same bounds checking but without
messing around with copying pointers which was causing ssh to crash.
2016-04-05 15:01:26 +00:00
christos
0fe87e3916 Simplify even more to make it clear how the status is set. 2016-04-05 14:07:31 +00:00