177928 Commits

Author SHA1 Message Date
jdc
145a912cc9 Fix bug where a single ESC was not recognised when in keypad() mode.
Noticed by abs@.
2009-02-09 12:45:59 +00:00
plunky
aead030e15 if HCI commands fail (CommandComplete status != 0) then indicate
ENODEV "Operation Not Supported by Device" rather than random errno.
2009-02-09 12:44:32 +00:00
nonaka
9d853f68dd fix comment. 2009-02-09 12:11:16 +00:00
rmind
db4ca04011 dosetrlimit: remove the checks which are no longer needed since rlim_t
is unsigned again.  Hi <christos>!
2009-02-09 11:13:20 +00:00
uwe
c795b4c2a9 G/c duplicate definition of WSCONS_EVENT_ASCII. 2009-02-08 22:58:56 +00:00
christos
fdbe1ef595 Revert change that made rlim_t signed again. It will expose bugs, and we'll
fix them, as opposed to hide them and violate the standards.
 - Approved by core.
2009-02-08 22:11:27 +00:00
wiz
5452aa5f5c Bump date for previous. New sentence, new line. 2009-02-08 21:56:57 +00:00
jym
bfa01fef11 Document jym-xensuspend branch. 2009-02-08 21:46:04 +00:00
bouyer
65fae56208 Apply patch proposed on port-amd64/port-i386, allowing to use a 64bit
bus_addr_t on i386PAE kernels:
change bus_addr_t to be a paddr_t (so its size follows paddr_t depending
   on options PAE)
remplace bus_addr_t with vaddr_t where the value is used as a virtual address.

Difference with the proposed patch: cast to uintmax_t and use %jx in
printf() as suggested by Joerg.
2009-02-08 20:59:19 +00:00
reinoud
2e80d918be Add :
udf, mount_udf(8): add support for session opening/closing on
	sequential media. Media can be closed on request on unmount by
	passing the '-c' flag as mount option. [reinoud 20090208]
2009-02-08 19:56:10 +00:00
reinoud
9a5eca17f4 Add mount_udf(8) option '-c' requesting session closure on unmount and
document it in the manpage.
2009-02-08 19:28:49 +00:00
reinoud
9609b0ed76 Implement session closure on sequential media when requested on mount. It will
allow CD-ROM/DVD-ROM/DB-ROM drives to read the media while still allowing them
to be appended later. It can also be seen as a way to make mountable
snapshots.
2009-02-08 19:14:52 +00:00
jym
5d7efd3c35 - add comments
- wrap long lines for easier reading
- make some debug messages a bit more relevant
2009-02-08 19:05:50 +00:00
reinoud
2ac9ba8c48 If mounting for read-write dont allow a session number to be specified since
its currently still misbehaving. If supported later, it would allow one or a
series of sessions on a sequential recordable media to be ignored as if they
never were created.

Also fix a small comment: its not the direct but the bootstrap disc strategy
that we close down.
2009-02-08 19:04:41 +00:00
pgoyette
66a822fbe7 The ADM1027 chip doesn't support i2c read_byte protocol, so in this
case we use send_byte followed by receive_byte.
2009-02-08 17:48:02 +00:00
pooka
8e52b87ec3 Don't try to fd_putfile() descriptors we didn't manage to fd_getfile().
Fixes local DoS panic described in kern/40570.
2009-02-08 16:38:12 +00:00
pooka
020ab015cd Add rumpnet_local to the setlists (at least most of the variants ;). 2009-02-08 16:30:48 +00:00
pooka
3f8c1c0f17 Add a PF_LOCAL rump kernel component. 2009-02-08 16:28:35 +00:00
pooka
38b67104c9 catchup 2009-02-08 16:18:09 +00:00
pgoyette
d94df08c58 Use pre-scripted i2c protocols rather than re-inventing our own. No
functional change intended.

While here, change some indentation to use tabs vs spaces.
2009-02-08 14:34:40 +00:00
jdc
940659ed15 Cosmetic clean up:
options<space><tab>
2009-02-08 13:05:50 +00:00
skrll
d5aae1338a s/posix_fadvise/__posix_fadvise50/ in last. 2009-02-08 11:58:25 +00:00
tsutsui
7ff508decb Fix a wrong indent in the previous. 2009-02-08 10:02:45 +00:00
pgoyette
c8996319e0 Avoid asking the controller to transfer zero bytes of data, since we have
no clue if this works or not.  This prevents the i2c quick_{read,write}
protocols from working, but the only place those protocols are used is in
the code that enumerates the i2c bus and that just doesn't make sense for
ki2c anyway.

While here, make sure that i2c send_{byte,word} operations will work even
if the caller provides the cmd (ie, register to modify) and the data in
separate args.  This is the normal calling sequence for iic_exec() routines
and will enable dbcool (4) driver to update device registers.

