8618 Commits

Author SHA1 Message Date
martin
592397db3f Move to standard TNF 2 clause license 2008-05-04 12:59:38 +00:00
lukem
66176dfdff Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
apb
bf49cd32ad Try to make it clear that local changes will be overwritten
by "postinstall fix".
2008-05-03 09:44:45 +00:00
xtraeme
b2bb69490d WARNS=4 love. 2008-05-02 19:59:19 +00:00
xtraeme
c8f61d2b50 WARNS=4 2008-05-02 19:22:10 +00:00
xtraeme
7097d2c139 Constify and other misc fixes to make this build with WARNS=4. 2008-05-02 19:07:44 +00:00
martin
cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
4b1e6a65be Convert to 2 clause license 2008-04-30 08:20:03 +00:00
xtraeme
dbce9233f7 Don't show statistics in sensors that will provide a percentage. 2008-04-29 21:46:17 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad
1f959cb4ab Use symbolic names for -C. 2008-04-28 16:52:17 +00:00
ad
4c7ba24481 Add MI code to support in-kernel preemption. Preemption is deferred by
one of the following:

- Holding kernel_lock (indicating that the code is not MT safe).
- Bracketing critical sections with kpreempt_disable/kpreempt_enable.
- Holding the interrupt priority level above IPL_NONE.

Statistics on kernel preemption are reported via event counters, and
where preemption is deferred for some reason, it's also reported via
lockstat. The LWP priority at which preemption is triggered is tuneable
via sysctl.
2008-04-28 15:36:01 +00:00
tsutsui
c007028e0b Enable gcc optimization on m68000 (sun2) again with minimum hacks.
gcc -O0 generates a bit fat binaries.
2008-04-27 03:06:46 +00:00
xtraeme
b02a77aff5 Add missing cast, noticed by Paul Goyette in current-users@. 2008-04-26 20:58:51 +00:00
xtraeme
f4ac0ac2c7 Cur -> Current for the header. 2008-04-26 11:28:26 +00:00
xtraeme
7dbfb3923c In default display mode, fix up the indentation for the critical
limits so that they appear in the correct column.
2008-04-26 11:15:14 +00:00
xtraeme
f960b01be8 * Improve default display output by adding a header that will match
current value as well as critical limits set and sensor unit.

* Add a new flag: -T. When it's enabled statistics will be created for
  the sensors. Max, min and average statistics as well as sensor unit
  will be displayed. Must be used with an interval.

You can see the new code in action here:

http://www.netbsd.org/~xtraeme/envstat_stats.txt

Thanks to jmcneill@ for comments and ideas.
2008-04-26 02:56:57 +00:00
cegger
68519ac971 amdtemp(4): Driver for AMD CPU Temperature Sensors. Adopted from OpenBSD's kate(4).
Changes beyond OpenBSD's driver:
- Improved support for AMD K8
- Added support for AMD Barcelona, AMD Phenom and AMD Griffin
Tested on various single and multi-socket machines.
Review and OK xtreame
2008-04-22 22:37:12 +00:00
plunky
9abc85a7e2 use __arraycount macro instead of rolling our own 2008-04-20 19:34:23 +00:00
xtraeme
e7638e85c4 Remove the 'dvnprinted' bool member of sensor_t, it's unused. 2008-04-17 21:19:12 +00:00
xtraeme
b16a06cd38 * Add support to show output from specified sensors in multiple devices
via the -s flag (the requirement for -d is not there anymore). [1]

You can do something like the following now:

$ envstat -s "acpibat0:charge,acpibat0:charge state,acpitz0:temperature"
[acpibat0]
       charge:      3.015 Ah (79.70%)
 charge state:     NORMAL
[acpitz0]
  temperature:     54.000 degC
$

* As bonus, the code has been modified to use a simple queue for
  the sensors, and this has simplified and improved some parts of the
  code as well.

[1] Item requested by joerg@ yesterday.
2008-04-17 20:51:48 +00:00
plunky
486e4624e5 some changes to serial bluetooth host controller interfaces
btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
2008-04-15 11:17:47 +00:00
tsutsui
df870ff695 Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
ad
15efd9ad99 Do adaptive spinning for rwlocks, but only if the lock is write held and
there are no waiters. This gives a major boost to build.sh on larger
systems as directory vnode locks are exclusive for lookup, but are often
only held for a very short period of time.

