Commit Graph

114790 Commits

Author SHA1 Message Date
hubertf
d3f2a0d382 Recognize Toshiba Smart Media and Secure Digital cards 2003-07-12 05:59:50 +00:00
aymeric
f0696ba4ba strategy() should really have an ANSI prototype. Otherwise its daddr_t
argument gets passed wrongly.
This should fix a bug reported by Martin J. Laubach on port-macppc, and
was fixed two weeks ago in NetBSD/ofppc.
2003-07-11 23:38:08 +00:00
christos
28c6644783 the author needs to stay way from the crack pipe: two bugs cancelled each other! 2003-07-11 20:33:03 +00:00
christos
b2163312f5 fix unused variable warning 2003-07-11 18:55:14 +00:00
dsl
31722f62d8 KNF and whitespace (and indent a contuation line) 2003-07-11 15:33:13 +00:00
dsl
e64fcd4452 Use a menu when asking for the install disk (fixes PR install/20121).
Make disk_desc[], disk and numdisks local to get_disks (instead of globals).
Fix a little fallout from the above.
A bit of mbr.c was missing #ifdef BOOTSEL...
2003-07-11 15:28:58 +00:00
dsl
8e56a9f2a2 Delete code that did nothing!
The disk parameters it fetched were overwritten by those obtained (from
the default label) in get_disks.
2003-07-11 14:48:42 +00:00
wiz
b712736290 Add -x to usage output. 2003-07-11 13:06:11 +00:00
wiz
79093334ef Bump date for -x addition. 2003-07-11 13:05:26 +00:00
yamt
12d2d59f94 there's no VNODEPAGER option anymore. 2003-07-11 12:59:54 +00:00
pk
edb01b1198 Pass explicit device to eject(1), since it doesn't know about the floppy
driver's "partition" scheme..
2003-07-11 12:16:56 +00:00
pk
c7a9b61e64 Deal with disk change notification. 2003-07-11 12:09:12 +00:00
he
e0e6a115ce Adapt to the new layout of files under /usr/mdec, so that this
builds again.  However, the install program most probably needs
adaptation for this to work as intended.
2003-07-11 11:54:10 +00:00
dsl
6ea05bcbfe Add a '-x' option to display GIO data blocks in hex and ascii (instead of
vis(3) format).
Maybe there could be a heuristic to decide whether the data is printable...
2003-07-11 10:59:28 +00:00
drochner
037daa02c2 fixed botched prototype,
while being here clean up whitespace
2003-07-11 10:15:56 +00:00
lukem
f15957a936 the XXX -> TOOL_XXX rename 2003-07-11 04:37:16 +00:00
matt
258cc62412 Add LBA48_THRESHOLD #define and set it to the *correct* value. Use it
in place of "0xffffff" (which is one too few 'f').
2003-07-10 23:23:44 +00:00
bjh21
7971e90f7e Remove the NAME_MAX check. While well-intentioned (and required by POSIX),
the implementation was horribly broken when <name> contained slashes, and
a correct one will probably be quite different.
2003-07-10 21:30:16 +00:00
bjh21
b768f7ad6a Remove the hack that varied the first character of the output filename if
a base name wasn't specified.  It's not really necessary now that we've
got -a, it's ugly, and POSIX doesn't permit it.

