174268 Commits

Author SHA1 Message Date
apb
debdeec730 The tools/compat versions of mkstemp() and mkdtemp() need to call the
internal function that's usually named "__gettemp".  However in a cross
build, "__gettemp" is in a namespace reserved for the host system, so we
can't use that.  Use "__nbcompat_gettemp" instead, following the example
of several other functions or macros in tools/compat.  Previously, this
was handled by using the name "gettemp", but that conflicts with the
local gettemp() function in dist/nawk.
2008-10-20 10:28:38 +00:00
ad
ee66516bfd PR kern/38814 ksyms needs locking
- Make ksyms MT safe.
- Fix deadlock from an operation like "modload foo.lkm < /dev/ksyms".
- Fix uninitialized structure members.
- Reduce memory footprint for loaded modules.
- Export ksyms structures for kernel grovellers like savecore.
- Some KNF.
2008-10-20 10:24:18 +00:00
rtr
e9a223cbb9 - fix crazy condition that always evaluates to false without this
iwn_fix_channel() never gets called.
- remove hardcode to ic->ic_channels[11]

fixes a problem in associating to access points
2008-10-20 09:33:48 +00:00
wiz
1f8562f538 Fix three variable names.
From Todd T. Fries via Jason McIntyre.
2008-10-20 08:37:25 +00:00
dogcow
13a2178397 Define __USE_ISOC99 for linux, making the isblank() proto appear.
This is probably not the Right Thing, but it seems to not break anything.
2008-10-20 07:48:21 +00:00
apb
20d1e9a13e Pass AWK in environment to shell scripts run during the build. 2008-10-20 07:11:55 +00:00
wiz
5154780b79 Drop trailing whitespace. 2008-10-20 07:06:21 +00:00
wiz
e22cd6ffa8 Sort errors, use .Nx, avoid man markup, whitespace and punctuation nits. 2008-10-20 07:03:58 +00:00
lukem
6cf201421e Document using boot -a and /rescue/init if the system fails to boot with
"init: not found".
2008-10-20 06:42:53 +00:00
lukem
d20564358b Adapt to NetBSD:
* Recommend checking /lib and /libexec for corruption.
* A NetBSD installation CD should suffice for recovery if necessary.
* I designed & wrote the rescue framework in NetBSD; update credits.
  (The FreeBSD guys were inspired by it)
* Other minor tweaks to differences in the systems.
2008-10-20 06:26:47 +00:00
lukem
c99131c058 Add a manual page for /rescue.
Obtained from FreeBSD src/share/man/man8/rescue.8 1.3
This is the FreeBSD version; NetBSD customisation to occur
in followup commits.
2008-10-20 06:14:28 +00:00
christos
44c25f2fda disable PIE for boot code. 2008-10-20 03:02:07 +00:00
hans
c25473a894 if_input needs to be called at splnet(). ok by cube. 2008-10-19 23:28:31 +00:00
apb
cd5c0f944d In shell scripts invoked during a build, and in crunchgen, use ${AWK}
instead of plain "awk".  The Makefiles that invoke these scripts
or programs will pass AWK=${HOST_AWK:Q}.
2008-10-19 22:10:04 +00:00
apb
f3f295c281 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:23 +00:00
apb
d1cf36b114 Add a comment to the Makefile explaining that we do not use HOST_AWK
here, because tools/host-mkdep is built before tools/awk.
2008-10-19 22:05:22 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
snj
682ea0e2b3 s/explicitely/explicitly/ 2008-10-19 21:27:46 +00:00
marcus
e4036a331d Removed a local variable that is no longer needed (should have been removed in last commit...) 2008-10-19 21:24:20 +00:00
snj
cf5b9ad4fa Xref netconfig(5). Requested by Martin S. Weber in PR bin/39605. 2008-10-19 21:18:22 +00:00
christos
8a0817a3ac PR/39770: Robert Elz: mount(2) doc enhancements 2008-10-19 20:54:22 +00:00
apb
60f5d15a00 Define TOOL_AWK. 2008-10-19 19:44:47 +00:00
apb
e0bccb6c18 During the tools build (from src/tools/awk/Makefile),
src/tools/Makefile.host changes .CURDIR back and forth between
src/tools/awk and src/usr.bin/awk.  For some unknown reason, including
bsd.info.mk here leads to the obj dir being created at the wrong time,
while .CURDIR is src/usr.bin/awk.  Work around the problem by not
including bsd.info.mk when MKINFO=no.
2008-10-19 19:42:23 +00:00
apb
74809f044a Add awk as a host tool. 2008-10-19 19:40:19 +00:00
apb
ce47df9797 Define NOINFO, so that we don't try to build info files for host tools. 2008-10-19 19:38:55 +00:00
apb
1dc9ff828c In preparation for building awk as a host tool, add
#if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h"
2008-10-19 19:33:47 +00:00
apb
00f32f6e16 Add the NOINFO variable, which works just like all other NOxxx variables. 2008-10-19 19:29:43 +00:00
hannken
ac6b16172a Make genfs_directio() IO_JOURNALLOCKED aware. DirectIO no longer triggers
"locking against myself" panic in wapbl_begin().

