Commit Graph

190127 Commits

Author SHA1 Message Date
dholland
b8a40a1a76 fflush the score file while signals are blocked to decrease the chance of
it getting corrupted.
2010-04-24 00:38:30 +00:00
joerg
9c5268bcde Fix compilation. 2010-04-23 23:05:40 +00:00
joerg
210d7a16de \\ -> \e
Drop redundant .Ic.
Add explicit empty argument for intentionally empty bracket and
parenthesis.
2010-04-23 22:04:37 +00:00
christos
6d79f6d119 Align usage of *free and *alloc and clean up the firmware read code.
This fixes two panics that occur for kernels compiled with DIAGNOSTIC and
DEBUG. From Sverre Froyen
2010-04-23 20:56:20 +00:00
joerg
323fc69705 Update build glue for pkg_install-20100421 2010-04-23 20:56:01 +00:00
joerg
8164e2ede7 Merge pkg_install-20100421 2010-04-23 20:55:31 +00:00
joerg
0e7c882236 pkg_install-20100421:
Fix an off-by-one in the check for properly sized pkgdb entries.
It rejected perfectly valid entries.

Extract dependencies of libarchive from the pkgconfig file and thereby
drop knowledge of the needed libraries.

At least some versions of HP-UX are known to not support %zu, add a
workaround. This is using the black list approach for now.

Recognize xz as compression type for pkg_create.

The first time an error is hit while fetching packages, try to reget
from the same position. This works around the server closing the
connection while fetching dependencies.

Try to detect common forms of pkgdb corruption and issue a warning in
that case.

Refactor the pkg_vulnerabilities logic to use the compression support
from libarchive. This reduces the amount zlib/bzip2 interaction to
the linkage.

Add man pages for audit-packages and download-vulnerability-list which
point to pkg_admin and notes that the scripts are obsolete.
2010-04-23 20:54:06 +00:00
joerg
22c838d332 Add MKBSDTAR, defaulting to no. It switching cpio and tar to the
libarchive based frontends.
2010-04-23 19:41:02 +00:00
rmind
5b61593723 mq_timed{send,receive}: as required by POSIX, return EINVAL on invalid
timeout and thread would have blocked, instead of ETIMEDOUT.  Change is
to abstimeout2timo(), thus also affects _lwp_park(2).

Reported by Stathis Kamperis some months ago.
2010-04-23 19:29:23 +00:00
macallan
2babff0fb0 don't try to print a bus_space_handle_t
now this at least compiles on sparc64
2010-04-23 19:27:35 +00:00
dyoung
ca088e5210 Do not try in postinstall(8) to replicate the code in etc/mtree/Makefile
that assembles /etc/mtree/NetBSD.dist.  Instead, use the Makefile's
new target, emit_dist_file, to assemble the correct NetBSD.dist.

Previously, 'postinstall -m amd64 -s $SRC_TOP' would install a
NetBSD.dist that was missing /usr/lib/i386/ et cetera.
2010-04-23 19:21:08 +00:00
rmind
13f624ca0f Remove lwp_uc_pool, replace it with kmem(9), plus add some consistency.
As discussed, a while ago, with ad@.
2010-04-23 19:18:09 +00:00
drochner
d4def06880 -build ldexp/frexp/modf locally again rather than relying on libc
reaching over, to get things into a sane state,
-do the usual namespace protection game with scalbn(f) because it
 is used internally
(more symbol renamings are necessary)

The weak_alias change for mc68881 is untested.
2010-04-23 19:17:07 +00:00
rmind
d8eaa1fed9 Remove M_IOV (missed in previous commit) and M_1394DATA types. 2010-04-23 19:09:15 +00:00
drochner
87941501db use the local versions of ldexp/frexp/modf again rather than pulling
in libm source code. The libm functions depend on other libm functions,
this requires symbol renaming, and with the reachover method this
is going to be a mess. Also, bundling the dependencies into one .o
file has the potential to cause symbol conflicts on static linking.
2010-04-23 19:04:54 +00:00
jruoho
ba4f1cd0dd Forgot that the firmware may change the power state behind our back,
so actively query the state when the sysctl(8) is invoked.
2010-04-23 19:00:58 +00:00
jruoho
16bdc3ff0f Add hw.acpi.power sysctl-node. 2010-04-23 18:51:31 +00:00
dholland
4e32f54f3c + B/W for bandwidth, ATM and PIN, TBA 2010-04-23 17:48:06 +00:00
dholland
4d8dd20b9d + JBOD, NAS, OQL, OWL, RDF, SPARQL, TOS (type of service), UUID 2010-04-23 17:43:45 +00:00
dholland
a868b6fb2a minor edits, mostly capitalization.
remove FUD since it's in the main acronyms file already.
Don't use {a,b} notation for semantically unrelated expansions.
2010-04-23 17:34:48 +00:00
ahoka
9db315bb61 Add a missing parentheses. 2010-04-23 16:44:10 +00:00
rmind
2ddb8da453 Mention that kmem_free(9) may block, just in a case it is not clear. 2010-04-23 16:24:04 +00:00
joerg
f5b7f56dbd Use struct segment_descriptor for pcb_fsd and pcb_gsd instead of int[2]. 2010-04-23 16:07:33 +00:00
jruoho
f6ac0eab50 One malloc(9) type is enough for ACPI; use M_ACPI. 2010-04-23 15:52:26 +00:00
jruoho
84377acda5 Simplify acpi_pcidev_find(): directly return a pointer to the device node. 2010-04-23 15:46:59 +00:00
sjg
83fb10e649 PR: 42850
Reviewed by:

