Commit Graph

171042 Commits

Author SHA1 Message Date
tls
f5792c6ee8 Apply patch from Darryl Miles which adjusts SSL_shutdown's behavior for
non-blocking BIOs so that it is sane -- so that, in other words, -1 with
a meaningful library error code (WANT_READ or WANT_WRITE) is returned
when we would block for I/O.  Without this change, you have to sleep or
spin -- you can't know how to put the underlying socket in your select
or poll set.

Patch from http://marc.info/?l=openssl-dev&m=115154030723033&w=2 and
rationale at http://marc.info/?l=openssl-dev&m=115153998821797&w=2 where
sadly they were overlooked by the OpenSSL team for some time.  It is hoped
that now that we've brought this change to their attention they will
integrate it into their sources and we can lose the local change in
NetBSD.
2008-06-10 19:45:00 +00:00
aymeric
2974b82da3 enable the wcurses-enabled vi as 'nvi', 'nex', and 'nview'.
Will be put in place of the default "non-n" variants when they are stable.
2008-06-10 18:41:47 +00:00
drochner
b66156c7c9 Disable use of pseudo-devices defined "defpseudo" with interface
attributes, but provide compatibility for older source trees (according
to the "version" in conf/files and other files.*.
reviewed by cube
2008-06-10 18:11:31 +00:00
simonb
c097615632 Describe the simonb-wapbl branch. 2008-06-10 14:43:36 +00:00
simonb
a0f8ee25d3 In mount_domount() there is no need to initialise "mp" if the first time
we use it we set it.
2008-06-10 14:14:01 +00:00
cube
53faa53d5a Do proper config(5) version checking after previous changes [hi drochner!].
The rule is, if you change scan.l or gram.y, you bump the config(5)
version.  If you implement the changes under sys/conf/files or affiliate,
you bump the required version in sys/conf/files or in an appropriate place
to minimise annoyance.  If the changes makes new config(1) incompatible
with a previous version of config(5), embed it in config(1) using the
CONFIG_MINVERSION definition along with CONFIG_VERSION.

This has been in the tree for what, 3 years now?  It's even documented...
2008-06-10 14:03:57 +00:00
hamajima
842797c2cc revise for reorganized MI i2c_bitbang.c 2008-06-10 13:53:28 +00:00
wiz
3c60159914 Bump date for previous. 2008-06-10 12:56:33 +00:00
drochner
1f0a423884 use new "defpseudodev" where appropriate, and remove dummy interface
attribute definitions which were only to trick config(8)
2008-06-10 12:49:16 +00:00
drochner
8456b350de Seperate pseudo-devs which don't use device_t et al. (the classical
ones, mostly network pseudo interfaces) and those which use autoconf
to attach instances dynamically, or to attach child devices.
Use a new keyword "defpseudodev" for the latter.
Issue a warning if interface attributes are used with "old" pseudodevs,
but let it work as before for now. This will be removed soon.
approved by cube
2008-06-10 12:35:32 +00:00
ad
06da5288fa There can be existing waiters on a socket's condition variables when we
change socket::so_lock, and they rely on the old lock to synchronize.
Wake them up whenever we change so_lock so they can restart their waits.
2008-06-10 11:49:11 +00:00
ad
0964f00a45 Replace the example with something a bit more up to date. 2008-06-09 21:58:57 +00:00
njoly
f7cecd2466 Do set mbuf in all cases, even for salen value of 0; otherwise this
will make a panic later when trying to free memory from a random
adress.

XXX Need to revisit it later to avoid mbuf allocation in this case.
2008-06-09 21:17:58 +00:00
he
28599b0f97 Mirror the changes to sys/arch/cats/conf/Makefile.cats.inc: remove
some more ELF sections when copying to a.out format: .debug_frame,
.debug_loc, .debug_pubnames, and .debug_aranges.
2008-06-09 20:05:12 +00:00
tsutsui
bdb5991549 Emulate open collector output more properly to make it work with
reorganized MI i2c_bitbang.c:
- set GPOER register in set_dir function too according to GPOUTR value
- in set_bits function, don't set SDA_BIT implicitly in input mode and
  check current direction to handle GPOER register
- no need to check direction in read_check function because reading SCL
  is valid even if SDA is output

