Commit Graph

152120 Commits

Author SHA1 Message Date
apb
6101aaea5a set -o tabcomplete if interactive. Discussed on tech-userlevel. 2006-10-07 10:47:03 +00:00
elad
2a7d09e7cd PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn't
grok -f, and there's no alternative (+fix)

Patch applied with minor tweak (%y -> %R, as it was already taken) plus
some nits from myself. Thanks!
2006-10-07 10:41:50 +00:00
elad
e35f123530 PR/19069: Jun-ichiro itojun Hagino: traceroute(8) and traceroute6(8) can
send packet to udp port 0, which is illegal
2006-10-07 10:23:33 +00:00
apb
e7fd82468c Make it clear that multiple sort keys may be specified.
Closes PR 34271.
2006-10-07 10:22:21 +00:00
elad
cf245f1ee7 PR/22799: Hiramatsu Yoshifumi: Add -i option to /bin/ln
Slightly modified patch applied, thanks!
2006-10-07 10:05:25 +00:00
elad
ed23b39f46 PR/34265: dieter roelants: pax truncates archive when appending fails.
Patch applied, thanks!
2006-10-07 09:53:20 +00:00
elad
d730e7f066 Add standard TNF license, requested by cube@. 2006-10-07 09:40:03 +00:00
elad
9b5118f13d PR/28450: David H. Gutteridge: date(1) does not validate its input and
accepts and processes impossible dates

Patch applied, thanks!
2006-10-07 09:34:46 +00:00
elad
5e188d0b70 PR/30351: Hubert Feyrer: useradd(8) doesn't allow setting permissions of
new home [patch]

Adapted to current code and some nits from myself. Thanks for the patch!
2006-10-07 09:20:07 +00:00
elad
fd79a15577 PR/18126: jnilsson at ludd dot luth dot se: add the revoke program
I have commited a different version than in the PR, it lacks a license
but if it warrants one we can stick the TNF standard on it. It's just
a main() routine that calls revoke(2).
2006-10-07 08:48:03 +00:00
skrll
ef1caed8be Add m68k gdb mknative output. Untested. 2006-10-07 08:16:46 +00:00
gdamore
83060aef95 Active SPI connected STMicro serial flash. Note that this driver is still
a bit rudimentary, but it works well enough to read flash at least.
2006-10-07 07:24:23 +00:00
gdamore
e7ee9e199f Add major for spiflash. Note that this major should probably be moved out
to device-independent space, but we might well choose to wait to do that
until _after_ we have a full MI flash framework.
2006-10-07 07:22:36 +00:00
gdamore
c36ea7cf37 Add spiflash driver, and M25P instance, used for STMicro flash devices
found on Meraki Mini (for example).
2006-10-07 07:21:13 +00:00
gdamore
5bf8068cbb Add Atheros SPI controller. This is a "pseudo-controller", as it has some
artificial limitations which really only make it good for use with serial
flash devices.  One of the more annoying limitations is a restriction that
it can only transfer 8 bytes at a time. (4 command/address, plus 4 data.)

The driver includes design to work around those limitations, but these
changes are only appropriate for serial flash devices.

This driver is designed to run in interrupt driven mode, but due to lack
of adequate documentation, we run it in polled mode.

A subsequent commit will introduce the MI M25P flash driver, which has been
tested and is known to function somewhat reasonably..
2006-10-07 07:18:02 +00:00
elad
89f8748c35 PR/20319: Jeremy C. Reed: calendar reports other months that have matching
days