Reduced the "expected to exist" dirs in path to just
/ /bin and /tmp
and change the "not expected to exist" dir to something
even less likely.
Add a comment to suggest why.
2010-04-23 15:43:28 +00:00
pooka
0c20c076ce Enforce RLIMIT_FSIZE before VOP_WRITE. This adds support to file
system drivers where it was missing from and fixes one buggy
implementation.  The arguably weird semantics of the check are
maintained (v_size vs. va_bytes, overwrite).
2010-04-23 15:38:46 +00:00
jruoho
f7be22cf8e Cosmetics: be pedantic and use AE_CTRL_TERMINATE instead of AE_ABORT_METHOD
as a condition to break out of a loop.
2010-04-23 15:37:01 +00:00
plunky
edefcdeffb no [longer?] need to define _KERNEL when including <net/route.h> 2010-04-23 15:30:30 +00:00
jruoho
7e3b451fbe When setting the power, always mark the state as invalid on failure, even if
going to D0. Also fix a potential NULL pointer dereference in an aprint_().
2010-04-23 15:20:35 +00:00
rmind
d00df28408 Replace M_IOV and some malloc(9)s with kmem(9), and while there:
- Fix invalid free (M_TEMP vs M_IOV) in do_sys_recvmsg(), spotted by jakllsch@.
  Also, same fix in osf1_sys_sendmsg_xopen().
- Fix attempt to free non-allocated memory in error path in netbsd32___getfh30().
- Plug a memory leak in compat_43_netbsd32_orecvmsg().
2010-04-23 15:19:19 +00:00
skrll
05b7cce3dc Don't round the bus space map/unmap requests to page size, but keep track
of the exact regions requested.

Only ever map the whole FLEX area in when mapped and don't unmap.

G/C the BTLB stuff - it doesn't work. Maybe one day it will come back.
2010-04-23 15:04:09 +00:00
he
686c73fd73 Um, as has been noted, INSTALL_FILE records what's installed if it's
done unprived, and that doesn't go down well on a re-build.  So use
${INSTALL} ${COPY} instead to fix this problem.
2010-04-23 14:10:19 +00:00
ahoka
290cdd631e Remove a couple of zero length kmem_frees.
It should fix at least one crash when unloading the dtrace module,
possibly many others.
2010-04-23 11:39:52 +00:00
wiz
b96117b0b1 Uppercase some proper names and abbreviations (probably more to do here). 2010-04-23 11:00:27 +00:00
jruoho
eec2754392 Add some common ones. 2010-04-23 09:57:40 +00:00
jruoho
bccc1bf1aa Make the ACPIVERBOSE output even prettier by removing cruft. 2010-04-23 07:04:18 +00:00
dholland
d0a8fc2028 vgonel() went away a long time ago, so stop declaring it. 2010-04-23 05:10:19 +00:00
chs
e59be4800f regen 2010-04-23 03:03:03 +00:00
chs
822c314290 add missing argument to clone(). the symptom of this was that pthread_join()
would sometimes get stuck, such as in our "mutex2" regression test.
2010-04-23 03:02:16 +00:00
christos
1de4aac3ae mention crash ldscript. 2010-04-23 02:12:58 +00:00
christos
e1c0dee238 workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer 2010-04-23 02:10:01 +00:00
sjg
24157036cd On darwin at least, vfork() fails in child of vfork().
It probably shouldn't work anyway, so avoid this.
We use the macro vFork() - a function seems to cause problems
and is unnecessary overhead.
2010-04-23 00:18:50 +00:00
dholland
d1466497fc Use _PATH_TMP instead of a literal /tmp; noted by Christos 2010-04-22 22:39:13 +00:00
jruoho
bdb6986f24 Some pretty printing for ACPIVERBOSE. 2010-04-22 21:58:08 +00:00
jym
871c771cc1 Uses cpu_feature, so include <machine/cpuvar.h> 2010-04-22 21:47:32 +00:00
sjg
1870812db3 Force LANG=C to ensure sort(1) behaves as expected 2010-04-22 21:41:11 +00:00
jym
27fdce55b0 CPUID_TSC => cpu_hascounter(). This one was missing in my cpu_feature
rework patch.

Should fix the i386/ALL build issue many have reported. Thanks!
2010-04-22 21:02:25 +00:00
dholland
fb0f75db1f don't use strlcpy; it causes bootstrap issues. (noted by moof) 2010-04-22 20:25:16 +00:00
dyoung
cb401b7946 When choosing IPv6 source addresses, respect the ifaddr preference
level such as one might set with 'ifconfig xx0 inet6 <address>
preference <pref>'.  I've been running this for many months without
any problems.
2010-04-22 20:05:15 +00:00