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