198269 Commits

Author SHA1 Message Date
jmcneill
8793159934 sync driver with openbsd 2011-02-21 23:50:42 +00:00
jmcneill
bab42b3956 add ieee80211_get_rts and ieee80211_get_cts_to_self from openbsd, ok dyoung@ 2011-02-21 23:50:08 +00:00
pooka
686a05ebe4 regen: NOERR syscalls 2011-02-21 23:31:00 +00:00
pooka
f7f707facb S'no way bro!
Return the correct return value from NOERR, which is retval
instead of error.
2011-02-21 23:30:12 +00:00
pooka
0aac2843ad Add syscall type NOERR which signals that a system call is STD but
does not return an errno the usual way.  The main use case is to
fix the posix_fadvise() rump stub (yes, posix_fadvise is a bit
special... bologna).

The list of NOERR syscalls currently matches the libc NOERR list
(and the libc Makefile can in the future be autogenerated from this
info).

Problem spotted by, *shocker*, the automated test runs, specifically
the posix_fadvise test.
2011-02-21 23:20:19 +00:00
drochner
4b552d0b1b adopt a fix from OpenBSD: when scanning the IPv6 header chain, take
into account that the extension header type is not in the extension
header itself but in the previous one -- this makes a difference
because (a) the length field is different for AH than for all others
and (b) the offset of the "next type" field isn't the same in primary
and extension headers.
(I didn't manage to trigger the bug in my tests, no extension headers
besides AH made it to that point. Didn't try hard enough -- the fix
is still valid.)
2011-02-21 22:54:45 +00:00
drochner
bc5ee3cb6d treat "struct secpolicyindex" and "struct secasindex" as "const" once
they are initialized -- during lifetime, no changes are expected
plus some constification of input to comparision functions etc
mostly required by the former
2011-02-21 22:28:18 +00:00
christos
d9b460fc9a belated mention for libsaslc. 2011-02-21 22:26:10 +00:00
drochner
7a1d44a2ce declare input to kdebug_*() functions which dump structures
to stdout in human readable form as "const"
2011-02-21 22:21:40 +00:00
christos
10e6f9749d remove duplicate weak aliases 2011-02-21 22:07:44 +00:00
riz
9613b94f2f mutex2/mutex3 are expected to fail on powerpc because of
PR port-powerpc/44387.

XXX the ugly sleep at the end is because ATF will mark an un-triggered
race condition (ie, the test passes unexpectedly) as a test failure otherwise.
2011-02-21 21:43:41 +00:00
pooka
e820d9fe44 Borrow the lwpctl data area from the parent for the vfork() child.
Otherwise the child will incorrectly see it is not running on any
CPU.  Among other things, this fixes crashes from having
LD_PRELOAD=libpthread.so set in the env.

reviewed by tech-kern
2011-02-21 20:23:28 +00:00
pooka
a63f48d68d If minfd for F_DUPFD is >= hijackoff, assume it means a minimum
value in the rump kernel and adjust accordingly.
2011-02-21 20:11:56 +00:00
pooka
29d11b7713 add command line options for kernel memory allocation limit and bootverbose 2011-02-21 18:50:21 +00:00
njoly
48553d3a03 Typo in macro. 2011-02-21 18:12:26 +00:00
sborrill
ff607cd15b man page claims that you can use auth type = none, but in reality this
didn't work (insisted on a username being given and then used, plus always
advertised CHAP to the target). Make initiator work as advertised (i.e.
defaults to auth type none and so don't require a username).

To use CHAP you should explicitly request CHAP:
iscsi-initiator -a chap -u user -h targetname /mountpoint

For backwards compatibility, if a username is given (-u) and no auth type
is specified (-a), it will default to CHAP, i.e. to use none, just give no
username:
iscsi-initiator -h targetname /mountpoint
2011-02-21 17:48:43 +00:00
sborrill
4fd58d7036 Remove hostname from pathname to storage in mount point.
This means /mnt/mytarget.domain.local/target0/storage is now
/mnt/target0/storage.

Rationale is as follows:
- The hostname used may vary (i.e. name vs FQDN vs IP) which can mess up
  mountpoints (especially across multiple hosts e.g. in a shared xen pool)
- Target name is given in the mount anyway so it is redundant

OK agc@
2011-02-21 17:24:19 +00:00
njoly
eeec3853c8 Small typo in macro (Ii -> It). 2011-02-21 17:05:50 +00:00
pooka
16122d6c6c Put coredumps back as a built-in. Until it can autoload or something,
there's no point in causing user-visible (and test-visible)
regressions.
2011-02-21 16:24:29 +00:00
jruoho
e2c550b000 Call pmf_device_deregister(9) during detach. 2011-02-21 15:10:54 +00:00
jmcneill
aa8968aa00 print the device name at attach, like so:
ath0 at pci4 dev 0 function 0: Atheros 9280
2011-02-21 14:43:58 +00:00
njoly
236d2fbff6 Fix section for umask xrefs. 2011-02-21 13:42:57 +00:00
njoly
1c1483eecb Regen: Add two more Intel 82Q45 devices. 2011-02-21 13:38:55 +00:00
njoly
9243552578 Add two more Intel 82Q45 devices. 2011-02-21 13:38:18 +00:00
pooka
b1f4a8807b disallow mmap(MAP_FILE) from a rump kernel fd 2011-02-21 13:19:35 +00:00
cegger
0b677bd453 make it compile with ATHHAL_DEBUG 2011-02-21 13:04:22 +00:00
jruoho
d5dcc43f93 Add couple of additional CPU model checks for the undocumented Tj(max). 2011-02-21 12:56:52 +00:00
pooka
dc0a4e21dd Actually, we need both lseek and _lseek so that out-of-libc references
go to the right place instead of directly to __lseek.  Seeking in
mplayer works now.
2011-02-21 12:55:21 +00:00
pooka
463ea53fc5 hijack:
1) {,f,l}chflags (used e.g. by cp(1))
  2) p{read,write}{,v} (used by many)
