Commit Graph

183069 Commits

Author SHA1 Message Date
martin
b507c43e16 Add missing include <sys/exec_aout.h> 2009-08-16 15:41:51 +00:00
martin
ff78bb583b Include <sys/exec_aout.h> for a.out specific defines. 2009-08-16 15:39:30 +00:00
manu
a693f69b7e Build COMPAT_DARWIN and COMPAT_MACH as a Xen domU too 2009-08-16 15:35:52 +00:00
tron
3ff8faf2b6 Add support for the Openmoko Freerunner to cdce(4) ported from FreeBSD.
The patch was supplied by Pierre Pronchery in PR kern/40049.
2009-08-16 14:18:49 +00:00
skrll
719e2eddb4 s/int/u_int/ for flags in pmap_enter and deal with this in rump.
Hi cegger.
2009-08-16 14:06:36 +00:00
skrll
4519d76c61 KNF 2009-08-16 14:02:08 +00:00
tron
e67b5654ff Ignore the "-P" option as intended to make this work with e.g.
"fsck_flags=-pP" in "/etc/rc.conf".

Patch supplied by Pierre Pronchery in PR bin/41490.
2009-08-16 13:50:54 +00:00
matt
7b2f3a5640 Change include of <sys/exec.h> to <sys/exec_aout.h> since these files want
the a.out stuff.
2009-08-16 13:26:16 +00:00
martin
7867c1b262 Use a separately defined USBD_CONFIG_TIMEOUT when requesting a device
descriptor. I have a USB ATA device that spins up it's (removable) hard
disk and only returns the real descriptor if the disk is present - this
takes too long with the default 5 seconds timeout, so we were unable to
properly attach this device.
2009-08-16 13:20:40 +00:00
matt
20078a6d9f Pull in a hunk from t-linux64 for compile flags for CRTSTUFF 2009-08-16 13:16:52 +00:00
martin
9c8005a99c If we are attaching a high speed device, request a full size descriptor
block - we know the device will be able to handle it already.
This fixes a strange failure mode when attaching a (apparently non standard
conformant) USB ATA device I have, and *should* not cause any harm.
Apparently the device in question answered with the full descriptor despite
our short request - a failure mode not handled gracefully, leading to a
port reset. From Jeremy Morse.
2009-08-16 13:06:32 +00:00
yamt
6f5397de19 assertions 2009-08-16 11:06:37 +00:00
yamt
5fa695e8c1 reduce differences between x86 ports. 2009-08-16 11:04:48 +00:00
yamt
83723a32c5 fix a comment typo. 2009-08-16 11:02:24 +00:00
yamt
273f17a18a kauth_cred_free: add an assertion. 2009-08-16 11:01:12 +00:00
yamt
77d977dcbc assertion 2009-08-16 11:00:20 +00:00
yamt
d59302b0e4 struct lwp -> lwp_t for consistency 2009-08-16 10:59:25 +00:00
yamt
c55eff3413 g/c bio_ops. 2009-08-16 10:57:17 +00:00
yamt
894e4c4207 comments. 2009-08-16 10:57:01 +00:00
yamt
a052624ac4 remove a stale comment. 2009-08-16 10:51:21 +00:00
matt
3308ff5cbf Only include <sys/exec_aout.h> if NLIST_AOUT is defined.
Don't define NLIST_AOUT for mips anymore.
2009-08-16 03:56:26 +00:00
christos
3ac3892a2a use strrchr to find the last @ because we might want the username to contain
user@domain.
2009-08-16 02:49:23 +00:00
macallan
f2c548ef3a add the missing wscons bits so this kernel builds again
needs testing on actual hardware which I don't have.
2009-08-16 00:24:59 +00:00
matt
c980adf2e1 Don't include <sys/exec_aout.h>. Let those who want it explicitly include it. 2009-08-15 23:46:02 +00:00
matt
209a0b42e3 Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to
do it for us.
2009-08-15 23:44:57 +00:00
matt
7bb407d6e3 Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to
do it for you.
2009-08-15 23:39:35 +00:00
dsl
59ede5ae24 Always add an REC_D char (usually \n) as the last sort key char - we
almost always need one.
But do ADD it, instead of overwriting the last byte of the last key since
that may be requesting the other end of the sort order.
There is no need to check for space for the line after adding the key,
but we might as well check before - just to optimise that case.
This might fix some of the sort bugs - but not the one I'm looking at!
2009-08-15 21:26:32 +00:00
wiz
e671c9cf08 Fix typo. 2009-08-15 20:44:56 +00:00
christos
bcbc23bd8f add -p <tmpdir> option to override $TMPDIR from the command line like linux
has.
2009-08-15 20:02:28 +00:00
snj
0215f7165d Fix a 13 year old buffer overrun. From Henning Petersen in
PR port-mvme68k/41857.
2009-08-15 19:16:45 +00:00
dsl
9987745061 Remove reference to db.h by using separate ptr+len fields for the only
structure that used it.
Pass end of keybuf area, not size to enterkey() - largely to remove a
variable who'se use isn't obvious from the name!
The structute of this code sucks.
2009-08-15 18:40:01 +00:00
dsl
477a33f936 linebuf and linebuf_size are only used inside seq() - which also not
only has its own static variable, but will also extend the buffer.
Remove linebuf/size and change seq() to use a private, locally managed
buffer.
2009-08-15 16:50:29 +00:00
joerg
24b34460e5 Add nbperf(1) 2009-08-15 16:35:41 +00:00
joerg
03c8ba1c27 Add nbperf(1), a minimal perfect hash function generator.
Implemented are the 3-graph BDZ algorithm as well as the
2-graph and 3-graph CHM algorithms. All algorithms have expected
linear run time and the smallest functions need around 2.85 bit/key.
2009-08-15 16:21:04 +00:00
dsl
5e8c7b5dbd Remove the unused 'DBT *key' parameter from seq(). 2009-08-15 16:10:40 +00:00
dsl
a3b5c4400f In makeline() change 'pos' from 'char *' to 'u_char *' and remove all
the casts associated with its use.
None of the uses can possibly care about the signedness of the pointer.
2009-08-15 14:31:48 +00:00
uwe
1bf34cd773 Add keylock.h to INCS so that it's actually installed (hi, marc!) 2009-08-15 14:22:54 +00:00
joerg
7b3e0c602c Fix markup. 2009-08-15 14:18:05 +00:00
pgoyette
345b8f1066 1. Move the mode_select functionality into common code (in st.c) and
invoke the common routine for both scsi and atapi tapes.

