Commit Graph

164337 Commits

Author SHA1 Message Date
jnemeth 85c7ab0640 add a sample XAuthLocation for x.org users as discussed on pkgsrc-users@ 2007-12-08 19:03:28 +00:00
jdc 7cc6075b0e Keep pushed-back characters locally. Fixes problems where KEY_* symbols
are pushed back.  Should fix the arrow keys part of PR pkg/37173.

While we are here, make getch() and get_wch() check for resize immediately,
instead of reading a key, checking for resize and then having to push-back
the just read key.
2007-12-08 18:38:11 +00:00
dsl 28bae79b27 ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
2007-12-08 18:35:53 +00:00
he c26a54ba24 Ensure that we pass -z initfirst to the linker. The mips gcc
was unhappy about the missing -Wl specification.
2007-12-08 18:34:51 +00:00
mjf a231613bc3 Whoops, move my branches into the active section.
Thanks Dennis!
2007-12-08 18:15:29 +00:00
apb 5e14203889 Update some comments and remove an unnecessary eval. No functional change. 2007-12-08 17:52:34 +00:00
apb 3bc3600ea3 Add a linecount shell function, and use it to count the lines in the
output from MAKEDEV.local.

Fixes PR 37498 from dlagner at rambler.ru, using an idea from David
Laight.  The while loop in the old code is executed in a subshell, so it
can't make persistent modifications to the parent shell's variables.
2007-12-08 17:31:12 +00:00
xtraeme 1e1bd31956 Add some more firmware command/status codes from the freebsd driver. 2007-12-08 16:53:19 +00:00
tsutsui 2dc9b9cb28 ufs_ls.c doesn't belong to lfs. 2007-12-08 16:00:25 +00:00
ad 6ab26a0fa8 Partially merge syncer changes from vmlocking2. 2007-12-08 15:47:32 +00:00
ad 371ba00b4a Allocate amaps from a pool_cache. 2007-12-08 15:46:31 +00:00
tsutsui 0ac5343d25 Pull several fixes from OpenBSD's fxp.c:
Rev 1.41:
> use a nop with I bit set at the end of the tx chain.  This avoids a race
> between status update and clearing the suspend bit on machines which can't
> write data smaller than 32bits at a time.
This should fix PR port-alpha/30560.

Rev 1.50:
> Fix nasty bug where driver would not correctly catch and handle an rnr
> condition when it was due to the the recieve buffers being exhausted with
> no packet transmits during that time. Symptom was that the fxp would
> simply stop interrupting for the next 15 seconds until the watchdog kicked
> in and reset the chip due to 15 seconds of inactivity, making the fxp very
> poorly behaved when hammered on hard.

Rev 1.61:
> Defer reinitialisation of the RU until after the interrupt handler has had
> a chance to process all pending packets, otherwise the chip may overwrite
> their mbuf clusters after we have freed them.
>
> Eliminates a race that can cause random pool corruption when reconfiguring
> an interface under heavy network load.

And one more change for RX sanity:
- put RU into suspend when the last RFA is processed.

These RNR/RU changes may fix pool corruption problems on fxp.

