Commit Graph

140829 Commits

Author SHA1 Message Date
peter
6a6d8015e0 Fix a typo. 2005-10-23 15:02:48 +00:00
peter
f2afca5030 - Remove __P.
- Remove var names in function declaration.
2005-10-23 15:02:30 +00:00
jmcneill
f18dd07571 If the temperature sensors are disabled, enable them rather than giving up. 2005-10-23 14:01:36 +00:00
cube
c42d7a0c74 Only include sys/systm.h under _KERNEL, otherwise it needlessly pollutes
namespace, as shown by libkvm failing to compile for shadowing one of the
variables listed in sys/systm.h.  Reported by xtraeme@.
2005-10-23 11:41:08 +00:00
christos
f229ea7f53 make debugging code compile after 64 bit inode changes. 2005-10-23 04:28:53 +00:00
cube
fc1218444f Regen (kqueue, kevent). 2005-10-23 01:34:33 +00:00
cube
97e4d77453 - Split sys_kevent into kevent1 so that it can be used by COMPAT_NETBSD32
code.

- To achieve COMPAT_NETBSD32 compatibility, introduce a parameter to
  kevent1 that points to functions that do the actual copyin/copyout
  operations.  This is similar to what was done in FreeBSD by Paul Saab.

- Add the COMPAT_NETBSD32 definitions and hooks.
2005-10-23 01:33:32 +00:00
cube
388b97e039 Implement a few changes needed to properly resolve PR#30924, as
discussed in the PR.

- introduce sys/timevar.h to hold kernel-specific stuff relevant to
  sys/time.h.  Ideally, timevar.h would contain all (or almost) of the
  #ifdef _KERNEL part of time.h, but that's a pretty big and tedious
  change to make.  For now, it will contain only the prototypes I
  introduced when working on COMPAT_NETBSD32.

- split copyinout_t into copyin_t and copyout_t, it makes prototypes more
  explicit about the meaning of a given argument.  Suggested by yamt@.

- move copyinout_t definition in sys/time.h to systm.h as copyin_t and
  copyout_t

- make everything uses the new types and include the proper headers at
  the proper places.
2005-10-23 00:09:14 +00:00
christos
2ce4c16c0d Instead of special-casing root, special case paths that end with a /, so
that find foo/ does not print foo//bar. From FreeBSD.
2005-10-22 20:55:13 +00:00
christos
41a71d9929 change tr '[a-z]' '[A-Z]' to tr '[:lower:]' '[:upper:]' so that POSIX systems
work properly regardless of environment variable settings.
2005-10-22 16:45:03 +00:00
riz
47cc213a59 Don't make sgimips images bootable unless EXTFILES.sgimips is defined.
While I'm here, fix so that building from a clean objdir works
properly.
2005-10-22 15:56:16 +00:00
riz
52bd3a4883 Add configurations for the NetBSD 2.1 release. 2005-10-22 15:52:43 +00:00
nonaka
0827467dac Don't forget original allocated memory address. 2005-10-22 15:32:48 +00:00
nonaka
2f7c0c1f96 fix EMODE instruction cache range index op. 2005-10-22 15:13:38 +00:00
nonaka
4fa7623be8 Use I2C_OP_{READ,WRITE}_WITH_STOP instead of I2C_OP_{READ,WRITE}. 2005-10-22 15:12:28 +00:00
wiz
850fd51087 Add /usr/share/legal. 2005-10-22 12:31:52 +00:00
rpaulo
6418305f5a Descend into legal/. 2005-10-22 12:31:05 +00:00
dsl
0a0a96c37f Don't redisplay the title messages before displaying sub-menus during set
selection (eg selecting the X sets).
libcurses got changed earlier in the year so that the erase (and refresh)
of the message window caused all the unchanged spaces to be redrawn
overwriting most of the main set selection window.
2005-10-22 09:31:50 +00:00
hubertf
3b644e49b3 Per Christos (board):
* move src/etc/COPYRIGHT to src/share/legal/COPYRIGHT and install that
   (in /usr/share/legal)
 * nuke src/share/man/man0/COPYRIGHT
 * mark /usr/share/man/COPYRIGHT as obsolete
2005-10-22 06:04:57 +00:00
hubertf
df48f941aa Fix comment: "Below", variables are assigned with += not = 2005-10-22 05:46:06 +00:00
he
d13dea3067 Make it possible to use <sys/disklabel.h> from assembly source by
introducing OMIT_DKTYPENUMS and OMIT_FSTYPENUMS, which omits the
declaration of the enums.  Use this in the vax boot code to make
it build again.  Also use __CONCAT() instead of ##.
2005-10-21 21:10:45 +00:00
bouyer
e148e671d8 mif6table is used by netstat, so don't declare it static. Fix netstat -g
on Xen, whose ELF loader doesn't load local symbols in the symbol table.
2005-10-21 18:00:45 +00:00
nathanw
e890293bf2 Check the argument to SO_LINGER. 2005-10-21 17:40:03 +00:00
christos
090e33a95c reverting to the previous version of file 4.16, not 4.15. 2005-10-21 16:01:16 +00:00
dbj
37e4b2f6aa decrement nscreens in vga_free_screen
this cleans up a crash on failed allocation, although
vga_free_screen may still be leaking resources
2005-10-21 14:44:08 +00:00
dbj
237f025382 strip arm mapping symbols for ddb using STRIPFLAGS instead of SYSTEM_LD_TAIL
this works even for kernels compiled with -g and doesn't interfere with gdb
2005-10-21 14:40:03 +00:00
is
ee143b54b3 It's HERakleion. 2005-10-21 13:57:04 +00:00
jmc
f2a2358139 Whitespace/usage cleanup and a proper exit when done 2005-10-21 04:11:49 +00:00
dyoung
6a1be27c11 Switch to John Bicket's SampleRate algorithm for bitrate adaptation
on Atheros cards.
2005-10-21 04:07:48 +00:00
jld
863d7960b2 Add jld here, too. 2005-10-21 04:06:18 +00:00
jmc
fe18910528 Remove unneeded set of PASSWD 2005-10-21 03:57:07 +00:00
jmc
b0f7601ff1 Insert some missing backslashes 2005-10-21 02:56:27 +00:00
jmc
d5bf52b805 Set default vars so blank and unset both end up w. a reasonable default 2005-10-21 02:41:14 +00:00
dsl
409a3e040d Fix alpha build - pointed out by Kurt Schreiner on port-alpha 2005-10-20 20:08:33 +00:00
drochner
c5d5b5030f also check a double argument to isnan(), and whether
float -> double conversion works
2005-10-20 18:02:52 +00:00
christos
19d0f25ed5 PR/31580: Miles Nordin 'ntptime' no longer reports ERROR and UNSYNC when ntpd
isn't synchronized (ntpd bug #506)
2005-10-20 15:41:01 +00:00
christos
78063c9188 regen. 2005-10-20 15:35:42 +00:00
christos
0270612ce7 Conditionalize the sigreturn syscall inclusion; from Patrick Welche 2005-10-20 15:35:25 +00:00
itohy
a2f0c58dbb If an unknown endpoint is found, ignore it, rather than abort attach.
This change allows to use HID-like devices with additional functions.
2005-10-20 13:09:18 +00:00
christos
9f17a05ff3 PR/31502: John: rpc.statd doesn't save failed notifies in the database.
Tested by Martti Kuparinen.
2005-10-20 12:53:42 +00:00
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