Commit Graph

153022 Commits

Author SHA1 Message Date
christos
d15d9f8a71 add async-signal-safe versions: syslog_ss and vsyslog_ss
multithread-safe syslog_r and vsyslog_r are not async-signal-safe.
2006-10-27 20:00:55 +00:00
christos
abca035cf3 Add signal-safe versions of snprintf and vsnprintf 2006-10-27 19:59:58 +00:00
pooka
eb6da7fc35 fix checkalias true branch: don't unlock or lock twice 2006-10-27 19:54:34 +00:00
garbled
e5bff3e418 A few changes so pnpbus devices can do isadma. Note that isadma still
does not seem to work properly on prep.
2006-10-27 19:52:51 +00:00
drochner
65b9988ba4 gently add some "const", and avoid some casts
compiles with WARNS=4 now (on i386 and alpha)
2006-10-27 19:39:11 +00:00
garbled
8685914d8f Change an instance of curaddr to PHYS_TO_BUS_MEM(t, curaddr) in
_bus_dmamap_load_buffer, otherwise when attempting to DMA a buffer larger
than PAGE_SIZE on an arch where PHYS != BUS it will allways fail.
2006-10-27 19:36:15 +00:00
pooka
0035113cf8 Use spec_fsync for specops vop_fsync: it knows about vflushbuf(), which
is more than what puffs currently knows.  makes e.g. ffs unmount for a
puffs-based device node work.
2006-10-27 19:01:48 +00:00
dogcow
6cb622186f Sync up with rtk 'common macro' changes. 2006-10-27 18:47:07 +00:00
drochner
50ea67a5eb As discussed back in June, remove hmac_sha1 and hmac_md5 from libc, to
reduce bloat and namespace trouble. (both were never public; hmac_sha1
is moved to libcrypt now because it is used locally there)
2006-10-27 18:29:21 +00:00
drochner
d16ceb033e As discussed back in June, move the implementation of hmac_sha1 here
because this is not a public function and crypt-sha1.c is the only
place where it is used (It must have been that way formerly, because
there was a stale prototype in crypt.h all the time.)
Being here, do some RCSID and prototype cleanup, and add as much "const"
as needed to compile these files with WARNS=3.
2006-10-27 18:22:56 +00:00
perry
360359b671 fix a bit of trailing whitespace, and do the space tab dance for a
couple of options so that they work well when commented out
2006-10-27 17:37:44 +00:00
christos
26bb1685bd don't allocate large buffers on the stack. 2006-10-27 16:49:01 +00:00
christos
78a48d28a3 Use strncpy to copy out interface names so that the trailing part of the
buffer is zeroed, and check for overflow.
2006-10-27 15:33:11 +00:00
tnozaki
0c4c29f46b add missing locale syspkg stuffs. 2006-10-27 15:09:46 +00:00
yamt
b89279d039 revert malloc -> kmem_alloc part of uvm_swap.c rev.1.110 because
the current implementation of kmem_free can sleep.
2006-10-27 15:06:04 +00:00
yamt
17685f3fdc vmem: use correct function names for ASSERT_SLEEPABLE. 2006-10-27 15:05:16 +00:00
tnozaki
1a00f7afa4 don't pass through surrogate character(0xD800 - 0xDFFF). 2006-10-27 14:13:55 +00:00
pooka
8fdf9afc13 update appropriate timestamps after each operation. cvs works much
better now with dtfs /tmp
2006-10-27 14:03:52 +00:00
tsutsui
dee13e6f7d Remove redundant byteswap ops. 2006-10-27 13:26:34 +00:00
pooka
9638ee1464 relax typechecks so that all file types work (they were already supported) 2006-10-27 12:26:25 +00:00
pooka
30a851c1d1 support fifos 2006-10-27 12:25:16 +00:00
tsutsui
5ee73a035c Use common macro rather than local one. 2006-10-27 09:57:26 +00:00
bouyer
f91ce46f20 Add SATA native registers support for VIA SATA controllers, so that
drives are probed using the SATA way (from FreeBSD). While here add the
VT8237A SATA Controller to the tables, should fix PR kern/34927.