2. Replace a numeric constant with some sizeof's when calculating the
   size of the mode_select command buffer, clear the entire buffer, and
   KASSERT to ensure the page_0_size loaded from quirk table is valid.

3. Add a quirk for my Seagate Travan-40 tape drive.

As discussed on tech-kern@

Addresses my PR kern/34832
2009-08-15 12:44:55 +00:00
macallan
89669ce394 add FBTYPE_SUNTCX - forgot to commit that along with the tcx(8) update
found by he@
2009-08-15 11:33:49 +00:00
kiyohara
60a987241b Use __UNCONST(). 2009-08-15 10:18:17 +00:00
cegger
e5bc6032d2 grammar fix: a in-kernel -> an in-kernel 2009-08-15 09:59:12 +00:00
mbalmer
5f41e6ce40 Move keylock.h where it belongs. 2009-08-15 09:52:57 +00:00
dsl
2a0ab276a2 Ansify.
I'm looking at fixing the 'sort -n' fubars, but this code is an
inpeneterable mess - which needs some fixing first!
2009-08-15 09:48:46 +00:00
mbalmer
385b2e3631 Move the keylock.h header from sys/sys to sys/dev where it really belongs.
Add keylock options to the ALL kernel configuration.
2009-08-15 09:43:58 +00:00
mbalmer
d5042376f6 Add commented entries for keylock support. 2009-08-15 08:44:35 +00:00
mbalmer
366b1b6bb6 I take responsability for keylocks. 2009-08-15 08:35:22 +00:00
mbalmer
ca5052ae8c Mention keylock support. 2009-08-15 08:32:52 +00:00
mrg
b2b4f72c89 add sys/keylock.h to the sets list.
HI MARC.

(why is this in sys/keylock.h and not dev/keylock.h?)
2009-08-15 05:50:49 +00:00
christos
13492ada53 This code is really broken. It allocates struct sockaddr on the stack
and expects to work with IPV6. Tell the hints that we only want IPV4
for now, so that we don't try to bind to an IPV6 address as returned
by getaddrinfo, and then we bash in V4 in the family!
jeez
2009-08-15 01:25:54 +00:00