OK'd macallan@
2009-02-08 01:13:39 +00:00
abs
e468650cc4 Enable Xvfb build on vax and x68k to match every other port. 2009-02-08 00:50:07 +00:00
oster
2240ff3c50 Nuke #define MAXNSTRIPES which is no longer useful. 2009-02-07 20:41:30 +00:00
oster
ce32c4d01e Be consistent with wd.c and don't complain loudly if the underlying
device doesn't support flushing the cache.  Fixes an issue (reported
privately) where ST39120A drives are not capable of flushing the
cache, and RAIDFrame was incessantly complaining.
2009-02-07 20:36:49 +00:00
pooka
4c7be59b17 If fdvp is tvp, do nothing. Prevents local DoS panic described in
PR kern/38219... maybe.  This is hastily concocted fix for 5.0 and
I'm not sure if it has side-effects.
2009-02-07 19:42:57 +00:00
uebayasi
cede8f9855 Let 'gpt add' suggest a collect device name so that opendisk(3) called by
dkctl(8) succeeds.
2009-02-07 18:12:22 +00:00
uebayasi
0edd7181ba Make manual and usage consistent. No functional changes. 2009-02-07 17:21:44 +00:00
uebayasi
b9691b268f - Display cache, strategy, and list of wedges if no command is specified in
the command line.
- Sort list of wedges.

Posted on tech-userlevel a while ago, no objections then.
2009-02-07 17:13:32 +00:00
tsutsui
6a632bad63 Put misc notable changes pulled up to netbsd-5 after the branch date. 2009-02-07 16:43:45 +00:00
wiz
0247406d6a Bump date for previous. New sentence, new line. 2009-02-07 15:32:11 +00:00
skrll
8bfb786048 posix_fadvise needs help again. 2009-02-07 13:44:48 +00:00
mrg
9bd6af36c2 move COMPAT_50 into MONOLITHIC, as pointed out by enami@. 2009-02-07 09:58:10 +00:00
lukem
53e9163a95 sign-compare fix 2009-02-07 07:25:22 +00:00
agc
00be53a929 Remove argument names from function prototypes in header files. 2009-02-07 07:00:01 +00:00
agc
fd38df44a9 Be a bit more consistent with the naming scheme (and a bit less verbose). 2009-02-07 05:57:39 +00:00
agc
47eb47e6b3 The catch-all header file also includes version.h now, in case we want
to display the version number of the openpgpsdk library.
2009-02-07 05:37:57 +00:00
agc
6aef23c4e0 Re-order header file inclusion order to be alphabetic.
Print out the version number of the openpgpsdk library when showing the
version string.

Parse the existing ~/.gnupg/gpg.conf to get the default user id, if any.

Use the actual size of the arrays in snprintf(), rather than a size which
may or may not be accurate.

Get rid of an unused 8K array on the stack - it's not needed.
2009-02-07 05:36:51 +00:00
agc
02ebfd8cdc Minor cosmetic change - no functional difference. 2009-02-07 05:32:27 +00:00
agc
852e7a06c8 Be a bit less rigid when re-allocating memory - don't just keep doubling
the size we've allocated; instead, if the current size is more than 8 MiB,
then add 1 MiB on; current behaviour remains unchanged for re-allocations
less than 8 MiB.
2009-02-07 05:31:28 +00:00
agc
c62065c7b1 Check the characters we're given when trying to decide whether it's a
key id, or a user id/name.
2009-02-07 05:28:55 +00:00
agc
eab6d9dfa6 Only use O_BINARY if it's defined (rather than the vague WIN32 definition
test).

Minor cosmetic changes
2009-02-07 05:26:19 +00:00
pooka
9188159bb1 Make the clock interrupt tick based on absolute time instead of
relative time.  This prevents drifting.  Also, keep track of time
within userspace, so we do not have to make a syscall to get the
clock value.  This is approximately 7 times cheaper, but on the
negative side is limited to the clock interrupt frequency.
2009-02-07 01:50:29 +00:00
enami
e3b99073fb Previous code ususally works since compiler won't put gap between
those struct members but there is no reason to rely on that.
While here, I rewrite the loop using an usual idiom.  It shaves
both source and object code.
2009-02-06 23:56:26 +00:00
lukem
f0772e2d1f sign-compare fix 2009-02-06 23:47:44 +00:00
pooka
d90ea96094 wipe out last vestiges of rumpspl 2009-02-06 23:35:27 +00:00
enami
e1be06d405 Instead of missing NULL check in pipe_create, let the pipe_ctor to wait
on buffer allocation.  The other allocation is simply an optimization,
so leave it as is.
2009-02-06 23:04:57 +00:00
enami
60b229d2eb Use same expression to decide to use pool cache or not in both
kmem_alloc/free.
2009-02-06 22:58:49 +00:00