This change has the potential to more readily expose lock order reversals
and other types of deadlock.
2008-04-04 17:25:09 +00:00
xtraeme
ba517bc7f5 Mention finsio(4). 2008-04-03 22:51:53 +00:00
xtraeme
979262d0fe Mention pic16lc(4). 2008-04-02 14:29:45 +00:00
xtraeme
e984f5b1da Mention cac(4). 2008-04-02 14:17:40 +00:00
xtraeme
42d9037c3c Mention adt7463c(4) and thinkpad(4) even if the manpages don't exist.
This is to have a reference about which drivers are using the envsys
framework.
2008-04-02 14:15:27 +00:00
christos
6bb1f8cf94 Not the right way to fix this. 2008-03-28 21:17:37 +00:00
he
25a92e43c5 Because privsep.c uses CMSG_SPACE() to size two local arrays, these
ends up as c99 variable-sized local arrays (CMSG_SPACE() uses a function
as part of calculating its result).  This causes the stack protection
code in the compiler to complain, so build this one with -fno-stack-protector
to avoid the problem.

Gets us back to buildability for this program for a number of our ports.
2008-03-28 18:10:53 +00:00
he
d7ce7c850c Make racoonctl build again, sockmisc.c needs -DNOUSE_PRIVSEP in order
to not pull in all the rest of the racoon/ipsec code.
2008-03-28 14:37:08 +00:00
martin
23e1f3f5d4 Use cpu index instead of ID for cpuctl; extend listing to provide both
numbers (but now the ID is only informational).
2008-03-25 15:06:02 +00:00
xtraeme
3ce1136f19 showcpuset: check the correct variable against NULL after calling malloc(3). 2008-03-24 10:33:17 +00:00
xtraeme
fc83e8aa5f - Improve usage().
- Replace malloc+memset(foo, 0, ...) with calloc calls.
2008-03-24 10:22:41 +00:00
mlelstv
2370a334ab Import Heimdal-1.1
more missing files
2008-03-22 09:29:55 +00:00
mlelstv
b0f88a0388 Import Heimdal-1.1 2008-03-22 08:36:48 +00:00
plunky
e0f590bc15 add the knowledge to create service records for "Personal Area Networking"
profiles
	NAP	Network Access Point
	GN	Group Network
	PANU	Personal Area Networking User
2008-03-19 23:15:19 +00:00
reed
9b88c4e54a Document some about being able to view differences and
toggling the different diff formats/tools.
2008-03-17 14:46:54 +00:00
yamt
8e73684fa1 update. 2008-03-17 09:57:11 +00:00
yamt
7c034e5b2c remove MAXNFSDCNT. 2008-03-17 09:52:26 +00:00
dholland
dbb1ba5a88 Always clear the output string buffer in mkaliases(), to avoid reusing
old aliases from an earlier line if there were none here and thus
emitting a lot of crap into the database. PR lib/37711.
2008-03-09 01:29:34 +00:00
dsl
f8907c6f49 Add a large warning about the possible side effect of using '-f'. 2008-03-06 21:27:41 +00:00
dsl
f2ccbd036f Don't treat -f and an invalid flag.
Report the hex value of unknown unsupported (for the specified arch) flags.
2008-03-06 21:05:27 +00:00
lukem
57d60ef891 Use mkstemp(3) (in a hokey manner) instead of mktemp(3).
XXX: still not 100% "safe", except that we're in a protected directory.
XXX: arguably we should keep the fds open and fdopen(3) dup()s,
XXX: but we're in a protected directory so it shouldn't matter.
2008-03-03 05:07:43 +00:00
xtraeme
f88582eca6 Xref arcmsr(4). 2008-02-29 20:59:37 +00:00
lukem
cea4b7cdfd Simplify ypdb_open() API and just use it for opening the DB for reading.
Provide a separate ypdb_mktemp() API to open a temporary file read-write.
Use mkstemp() instead of mktemp().

NOTE: makedbm & mkalias tested ok.  I couldn't test ypxfer.
2008-02-29 03:00:47 +00:00
reed
a87ec1e425 Remove the -v verbose switch from userinfo. It was not used.
Also remove reference to usermgmt.conf from userinfo manpage.

Discussed on tech-userlevel.
2008-02-27 19:12:56 +00:00
ad
60df1d7038 The ISO stuff has never worked, remove it. 2008-02-27 16:39:17 +00:00