Patch applied, thanks!
2006-10-07 07:12:01 +00:00
elad
0141f6f58f PR/22340: Benedikt Meurer: cleartmp should honor ifile on LFS
Patch applied, thanks!
2006-10-07 07:01:21 +00:00
riz
7338f92d29 Trap SIGINT so that if fsck is interrupted by ^C, we drop into single-user
mode.  Fixes misc/29822 from der Mouse, fix from Arnaud Lacombe with
comment rework by me.
2006-10-07 04:11:23 +00:00
tsutsui
ed9d4b2af3 yamt-splraiseipl: works on sparc (SPARCstation1+) 2006-10-07 02:53:57 +00:00
tsutsui
e44b991120 Fill undefined region (char 0x7f-0xa0) on ISO-8859-1 with dummy data
like other fonts. Closes PR kern/12899.
2006-10-07 02:34:59 +00:00
tsutsui
34e0f81335 Add kernel_text symbol for pmap(1). Closes PR kern/19877. 2006-10-07 01:21:47 +00:00
elad
13ad340578 PR/23774: Jorge Acereda: wiconfig exits on non-critical errors
Patch (with some style nits) applied, thanks!
2006-10-07 00:47:18 +00:00
elad
c9ed670b45 Create 'security.curtain' for documentation compatibility. 2006-10-06 23:01:12 +00:00
elad
516c371048 PR/13478: Greg A. Woods: some tty-related documentation fixes
Patch applied with "minor tweaks" from me, thanks!
2006-10-06 22:07:44 +00:00
rillig
e723f89fb8 When trying to copy many files into another file, provide a useful and
more specific error message instead of the usage().
2006-10-06 20:22:59 +00:00
tsutsui
5c5ee709b4 yamt-splraiseipl: tested on hp300 and news68k. 2006-10-06 19:18:49 +00:00
tsutsui
43bb02c059 Use #ifdef _AMIGA_INTR_H_ rather than _MACHINE_INTR_H_
to protect multiple inclusion.
2006-10-06 18:16:46 +00:00
gdt
faa429b9b4 add missing d_type member in cdevsw initializer 2006-10-06 17:54:05 +00:00
christos
7af45af282 Fix an exploitable integer overflow found by Chris Evans of Google Security. 2006-10-06 16:17:11 +00:00
pooka
34a6a097c3 add util.h to SYNOPSIS 2006-10-06 15:31:20 +00:00
tsutsui
1713a1b672 yamt-splraiseipl: tested on sun2 (TME), sun3 (TME) and sun3x (3/80). 2006-10-06 13:48:57 +00:00
tsutsui
f7d5502c71 Use IPL_BIO rather than (temporarily defined) IPL_SOFT_LEVEL2.
Both of them share cpu ipl 2, and maybe it's intentional design
since fd.c uses ipl 6 for hardware interrupt.
2006-10-06 12:54:14 +00:00
manu
56f4977415 Camelia cipher support as in RFC 4312, from Tomoyuki Okazaki
<okazaki@kick.gr.jp>
2006-10-06 12:02:26 +00:00
jnemeth
f086fb4812 note new sparc64 floppy support 2006-10-06 08:58:29 +00:00
jnemeth
6238d5fa66 Initial support for floppy drives on sparc64. This has been tested
on an Ultra 2 and works fine, apart from formatting which is known
to be broken.  It failed to work on an ebus machine.  The ebus
support compiles fine, but I don't have hardware for testing.  This
code is based on the sparc driver with hints from OpenBSD on how
to do the sbus and ebus attachments, along with help from martin@
and mrg@.

Initial commit approved by martin@

TODO:
- fix ebus support
- fix XXX issues
- check resource deallocation
- fix formatting
- merge remaining differences from sparc driver
- split out back end chip support
- have sparc driver use new common back end chip support
- adapt to newlock when branch is ready
- adapt to "disk-info" property dictionary
2006-10-06 08:44:59 +00:00
dogcow
1d235c3fdc add initializers so gcc stops whining. 2006-10-06 03:52:53 +00:00
mrg
080ac7b6c8 add a missing semicolon from the previous commit. 2006-10-06 03:20:47 +00:00
chs
7ddbeb08d1 move includes only needed for kernel inside ifdef _KERNEL. 2006-10-06 02:40:58 +00:00
yamt
199c49bccb handle_wedges: fix a typo. (NOCREAD -> NOCRED) 2006-10-06 02:29:08 +00:00
dogcow
62ce183fe4 fix build error in mount_sysvbfs. 2006-10-06 02:17:25 +00:00
martin
fab4ae4892 I can not test this right now, but the equivalent change was needed on
sparc64 to make root on raid shutdown cleanly: after using opendisk()
and querying wedges, we need to VOP_CLOSE() the resulting vnode.
2006-10-05 22:43:35 +00:00
martin
0d3d26d9e7 After detecting wedges, close the disk vnode - otherwise things like
root on raid 1 will not be happy - fixes PR kern/34696.
2006-10-05 22:41:31 +00:00
rillig
30991c10e3 Fixed the wording of the <ctype.h> character classification functions by
always using "function" instead of "macro".

Changed "undefined result" into "undefined behavior" for argument values
outside the valid range. Since the character table is allocated via
malloc(), it _may_ happen that it starts at a page boundary, so that
negative values for the argument result in a segmentation fault. In that
case, there is no result at all.
2006-10-05 22:34:52 +00:00
plunky
c2f3e8c67b Override the lex rules after <bsd.prog.mk> to prevent the reachover build
from trying to build arlex.c in a readonly filesystem
2006-10-05 20:40:12 +00:00
christos
d1c132b639 add disklabel_gpt.h 2006-10-05 18:17:04 +00:00
christos
be6f616394 Install disklabel_gpt.h needed by the gpt partitioning tool (which is coming
soon)
2006-10-05 18:14:11 +00:00
oster
2992626c96 Revert previous change: Remove an unused variable declaration that was
(likely accidentally) added as the only change in the last commit.
2006-10-05 17:59:36 +00:00
tls
8cc016b4bc Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.

It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:

	s=splfoo();
	/* frob data structure */
	splx(s);
	pool_put(x);

and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next.  "Better
safe than sorry".

It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them.  One
notable area that needs to be looked at is pf.

See also:

http://mail-index.netbsd.org/tech-kern/2006/07/19/0003.html
http://mail-index.netbsd.org/tech-kern/2006/07/19/0009.html
2006-10-05 17:35:19 +00:00
he
47f7700709 We now need <sys/param.h> to bring roundup() into scope. 2006-10-05 16:25:38 +00:00
chs
768e5cc89e in cpu_reboot(), only halt the other CPUs after we've done the powerdown stuff.
the ACPI code may end up removing some pmap entries, which wants the other
CPUs to still be running to handle TLB invalidations.
2006-10-05 15:10:31 +00:00