2011-02-21 12:51:06 +00:00
pooka
5c02795ed4 regen: preadv/pwritev 2011-02-21 12:49:49 +00:00
pooka
ca1f523968 somehow i've missed preadv/pwritev from rump-relevant syscalls 2011-02-21 12:49:06 +00:00
he
b062cb6f94 Since hilkbd_rawrepeat() is only defined under WSDISPLAY_COMPAT_RAWKBD,
protect the declaration similarly to avoid build failure of the INSTALL
kernel.
2011-02-21 12:33:05 +00:00
pooka
2e56e2896f regen: always explicitly set errno (fixes some apps) 2011-02-21 11:33:36 +00:00
pooka
a21e393066 commit regen for int -> pid_t fix 2011-02-21 11:32:26 +00:00
pooka
310e8fbde4 Make sure we don't expose any errno set as a side-effect of us
executing the system call.  Some software ignores the return value
and looks only at errno.
2011-02-21 11:29:53 +00:00
cegger
fd97aeb561 catch up to AR9285 changes 2011-02-21 11:16:47 +00:00
cegger
28720aefdd ath(4): Add support for AR9285 devices. 2011-02-21 11:09:16 +00:00
cegger
9aa13d102d add AR9285 support 2011-02-21 11:06:37 +00:00
pooka
91971b5261 Skip instead of fail test if tmpfs cannot be mounted and the
error is "Operation not supported".

makes the tmpfs tests produce a sensible result on platforms where
tmpfs is not available (such as the hpc* test runs)
2011-02-21 10:14:29 +00:00
pooka
7086d3d6fd Don't allow disabling a builtin secmodel: too many questionable
security implications.
2011-02-21 09:53:06 +00:00
hannken
296ec9e30e Change the snapshot lock:
- No need to take the snapshot lock while the file system is suspended.
- Allow ffs_copyonwrite() one level of recursion with snapshots locked.
- Do the block address lookup with snapshots locked.
- Take the snapshot lock while removing a snapshot from the list.

While hunting deadlocks change the transaction scope for ffs_snapremove().
We could deadlock from UFS_WAPBL_BEGIN() with a buffer held.
2011-02-21 09:29:21 +00:00
pooka
611baabe1a xfer rump_server(1), downgrade experimentalness level a bit 2011-02-21 08:50:45 +00:00
pooka
aa7f369f19 v-node -> vnode
(for consistency)
2011-02-21 07:11:11 +00:00
jruoho
94996a16e9 Use constants and bits(3), and fix a typo. 2011-02-21 05:26:08 +00:00
mrg
5d1c95e7b4 install geometry/sanwa, symbols/ph and symbols/rupeesign. 2011-02-21 05:10:27 +00:00
mrg
b6bcd34d19 define HAVE_GETPAGESIZE. 2011-02-21 05:09:53 +00:00
mrg
1a8c47fa93 find the moved man page from xkbcomp 1.2.1. 2011-02-21 04:54:52 +00:00
mrg
71f2171a24 obsolete a couple of xkb files no longer present in xkbcomp 1.2.1. 2011-02-21 04:53:52 +00:00
mrg
afa05ee8cd define PCVT_SUPPORT ofppc anywhere other ppc platforms do.
part of the way to getting xorg working on ofppc.
2011-02-21 04:42:16 +00:00
mrg
70c2c252ae define HAVE_ASPRINTF and find the moved man page after xrdb 1.0.8 update. 2011-02-21 04:40:55 +00:00