151255 Commits

Author SHA1 Message Date
jmcneill
eaa9b0d13e Print "interrupt at irq <foo>" message immediately after we establish the
interrupt. Patch from PR# 33567.
2006-09-23 01:19:18 +00:00
jmcneill
96568ac6d5 Adjust comment for rnd_add_uint32() to reflect changes in rev 1.50. Fixes
PR# 34250 by Jorge Acereda Macia.
2006-09-23 01:13:08 +00:00
elad
0920e7dc0d PR/33747: Christian Brueffer: "Fasttrak" -> "FastTrak"
(other nits don't seem relevant to me)
thanks for the report!
2006-09-23 01:12:41 +00:00
jmcneill
7e857903f0 Regen for PR# 23133. 2006-09-23 00:56:42 +00:00
jmcneill
1483b0e7d4 Attach ess(4) for ESS1879 devices; 2+ years late fix for PR# 23133 2006-09-23 00:56:20 +00:00
elad
af7d9594a4 PR/34589: Cliff Wright: vnd(4) compress error with large files
Applied slightly different patch (u_int64_t -> uint64_t), thanks!
2006-09-23 00:53:46 +00:00
elad
acd3797c82 PR/16827: Giorgos Keramidas: addition of EXAMPLES section to
basesrc/bin/cat.1
Applied patch, thanks!
2006-09-23 00:01:39 +00:00
dogcow
9c80a2830c unbreak kernel builds from the last fix 2006-09-22 23:58:36 +00:00
elad
a81bf90a94 PR/31347: Geoff C. Wing: netstat err message is ambiguous about cause
Applied patch, thanks!
2006-09-22 23:21:52 +00:00
christos
6172879b25 add the new linux example directories. From Steven M. Bellovin 2006-09-22 23:03:24 +00:00
elad
cfbe6aa48d PR/33635: Anne Bennett: Document 'a' and 'A' flags in ls(1).
strmode(3) already documented these, so use the description from there.
2006-09-22 23:00:32 +00:00
elad
d4d70cef20 PR/34584: Geoff C. Wing: cksum not closing filescriptors after finishing
processing files.
Applied patch, thanks!
2006-09-22 22:35:57 +00:00
elad
fb85339a04 PR/34540: b1ff at fr33 dot b33r dot net: bogus free() in ftp(1)
Applied patch, thanks!
2006-09-22 22:29:25 +00:00
hubertf
f9278bfbec Allow '==' as synonym to '=', just like our ksh and bash do.
This also affects the sh(1) builtin test command.
2006-09-22 22:15:24 +00:00
dsl
7adfa633e3 Fix build on 64 bit systems.
Remove now-unecessary temporary local.
2006-09-22 21:55:52 +00:00
christos
c34b6372d0 Try entertain who(1) because it has been sad since it was swallowed by the
Death Star: add utmpx entries for boot time, down time, run level, login
process.
2006-09-22 21:49:21 +00:00
christos
c044a535e1 add definition for down time. 2006-09-22 21:40:12 +00:00
christos
3600b1e75a Add run level messages. 2006-09-22 21:31:55 +00:00
dbj
727299862c protect include of sys/mman.h when building _KERNEL or _STANDALONE 2006-09-22 19:46:21 +00:00
dbj
9891916c61 add missing prop_dictionary_send_ioctl.3 2006-09-22 19:45:57 +00:00
dsl
11d35f72b2 Replace the two lists 'job_list' (previously 'jobs') and 'stoppedJobs'
with a table that is malloced with 'maxJobs' entries.
Add a 'job_state' field to the Job type that exactly follows which of
the old lists the job was on (or not).
Change all the code that scanned the lists to scan the array.
No logic changes in this commit.
(Soon we'll no longer need to lock out signals for the changes to job
statuses that are done from signal handlers now that there is no linked list.)
2006-09-22 19:07:09 +00:00
xtraeme
cd7d4a30d8 cdplay(1) digital transfer mode by Sergey Svishchev. 2006-09-22 18:23:17 +00:00
xtraeme
49627385cb Apply patch from PR bin/34545 sent by Sergey Svishchev to add support
for digital transfer mode, not enabled by default.

To use it: $ cdplay -a /dev/audio (otherwise /dev/sound will be used)
and type "digital" on the interactive mode.

Thank you very much Sergey, it's very useful.

Reviewed and ok by christos@.
2006-09-22 18:20:53 +00:00
cherry
64f11261d1 ia64 libc MD stuff #1. Pushing in everything before my harddisk pops. 2006-09-22 17:59:47 +00:00
xtraeme
729d0a0184 Apply patch from PR kern/34583 sent by Rhialto, quoting him:
"Add a 3rd entry in the cache, which keeps the end position
 from just before extending a file.
 This has the desired effect of keeping the write speed constant."

And yes, that helps a lot copying large files... always at full speed
now. This closes my PR kern/30868 "Poor performance copying large files
on msdosfs".

Also remove a 2 if-statements testing the same condition, combine them.

All that from Rhialto, thank you very much.
2006-09-22 17:45:21 +00:00
yamt
7b576f1169 yamt-splraiseipl: luna68k, cesfic. 2006-09-22 15:58:09 +00:00
christos
b4d99722ef add linux emulation examples 2006-09-22 15:39:51 +00:00
elad
8385714a6e Add missing break. 2006-09-22 15:39:09 +00:00
christos
967d77bc4d Add linux makedev 2006-09-22 15:38:43 +00:00
elad
38810515e0 Make code more readable by removing some more casts forgotten in
previous commit.
2006-09-22 15:37:57 +00:00
christos
e18c6496f6 mention linux makedev 2006-09-22 15:37:20 +00:00
christos
25666bcae7 add a LINUX_MAKEDEV for ptmx 2006-09-22 15:33:08 +00:00
elad
b080dda9b1 DIAGNOSTIC should not change the kernel version for LKMs.
okay chs@
2006-09-22 15:17:55 +00:00
elad
9033a1369b In struct vcons_data, don't depend on DIAGNOSTIC and always include
switch_poll_count.

okay chs@
2006-09-22 15:16:03 +00:00
christos
1edf5bf30e PR/32682: Hauke Fath: netbsd-3 ptyfs intermittent failure with Matlab
For the benefit of linux emulation create a new minor device '2'
which is a ptmx with linux semantics. Linux changes the permissions
of the slave pty upon creation, not when grantpt(3) is called. The
glibc linux grantpt(3) checks that the pty is on ptyfs, and if it is,
it does nothing. To make use of this fix:

	mknod /emul/linux/dev/ptmx c 165 2
	chmod 666 /emul/linux/dev/ptmx

This is a lot simpler than copying a bunch of code and creating a
ptmx device just for the benefit of linux emulation.
2006-09-22 15:15:56 +00:00
christos
487c57538b Pretend to implement TIOCSPTLCK. Although failing is harmless, there is no
point in doing so.
2006-09-22 15:12:02 +00:00
abs
57ee5d4340 Enable EPIA_HACK here too - http://mail-index.netbsd.org/port-i386/2006/08/18/0002.html 2006-09-22 15:05:24 +00:00
skrll
47ff53e648 Allow kernels to compile without USELEDS.
From Sergey Svishchev on port-hp700
2006-09-22 14:08:03 +00:00
kochi
57cbe57ef9 fixed typo in previous commit 2006-09-22 13:38:32 +00:00
skrll
de030205fa Switch hppa to gcc4. 2006-09-22 13:14:59 +00:00
skrll
64001ed248 Our hppa userland space register convention isn't as flat as it needs to be
for MASK_NO_SPACE_REGS. The assumption is that sr4-sr7 == process space
id, but we have sr7 = kernel space id (0). This was inherited from
OpenBSD.

If sr4-sr7 == process space id, then

        ldw     %r1(,%r2),%r3
and
        ldw     %r2(,%r1),%r3

are equivlent for all values of %r1 and %r2.

If the right compat stuff is in place we can change the space register
convention and turn MASK_NO_SPACE_REGS back on.
2006-09-22 13:11:57 +00:00
christos
f807e82573 regen 2006-09-22 12:44:23 +00:00
christos
33bd80c320 From: Jaime A Fournier: Patch to support SMC 2262WV1 2006-09-22 12:43:52 +00:00
cherry
768b7d52a9 add ia64 libc MI bits. 2006-09-22 12:09:24 +00:00
uwe
214b28fc6c Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h

Somehow I managed to forget to commit mmeye changes.
Pointed out by he@
2006-09-22 09:32:26 +00:00
skrll
c6b33d9f1f Create real lock primatives using as little asm as possible.
It's not used anywhere, but it's better committed than on any of my HDs.
2006-09-22 08:31:34 +00:00
taca
7a5ecb8445 Make sure to the file end with EOL ("\n").
Without EOL, pkgsrc/pkgtools/pkg_comp cause mysterious error.
2006-09-22 08:00:33 +00:00
thorpej
1edb40635e - Define disk information, disk geometry, and disk partition dictionary
schemas.  Disk information and disk geometry are designed to replace
  information currently conveyed to user space using struct disklabel.
- Add a dk_info member to struct disk; a reference to a disk information
  dictionary.  This dictionary is to be allocated and the reference stored
  in struct disk by individual drivers.
- disk_detach0() will release dk_info if non-NULL.
- Convert the wd(4) driver to stash geometry and other disk properties
  as the "disk-info" property in its properties dictionary.  This needs
  some cleanup, but will serve as an example of what to do with other
  disk drivers.
2006-09-22 04:48:38 +00:00
thorpej
ef731d9e00 - Add a new DRVCTLCOMMAND ioctl to /dev/drvctl. This is a generic
"execute a command" ioctl that takes a dictionary as an argument
  (specifying the command and arguments) and returns a dictionary
  with the results (error code, optional error message, optional
  result data).

- Define and implement a "get-properties" command for DRVCTLCOMMAND
  that returns the properties dictionary of the specified device.

- Add a -p flag to drvctl(8) to fetch and display the properties of
  the specified device.

This is a great example of how to use prop_dictionary_sendrecv_ioctl().
2006-09-22 04:37:36 +00:00
thorpej
6cf1ffe998 Alter the protocol impemented by prop_kern to allow for bi-directional
plist-based messages and to eliminate looping previously required to
receive a plist from the kernel:

- prop_dictionary_copyin_ioctl() and prop_dictionary_copyout_ioctl()
  now take the cmd argument rather than the file open flag.  The
  read-ness or write-ness of an ioctl command is checked by these
  routines to ensure that information is being passed to/from the
  userland component properly.

- prop_dictionary_copyout_ioctl() now allocates the memory for the
  XML plist on behalf of the userland component by way of uvm_mmap().
  The XML plist is copied out to the newly-mapped anonymous region,
  and the pointer returned via the plistref.

- prop_dictionary_recv_ioctl() is responsible for munmap()'ing the
  region after parsing the XML plist into internal represenatation.

- A new prop_dictionary_sendrecv_ioctl() is added, allowing user space
  code to send a dictionary to the kernel and receive one back as a
  reply.


Update users of prop_kern for the API changes (Bluetooth).

This constitutes an ABI / protocol change -- but this will also be put
into NetBSD 4.0 so that the first proplib release will implement the new
scheme.
2006-09-22 04:20:23 +00:00