Tested by Donald T Hayford on port-arm.
2008-06-09 15:42:25 +00:00
ad
da0a41c294 Update a comment. 2008-06-09 15:42:01 +00:00
ad
6bb1c8bc6f swappable: invert previous so we check for SACTIVE or SSTOP. 2008-06-09 11:52:34 +00:00
ad
a3196ec57e swappable: return false if l->l_proc->p_stat == SDYING. 2008-06-09 11:51:43 +00:00
ad
0cd7bfa598 uvm_proc_exit: use macros to disable preemption. 2008-06-09 11:49:54 +00:00
ad
f77c704577 Fix error in previous. 2008-06-09 11:49:40 +00:00
ad
c862aeca6f ras_purgeall: avoid taking p_auxlock. 2008-06-09 11:46:34 +00:00
freza
6e9d339816 o Split device_t/softc for agp(4).
o agp_ali.c: remove unused 'agp' member from agp_ali_softc.
o drm: agp_find_device() returns 'void *', not a device_t.
o Use device_t, cfdata_t instead of struct pointers.
o Don't cast void pointers in assignments.
2008-06-09 06:49:54 +00:00
lukem
8cc604a385 Add missing RCSID. 2008-06-09 01:00:23 +00:00
lukem
ef70558f4f Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
2008-06-09 00:33:39 +00:00
uwe
b3f49ac041 sh_vector_generic - reorder literals to improve locality of reference. 2008-06-08 23:45:33 +00:00
uwe
1a80db70f1 Match PC address for single-stepping, program BARA = tf->tf_spc before
returning from exception.

Makes single-stepping work on sh3 - without matching the address sh3
gets stuck at the instruction we are at, getting EXPEVT_BREAK before
executing the instruction.
2008-06-08 22:13:09 +00:00
uwe
ce2ea531e9 Use "pc" and "sr" instead of "spc" and "ssr" to refer to those
registers in DDB.  Names with initial "s" (for "saved") are somewhat
confusing to use.  The fact that we use SPC/SSR registers to retrieve
values of PC/SR at the moment of trap is an immaterial implementation
detail.
2008-06-08 22:02:08 +00:00
tsutsui
62e807c2fe Use device_lookup_private() rather than using cd_devs[] directly to get softc. 2008-06-08 18:35:25 +00:00
tsutsui
9499107496 Use device_lookup_private() rathter than device_private(device_lookup()). 2008-06-08 18:34:06 +00:00
tsutsui
887a89aa5c Use device_lookup_private() rather than using cd_devs[] directly to get softc.
XXX maybe we should change a type of cd_devs[] in struct cfdriver
    from (void *) to device_t.
2008-06-08 18:18:33 +00:00
tsutsui
c9a8620b99 Replace homegrown pad_find_softc() with device_lookup_private(). 2008-06-08 18:14:31 +00:00
tsutsui
fefb677d21 Use device_private() and device_lookup_private() to get softc
and to see if device unit is vaild.
2008-06-08 17:30:08 +00:00
tsutsui
edcf0507a0 Use device_private() and device_lookup_private() in more places. 2008-06-08 17:27:51 +00:00
tsutsui
e45b74073d Use device_private() and device_lookup_private() to get softc. 2008-06-08 17:08:23 +00:00
tsutsui
a0e4edbb58 Use device_lookup_private() to get softc. 2008-06-08 16:39:43 +00:00
tsutsui
40b72ee81a Use device_private() and device_lookup_private() to get softc. 2008-06-08 16:39:11 +00:00
tsutsui
5b30cb96d9 Use device_lookup_private() to get softc. 2008-06-08 15:44:17 +00:00
joerg
d2768df2f3 Mention 64bit support once during boot and not every time the controller
is reset.
2008-06-08 14:02:25 +00:00
tsutsui
1f459d82b5 Replace device_lookup() with device_lookup_private() on getting softc
for future device_t/softc spilt.
2008-06-08 12:43:51 +00:00
ad
5ab3329550 Correct previous. 2008-06-08 12:23:18 +00:00
ad
7304342b50 cdev_tty: don't acquire kernel lock, as we may need to call this with
tty_lock already held (and it would reverse the usual lock order).
2008-06-08 12:22:39 +00:00
ad
536e41c542 Fix up bus_dmamap_sync calls. 2008-06-08 11:58:50 +00:00
mlelstv
6e5c763373 really set Tx thresholds 2008-06-08 11:41:26 +00:00
darrenr
1752f1637c Use of kernel malloc to record what memory ipfilter was using was broken
due to bad placement of a #define inside a macro that was never true for
a kernel build.
2008-06-08 11:31:28 +00:00
cegger
cd3c32c639 make this build with AZALIA_DEBUG
get rid of XNAME macro
2008-06-08 08:47:05 +00:00
tsutsui
1c6ef0f169 Add device nodes for usb devices. 2008-06-08 04:05:58 +00:00
tsutsui
b3d67eaca7 Remove unnecessary casts against void pointers. 2008-06-08 03:56:09 +00:00
tsutsui
ec3c45aecf Replace device_lookup() with device_lookup_private() to get softc
after device_t/softc split.  PR kern/38885 from Jonathan A. Kollasch.
2008-06-08 03:49:26 +00:00
uwe
bb8100256b Cosmetics: add blank lines to make db_trap() call more prominent.
s/kdb/ddb/ is a comment (does anyone really still calls it kdb?)
2008-06-07 22:37:11 +00:00
uwe
dcbf54d0f9 We never pass type = -1 to kdb_trap() so g/c that cargo-culted case. 2008-06-07 22:32:18 +00:00