Commit Graph

140689 Commits

Author SHA1 Message Date
yamt 92a6da46f7 yamt-vop branch. 2005-10-20 00:42:40 +00:00
christos 0ea555f2ce It is bogus to return EFAULT in userland. 2005-10-19 22:57:03 +00:00
christos 849dc6749d Let the default case handle all the errors; no functional change. 2005-10-19 22:56:42 +00:00
dsl 65151c95f1 Rototil the way disklabel -r reads and writes labels.
In particular the 'read' part plays 'hunt the disklabel' in order to get a
label into a local buffer - from where it can be displayed/edited.
The 'write' part makes a separate scan of the disk looking for places to
write the label.
The main changes are:
- It can no longer write the first 8k of the mbr to the pbr (or v.v.)
- All labels on the disk (that it can find) get updated during a write
- With -A all the labels are displayed (inc. those deleted by -D)
- Addition of -D which will delete (by one's complimenting dk_magic{2}) and
  existing labels before writing labels to the expected locations.
- -v gives some verbose output to stderr, -vv more etc
A better basis for processing incorrect endian labels, or labels from other
architectures.
2005-10-19 21:22:21 +00:00
dsl f4737f1020 Use preprocessor magic to get all the info for each DKTYPE and FSTYPE into
a single line.
2005-10-19 21:06:38 +00:00
bouyer b3b0d23068 In icmp6_redirect_output(), sip6 is initialised to point to the data area of
m0. But m0 may be freed later, so trying to use sip6 at the end of this
function is wrong. My guess is that we want to reference the data area
of m (the mbuf about to be send) instead at this point.
Fix a panic on Xen (where a data area of a mbuf may be unmapped when the
mbuf is freed), and probably potential data/pool corruption in other cases.
2005-10-19 20:42:54 +00:00
joerg 35b726a534 Fix a kernel segfault when a RX interrupt can't allocate a new mbuf.
The change adopts the idea of fxp to drop the incoming packet and panic
if the old mbuf cannot be reloaded. Since the bus_dmamap is allocated
during attach, this is not supposed to happen. Since a lot of code moves
anyway, factor out the allocation of RX ring elements, which is shared
between the init path and the RX interrupt path.

XXX A better fix might be to borrow the mbuf from the logic end of the
XXX ring buffer, but that needs more involved driver changes.

Reviewed by dyoung@ and nick@
2005-10-19 20:18:00 +00:00
tsutsui 1a3f7c2731 - Fix pasto (s/keyboard/mouse/)
- Note that mouse events are returned in struct wscons_event via read(2).

XXX: We should have complete descriptions about struct wscons_event
XXX: and WSMOUSEIO ioctls defined in <sys/dev/wscons/wsconsio.h> here.
2005-10-19 18:33:25 +00:00
ross 2ea481dec5 Edit -s text. 2005-10-19 18:19:41 +00:00
tsutsui d8ae27cfff - Clarify the definitions of wsmouse_input(9) arguments as request
from Steave Rumble on port-sgimips. (maybe needs wizd(8))
- Add Xref pms(4), wsmouse(4), wscons(9).
- Bump date.
2005-10-19 16:11:55 +00:00
hamajima 0f9691137b Fix write sequence to PHY.
I write a data first, but I wrote a command first.
2005-10-19 14:01:49 +00:00
elad 47ebf29d74 Revert, as requested by cube@. 2005-10-19 12:25:51 +00:00
elad 7f482dd3ce Strip trailing slashes before using the path.
PR/31869.
2005-10-19 12:17:22 +00:00
dyoung 2a007394bf For clarify, use the name opt_athhal.h instead of opt_ah.h for the
file where Atheros HAL options go.
2005-10-19 09:04:23 +00:00
dyoung e0b6419887 Define AH_REGOPS_FUNC because the macppc HAL uses the register
read/write functions to access the hardware.
2005-10-19 09:02:52 +00:00
dyoung fde2c4b7ca No need to create opt_ah.h in these makefiles, config(8) takes care
of it.
2005-10-19 09:01:27 +00:00
chs 3ad2320789 if mlock() fails in pthread_create(), return EAGAIN instead of
failing an assertion.
2005-10-19 02:44:45 +00:00
chs 0e67554241 starting the pthread library (ie. calling pthread__start()) before
any threads are created turned out to be not such a good idea.
there are stronger requirements on what has to work in a forked child
while a process is still single-threaded.  so take all that stuff
back out and fix the problems with single-threaded programs that
are linked with libpthread differently, by checking if the library
has been started and doing completely different stuff if it hasn't been:
 - for pthread_rwlock_timedrdlock(), just fail with EDEADLK immediately.
 - for sem_wait(), the only thing that can unlock the semaphore is a
   signal handler, so use sigsuspend() to wait for a signal.
 - for pthread_mutex_lock_slow(), just go into an infinite loop
   waiting for signals.

I also noticed that there's a "sem2" test that has never worked in its
single-threaded form.  the problem there is that a signal handler tries
to take a sem_t interlock which is already held when the signal is received.
fix this too, by adding a single-threaded case for sig_trywait() that
blocks signals instead of using the userland interlock.
2005-10-19 02:15:03 +00:00
rillig 40245fbcfd Removed the unnecessary #include <ctype.h>. 2005-10-18 20:13:04 +00:00
christos e780c5edaf regen 2005-10-18 19:52:07 +00:00
christos 8fc452caf8 add the missing %% that confused joerg and the parser. 2005-10-18 19:51:47 +00:00
joerg 5e74202601 Regen. 2005-10-18 19:08:51 +00:00
joerg 39fcee12fe sys_uselib is needed by COMPAT_LINUX for EXEC_AOUT. Since it doesn't get
build when EXEC_AOUT is not defined, the syscalls.master entry has to be
conditionalized. Alpha did so already, so let the other archs catch up
with it.

Go-on: christos
2005-10-18 18:37:44 +00:00
joerg 397ada6330 Both iwi and ipw need arp. 2005-10-18 17:53:14 +00:00
tsutsui c264961875 TAB/space cleanup. 2005-10-18 11:31:12 +00:00
tsutsui c68fe159b9 Pass proper values to MI wsmouse_input(9):
http://mail-index.netbsd.org/port-sgimips/2005/10/18/0000.html

Ok'ed by Steve Rumble.
2005-10-18 11:20:48 +00:00
wiz 445258bca4 New sentence, new line. Use more, and more appropriate, mdoc macros. 2005-10-18 11:01:39 +00:00
tshiozak 87a9a60239 add lacked correspondences between CP932 and UCS.
This is reported by Dave Huang on lib/25795,
MORIYAMA Masayuki <msyk _at_ mtg.biglobe.ne.jp> and
"NARUSE, Yui" <naruse _at_ airemix.com>, and fixed by MORIYAMA-san.
2005-10-18 06:49:28 +00:00
tshiozak c8a7d58fe9 make sure that this module can handle all private/vendor-defined
character area.
This is reported by MORIYAMA Masayuki <msyk _at_ mtg.biglobe.ne.jp> and
"NARUSE, Yui" <naruse _at_ airemix.com>, and fixed by MORIYAMA-san.
2005-10-18 06:44:28 +00:00
tshiozak eda4f3c630 fix a problem on wc->mb conversion for G2 plane.
This is reported by MORIYAMA Masayuki <msyk _at_ mtg.biglobe.ne.jp> and
"NARUSE, Yui" <naruse _at_ airemix.com>, and fixed by MORIYAMA-san.
2005-10-18 06:42:12 +00:00
hubertf 457a6a5c65 mountd's -r option always was a dummy, don't advertize using it.
OK'd by fvdl.
2005-10-18 06:02:59 +00:00
chs 03b40cf7d8 remove text about converting async to sync, since we don't do it anymore. 2005-10-18 03:18:16 +00:00
christos 64639a3896 Print symbolic signal names for killpg *sigaction* and *sigvec*. 2005-10-18 01:49:18 +00:00
sekiya 8c83f7b667 Restore missing call to r5k_enable_sdcache(). Its' removal was a thinko
on my part -- the COP0 SC presence test fails on r5k IP22, but
r5k_enable_sdcache() will DTRT regardless.

Pointed out by tsutsui@
2005-10-18 00:47:07 +00:00
wiz 8373c79729 Update cvs Home Page and Archive Site. 2005-10-18 00:47:05 +00:00
yamt 464cf44f6c dksubr: do b_blkno -> b_rawblkno translation earlier so that bufq can uses it. 2005-10-18 00:14:43 +00:00
pooka 53797e1b73 note release & import of file 4.16 2005-10-17 21:39:14 +00:00
christos 30756e31a3 small list macro cleanup:
- remove duplicate LIST_FIRST (Liam Foy)
- change to use LIST_FOREACH or for () instead of while () for consistency
2005-10-17 19:51:24 +00:00
christos 5e183c30fc use strlen properly. 2005-10-17 19:07:43 +00:00
christos c3f8b2f036 add more void casts. 2005-10-17 18:51:40 +00:00
christos 6af7fa0a20 revert previous 2005-10-17 18:49:54 +00:00
christos 0180aa059f Fix lint issues. 2005-10-17 18:34:47 +00:00
pooka 4a4afdeb8b fix a few signed/unsigned lint warnings 2005-10-17 18:13:04 +00:00
pooka 4905d6894e regen 2005-10-17 18:06:48 +00:00
pooka 5c9948c400 fix "emulated" {v,}snprintf to return real values
(which really aren't used on NetBSD at all)
2005-10-17 18:03:01 +00:00
pooka 61f5a53c25 con conflicts into going away 2005-10-17 17:59:59 +00:00
pooka 0c2bfb7f3f file 4.16
Changes since 4.13:
* DragonFly ELF note support
* read buffer dynamically allocated
* Add -h flag and dereference symlinks if POSIXLY_CORRECT
* Avoid search and regex buffer overflows
* cross-compilation fixes
* don't close stdin in the library.
* search for elf notes in shared libraries too.

Now with more magic than ever before!
2005-10-17 17:47:49 +00:00
rpaulo 8f596fb842 If we recieve a PIM register message when IPv6 PIM-SM routing is
enabled avoid a crash when forwarding the packet to outgoing interfaces.

Taken from FreeBSD which obtained it from KAME.
2005-10-17 15:56:43 +00:00
yamt 450531ecb3 bufq_alloc: fix BUFQ_STRAT_ANY. pointed by Juan RP. 2005-10-17 12:28:21 +00:00
yamt e7bb12271d sysctl_kern_bufq_strategies:
- handle too small buffer.
- handle the case that no bufq is configured.
2005-10-17 12:25:15 +00:00