Thanks to the César Catrián Carreño and paul (at) whooppee.com for
tests.
2006-10-27 08:22:31 +00:00
macallan
4022a1c7d3 fix a typo in chipsfb_bitblt() 2006-10-27 06:14:17 +00:00
uwe
921ce8b2e0 Add prop_dictionary_{get,set}_bool.[03] (hi, potr). 2006-10-27 01:34:35 +00:00
uwe
575dae7120 Add prop_dictionary_all_keys.3 link (hi, potr). 2006-10-27 01:29:37 +00:00
lukem
5b87c223c9 Use "see" instead of "c.f.".
Per feedback from Valeriy E. Ushakov.
2006-10-27 01:29:17 +00:00
uwe
0d5d31b4ff Add back setlogmask.3 (hi, christos). 2006-10-27 01:25:58 +00:00
uwe
b0f3335e9a Add syslog_r.3 link (hi christos). 2006-10-27 01:24:26 +00:00
elad
0c57382297 oops - passing wrong integer. 2006-10-27 00:11:44 +00:00
uwe
523122cd3e Nuke GPROF cargo-cult I've been cut-n-pasting around in my drivers. 2006-10-27 00:08:32 +00:00
uwe
2909b42808 Fix __mcount to use bsrf to call _mcount. We know it's in the same
module (in the same file even), so we know the offset at link time and
don't need a reloc.  This kills the last text relocation in the sh3
libc.so.

While here, tweak the code slightly to put delay slots into use.
2006-10-26 23:54:28 +00:00
simonb
c7f58e7f3e Make mcount static.
Same problem as described in port-alpha/10582 by ITOH Yasufumi.
pc532 problem pointed out by Valeriy Ushakov.
2006-10-26 23:53:27 +00:00
bjh21
ed5db5831e boot_file is not used by generic NetBSD/arm code, and its type varies by
MACHINE.  Thus, move it out of <arm/bootconfig.h> and put it into
<machine/bootconfig.h> on those MACHINEs (cats, hpcarm, and shark) where
it's used outside the file in which it's defined.
2006-10-26 23:31:47 +00:00
bjh21
be9c217769 Regen (__KERNEL_RCSID()). 2006-10-26 23:21:23 +00:00
bjh21
8eda8c47a7 Emit __KERNEL_RCSID() into videomodes.c so that kernels using it can be
more easily identified.
2006-10-26 23:19:50 +00:00
uwe
088af57adf Do the used/unused dance under #ifdef KERNEL too. Prevents mcount
from being optimized away when compiling sh3 kernels with profiling
enabled (gcc doesn't see that __mcount, which is written in asm,
refers to it).
2006-10-26 23:10:16 +00:00
pooka
0ba65a4c32 support mknod, essentially makes it possible to run dtfs as /dev 2006-10-26 22:53:25 +00:00
pooka
1fc270ecf0 pass rdev for specfs support 2006-10-26 22:53:01 +00:00
pooka
0f94cb76f7 support specfs 2006-10-26 22:52:47 +00:00
bjh21
3191d2a481 Change the type of initarm() on OFW-based ARM systems to match other non-hpcarm
ports.  This seems sensible since all of them call it from the same locore.S.
This makes NetBSD/shark GENERIC compile.
2006-10-26 22:49:36 +00:00
bjh21
b09fd5bdb5 No need for two __KERNEL_RCSIDs. 2006-10-26 22:42:00 +00:00
wiz
e2440f408d New sentence, new line.
Add Xr for all referenced drivers, some of them commented out because
the man pages don't exist yet, in particular:
acorn32/amps(4)
acorn32/csa(4)
acorn32/icside(4)
acorn32/rapide(4)
acorn32/simide(4)
hcsc(4)
2006-10-26 22:39:50 +00:00
bjh21
27e5dd6430 MI podulebus(4). 2006-10-26 21:41:47 +00:00
bjh21
79a98f507f At wiz's suggestion, replace the two MD podulebus(4) pages with a single MI
one, modelled somewhat on pci(4).
2006-10-26 21:37:08 +00:00
hannken
fcd5ec4841 When using a snapshot take the snapshot raw device on further open.
Fixes PR #34923  dump(8) only dumps a corefile with -X (snapshots)

Approved by: Manuel Bouyer <bouyer@netbsd.org>
2006-10-26 20:02:30 +00:00
uwe
5704a46a71 uvm_page_printall: With new PQ_* flags pg->pqflags no longer fits and
makes the output of "show all pages" ragged.  Widen the field to 4 chars.
2006-10-26 20:00:52 +00:00
thorpej
1aea07a325 Add prop_array_t support to prop_kern. 2006-10-26 18:51:21 +00:00
wiz
f31bc9e7e9 Bump date for previous. 2006-10-26 17:54:52 +00:00
drochner
cb7efd18c2 minor fixes and cleanup, reviewed by elad 2006-10-26 17:33:11 +00:00