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
christos
64b9d7212f
Add AS support for traceroute6. While here cleanup both traceroute programs
...
a bit.
XXX: Error printing on traceroute should be revisited.
2011-05-10 01:52:49 +00:00
manu
73963ae9de
Enable the build of perfused and libperfuse
2011-05-09 08:51:08 +00:00
manu
dfdc5ae18f
Display actual error from FUSE on failures
2011-05-06 13:45:35 +00:00
jruoho
7b594ad6a4
Identify AMD Family 11h. From PR bin/41188 by FUKAUMI Naoki.
2011-05-03 09:06:22 +00:00
christos
acc16d96d1
Share the amd64 and i386 files.
...
XXX: Is there a better way to get the cpu family?
2011-04-30 16:57:58 +00:00
wiz
613716bd88
Sort sections, SEE ALSO, and fix xref.
2011-04-29 10:31:02 +00:00
wiz
31ccbbf612
Fix a typo.
2011-04-28 16:23:41 +00:00
wiz
9505784535
Sort sections.
2011-04-28 12:12:47 +00:00
wiz
769b2ceb89
security(7), not (8).
2011-04-28 11:57:08 +00:00