joerg
3eb244d801
Retire varargs.h support. Move machine/stdarg.h logic into MI
...
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
plunky
ee76f29c49
rcconf_is_set takes a tuple of <script> <variable>, so add
...
in a couple of missing script names
network ip6forwarding
sysctl defcorename
and remove the trailing "sysctl"
2011-07-14 09:35:24 +00:00
plunky
0067012e91
introduce rcvar_is_enabled to test if a rcvar is enabled
...
use this instead of rcconf_is_set to warn about superseded
rc.d scripts, to silence spurious warnings produced before
/etc/defaults/rc.conf script was updated.
(spurious warnings noted by Martin Husemann)
2011-07-14 09:31:19 +00:00
dholland
2a4f285a6d
Minor cosmetic fixes, no semantic changes. (object file diffs have been
...
checked)
2011-07-10 07:54:49 +00:00
dholland
edda69b9c3
tsort contents of file.
2011-07-10 07:31:48 +00:00
dholland
a958ceefc8
use __dead
2011-07-10 07:19:24 +00:00
kefren
e733a1c2f0
Mention that it doesn't support Path Vectors and Hop Counts
...
Mention RFC3037 and xref ldpd.conf
2011-07-07 05:20:16 +00:00
kefren
849a1cbddc
return EXIT_SUCCESS and EXIT_FAILURE instead on 0 and -1
2011-07-02 18:17:12 +00:00
joerg
7293bf2d37
Replace malloc + incorrect memset with calloc.
2011-07-01 03:09:29 +00:00
joerg
a6bdeabc26
Fix memset usage.
2011-07-01 03:07:21 +00:00
mrg
1c1ba33ca6
apply some -Wno-strict-overflow for GCC >= 4.5
2011-07-01 02:42:10 +00:00
wiz
4cbd24b23f
dependant -> dependent
2011-06-30 20:09:15 +00:00
mrg
b6d5d1aeec
fix previous / -Wno-enum-compare is only valid for GCC 4.5.
2011-06-29 06:34:31 +00:00
mrg
667b3f39be
-Wno-enum-compare is only valid for GCC 4.5.
2011-06-29 06:32:32 +00:00
mrg
90786c5ad2
apply some -Wno-enum-compare
2011-06-29 02:40:11 +00:00
plunky
976f402dd7
use appropriate types for uid/gid
2011-06-25 09:28:45 +00:00
enami
0b23c5aa3d
Move inclusion of sys/endian.h from cd9660_eltorito.c to cd9660.h
...
since actual user is not cd9660_eltorito.c but iso.h and
cd9660_eltorito.h.
Actually, include order/place of sys/endian.h doesn't matter on
netbsd since it is always included by sys/types.h but it's not
true on other system. This should fix cross build breakage on
freebsd introduced by rev. 1.16 of cd9660_eltorito.c.
Problem reported and fix suggested on twitter.
2011-06-23 02:35:56 +00:00
mrg
5ed322d90a
apply some -Wno-error/-Wno-enum-compare/-Wno-array-bounds.
...
this should be looked at more closely.
2011-06-22 05:23:53 +00:00
mrg
33c01d32fc
remove some always true if () checks GCC 4.5.3 picks up.
2011-06-22 04:03:23 +00:00
mrg
62f88af12a
fix the length argument to a memcpy() to refer to the size of the
...
destination, not the size of the pointer. real bug on 64 bit platforms.
2011-06-22 04:02:46 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
mrg
2c77b0841d
avoid code that looks like this:
...
x = x = y;
since GCC 4.5 complains about it having sequence point issues.
2011-06-21 09:36:46 +00:00
enami
7a059b3bd9
Now need to use own buffer for klog read due to previous change.
2011-06-20 08:27:15 +00:00
mrg
75e42fa7da
remove most of the remaining HAVE_GCC tests that are always true in
...
the modern world.
2011-06-20 07:43:56 +00:00
enami
9394c08bbe
Defer the processing of incomplete line at the end of buffer so that
...
kernel printf messages logged to /var/log/messages become always
easier to read.
2011-06-20 00:42:11 +00:00
wiz
d7b84b20f6
New sentence, new line. Fix some typos and an xref. Bump date.
2011-06-17 18:20:40 +00:00
manu
448e1c49b2
Add mount -o extattr option to enable extended attributs (corrently only
...
for UFS1).
Remove kernel option for EA backing store autocreation and do it by
default. Add a sysctl so that autocreated attriutr size can be modified.
2011-06-17 14:23:50 +00:00
kefren
d4ba594c90
Correct prefixlen->sockaddr calculation. Now ldpd may finally allow MPLS
...
forwarding for default route.
2011-06-16 20:42:15 +00:00
kefren
c2db1af7a2
obey RFC3036 3.5.2 regarding holdtimes
...
wire SIGINT
2011-06-16 14:48:30 +00:00
kefren
e043db3b96
Introduce 'show labels' command that reports about labels received from
...
unsolicited label-maps. Statify.
2011-06-16 08:27:28 +00:00
kefren
7102910ef8
shorten some execution paths related to check_route() and get_route()
...
statify a bit
don't assume AF_INET in a debug message
2011-06-16 07:11:51 +00:00
kefren
4671a6ac8d
clear the error condition
...
KNF a little bit
2011-06-16 06:05:47 +00:00
kefren
0c4a44d22f
we need to add mapping even if there is no route for the prefix
2011-06-15 18:16:48 +00:00
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
dholland
15569646a4
Abstract out some of the handling of the ypservers file.
2011-05-24 06:57:30 +00:00
dholland
dfd8a41891
Check that the domain name is valid up front, instead of doing it
...
after opening sockets and registering services and whatnot.
2011-05-24 06:57:04 +00:00
dholland
cb269e446a
Remove now-unnecessary extra forward decls; sprinkle a little more static.
2011-05-24 06:56:48 +00:00
dholland
20f9d4037f
Sort contents of file.
2011-05-24 06:56:16 +00:00
dholland
58a3e249b1
sort includes
2011-05-23 02:54:53 +00:00
dholland
d2f44d281f
Don't use _t as an identifier suffix meaning "variable containing a time".
2011-05-23 02:43:10 +00:00
dholland
86a03218b2
Introduce DPRINTF() macro, remove most #ifdef DEBUG usages.
...
No change to compiler output.
2011-05-23 02:36:35 +00:00
dholland
41741c3c2a
u_int32_t -> uint32_t and similar
2011-05-23 02:06:41 +00:00
christos
c419ca3c2c
include system headers after config.h
2011-05-23 00:21:50 +00:00
christos
0477909eb4
From Nathan Whitehorn (nwhitehorn at freebsd dot org):
...
Add code to generate bootable ISOs on Powermac and CHRP systems.
Synthesize some partition maps (APM and MBR, respectively) pointing
to (a) the whole disk, and (b) relevant El Torito boot images that
have been added by other code. These partition maps are a little
bit funny looking, but they seem to work. FreeBSD has been using
this successfully in their release generation on powerpc, as well
as generating all non-SPARC install media. SPARC support could
probably be added as an extension of this patch.
2011-05-22 21:51:39 +00:00
riastradh
f4368f5168
Initialize psshfs root node's readdir waiters queue.
...
Every other node's readder waiters queue is initialized in makenode,
but the root node is created specially.
ok pooka
2011-05-19 15:07:16 +00:00
wiz
57309cc658
Sync usage with manpage.
2011-05-15 00:06:23 +00:00
wiz
103f698f94
Sort options. Remove unnecessary quotes and Bk/Ek.
2011-05-12 08:42:24 +00:00
christos
ce1401c437
use err(3) and warn(3) for error and warning printing, tiny knf.
2011-05-12 01:59:16 +00:00
christos
5e771eb510
Don't use a static buffer for ifaddrs (and not check for overflowing it!)
...
(speciallly if you are setuid!)
2011-05-11 00:38:28 +00:00
njoly
1199515b5b
Fix prologue macros order.
2011-05-10 12:16:18 +00:00
christos
0172147d4a
AS additions from Zafer Aydogan to print the AS path. Minor cleanups to compile
...
without WARNS=1 hackery.
2011-05-10 01:58:58 +00:00