Tested on AlphaPC164 and i386 with i82559 and i82550.
2007-12-08 15:45:43 +00:00
ad de874f619c Merge from vmlocking2 (use cdev_mmap()). 2007-12-08 15:33:09 +00:00
ober 86724c8c4c Remove pccons as it is gone forever. 2007-12-08 15:31:16 +00:00
ad 5870896633 Grab ump->um_lock in another spot. 2007-12-08 15:23:32 +00:00
ad c27abd2a99 Add some comments. 2007-12-08 15:21:19 +00:00
oster b99a3154c6 Add bits needed by my last changes to iscsifs.c (oops! :( ). In
particular, initialize the target name properly in g_target, and add
functions for setting the target name and retrieving a list of
available targets.

Thanks to agc for catching this.
2007-12-08 15:20:24 +00:00
ad 7c9b007bbc Destroy ovm_hashlock before freeing. 2007-12-08 15:12:15 +00:00
ad 0444cfe507 Use kmem_alloc/free. 2007-12-08 15:10:22 +00:00
ad 5e0c5eae3c Unbork 2007-12-08 15:04:29 +00:00
ad a9eb927490 Merge from vmlocking2: don't hold semlock across copyin(). 2007-12-08 15:02:46 +00:00
ad 461cd942ea Merge changes from vmlocking2 branch. 2007-12-08 15:00:13 +00:00
ad 1bea664342 Merge ihash locking changes from the vmlocking branch. 2007-12-08 14:48:33 +00:00
ad 6a3b582fe3 Merge locking changes + fixes from the vmlocking branch. 2007-12-08 14:41:11 +00:00
ad e1d841a734 struct lock -> kmutex_t 2007-12-08 13:54:32 +00:00
elad 51fe5bc63c Replace usage of p_cred in kauth(9) call with kauth_cred_get().
okay yamt@.
2007-12-08 13:31:03 +00:00
tsutsui 9f8e035be7 Use ${TOOL_STAT} to get file size instead of ls and awk in more places. 2007-12-08 12:30:18 +00:00
wiz 3c088505e9 Spelling. 2007-12-08 11:09:58 +00:00
wiz 64617fb7d8 New sentence, new line. Sort SEE ALSO. Use standard headers.
Replace links from iic(4) with iic(9) because the former doesn't exist.
XXX: battery(4) and smartbat(4) don't exist either.
2007-12-08 11:06:52 +00:00
wiz 397b6da020 Fix typo, remove superfluous minus and describe "fd" as file descriptor
in two places.
2007-12-08 10:56:06 +00:00
ad 9c8beda3c8 Reg... hang on, why don't we build this at compile time?!? 2007-12-07 22:42:11 +00:00
ad bca34dfe7a Add: _lwp_setname, _lwp_getname, _lwp_ctl. 2007-12-07 22:41:05 +00:00
tsutsui dda5f131c9 Add more useful variables for rsync to fetch binary sets:
RSYNC_HOST
  specify rsync host (default: rsync.NetBSD.org)

RSYNC_PATH_PREFIX
  specify extra prefix path of NetBSD module names for rsync mirrors
   ex. "/pub", "/netbsd" etc. (default: empty)

DAILY_DIR
  specify directory name on using NetBSD-daily snapshot for -current
   ex. "200712060002Z" etc. (no default; mandatory for -current)

RELEASE_SUFFIX
  specify suffix of directory names used for pre-releases
   ex. "_BETA2", "_RC5" etc. (default: empty)

RSYNC_PATH
  specify path used to rsync hosts (default: set from the above variables)

Examples:

make RELEASE=3.1 TARGET_CD_IMAGE=mac68kcd fetch
 -> fetch 3.1 mac68k sets from
    rsync.NetBSD.org:/NetBSD/NetBSD-3.1/

make RELEASE=4.0 TARGET_CD_IMAGE=mac68kcd RELEASE_SUFFIX=_RC5 fetch
 -> fetch 4.0_RC5 mac68k sets from
    rsync.NetBSD.org:/NetBSD/NetBSD-4.0_RC5/

make RELEASE=current TARGET_CD_IMAGE=mac68kcd DAILY_DIR=200712060002Z fetch
 -> fetch -current mac68k sets from
    rsync.NetBSD.org:/NetBSD-daily/HEAD/200712060002Z/

make RELEASE=4.0 TARGET_CD_IMAGE=mac68kcd RELEASE_SUFFIX=_RC5 \
    RSYNC_HOST=rsync3.jp.NetBSD.org RSYNC_PATH_PREFIX=/pub fetch
 -> fetch 4.0_RC5 mac68k sets from
    rsync3.jp.NetBSD.org:/pub/NetBSD/NetBSD-4.0_RC5/

make RELEASE=3.1 TARGET_CD_IMAGE=mac68kcd \
    RSYNC_PATH=/NetBSD-daily/netbsd-3/200712060002Z fetch
 -> fetch mac68k sets of netbsd-3 branch from
    rsync.NetBSD.org:/pub/NetBSD-daily/netbsd-3/200712060002Z
2007-12-07 21:08:58 +00:00
ad 37132d5d2f Back out previous now that libc/libpthread are initialized first. 2007-12-07 20:36:52 +00:00
ad 558a5ffd0f rtld changes for PR bin/37347:
- Apply patch from J.T. Conklin to execute .init/.fini functions in order.
- Support DF_1_INITFIRST and mark libc with DF_1_INITFIRST. Shared libs
  should be recording a dependency on libc, but it's too late to do that.

Ok christos@.
2007-12-07 20:34:04 +00:00
xtraeme d77a6c713d Print the informational messages after all checks have been done,
and while I'm here change some of those to be aprint_debug(). Also
use __func__ rather than __FUNCTION__.
2007-12-07 20:33:27 +00:00
christos d2c255cb71 PR/29634: me: missing pam racoon file. 2007-12-07 20:30:31 +00:00
elad 3668e580ae Use struct initializers. No functional change. 2007-12-07 19:46:18 +00:00
elad 5a24b726ae Let this code compile.
Hi, liamjfoy@. :)
2007-12-07 19:44:38 +00:00
elad 5551af680e Use struct initializers. No functional change. 2007-12-07 18:49:35 +00:00
tsutsui a0b97864fc - fix "Rounding up to 32k boundary and padding 32k" code
("dd if=/dev/zero bs=512 count=0" seems to cause unexpected results)
- use ${TOOL_STAT} to get file size instead of ls and awk
  (1.6.x don't have ${TOOL_STAT} but they have been obsolete anyway)

Both are taken from sys/arch/i386/stand/bootxx/Makefile.bootxx.
2007-12-07 18:35:21 +00:00
macallan f2c6ff7989 finish mutexification, now ki2c compiles again 2007-12-07 16:01:19 +00:00
pooka a86a009392 Don't use puffs_cc_getusermount() 2007-12-07 14:59:22 +00:00
pooka dc3259d60e puffs_cc_getusermount(), puffs_cc_getspecific() and puffs_docc() are dead. 2007-12-07 14:55:12 +00:00
pooka f845b0dacb Get rid of a lot of extra complexity due to doing separate getattr
requests in readdir - just use the results from the readdir rpc.
2007-12-07 14:54:08 +00:00
rmind b3032fc724 Sync with reality. 2007-12-07 14:37:31 +00:00
ad 3aac377195 Fix pasto. 2007-12-07 14:24:21 +00:00
pooka 2195151d14 In case a node is created in lookup in the readdir path, initialize
attribute cache timestamp to be equal to that of the directory
cache timestamp.
2007-12-07 13:09:49 +00:00
xtraeme 10f7c0a4da Add BIOC_SVMIGRATING to bio(4) and bioctl(8) to report if a volume
is migrating currently showing the percentage.

Update arcmsr(4) to report this, like:

$ sudo ./bioctl -h arcmsr0
    Volume Status     Size Device
 arcmsr0 0 Migrating  698G ARC-1210-VOL#00 RAID 5 7% done
	 0 Online     234G 0:0.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 1 Online     234G 0:1.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 2 Online     234G 0:2.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
	 3 Online     234G 0:3.0   noencl <WDC WD2500YS-01SHB1 20.06C06>
$
2007-12-07 11:51:21 +00:00
xtraeme 820f120b52 Add ENVSYS_DRIVE_MIGRATING for ENVSYS_DRIVE sensors, this is for RAID
volumes that are migrating such as when you change the stripe size.

While I'm here use the same string than we had in the old framework to
report status "online" vs "drive is online", because the sensor might be
a RAID volume and not just a drive.
2007-12-07 11:47:49 +00:00