Suggested on tech-userlevel a couple of weeks ago to a deafening silence.
2003-07-10 20:43:40 +00:00
martin
15a7538ed4 If a CD drive reports != 2048 byte block size, try to change it into
2048 byte mode. Fixes PR kern/22090.
Reviewed by Manuel Bouyer.
2003-07-10 18:18:40 +00:00
manu
90c0f71598 Add HW_MACHINE sysctl 2003-07-10 14:47:34 +00:00
dsl
0f636f6d49 Ensure correct curses tty settings are restored after a program runs.
Remove the abberant call to endwin() in i386 md_update() that caused
echo to be left on. I've not removed the endwin from the other ports.
Only run MAKEDEV if etc.tgz installed.
Some extra sanity checks on an 'rm -rf %s'.
2003-07-10 13:36:48 +00:00
wiz
69807edb27 Add old milter includes. 2003-07-10 13:27:27 +00:00
atatat
ccf314363b Move the libmilter headers to where they belong. 2003-07-10 13:07:24 +00:00
dsl
880234af7e Stop def_prog_mode() saving incorrect termio settings.
Make set_prog_mode() set the correct settings.
I'm not certain how much restoration set_prog_mode() should do, but it
definitely doesn't want to do all of __restartwin().
Maybe __restartwin() should be calling set_prog_mode()?
2003-07-10 12:50:18 +00:00
lukem
66173dd5f9 NOxxx= variables should appear first 2003-07-10 11:30:43 +00:00
lukem
7b6e5e6602 NOxxx= variables must appear before <bsd.own.mk> 2003-07-10 11:27:45 +00:00
lukem
eec954fd77 explicitly pull in <bsd.own.mk> for NETBSDSRCDIR (to be safe) 2003-07-10 11:23:53 +00:00
lukem
29a6151db1 NOxxx= variables should appear first 2003-07-10 11:21:51 +00:00
lukem
42b4b5e4a4 <bsd.own.mk> needed before NETBSDSRCDIR is used 2003-07-10 11:21:03 +00:00
lukem
94830d866e revert previous accidental commit (just whitespace tyop in this case) 2003-07-10 10:36:03 +00:00
lukem
001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
tshiozak
888aa165a5 add forgotten _CITRUS_HASH_REMOVE() at release_shared().
This hopefully fixes the PR pkg/22113.
2003-07-10 09:08:57 +00:00
pk
f9dc3a73e0 compat mode:
* print warning if kernel image is too large.
	* adjust `required space' computation to be more compatible to
	  what it was before.
	* since there's still no code to recognise `old kernels', provide
	  a way to turn on `compatmode' manually, using the `-C' boot option.
2003-07-10 09:06:52 +00:00
pk
95ca576fc1 pmap_map(): round up size to compute # of pages. 2003-07-10 09:00:33 +00:00
tshiozak
8adfd9b778 make _DIAGNOSTIC happy. 2003-07-10 08:50:43 +00:00
wiz
895c758622 gawk-3.1.3 out. 2003-07-10 07:10:42 +00:00
simonb
e567ebddae Fix some silly typos.
Noticed by Allen Briggs.
2003-07-10 05:34:30 +00:00
lukem
82bd1c0ce3 shell coding tweaks 2003-07-10 04:48:34 +00:00
matt
2a6c2aa546 Back out rev 1.19. It's wrong. Add comments so it doesn't happen again. 2003-07-10 04:18:01 +00:00
lukem
aedc125774 change test to skip metalog to be a case,
to easily allow other entries to skip to be added.
2003-07-10 03:19:15 +00:00
matt
18a43bbe99 Don't do vtophys on instruction addresses. This would cause problems for
user addresses (think trap from user mode) or lkms).
2003-07-10 02:06:11 +00:00
lukem
b1395375fd add __RCSID("$NetBSD$"), because it's hard to track our changes in a
binary when we only have the vendor's RCSID.
2003-07-10 01:09:41 +00:00
matt
554b4aa05f Enhance db_trace to understand syscalls and print the syscall number
that the user requested.  For example:

0xd5c56f40: SC trap #240 by 0x15668c60: srr1=0xd032
            r1=0xffffe470 cr=0x44000045 xer=0 ctr=0xeff27ab8
2003-07-09 22:51:50 +00:00
bouyer
a678ebca13 nfsrv_commit(): return success and don't do anything for requests which starts
past the end of the file. This can happen when two clients are writting to
the same file.
Close PR 21696 by myself, discussed on tech-net in 2003/05 and 2003/06.
Issue raised by Chuck Silvers (commit and truncate ops needs to be serialised)
still unadressed.
2003-07-09 21:16:12 +00:00
thorpej
88f63e28d6 Make faulting in DDB continue back in the top-level command
loop properly.
2003-07-09 20:14:14 +00:00
martin
2951cb8e99 We should use IFQ_DEQUEUE to get packets from the send queue, not IF_DEQUEUE.
Hopefully this will fix ALTQ for ISDN and PPPoE interfaces.

While there remove an unsued function which contained dubious code
(accessing interface queue internals w/o the proper macros).
2003-07-09 20:12:53 +00:00
dsl
5a411fd464 Create mount point used for target system. 2003-07-09 20:02:35 +00:00
dsl
9778762a60 Keep unstripped binary in $OBJ, use are timestamp instead of prog.stripped.
Patentially useful as a source of symbol information for debugging.
2003-07-09 19:51:07 +00:00
kleink
4e043afc74 Fix pasto in 1.26; spotted by Thomas Klausner. 2003-07-09 15:38:20 +00:00