Observed and tested by: Frank Kardel <kardel@netbsd.org>
2008-10-19 18:17:13 +00:00
wiz
dc9d42b1fd Spelling and whitespace and punctuation nits. 2008-10-19 17:57:19 +00:00
jmcneill
48100f10e4 Calculate maxdispoffset rather than hard-coding it. Fixes scrolling in
80x25 mode.

XXX This doesn't handle odd modes like 80x30 on 640x480, but the driver
didn't allow that selection previously so at least it's an improvement
over the previous behaviour.
2008-10-19 17:47:38 +00:00
jmcneill
0215b24d60 vga_cnattach: calling wsdisplay_screentype_pick with a NULL type will
select the first entry in the list, which overrides the selected screen
type. Only call it a second time if the original selection is invalid.
2008-10-19 17:20:38 +00:00
wiz
fddd6ca288 Improve wording. 2008-10-19 17:04:49 +00:00
wiz
bcb1e574cb Add missing dot before macro. 2008-10-19 16:59:08 +00:00
wiz
06f6396fc6 Improve wording. Use Bd -literal for code sample. 2008-10-19 16:54:19 +00:00
macallan
dbe432e650 We need -DAVOID_CPIO on most non-x86 ports. Set it on sparc64 and PowerPC
for now.
2008-10-19 16:00:39 +00:00
macallan
7233d29c9a On macppc build only the drivers we actually need 2008-10-19 15:53:02 +00:00
christos
81dd08df0d handle assembly files for MKPIE 2008-10-19 15:22:50 +00:00
christos
bdb5cd51ab fix so that we can compile with PIC 2008-10-19 15:22:17 +00:00
marcus
8a975ad955 Replaced funky delay loop with a call to DELAY (fixed problems with newer GCCs). 2008-10-19 14:57:22 +00:00
christos
1d21cb730e mention ps 'O' change. 2008-10-19 14:46:40 +00:00
joerg
711cc8fd5d Include opt_multiboot.h to allow the option to work. 2008-10-19 14:12:28 +00:00
mjf
88c41a9303 Fix debug code that had bitrotted. This allows the maple(4) driver to
be compiled with MAPLE_DEBUG defined.

	o line 798: variable buf shadows previous local
	o line 1425: event_thread is no longer a struct proc but now is
		     a lwp_t. Use the correct p_pid member.
2008-10-19 14:05:49 +00:00
joerg
bc73584b47 Add entry for the addition of u3g. 2008-10-19 11:42:27 +00:00
joerg
7e64fc36e4 Remove two devices that are handled by ubsa and might need special
handling from u3g until further reports. Move a number of data cards
from ugensa to u3g based on the FreeBSD list.
2008-10-19 11:40:02 +00:00
joerg
5519d99b9a Regen. 2008-10-19 11:37:44 +00:00
joerg
74069cabed Sync list of 3G cards with FreeBSD. 2008-10-19 11:36:11 +00:00
joerg
2201ddb77c Add u3g entries in kernels that have ugensa as well. 2008-10-19 11:34:31 +00:00
njoly
d7732b5cc7 Add native to linux siginfo si_code translation, mostly for negative
values. Adjust amd64 and i386 accordingly, not sure about aother archs
i can't test.
2008-10-19 09:44:31 +00:00
apb
3bf9f42fd4 Always make the debugging output unbuffered; in addition, if debugging
is enabled but debugging output is not directed to stdout, then make
stdout line buffered.

Previously, the code to make debug output unbuffered applied only if
debugging to a file, not if debugging to stdout or stderr.  Making
stdout line buffered when debugging was suggested by Steven Bellovin.
2008-10-19 08:30:10 +00:00
apb
e269763779 Use uint32_t and include <stdint.h>, instead of using u_int32_t
and including <sys/types.h>.
2008-10-19 07:56:42 +00:00