yamt
9bc4e5ed37
explain the output of fmt.sh
2008-01-02 01:06:31 +00:00
yamt
7c8b847a3a
minimum documentation.
2008-01-01 23:42:56 +00:00
yamt
72af27bc88
comment a usage.
2008-01-01 21:39:50 +00:00
yamt
cfa944ec37
a dumb formatter for tprof. should be rewritten.
2008-01-01 21:37:50 +00:00
yamt
8415a5d75a
a dumb program to talk with the tprof driver.
2008-01-01 21:33:26 +00:00
plunky
aeab3db895
request and keep a mask of supported commands per unit in order
...
to block unsupported HCI commands sent by unprivileged users
reaching the device.
2007-12-30 18:26:42 +00:00
plunky
a2576166f0
only read inquiry mode if the HCI version is appropriate
2007-12-29 14:35:39 +00:00
wiz
ec17d82b0c
Describe /var/log/cron. Based on PR 37640 by Randolf Richardson.
2007-12-29 13:21:57 +00:00
ad
22f711b877
Remove reference to VI_XWANT - it will be gone soon.
2007-12-28 18:08:39 +00:00
christos
7b06b28ff8
Document ASLR
2007-12-26 22:17:02 +00:00
christos
4e65b015fb
Allow turning ASLR on and off.
2007-12-26 22:16:31 +00:00
elad
3278973321
Fix typos:
...
- Mprotect -> MPROTECT
- Servguard -> Segvguard
While here, pad values.
2007-12-24 20:05:24 +00:00
jnemeth
6d559c496c
PR/37604 - Danilo Vidovic -- we do have a ndis(4) man page
2007-12-24 18:52:34 +00:00
joerg
fd3f654960
Catch up with pkg_install-20071224.
2007-12-24 00:04:45 +00:00
jmcneill
941ceb8768
Note addition of hotkey_button scripts.
2007-12-22 18:40:21 +00:00
skrll
79dd1f17ae
Updates from FreeBSD:
...
- EAP support is compiled in.
- xref wpa_passphrase(8)
- static wep example.
- typos/grammar.
2007-12-22 09:48:45 +00:00
dyoung
45c4dfeeb5
Use __arraycount(). Do not needlessly import net80211/ieee80211_node.h.
2007-12-22 00:58:15 +00:00
dyoung
1b8630a278
Cosmetic: KNF. Shorten staircases. Delete some whitespace at line
...
ends (makes navigation with vi more reliable).
2007-12-22 00:57:15 +00:00
christos
14002ac9c8
make sup-0.2
2007-12-20 20:25:08 +00:00
christos
8f6e6d108f
include libc.h and c.h after all the headers, so that __unused is not defined
...
until the headers have been included.
2007-12-20 20:17:52 +00:00
christos
fc5737cefd
use setproctitle, so that we know which host we are serving.
2007-12-20 20:17:15 +00:00
christos
3791e7cc61
- add setproctitle
...
- add commented out DEFS for the layout I use.
2007-12-20 20:16:34 +00:00
christos
d5abced1d5
If the filesystem where the scan file resides got full while the scanner is
...
running, you can end up with an incomplete scan file because there was no
error checking done. Then sup will happily delete all the files that are
missing from the scan file. Make sure we have written a good scan file before
renaming.
2007-12-20 20:15:59 +00:00
christos
55dfe21e44
more EE_XXX stuff for different layout.
2007-12-20 20:14:24 +00:00
christos
92376661d1
__unused for those who don't have it [linux]
2007-12-20 20:12:12 +00:00
christos
6ec6ec5548
setproctitle for those who don't have it [linux]
2007-12-20 20:11:24 +00:00
apb
f228d2e41d
Pass NETBSDSRCDIR in the environment to make. This is insurance against
...
Makefiles that should have an early .include <bsd.own.mk> but that fail
to do so. It's also slightly more efficient.
2007-12-20 17:04:57 +00:00
dogcow
881509a404
The blunt instrument approach to dealing with optional compiler sugar:
...
arbitrarily use the formerly-unused variable. Everybody's happy.
2007-12-18 07:33:54 +00:00
apb
88718b259c
Change O_NDELAY to the POSIX standard O_NONBLOCK. This should fix
...
a compile error when building as a host tool.
2007-12-17 23:04:37 +00:00
apb
68039cfd90
This is a host tool; include nbtool_config.h
2007-12-17 18:18:21 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
yamt
0b6f963133
.htm -> .html
2007-12-15 17:49:14 +00:00
jmmv
80aba14b89
Update URLs after website reorganization in the motd check; per pavel@'s
...
request. Closes PR misc/37070.
2007-12-15 17:48:38 +00:00
perry
36c7456d7c
include sys/cdefs.h so that __attribute__ can be fixed later
2007-12-15 16:32:05 +00:00
perry
4d096031f0
replace instances of __attribute__((__packed__)) with __packed
2007-12-15 16:03:29 +00:00
perry
3f77c34144
__FUNCTION__ -> __func__
2007-12-15 00:14:23 +00:00
jmmv
d96be1e18a
Add a -F option to allow passing a configuration file to ssh(1), instead
...
of having to use multiple -O options on the command line. OKed by pooka@.
2007-12-14 10:56:22 +00:00
pooka
074f023a65
Record inode number in psshfs_dir also for already instantiated
...
nodes when doing readdir. This makes pwd work again for cases
where getcwd() actually has to do the "READDIR + compare inode
numbers" trick.
Yet another problem reported by jmmv.
2007-12-13 14:59:00 +00:00
pooka
343d277986
*blink*, remember to update comment too
2007-12-13 14:32:47 +00:00
pooka
794adab583
Do previous in a way which causes less waste of potential inode numbers.
2007-12-13 14:31:44 +00:00
lukem
bcf893f432
use __RCSID()
2007-12-12 22:55:42 +00:00
christos
22ec0fdf7e
warns=4
2007-12-12 21:56:38 +00:00
xtraeme
e2749a8b14
Xref battery_pmu(4).
2007-12-12 20:27:30 +00:00
pooka
00b48f3e40
Fix lossage noticed by jmmv (mostly for -t 0 mounts) and make sure
...
a node always has the inode number set. And since I'm feeling
generous, sprinkle a few comments around the affected areas (mostly
so that I'd remember what in the world the code is trying to do).
2007-12-12 16:04:35 +00:00
martin
aff14f6816
Ooops, backout Makefile change in previous - did not intend to commit
...
that part
2007-12-12 10:05:44 +00:00
martin
8dee778467
When converting unicode input, replace everything with second byte != 0
...
with the letter A - this avoids syntax errors if real unicode strings are
used as quoted strings (for example). Fixes a problem converting some
Broadcom driver's .inf file reported on current-users.
Same output generated as with the .inf file properly converted by iconv
upfront.
2007-12-12 10:04:52 +00:00
christos
f84222f6f6
fix usage to say we can take multiple files.
2007-12-11 01:40:27 +00:00
dyoung
537fc55662
Add a todo item: read files from multiple directories.
2007-12-10 23:54:35 +00:00
pooka
faa30930fd
When creating a node, do the server-dance before creating the local
...
data structure. This avoids a race between create and lookup, as
the kernel now unlock the directory before the create operation
returns.
2007-12-09 18:05:42 +00:00
dogcow
f4c8a4cce7
Turns out we don't actually need to include <sys/namei.h>; since it causes
...
a compile error, away it goes.
2007-12-09 12:04:06 +00:00
christos
f8082d9a50
We should be able to operate on more than one file, like other unix tools.
2007-12-08 19:56:54 +00:00
pooka
a86a009392
Don't use puffs_cc_getusermount()
2007-12-07 14:59:22 +00:00
pooka
f845b0dacb
Get rid of a lot of extra complexity due to doing separate getattr
...
requests in readdir - just use the results from the readdir rpc.
2007-12-07 14:54:08 +00:00
pooka
2195151d14
In case a node is created in lookup in the readdir path, initialize
...
attribute cache timestamp to be equal to that of the directory
cache timestamp.
2007-12-07 13:09:49 +00:00
christos
2220b74719
patch from pkgsrc
2007-12-06 21:58:58 +00:00
christos
1f093d4259
PR/37482: Malcolm Herbert: mtree does not check for getlogin() returning null
...
in spec create
2007-12-05 16:55:29 +00:00
pooka
375257e2a7
Invalidate namecache for a directory only if we've already read it
...
at least once.
2007-12-05 12:01:44 +00:00
pooka
30e5c41557
When scheduling waiters for re-run, remove them from the waitqueue
...
already when scheduling to make sure they're not scheduled more
than once.
2007-12-04 19:31:22 +00:00
wiz
6ee13c8582
Do not overload Xr macro.
2007-12-03 18:14:48 +00:00
wiz
5d9460afed
Fix xrefs. Sort options. Standardize wording.
2007-12-02 21:22:03 +00:00
wiz
9fbc5e2b76
Sort options.
2007-12-02 21:03:39 +00:00
wiz
c50e337e51
Nits. Sort options.
2007-12-02 21:03:32 +00:00
wiz
4721bd8970
Drop trailing whitespace, remove superfluous Pp.
2007-12-02 20:59:29 +00:00
wiz
f2714d32d2
Fix Xref.
2007-12-02 19:19:16 +00:00
wiz
c3ff82973e
Sort SEE ALSO. Minor nit fixes.
2007-12-02 19:05:51 +00:00
kiyohara
7d8e778052
Add EXAMPLES.
...
Reorder types.
2007-12-02 03:25:36 +00:00
kiyohara
095036e67d
Add support bgb2xx.
...
Obsolate bt2000c.
2007-12-02 00:20:24 +00:00
wiz
8e492a60da
Typo fix.
2007-12-01 19:38:38 +00:00
wiz
9e3049e77d
Sort options, SEE ALSO, sections.
2007-12-01 19:00:55 +00:00
wiz
163e44444f
Sort SEE ALSO.
2007-12-01 18:56:42 +00:00
wiz
ac491fe208
Punctuation and typo fixes.
2007-12-01 18:41:24 +00:00
mlelstv
3b956ed6b4
Sort queue by time and jobid so that jobs submitted within the
...
same second are printed in order.
Fixes PR bin/37346
2007-12-01 09:26:58 +00:00
pooka
21913eabe5
Rototill.
...
Ok, ok, a few more words about it: stop holding puffs_cc as a holy
value and passing it around to almost every possible place (popquiz:
which kernel variable does this remind you of?). Instead, pass
the natural choice, puffs_usermount, and fetch puffs_cc via
puffs_cc_getcc() only in routines which actually need it. This
not only simplifies code, but (thanks to the introduction of
puffs_cc_getcc()) enables constructs which weren't previously sanely
possible, say layering as a curious example.
There's still a little to do on this front, but this was the major
fs interface blast.
2007-11-30 19:02:28 +00:00
pooka
3fe3f65454
Introduce the concept of lazyopens. This means that when a file
...
handle open is requested, it is waited for only if the node was
not previously succesfully opened. The actual wait for the file
handle happens only when the file handle is actually needed (read
or write). This in turn has the effect that reading cached files
will be quick instead of waiting for the file handle from the sftp
server first. The wait previously could be very long if there were
serveral hundred k of outstanding requests in a limited-bandwidth
link.
The code is in some need of serious handholding, but it works, so
I'll leave that as "future work".
2007-11-30 16:24:04 +00:00
plunky
736a9db087
Clean up the way that bluetooth drivers attach to the bluetooth stack,
...
to remove the frobbing that drivers must do in the hci_unit structure.
- driver provides a static const interface descriptor
- hci_unit is allocated by hci_attach() rather than part of softc
- statistics are compiled by driver and provided on request
- driver provides output methods and is responsible for output queue
- stack provides input methods and is responsible for input queue
- mutex is used to arbitrate device queue access
2007-11-28 20:16:11 +00:00
pooka
6a3d9a187d
Remove "puffs_cid" from the puffs interface following l-removal
...
from the kernel vfs interfaces. puffs_cc_getcaller(pcc) can be
used now should the same information be desired.
2007-11-27 11:31:17 +00:00
jnemeth
91954fd117
PR/35238 - tls@ -- add _proxy to uid and gid checks
2007-11-21 10:41:03 +00:00
plunky
b0d7f48f6f
use optarg instead of mode when reporting failure - mode is uninitialised
2007-11-19 19:49:58 +00:00
ad
c60c05b2ef
TS_ASLEEP is gone.
2007-11-19 19:00:30 +00:00
rillig
f8d3de218d
Renamed dsort to dcmp, since it doesn't sort, it only compares.
2007-11-19 08:58:54 +00:00
rillig
50e4f54b4c
Even on non-BSD systems, the "-R all" option should disable printing of
...
the "time" attribute. Noticed by Malcolm Herbert on tech-pkg.
2007-11-19 08:42:24 +00:00
pooka
8dd9b67755
Don't bother tracking opencount and try to close file handles in
...
the close method - simply just wait for inactive and do it there.
2007-11-18 17:41:55 +00:00
pooka
4462e9454f
use puffs_daemon() instead of daemon()
2007-11-16 18:39:01 +00:00
pooka
968196af71
If a regular file was remotely updated and a readdir was done on
...
the directory which contained the file before a getattr on the file
itself, the locally cached mtime would be updated without invalidating
the kernel page cache. Thus incorrect data would be returned when
the node was read afterwards as the node size wouldn't match the
data length in the page cache.
Fix the problem by making all vattr-setting routines use the same code.
Problem noticed again by jmmv & atf (and again by running atf over
psshfs ... sometimes you're the windshield, sometimes you're the bug)
2007-11-16 15:53:47 +00:00
jmmv
55876f3f39
Drop trailing whitespace. On behalf of pooka.
2007-11-16 15:10:06 +00:00
pooka
0feebae56b
When checking if the file page cache should be invalidated, compare
...
against cached mtime instead of attrread - attrread can be reset
these days by sending SIGHUP.
Problem noticed by jmmv & atf (well.. namely by using atf through psshfs).
2007-11-16 14:25:47 +00:00
xtraeme
27ddba0559
Implement the 'refresh-timeout' property in device blocks for the
...
configuration files. This sets the timeout value that will be used
to check for critical limits.
The value can be viewed by the 'envstat -D' command.
2007-11-16 08:01:37 +00:00
pooka
b0106b7eaf
Don't overload "attributes last read" for the symlink cache,
...
use a separate variable.
2007-11-11 18:06:35 +00:00
pooka
6b4d0688e7
Cache readlink results similarly to attributes. Makes "cd" fast
...
for a slow connection if a symlink is along the path.
(this should be done elsewhere, but I want it for sshfs now)
2007-11-10 18:36:06 +00:00
plunky
e5a7441d16
Add a new utility 'btkey' for managment of Bluetooth Link Keys stored
...
in the NetBSD key cache (/var/db/bthcid.keys) and Bluetooth controller
memory.
2007-11-09 21:18:22 +00:00
plunky
d6ed949b20
Fix ServiceSearchAttribute and ServiceSearch request handling
...
so that they match the whole list of UUIDs against a record,
as according to the spec
each profile now supplies a list of UUIDs instead of just a
service class.
2007-11-09 20:08:40 +00:00
pooka
c5afd8dc36
Make it possible to force attribute/directory cache re-read by
...
sending SIGHUP to mount_psshfs.
2007-11-08 17:49:43 +00:00
pooka
7dc67449bf
don't allow negative timeouts apart from -1
2007-11-08 16:42:31 +00:00
pooka
a56f46a5ac
Make attribute & directory content caching timeout a command line
...
option. Use -t -1 to never expire, which is nifty on a high-latency
link where you know the server won't be modified from under you.
2007-11-08 16:40:14 +00:00
plunky
26a4d1cf14
sort & remove unnecessary include files
2007-11-06 21:35:36 +00:00
kiyohara
3caf19136d
Sync to FreeBSD.
...
Add fwmethods.h fwmpegts.c
fwcontrol.c Rev.1.23
fwctl.8 Rev.1.21
fwdv.c Rev.1.7
Support MPEG2-TS/HDV. But not tested.
2007-11-06 17:02:15 +00:00
pooka
a02fe51bef
Open the kernel descriptor as part of mount(), not init(). Then
...
it doesn't matter if someone fork()s or does other tricks between
init() and mount() (and besides, now it's where it logically should be).
2007-11-06 15:09:07 +00:00
tls
02aa4d6c73
Sigh. Fix dependency problem for libcrypto as well; not sure why the
...
previous build didn't turn this up.
2007-11-05 18:43:42 +00:00
pooka
ec865a5b29
Actually, daemonize the file servers before mounting. I might require
...
at some point that the local protocol handler does not change after
the file system has been mounted.
2007-11-05 17:54:31 +00:00
pooka
4b0f2948e2
Pull the daemonizing code out of the library mainloop into the file
...
servers. Calling daemon() (i.e. fork()ing) inside a library can
cause nice surprises for e.g. threaded programs. As discussed with
Greg Oster & others.
2007-11-05 17:48:17 +00:00
tls
6c2ee7b76e
Describe libpthread dependency correctly and put bind libs in list of
...
dependent libs after .WAIT barrier in lib/Makefile. Fixed build lossage
pointed out by smb.
2007-11-05 04:58:52 +00:00
tls
b21c402a7b
Remove MKPRIVATELIB from BIND libraries; move library reachover
...
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared. Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.
2007-11-04 23:28:16 +00:00
christos
ceaa3a4f21
- pass lint (not completely)
...
- KNF
- ansify
- use %m instead of "%s, strerror(errno)" in syslog messages
2007-11-04 23:12:50 +00:00
tron
e6cd63ecaf
Fix off-by-one error accessing "clnt_cache_addr" array which causes heap
...
corruption. This will hopefully fix PR bin/37236.
2007-11-04 19:59:54 +00:00
xtraeme
4e10a84855
- Rename ENVSYS_BATTERY_STATE units to ENVSYS_BATTERY_CAPACITY and
...
introduce ENVSYS_BATTERY_CHARGE, which is the same than an Indicator and
it's used to know if the battery is currently charging or discharging.
- Require two sensors at least for SME_CLASS_BATTERY to make the low-power
condition work: a ENVSYS_BATTERY_CAPACITY plus ENVSYS_BATTERY_CHARGE.
- Simplify sme_event_check_lowpower() and make it check the required
sensors in the SME_CLASS_ACADAPTER and SME_CLASS_BATTERY classes.
If the acadapter is not ready, trust the state returned by the battery
device.
Based on suggestion from joerg@.
2007-11-03 23:05:21 +00:00
martin
cabebfa313
Remove -or0s argument - cron should not pretend to be smarter than the
...
local mail admin. Should fix PR bin/37226.
2007-11-02 14:31:27 +00:00
xtraeme
b1afa665db
Mention coretemp(4).
2007-10-29 01:00:52 +00:00
plunky
60822ed9d3
When no estimate of battery minutes_left can be made, apm should
...
return a value of 0.
2007-10-27 19:51:29 +00:00
christos
5f2b082001
PR/37236: Matthias Scheler: Mac OS X NFS client frequently crashes rpc.lockd(8)
...
on NetBSD. Use calloc to allocate the lock as suggested in the PR.
2007-10-27 18:41:54 +00:00
agc
cfd783f213
-D_FILE_OFFSET_BITS=64 is not needed on NetBSD.
...
Install the test harness into the correct location.
2007-10-26 19:04:21 +00:00
pavel
d35530e427
now when trap 0 is not used, we need to remove the temporary directiry
...
at the end. PR bin/37223.
2007-10-26 17:26:25 +00:00
wiz
c06a095415
Various improvements: typo fixes, wording, formatting.
2007-10-25 23:14:41 +00:00
pooka
afe4c2ed02
Use puffs_cc_schedule() (which is an exported interface) instead of
...
plugging directly to puffs_goto().
2007-10-21 19:27:12 +00:00
pooka
8543b6baeb
Add option -r to specify maximum number of active read requests
...
for each node. Setting this to a small number can be used to
improve interactive performance on low-bandwidth links when performing
bulk data reads. Of course I could also open separate pipes for
bulk and other, but this was quicker and less intrusive and doesn't
require authenticating twice.
2007-10-20 19:14:27 +00:00
briggs
644890e99d
If we're printing totals, don't do all the work of allocating and
...
copying down the vnodes.
2007-10-20 01:38:45 +00:00
christos
50295fe38d
cast to long explicitly for the compat build
2007-10-18 02:28:22 +00:00
pooka
8215b8c2bc
Close file handles if opencount drops to zero instead of closing
...
them if it does not drop to zero, i.e. fix a pretty obvious bug.
2007-10-16 10:53:02 +00:00
tls
215e50961e
Add httpd to the build. Add _httpd to passwd and groups and postinstall.
...
Add /var/www to mtree, add example line to inetd.conf.
2007-10-16 02:47:12 +00:00
pooka
1b050f3a07
update usage to match reality. caught by jmcneill
2007-10-15 17:28:13 +00:00
pooka
6360ca31ab
Execute getattr in lookup to get file size. The kernel doesn't
...
anymore do this if we fail to set size.
The whole lookup procedure should be done in a smarter fashion,
but this is the quickie fix to get things working again.
2007-10-13 17:21:39 +00:00
christos
019362ec2a
- unlink the warmstart file first and then open it exclusively.
...
(From Brian Ginsbach)
- ifdef the whole file #ifdef WARMSTART to save space.
2007-10-12 21:24:01 +00:00
xtraeme
a1def00d93
Document the 'low-power' event in the sensor_battery script.
2007-10-10 23:46:01 +00:00
ad
7dad9f7391
Merge from vmlocking:
...
- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.
2007-10-10 20:42:20 +00:00
xtraeme
2e75cc0f7b
- Do not allow a 'critical-{max,min}' property in battery
...
sensors (those that contain the 'want-percentage' object on its
dictionary), the 'critical-capacity' prop must be used instead.
- When setting a 'critical-{max,min}' property check if the value is
higher than the 'max-value' or lower than the 'min-value' on its
dictionary, raise an error if it's true.
2007-10-09 08:00:46 +00:00
xtraeme
eed1cc9bc8
Fix a typo that prevented a 'critical-capacity' property to
...
be added.
2007-10-09 02:29:37 +00:00
xtraeme
032cb27052
Another comment that is no more thanks to the new configuration file.
2007-10-07 18:22:37 +00:00
xtraeme
0d2161c8c4
Modify a comment that is not valid anymore.
2007-10-07 18:14:20 +00:00
xtraeme
12b91c398d
If a critical-capacity property is found, make sure that the
...
'monitoring-supported' object is true.
2007-10-07 16:22:37 +00:00
xtraeme
1e1df7f7b4
Provide a more complete syntax example.
2007-10-07 15:37:30 +00:00
xtraeme
71045d13c0
Explain some more about the events that will send to powerd(8)
...
(if running) in the critical-{capacity,max,min} properties when the
limit has been reached.
2007-10-07 15:23:41 +00:00
xtraeme
2839febced
Use two global dictionaries rather than only one:
...
- use one for temporary sensor dictionaries.
- use one as the dictionary that will be returned to send_dictionary().
This fixes multiple settings in multiple devices.
2007-10-07 13:48:03 +00:00
xtraeme
8259fb204b
Use another main rule to avoid a conflict in the grammar.
...
Suggestion from martin@.
2007-10-07 13:46:22 +00:00
xtraeme
7447ac47db
Xref envsys.conf(5)
2007-10-07 12:43:19 +00:00
xtraeme
bca7b7f673
Pass -I${.CURDIR} -I. like others do.
2007-10-07 12:19:37 +00:00
taca
a3cbbf6d39
Remove an unused variable at previous commit in listdir().
2007-10-07 05:25:19 +00:00
xtraeme
b0a8720beb
Accept '+' or '-' characters at the start of SP_STRING.
2007-10-07 05:11:08 +00:00
xtraeme
f2803256d9
New configuration file format for the envsys framework:
...
foo0 {
#
# CPU Temperature
#
sensor0 {
critical-max = 70C;
critical-min = 20C;
}
...
}
...
Removed the -m flag that was previously used to set properties for
sensors. Now the -c flag will process all properties specified in
the file (accepted as argument).
To remove all properties that were set, the new -S flag can be used.
This will restore default values for all devices.
2007-10-07 04:16:47 +00:00
xtraeme
cfba73e2fb
Remove an extra prop_object_release().
2007-10-06 22:12:04 +00:00
christos
9f1fcc0d86
portability fixes from joerg.
2007-10-06 20:19:52 +00:00
pavel
eb9220515b
Add a check for obsolete sendmail in /etc/mailer.conf, installs a
...
fresh copy of the file if invoked as "fix". Not enabled by default.
2007-10-05 10:28:45 +00:00
pavel
6590c89893
Return exit status 1 for failed chacks/fixes, 2 for errors. Suggested
...
by hubertf. Use exit status 3 for internal errors (misuse of internal
functions).
2007-10-05 10:17:13 +00:00
pavel
e9045950d7
do not use trap 0, it clobbers the exit status. Instead remove the
...
scratch directory in err(). Use err() instead of exit in one place to
ensure that the temporary directory is removed.
2007-10-05 10:06:49 +00:00
christos
03687f1fb0
remove null test; it is not necessary as we always look at the next element.
...
from Anon Ymous
2007-10-03 19:07:43 +00:00
christos
0bfe3e6189
- int -> size_t
...
- off by one in \n printing [Anon Ymous]
- return when the end of the array is reached.
2007-10-03 17:45:47 +00:00
kiyohara
c9c6f7ff7e
Support type bcsp.
2007-09-30 04:11:02 +00:00
xtraeme
6d61a6b51b
Duh! add missing free(3) in previous.
2007-09-27 18:11:05 +00:00
xtraeme
6c73c21f44
In debug mode, don't forget to free the buffer returned by
...
prop_dictionary_externalize().
2007-09-27 18:08:32 +00:00
xtraeme
ccaf6fc177
- Simplify find_sensors().
...
- Remove a block that is not used anymore in check_sensors().
2007-09-25 15:09:32 +00:00
xtraeme
9df195ed98
Merge a patch from Iain Hibbert (plunky@):
...
- some unclear language cleaned up
- inconsistent usage of 'device' and 'driver' to refer to the same thing
- difficult error handling
And print the device name if -d flag is not specified for any driver
registered, e.g:
$ envstat
[aiboost0]
CPU Temperature: 36.000 degC max: 70.000 degC min: 15.000 degC
MB Temperature: 38.000 degC max: 50.000 degC min: 15.000 degC
Vcore Voltage: 1.232 V max: 1.350 V min: 1.150 V
+3.3 Voltage: 3.264 V max: 3.500 V min: 3.000 V
+5 Voltage: 5.017 V max: 5.600 V min: 4.500 V
+12 Voltage: 11.932 V max: 13.500 V min: 11.200 V
CPU FAN Speed: 1268 RPM
$
2007-09-25 14:20:48 +00:00
plunky
3b0395d28d
replace inadvertently removed N
2007-09-20 19:48:26 +00:00
plunky
c231a9012a
sort options
2007-09-20 18:38:49 +00:00
xtraeme
3f2361dc7d
Mention aps(4).
2007-09-11 21:47:37 +00:00
ginsbach
1f1c7f87ed
- remove extraneous \n in err(3) message
...
- minor KNF whitespace nit
2007-09-11 15:46:56 +00:00
xtraeme
e4ac7a291b
Another typo in a comment.
2007-09-10 17:41:26 +00:00
xtraeme
6f1f4d144f
Fix a comment.
2007-09-10 17:40:44 +00:00
xtraeme
5316ee99b1
Check argc before calling open(2), and use the out label in another
...
error case.
2007-09-10 17:39:14 +00:00
xtraeme
fc321f6650
Fix a lint(1) warning and remove oldsize in print_sensors(), it's
...
not used.
2007-09-10 14:25:17 +00:00
xtraeme
25be892bac
Don't forget to check if -s was specified without -d, and add a macro
...
to check it in two places.
2007-09-10 14:15:11 +00:00
xtraeme
16f28d90fc
Redo how the arguments are processed, so that arguments not allowed
...
will call usage(). Also remove an extra free().
2007-09-10 13:58:50 +00:00
pooka
38602220e1
Free longname in all error branches. CID: 4545
2007-09-08 22:05:32 +00:00
pooka
96b66ea698
Free pufbuf in error branches. CID: 4546
2007-09-08 15:49:33 +00:00
pooka
584065ec56
Check against errors when reading trace device. CID 4561.
2007-09-08 15:34:23 +00:00
plunky
0d2b4f91b7
add new option 'rssi' to enable/disable inquiry results with RSSI, and
...
add recognition of the "inquiry result with RSSI" packets
2007-09-07 18:40:01 +00:00
pooka
08386a8ca4
adapt to new cmpfb signature
2007-09-06 16:09:09 +00:00
jnemeth
d9fff48060
PR/36931 - Wouter Schoot -- typo
2007-09-06 09:26:21 +00:00
xtraeme
5779f29ae2
Mention that I added support to handle envsys(4) events.
2007-09-05 12:45:51 +00:00
xtraeme
019fd89d16
Improve grammar.
2007-09-05 12:35:08 +00:00
xtraeme
6263ca5fa3
Update to match current kernel code.
2007-09-04 16:54:37 +00:00
xtraeme
85f08bb0ab
Fix typo in previous.
2007-09-02 21:31:24 +00:00
xtraeme
13af8b9adc
Add the -I flag that skips sensors with invalid state. They are shown
...
by default, but this is for users that don't want to print them.
2007-09-02 21:25:24 +00:00
xtraeme
1b3709ecde
Add a new sensor type to sysmon_envsys(9): ENVSYS_GSTRING.
...
ENVSYS_GSTRING (aka Generic String) uses the genstr member in
the envsys_data_t struct to add a generic string that envstat(8)
will show as value or state.
It's like the ENVSYS_DRIVER, but doesn't use value_cur. Below
is the dictionary created on these sensors:
<dict>
<key>description</key>
<string>acpibat0 charge state</string>
<key>generic-state-string</key>
<string>NORMAL</string>
<key>monitoring-supported</key>
<false/>
<key>state</key>
<string>valid</string>
<key>type</key>
<string>Generic string</string>
</dict>
Note that it's limited to 32 chars, but we can grow it if needed.
envstat(8) will print ENVSYS_GSTRING sensors as:
$ envstat -dacpibat0 -s"acpibat0 charge state"
acpibat0 charge state: NORMAL
$
2007-09-02 19:36:59 +00:00
tron
07347616e8
Use "ipv6-icmp" instead of "icmp6" to allow loading these rules again.
...
Patch supplied by Daniel Horecki in PR bin/36874.
2007-09-02 15:28:43 +00:00
pooka
9336b1ca30
Adapt to new puffs_framev_init() signature - gotfb.
2007-09-01 16:43:10 +00:00
jnemeth
fb9f0ce447
PR/36867 - Zafer Aydogan -- trsp is no longertrpt.8
2007-08-30 18:53:54 +00:00
xtraeme
769bd9886e
In temperature sensors, do not convert to degC or degF if there's
...
no value returned.
2007-08-29 16:55:17 +00:00
dogcow
566517a891
add a flag, -p, that only prints public (i.e. non-encrypted) nodes.
2007-08-29 02:27:55 +00:00
dsl
b504fee486
Depracate ND_DEBUG and BIND_DEBUG in favour of RPCBIND_DEBUG.
...
Add commented out entries for RPCBIND_DEBUG and SVC_RUN_DEBUG in Makefile.
2007-08-27 19:53:32 +00:00
dsl
3d3a92a528
This code has been broken for ~ 20 years!
...
Initialise the 'fromlen' parameter for recvfrom() prior to the call, instead
of passing in a 'random' value off the stack.
This should fix the problems with ypbind on current.
I suspect the old kernel was not objecting to -ve buffer lengths.
2007-08-27 19:51:50 +00:00
xtraeme
51e9d204ec
Check if the dictionary is empty and print a message if it's true.
2007-08-26 10:20:33 +00:00
pooka
485aeac15e
error branch management. CID 4503
2007-08-25 09:22:39 +00:00
pooka
c64b357f71
jump to correct error branch. CID 4500
2007-08-25 09:01:08 +00:00
pooka
73d7189c08
If a node is forcibly reclaimed, close can be called more times
...
than open (or less, for the particular fs). So don't be uptight
about opencount.
2007-08-24 13:33:51 +00:00
pooka
9b93e5ea2c
Prevent crash in case there is more than one reader for the same
...
directory concurrently. Might need to revisit the method used here
later, though.
2007-08-23 15:19:40 +00:00
christos
1a9cb96f06
PR/36820: Geoff C. Wing: ypserv maplist functionality broken due to off-by-one
...
error
2007-08-22 16:49:17 +00:00
perry
e34be9798b
Never use "utilize". It means exactly the same thing as "use", but it
...
is longer and more cumbersome. It can always be replaced with "use"
without any change in meaning.
2007-08-20 16:07:05 +00:00
pavel
5e809e89c6
Attempt at fixing build failures after proplib was converted to bool:
...
FALSE -> false, TRUE -> true, boolean_t -> bool, int -> bool when
appropriate, include stdbool.h . proplib.h no longer provides boolean_t,
so it is necessary to change to bool.
From Tom Spindler (dogcow@).
2007-08-17 17:59:15 +00:00
pooka
25a346d4fb
Nuke PUFFSLOOKUP_FOO and move to NAMEI_FOO
2007-08-15 14:19:19 +00:00
joerg
7fb995bb6e
Catch up with pkg_install-20070814.
2007-08-14 23:01:05 +00:00
pooka
62234858c3
* use more sensible perms
...
* use mounter uid/gid as file owners
* sprinkle static
2007-08-10 08:13:11 +00:00
pooka
f49fa2014c
add mount_sysctlfs.8
2007-08-10 07:59:32 +00:00
pooka
e0876492cd
__RCSID police
2007-08-09 22:03:20 +00:00
pooka
ef86ff763c
add sysctlfs
2007-08-09 22:03:01 +00:00
pooka
ba4e596bc9
move sysctlfs from examples to base
2007-08-09 22:01:25 +00:00
joerg
1c0eed0117
Fix typo.
2007-08-09 18:50:58 +00:00
joerg
ca08f11a4d
Regen config.h.
2007-08-08 22:44:49 +00:00
seb
2d1475af34
Fix typo.
...
Ok'ed by xtraeme@
2007-08-07 10:17:17 +00:00
xtraeme
8d2fbe8ac8
The caller of prop_dictionary_externalize is responsible to free the
...
returned buffer... make it so. Reminded by prop_dictionary(3).
2007-08-05 23:20:44 +00:00
jmmv
f5d7807725
Add the __COPYRIGHT and __RCSID tags.
2007-08-05 13:52:44 +00:00
dsieger
8438931b2b
From Zafer Aydogan: Fix a typo: s/distination/destination/
2007-08-05 09:31:24 +00:00
ad
18af8ee9bd
Add cpuctl(8). For now this is not much more than a toy for debugging and
...
benchmarking that allows taking CPUs online/offline.
2007-08-04 11:02:56 +00:00
wiz
96a93618fa
It is probably better to use build.c in SRCS instead of build.o.
2007-08-03 21:50:27 +00:00
jmmv
2fe103e7dd
Messages passed to errx are not supposed to have a trailing \n. Fix that.
2007-08-03 15:34:00 +00:00
joerg
9f6fe41470
Update reach-over code for pkg_install-20070802.
2007-08-03 14:04:15 +00:00
pooka
b5bd455564
make closehandles() void, because that's what it is
2007-07-29 17:50:22 +00:00
nonaka
16469ee06f
Added zaurus.
2007-07-29 14:37:25 +00:00
nonaka
055f45996f
Added zaurus.
2007-07-29 14:34:45 +00:00
plunky
30ba4a7458
add mention of rc.d/btuartd
2007-07-29 13:17:38 +00:00
pooka
1aba0dbed1
Track memory mappings. Close file handles already in close() if there
...
are no active mappings, otherwise do the standard inactive() run.
2007-07-27 09:46:27 +00:00
drochner
baf5b50880
adjust for tcpdump-3.9.7
2007-07-24 12:01:00 +00:00
xtraeme
9293272695
Erm... fix previous.
2007-07-21 11:11:10 +00:00
xtraeme
6d38d74b11
Fix a logic bug: report a message and error if -s or -m is being used
...
without -d.
2007-07-21 10:59:57 +00:00
christos
ce7376f2ed
more cygwin fixes.
2007-07-20 18:58:14 +00:00
christos
52c8d9f862
cygwin support.
2007-07-20 16:39:05 +00:00
pooka
242bfad7a6
support poll
2007-07-20 13:18:09 +00:00
pooka
87429c840c
Oops, the cookies for nfs of course represent the *next* directory
...
entry offset, not the current one.
2007-07-19 10:14:53 +00:00
pooka
d8a510556e
get rid of DBG=
2007-07-18 22:38:58 +00:00
christos
63bf90c624
Eliminate MFSNAMELEN
2007-07-17 22:00:46 +00:00
christos
9e211aafa1
Kill MFSNAMELEN
2007-07-17 21:50:07 +00:00
xtraeme
37fa16db65
Return the value returned by prop_dictionary_recv_ioctl() if the -x flag
...
is specified too.
2007-07-17 18:15:02 +00:00
xtraeme
8b1500977e
- Return the value returned by prop_dictionary_{recv,send}_ioctl
...
in all cases.
- Skip sensors that do not have a description object in its dictionary.
2007-07-17 17:40:59 +00:00
xtraeme
0a6f85e0f3
Only allow to use ENVSYS_SETDICTIONARY if the user has write permission
...
in the /dev/sysmon device.
Use O_RDONLY for ENVSYS_GETDICTIONARY and O_RDWR for ENVSYS_SETDICTIONARY
in envstat(8).
Fixes PR kern/36661 by YAMAMOTO Takashi.
2007-07-17 15:43:08 +00:00
xtraeme
2577f77bbc
Add the -r flag, which is a dummy flag... only added for compatibility
...
reasons.
2007-07-17 13:12:46 +00:00
pooka
08db7d7534
* add mntfromname parameter to puffs_init()
...
* set it in file servers
2007-07-17 11:34:51 +00:00
pooka
90ba17c197
support standard user@host:path mount argument
2007-07-17 10:06:03 +00:00
joerg
2ccbc1ff9d
Switch to src/dist as primary src location of pkg_install.
...
Adjust the Makefiles to be reachover Makefiles and remove
some unnecessary warning exceptions.
audit-packages.conf is stored redundantly in src/etc, not changed yet.
pkgsrc.7 is also kept in share/man/man7.
Add a comment in lib/nbcompat.h to make the file non-empty.
2007-07-16 19:57:46 +00:00
joerg
f6afac53fa
Switch to src/dist as primary src location of pkg_install.
...
Adjust the Makefiles to be reachover Makefiles and remove
some unnecessary warning exceptions.
audit-packages.conf is stored redundantly in src/etc, not changed yet.
pkgsrc.7 is also kept in share/man/man7.
Add a comment in lib/nbcompat.h to make the file non-empty.
2007-07-16 19:33:02 +00:00
xtraeme
d99380c510
Explain that sensor_indicator will be used for indicators and integers.
2007-07-16 17:49:56 +00:00
pooka
9ec31d4b95
If the target node exists in rename, do not try to issue a setback
...
to signal no references, as that is not currently supported for
node_rename(). The removed node will not immediately be reclaimed,
but we can live with that for now.
While here, factor the removal code a bit to share with remove and
rmdir.
fixes PR kern/36637 by reinoud
2007-07-16 09:36:06 +00:00
wiz
833f95f3dc
Sort options. Sync -E argument name with man page.
2007-07-15 21:24:46 +00:00
wiz
e85760e80f
Sort options. Use HTML escapes.
2007-07-15 21:24:22 +00:00
xtraeme
efff6f1100
Extend do_envsys() and check if the sensor_* files in /etc/powerd/scripts
...
are installed.
2007-07-15 14:31:08 +00:00
xtraeme
307b2a722c
Do not install fixsb anymore, which was removed recently.
2007-07-15 13:02:41 +00:00
jnemeth
e135b05bdf
fix error message for obsolete_libs
2007-07-15 03:04:39 +00:00
joerg
3a6411a4c8
When fixing vsftpd, other FTP server were broken as they return
...
different error codes for unmatching glob patterns. Basically ignore the
error code and just try the other pattern. chdir errors are still
considered fatal.
Bump version to 20070715.
2007-07-14 22:53:27 +00:00
ad
96d0aa8e9b
fixsb has done its job.
2007-07-14 21:20:31 +00:00
adrianp
38581a0561
Update to pkg_install-20070714
...
Merge of audit-packages with various improvements:
* Version 20070714
Initial release of re-write in C
Add support for notfication of eol packages (-e)
Multiple levels of verbosity (e.g. -v -v)
Specify a custom config file to use (-c)
Query running config values (-Q)
Default to download .gz compress pkg-vulnerabilities file
Support for .bz2 compress pkg-vulnerabilities file
Verify signature on downloaded files (-s)
Thanks to tron@, jschauma@, agc@, joerg@ and pkgsrc-security@ for feedback
and testing.
2007-07-14 20:03:41 +00:00
dsl
29f2310244
Add the new 'data_len' parameter to mount calls.
...
Passing in zero causes the kernel to use the default for the filesystem,
doing anything else here would require hacking through layers of code
in 'dist'.
2007-07-14 16:00:07 +00:00
ad
5c2240bb95
- Increase default number of trace buffers to 10000.
...
- New options:
-f Trace only by calling functions.
-m Merge call sites within unique functions.
-M Merge lock addresses within unique objects.
2007-07-14 13:30:43 +00:00
xtraeme
45e944a6cf
Define a set of macros to avoid writting same code many times.
2007-07-13 00:42:57 +00:00
xtraeme
425df11cce
Add a missing printf in parse_dictionary() and simplify this part to
...
avoid code duplication in two places.
2007-07-12 22:52:54 +00:00
xtraeme
0938d9b438
Remove a comment that is not valid anymore.
2007-07-12 18:34:07 +00:00
xtraeme
ff9bb2708d
- Do not refrence memory already freed, thanks to Geoff C. Wing for
...
the analysis. Closes PR bin/36636.
- Also use the longest string for the column alignment counting all
sensors available from all devices, not per-device.
Thanks to rmind@ for help.
2007-07-12 18:24:35 +00:00
xtraeme
37b598db93
Add do_envsys() that checks if /etc/envsys.conf exists.
2007-07-12 07:13:07 +00:00
yamt
0fc9d7ee0d
after switching to threads:
...
- g/c SIGCHLD handler.
- pthread_setname_np rather than setproctitle.
the patch provided by Andrew Doran.
2007-07-11 04:59:19 +00:00
jmcneill
afa3505c29
Make trpt build again, based on recent netstat changes.
2007-07-10 22:23:13 +00:00
yamt
cebe06e8e7
use pthread_create instead of fork.
2007-07-10 13:52:51 +00:00
pooka
52c5d7c979
* support non-blocking read/write
...
* support seek (or actually support failing to seek ...)
2007-07-09 09:28:21 +00:00
pooka
a43c6db049
play it safe: ignore sigpipe
2007-07-08 17:13:24 +00:00
pooka
5e1b81c1b5
Accept user as a flag. This way the usage is fstab-compliant:
...
mount_9p argument mountpoint
2007-07-08 16:29:29 +00:00
pooka
9d2baecbde
build & install puffsportal (if MKPUFFS)
2007-07-08 14:29:52 +00:00