Commit Graph

185498 Commits

Author SHA1 Message Date
pooka
2a93cba43c In getgroups(), copy only up to the number of supplementary groups
that actually exist.
2009-11-20 14:23:54 +00:00
pooka
96ae77ca39 Add "wizardmode", which allows to specify the uid which is used to
access the file system instead of using the caller uid.  This is
useful for example when modifying the root fs image for an OS
installation without wanting to dance around as root on the host.

idspispopd
2009-11-20 14:11:38 +00:00
roy
fab5d12590 Allow chown if caller is in the new group. 2009-11-20 13:42:43 +00:00
pooka
fb54d5c528 Disallow chown for files the caller does not own. 2009-11-20 13:19:46 +00:00
pooka
59f20ea12d Hmm, in addition to leaving out -lc, -nostdlibs also leaves out
libgcc, and causes problems on some platforms.  Currently there is
no easy way to say "link against libgcc but not against libc", so
just comment out -nostdlibs until a better way is invented.
2009-11-20 12:24:17 +00:00
njoly
6afff4b463 Make linux32_msqid_ds l_msg_[src]time members use the right type,
linux32_time_t.
2009-11-20 11:54:08 +00:00
agc
632dc3ac9b Unbreak the creation of ascii-armoured signatures.
Add automatic detection of ascii-armoured signatures.

Add tests for same - with small and large source files.
2009-11-20 07:17:07 +00:00
rmind
80225f9670 Add lwp_getpcb(). OK matt@. 2009-11-20 03:12:13 +00:00
christos
e1121c3aa6 make atomics usable from c++! 2009-11-20 02:17:07 +00:00
christos
dd8534acfe ar_tha() can return NULL; treat this as an error. 2009-11-20 02:14:56 +00:00
christos
6b6eea3c51 allow comparing v2 and v3 filehandles. 2009-11-19 22:27:26 +00:00
dsl
9c09cc2745 Add 32 bit versions of message and dump_eax that write directly to
the serial port. Useful for debugging - especially real_to_prot!
2009-11-19 22:13:17 +00:00
dsl
bde6465dfb Move code for outputting directly to the serial port into message.S
Allows it to be enabled for other parts of the boot sequence.
2009-11-19 22:10:03 +00:00
dsl
cc7a493e8e Shorten slightly 2009-11-19 22:08:14 +00:00
agc
ad7bc21d21 Commit some changes that have been in a private tree for a while:
+ add a netpgp library function - netpgp_get_key(3) - to print a
specific key
+ add functionality to call this function in netpgpkeys(1)
+ add test for netpgp_get_key
+ add a verbose switch to the tst script
+ add netpgp functions to expose the memory signing and verification
functions - netpgp_sign_memory(3) and netpgp_verify_memory(3)
+ coalesced signing and verification ops file functions
2009-11-19 21:56:00 +00:00
drochner
9589066022 remove some unnecessary .OBJDIR prefixes in make targets
being here, add NetBSD.dist to CLEANFILES
2009-11-19 19:57:40 +00:00
skrll
71dad8f507 Fix itlb_cf and dtlb_cf. 2009-11-19 19:28:14 +00:00
pooka
c58b208bec Send VOP_ABORTOP() in case attempting cross-dev rename, part of
PR kern/42210.  Also, fix a memory management error in said case.
2009-11-19 16:21:04 +00:00
pooka
3214542837 Send VOP_ABORTOP() as a FAF -- we don't care about the return value. 2009-11-19 15:50:49 +00:00
pooka
8e8d412248 Create async i/o "interrupt" thread from within the kernel so that
it gets a kernel thread context.
2009-11-19 14:44:58 +00:00
pooka
1de15b17c4 * don't open device when calling getfileinfo(), it might need to open
the device and will f-a-i-l if it's a block device
* use rumpuser_ioctl() as little as possible (going away completely
  wewy wewy soon)
* improve some variable scoping
2009-11-19 13:46:55 +00:00
pooka
e7c51ca379 .. umm, and use correct device value for previous.
And use 64bit arithmetic.
2009-11-19 13:42:29 +00:00
pooka
69eddfb6c5 Improve host file size detection for devices (i.e. make it work).
Use ioctl() on NetBSD since it appears to be the only way to get
the info.  On other platforms, attempt lseek() and if that doesn't
work, punt, and hope someone comes along with a better implementation
later.
2009-11-19 13:25:48 +00:00
wiz
af753b56d3 New sentence, new line; remove trailing whitespace. 2009-11-19 06:48:37 +00:00
enami
07ab814664 Fix indentation, wrap long line and remove unused variable. 2009-11-19 03:01:05 +00:00
enami
9f91c09ebc Add missing vfs_unbusy() call in error path of sysctl_kern_vnode().
This allows us to reboot machine successfully even if pstat -v fails once.
2009-11-19 02:59:33 +00:00
enami
29551a2991 Prevent sign extension when reading device number in ufs1 on disk inode
so that devname(3) correctly converts it to device filename.
2009-11-19 02:52:54 +00:00
sjg
9772f81de8 Add .unexport - the exact opposite of .export
and .unexport-env which unexport's all previously .export'd globals
as well as clearing environ[].
Allow's sys.mk near total controll.

