kefren
374dea10e0
simplify the rtsock read sequence
...
apply a little bit of KNF
2011-06-15 13:24:48 +00:00
kefren
9b733c1c9d
* add no-default-route option into configuration file and check it before
...
rejecting default-route
* exit process in case of error into the main loop
* complete FSM for RTM_CHANGE
* Check if we overflow pollfd array
2011-06-14 11:28:51 +00:00
kefren
298f340a61
Use IN_LOOPBACKNET where is the case
...
Don't forget to freeifaddrs() in case of error
Update a couple of debug messages
2011-06-14 11:23:02 +00:00
matt
b418df248c
A small bit of constification
2011-06-14 05:35:08 +00:00
joerg
d45d65aa1c
Input function is not used
2011-06-09 13:09:42 +00:00
pgoyette
eaed4c6e56
Instead of relying on the want-percent attribute, use the sensor
...
type to restrict value-based limits from Battery-capacity sensors.
2011-06-08 16:11:25 +00:00
wiz
8fb66db3ec
Sync usage with man page.
2011-06-08 12:49:45 +00:00
wiz
20e3a8d382
Sort options. New sentence, new line.
2011-06-08 12:47:51 +00:00
drochner
89c8725c96
add support for the interesting parts of ISO-2 and KOI8-R fonts
...
to the vga(4) driver
2011-06-08 10:25:21 +00:00
wiz
c8bcdb2bd2
Sort sections.
2011-06-07 17:47:24 +00:00
pgoyette
40470b7ff0
Add a BUGS section to point out that the statistic "average" is an
...
average only of the current, minimum, and maximum values, and not a
running average of all displayed current values.
2011-06-07 17:28:59 +00:00
pgoyette
83a2ecf6cc
Zero is a valid value for some sensors so update statistics code to
...
handle that.
2011-06-07 17:24:32 +00:00
bouyer
a3a7248ce7
Fix bad cut'n'paste in copyright. Pointed out by dyoung@
2011-06-07 14:56:12 +00:00
pgoyette
c84ec94ab0
1. Don't print blank for Integer sensors with value of zero
...
2. Properly print percentages in -T statistics mode
3. Always set Sensor Type (units) to a non-NULL value
4. Enable printing of percentages for Integer sensors
2011-06-06 20:48:56 +00:00
drochner
2125f0d5e4
make this work again after routing socket alignment changes
2011-06-06 16:50:46 +00:00
pgoyette
dec626b5e2
Since there is no longer a value-avg property, remove the code that
...
extracts it.
2011-06-04 13:29:02 +00:00
christos
c5cc5da37b
a little undocumented debugging.
2011-05-31 03:37:02 +00:00
manu
26381d518d
Use SOCK_SEQPACKET in perfuse if available. This fix file operations hangs
...
where the FUSE filesyste replied to an operation and got an ENOBUFS it did
not handle.
We now are also able to cleanly unmount
2011-05-30 14:50:08 +00:00
joerg
28050549eb
Ignore warnings when building with clang for now.
2011-05-30 14:41:26 +00:00
dyoung
4b2c4b100e
It's not necessary to #include both <machine/bus.h> and <sys/bus.h>,
...
because <sys/bus.h> will do: <sys/bus.h> #includes <machine/bus.h>.
2011-05-30 01:15:30 +00:00
tsutsui
79fcae9efc
Apply fixes for PR bin/44114 (makefs(8) -t cd9660 -o rockridge creates
...
corrupted cd9660fs):
- makefs/cd9660.c:
- cd9660_rrip_move_directory() should also update lenght[0] and
name_len[0] in dir->isoDirRecord
- makefs/cd9660/iso9660_rrip.c:
- cd9660_rrip_finalize_node() should check rr_real_parent in node->parent,
not in node itself in RRIP_PL case
- cd9660_rrip_initialize_node() should update only node passed as arg
so handle RRIP_PL in DOTDOT case
Fixes malformed dotdot entries in deep (more than 8 level) directories
moved into .rr_moved dir.
Should be pulled up to netbsd-5.
(no official ISO has such deep dirs, but cobalt restorecd is affected)
2011-05-29 17:07:57 +00:00
tsutsui
72050b117c
- remove unnecessary (pasto?) line on RRIP PL handling for moved dir
...
- RRIP RE length should be 4, not 0
2011-05-28 11:59:29 +00:00
plunky
b52bb12959
provide a new 'bluetooth' rc.d script, to handle Bluetooth configuration
...
in a simpler manner. This replaces btattach, btconfig, bthcid, btdevctl
and sdpd scripts, and also should not require any configuration settings
other than "bluetooth=YES", though the full range of configurations is
still possible.
2011-05-27 09:28:41 +00:00
joerg
a216da57a6
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
...
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
dholland
0c53a1f2e4
Don't print uninitialized values off the stack, even as debug messages.
2011-05-25 04:59:22 +00:00
dholland
ef192e52d5
When checking if /var/yp/binding/foo.ypservers exists, use the domain
...
name of the domain being checked instead of the default domain name. Duh.
Necessary for PR 43900.
2011-05-25 04:33:52 +00:00
joerg
5b79cac715
No input needed
2011-05-24 13:41:53 +00:00
joerg
9d62088ad4
Properly use format strings
2011-05-24 13:26:41 +00:00
joerg
b7d3c3b035
Explicitly mark a NEWREF as unused
2011-05-24 13:26:04 +00:00
joerg
aeb74a68bf
Properly use format strings
2011-05-24 13:25:25 +00:00
joerg
ea580acd89
Use proper format string
2011-05-24 13:19:55 +00:00
joerg
77a6772536
Kill redundant ()
2011-05-24 13:08:16 +00:00
joerg
e4a1756060
Packed pointers are non-sense
2011-05-24 13:03:19 +00:00
joerg
0f19a96b11
Kill redundant externs
2011-05-24 13:02:37 +00:00
joerg
e2f3fd3f0c
Properly use format strings
2011-05-24 13:01:53 +00:00
dholland
8066ee6b9b
Remove two entirely unused members of struct domain (previously struct
...
_dom_binding). I guess these were there because it was cutpasted at
some point from struct dom_binding in <rpcsvc/yp_prot.h>.
2011-05-24 07:02:08 +00:00
dholland
cfb05cb343
Merge a couple more minor improvements from Wolfgang Stukenbrock's
...
patch in PR 43900.
2011-05-24 07:01:53 +00:00
dholland
9d84fe187a
The FILE* kept open for /var/yp/binding/foo.ypservers needs to be
...
per-domain. Also, use the file for the domain we're servicing instead
of always the file for the default domain.
Partly from Wolfgang Stukenbrock's patch in PR 43900.
2011-05-24 07:01:40 +00:00
dholland
6f997d891d
The been_ypset flag really needs to be per-domain also. Do that.
...
Partly from Wolfgang Stukenbrock's patch in PR 43900.
2011-05-24 07:01:24 +00:00
dholland
bb36c8993e
The ypbindmode really needs to be per-domain, so adjust accordingly.
...
Partly from Wolfgang Stukenbrock's patch in PR 43900.
2011-05-24 07:01:15 +00:00
dholland
0d20b396fd
Allowing ypset is a global permission flag, not an operating mode like
...
broadcast vs. configured/direct. Don't conflate the logic. As I proposed
in PR 43900.
2011-05-24 07:00:34 +00:00
dholland
e61f3e4872
Fix initialization of struct domain; initialize all fields in all
...
cases, merge duplicate code, make sure every domain gets an xid
assigned.
Partly from Wolfgang Stukenbrock's patch in PR 43900.
2011-05-24 07:00:07 +00:00
dholland
fec4c9631a
The name field of a domain should be dom->dom_name, not dom->dom_domain.
...
(This and the previous patch make the code far more readable.)
2011-05-24 06:59:53 +00:00
dholland
771940852d
The default name for a "domain" variable should be "dom", not "ypdb".
...
Change them all, and make a couple other related adjustments.
2011-05-24 06:59:35 +00:00
dholland
006489acb9
ypbindlist -> domains
2011-05-24 06:59:07 +00:00
dholland
c9b3b0763b
xid2ypdb() -> domain_find()
2011-05-24 06:58:54 +00:00
dholland
df3a50ea87
Rename struct _dom_binding -> struct domain.
2011-05-24 06:58:42 +00:00
dholland
1cb987c954
Move a bunch of messy sunrpc-related initialization stuff into its own
...
function instead of blatting it all into main().
2011-05-24 06:58:19 +00:00
dholland
fe8f2f2d61
Assimilate the open/flock combination used several times into its own
...
function.
2011-05-24 06:58:07 +00:00
dholland
2b880b64f4
Fix up calls to yp_log. They cannot use %m, because if the -d option
...
is used the messages are sent via printf instead of syslog(3).
Also, make sure that none of the calls include a trailing newline and
issue a trailing newline in the -d case so they actually print properly.
(This was noted by Wolfgang Stukenbrock in PR 43900.)
And finally, fix some cases that could in some circumstances print
uninitialized errnos.
2011-05-24 06:57:55 +00:00