Reviewed by: apb
2009-11-19 00:30:25 +00:00
sjg
b87966b319 PR: make.unexport
Reviewed by:
2009-11-19 00:30:24 +00:00
sjg
f3c8b50aa4 Add .unexport - the exact opposite of .export
and .unexport-env which unexport's all previously .export'd globals
as well as clearing environ[].
Allow's sys.mk near total controll.

Reviewed by: apb
2009-11-19 00:30:24 +00:00
bouyer
33ba652f9b bnx(4): Added support for Broadcom BCM5709 and BCM5716 chips. 2009-11-18 23:13:09 +00:00
bouyer
1f4d2fce07 Sync with OpenBSD: if_bnx.c,v 1.85. Major changes:
Add support for the Broadcom BCM5709 and BCM5716 chips. This upgrade
the B06 firmware, and add the B09 firmware required by the BCM5709.
Remplace TX dmamap array with a dynamically-grown list.

Tested with:
bnx0 at pci4 dev 0 function 0: Broadcom NetXtreme II BCM5708 1000Base-T
and
bnx0 at pci0 dev 0 function 0: Broadcom NetXtreme II BCM5709 1000Base-SX
2009-11-18 23:11:16 +00:00
bouyer
e864a44956 Support BCM5709CAX and BCM5709C PHYs. 2009-11-18 23:02:12 +00:00
bouyer
037713ff86 Regen: Add BCM5709CAX and BCM5709C PHYs. 2009-11-18 23:01:47 +00:00
bouyer
d4753b2acd Add BCM5709CAX and BCM5709C PHYs. 2009-11-18 23:00:46 +00:00
bouyer
0ba7ca8106 Regen: Complete BROADCOM BCM5709 family, and add BCM5716 family. 2009-11-18 22:59:56 +00:00
bouyer
043ccc97e9 Complete BROADCOM BCM5709 family, and add BCM5716 family. 2009-11-18 22:57:38 +00:00
dyoung
d53ef3367c wdcactivate() is gone, don't use it. 2009-11-18 22:51:07 +00:00
macallan
910612113d Make colour depths higher than 8bit work in X.
Now igsfb will switch to 16 or 32 bit colour when entering graphics mode,
depending on available video memory and the given mode.
While there re-initialize the colour map etc. when leaving graphics mode.
2009-11-18 21:59:38 +00:00
dsl
c32688c3c2 Reinstate the banner.
This was added to detect problems when the mbr code gets written into the pbr.
(When the code loops reading the pbr!)
It is also a useful diagnosting that the boot it proceeding normally.
2009-11-18 21:04:12 +00:00
dsl
1e2fe5a0f2 Reinstate the 'banner'.
It is a useful diagnostic that the boot sequence is proceeding.
2009-11-18 21:02:16 +00:00
dsl
eae5810c3d Adjust the way references to the unrelocated addresses are done so
that the address doesn't have to be passed in.
Adjust #ifdef so that only one item is checked - at it is the one used.
2009-11-18 20:51:22 +00:00
dsl
1dc876966b Keep the output of 'ld' prior to extracting the image.
Useful for debugging (etc) since it contains the symbols.
2009-11-18 20:33:39 +00:00
jakllsch
1ae9ec6017 Match VT8251 IDE controller and enable UDMA Mode 6 thereon.
Should fix PATA speed issue in PR/37517.
Due to lack of hardware, only compile tested at this point.
2009-11-18 19:42:18 +00:00
jakllsch
49e23db07d regen. 2009-11-18 18:44:55 +00:00
jakllsch
afcd4ff2b9 Drop unused/duplicate VIATECH VT8237_PCIB entry.
While here, drop "(Apollo KT600)" from VIATECH VT8237, and s/ISA/LPC/.
Additionally, add LPC Bridge ID for VT8251 from PR/37517.
2009-11-18 18:42:08 +00:00
eeh
4758e23503 Add a command to dump all thread stacks in the system and a command to dump
lockdebug state.
2009-11-18 18:12:00 +00:00
eeh
4d55497aed Add the lwp address so you don't have to leave gdb and use ps to grab an lwp's
stack.
2009-11-18 18:05:51 +00:00
pooka
3f3cc8c2db Add rumptest command for testing rump linkage. 2009-11-18 18:05:19 +00:00
eeh
eea5c3505f Print out all 64-bits of 64-bit values on 64-bit machines and add documentation
of these commands to gdb.
2009-11-18 18:04:26 +00:00