The NetBSD Project

CVS log for src/usr.sbin/ypbind/ypbind.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / ypbind

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.101 / (download) - annotate - [select for diffs], Mon Apr 11 20:57:37 2022 UTC (9 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

s/serivce/service/ in comments.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Thu Mar 15 09:12:08 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.99: +5 -5 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Synch with HEAD

Revision 1.100 / (download) - annotate - [select for diffs], Thu Mar 15 02:25:31 2018 UTC (4 years, 10 months ago) by ginsbach
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.99: +5 -5 lines
Diff to previous 1.99 (colored)

Initialize ypbind_resp before first possible error return condition.

Revision 1.99 / (download) - annotate - [select for diffs], Wed Aug 9 01:56:42 2017 UTC (5 years, 5 months ago) by ginsbach
Branch: MAIN
CVS Tags: pgoyette-compat-base
Branch point for: pgoyette-compat
Changes since 1.98: +42 -29 lines
Diff to previous 1.98 (colored)

Make use of the defined YP errors when ypbind encounters one rather than
just returning an empty (successful) RPC result.

Don't exit when allocating memory for a new bound domain received via a RPC.

Revision 1.57.18.3 / (download) - annotate - [select for diffs], Wed Nov 5 09:59:25 2014 UTC (8 years, 3 months ago) by msaitoh
Branch: netbsd-5
Changes since 1.57.18.2: +3 -3 lines
Diff to previous 1.57.18.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Fix compile error (s/__printf/__printf__/).

Revision 1.57.18.2 / (download) - annotate - [select for diffs], Mon Nov 3 18:48:42 2014 UTC (8 years, 3 months ago) by msaitoh
Branch: netbsd-5
Changes since 1.57.18.1: +1268 -742 lines
Diff to previous 1.57.18.1 (colored) to branchpoint 1.57 (colored)

Pull up following revision(s) (requested by dholland in ticket #1925):
	usr.sbin/ypbind/ypbind.8	1.19-1.20
	usr.sbin/ypbind/ypbind.c	1.63-1.98

State handling fixes and cleanups in ypbind; it no longer churns the
disk, spams syslogd when the server goes down, or gets confused about
its binding state. Fixes PR#15355, PR#32519 and also PR#43900.

Revision 1.90.4.1 / (download) - annotate - [select for diffs], Tue Sep 9 08:24:29 2014 UTC (8 years, 4 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.90: +593 -67 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Pull up following revision(s) (requested by dholland in ticket #1083):
	usr.sbin/ypbind/ypbind.c: revision 1.91
	usr.sbin/ypbind/ypbind.c: revision 1.92
	usr.sbin/ypbind/ypbind.c: revision 1.93
	usr.sbin/ypbind/ypbind.c: revision 1.94
	usr.sbin/ypbind/ypbind.c: revision 1.95
	usr.sbin/ypbind/ypbind.c: revision 1.96
	usr.sbin/ypbind/ypbind.c: revision 1.97
	usr.sbin/ypbind/ypbind.c: revision 1.98
	usr.sbin/ypbind/ypbind.8: revision 1.20
	usr.sbin/ypbind/ypbind.8: revision 1.19
Don't store the default domain name in a global. While running we
really don't care which domain is the system's default domain.
Factor out some rpc validation code.
While there are times it's appropriate to call a state variable
"evil", this isn't one of them. Since the logic involved is to wait
until the default domain binds before backgrounding, call the variable
"started" instead.
Don't rake up the default domain until after processing arguments.
Processing arguments just sets flags -- may as well do it first, and
this way detection of silly errors isn't contingent on having things
fully configured and operating.
Load up with comments.
Instead of using magic numbers in what looks like a boolean
(dom_alive), create a state enumeration (domainstates) and use it
instead.
Instead of three states (new, alive, and, effectively, 'troubled') go
to five: new, alive, pinging, lost, and dead.
Domains start in the NEW state. When we get a reply from a server, the
state goes to ALIVE. The state is set to PINGING when we ping the
server (once a minute normally) and if the ping times out, it goes to
LOST. If we stay lost for a minute, go to DEAD, and in DEAD, do
exponential backoff of nag_servers calls.
Getting rid of the broken logic attached to the 'troubled' state fixes
PR 15355 (ypbind defeats disk idle spindown) -- it will now only
rewrite the binding file when the binding changes.
Also, fix the HEURISTIC code so it doesn't trigger except in ALIVE
state. I think this was the source of a lot of the spamming behavior
seen in PR 32519, which is now fixed.
Might also fix PR 23135 (broadcast ypbind sometimes fails to find
servers).
Add a SIGHUP handler; upon SIGHUP do an extra nag_servers on any
domain that's in DEAD state. This lets you explicitly rescue ypbind
from its exponential backoff when you know the world's back up.
Log state transitions.
Don't store the default domain name in a global. While running we
really don't care which domain is the system's default domain.
Factor out some rpc validation code.
While there are times it's appropriate to call a state variable
"evil", this isn't one of them. Since the logic involved is to wait
until the default domain binds before backgrounding, call the variable
"started" instead.
Don't rake up the default domain until after processing arguments.
Processing arguments just sets flags -- may as well do it first, and
this way detection of silly errors isn't contingent on having things
fully configured and operating.
Load up with comments.
Instead of using magic numbers in what looks like a boolean
(dom_alive), create a state enumeration (domainstates) and use it
instead.
Instead of three states (new, alive, and, effectively, 'troubled') go
to five: new, alive, pinging, lost, and dead.
Domains start in the NEW state. When we get a reply from a server, the
state goes to ALIVE. The state is set to PINGING when we ping the
server (once a minute normally) and if the ping times out, it goes to
LOST. If we stay lost for a minute, go to DEAD, and in DEAD, do
exponential backoff of nag_servers calls.
Getting rid of the broken logic attached to the 'troubled' state fixes
PR 15355 (ypbind defeats disk idle spindown) -- it will now only
rewrite the binding file when the binding changes.
Also, fix the HEURISTIC code so it doesn't trigger except in ALIVE
state. I think this was the source of a lot of the spamming behavior
seen in PR 32519, which is now fixed.
Might also fix PR 23135 (broadcast ypbind sometimes fails to find
servers).
Add a SIGHUP handler; upon SIGHUP do an extra nag_servers on any
domain that's in DEAD state. This lets you explicitly rescue ypbind
from its exponential backoff when you know the world's back up.
Log state transitions.
Document exponential backoff behavior and SIGHUP support, plus a couple
other minor edits.
Use more markup.

Revision 1.90.8.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:18 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.90: +593 -67 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.90.18.1 / (download) - annotate - [select for diffs], Sun Aug 10 07:00:38 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.90: +593 -67 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Rebase.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Jun 10 17:19:48 2014 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.97: +14 -2 lines
Diff to previous 1.97 (colored)

Log state transitions.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jun 10 17:19:36 2014 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.96: +67 -4 lines
Diff to previous 1.96 (colored)

Add a SIGHUP handler; upon SIGHUP do an extra nag_servers on any
domain that's in DEAD state. This lets you explicitly rescue ypbind
from its exponential backoff when you know the world's back up.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Jun 10 17:19:22 2014 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.95: +187 -47 lines
Diff to previous 1.95 (colored)

Instead of using magic numbers in what looks like a boolean
(dom_alive), create a state enumeration (domainstates) and use it
instead.

Instead of three states (new, alive, and, effectively, 'troubled') go
to five: new, alive, pinging, lost, and dead.

Domains start in the NEW state. When we get a reply from a server, the
state goes to ALIVE. The state is set to PINGING when we ping the
server (once a minute normally) and if the ping times out, it goes to
LOST. If we stay lost for a minute, go to DEAD, and in DEAD, do
exponential backoff of nag_servers calls.

Getting rid of the broken logic attached to the 'troubled' state fixes
PR 15355 (ypbind defeats disk idle spindown) -- it will now only
rewrite the binding file when the binding changes.

Also, fix the HEURISTIC code so it doesn't trigger except in ALIVE
state. I think this was the source of a lot of the spamming behavior
seen in PR 32519, which is now fixed.

Might also fix PR 23135 (broadcast ypbind sometimes fails to find
servers).

Revision 1.95 / (download) - annotate - [select for diffs], Tue Jun 10 17:19:12 2014 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.94: +325 -29 lines
Diff to previous 1.94 (colored)

Load up with comments.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Jun 10 17:19:00 2014 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.93: +8 -8 lines
Diff to previous 1.93 (colored)

Don't rake up the default domain until after processing arguments.
Processing arguments just sets flags -- may as well do it first, and
this way detection of silly errors isn't contingent on having things
fully configured and operating.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jun 10 17:18:45 2014 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.92: +5 -5 lines
Diff to previous 1.92 (colored)

While there are times it's appropriate to call a state variable
"evil", this isn't one of them. Since the logic involved is to wait
until the default domain binds before backgrounding, call the variable
"started" instead.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jun 10 17:18:18 2014 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.91: +26 -10 lines
Diff to previous 1.91 (colored)

Factor out some rpc validation code.

Revision 1.91 / (download) - annotate - [select for diffs], Tue Jun 10 17:18:02 2014 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.90: +3 -4 lines
Diff to previous 1.90 (colored)

Don't store the default domain name in a global. While running we
really don't care which domain is the system's default domain.

Revision 1.90 / (download) - annotate - [select for diffs], Tue Aug 30 17:06:22 2011 UTC (11 years, 5 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy, netbsd-6
Changes since 1.89: +14 -14 lines
Diff to previous 1.89 (colored)

Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Aug 29 20:38:55 2011 UTC (11 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Use __dead.

Revision 1.88 / (download) - annotate - [select for diffs], Wed May 25 04:59:22 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Don't print uninitialized values off the stack, even as debug messages.

Revision 1.87 / (download) - annotate - [select for diffs], Wed May 25 04:33:52 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

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.

Revision 1.86 / (download) - annotate - [select for diffs], Tue May 24 07:02:08 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.85: +3 -6 lines
Diff to previous 1.85 (colored)

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>.

Revision 1.85 / (download) - annotate - [select for diffs], Tue May 24 07:01:53 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored)

Merge a couple more minor improvements from Wolfgang Stukenbrock's
patch in PR 43900.

Revision 1.84 / (download) - annotate - [select for diffs], Tue May 24 07:01:40 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.83: +30 -24 lines
Diff to previous 1.83 (colored)

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.

Revision 1.83 / (download) - annotate - [select for diffs], Tue May 24 07:01:24 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.82: +16 -19 lines
Diff to previous 1.82 (colored)

The been_ypset flag really needs to be per-domain also. Do that.

Partly from Wolfgang Stukenbrock's patch in PR 43900.

Revision 1.82 / (download) - annotate - [select for diffs], Tue May 24 07:01:15 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.81: +28 -21 lines
Diff to previous 1.81 (colored)

The ypbindmode really needs to be per-domain, so adjust accordingly.

Partly from Wolfgang Stukenbrock's patch in PR 43900.

Revision 1.81 / (download) - annotate - [select for diffs], Tue May 24 07:00:34 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.80: +29 -33 lines
Diff to previous 1.80 (colored)

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.

Revision 1.80 / (download) - annotate - [select for diffs], Tue May 24 07:00:07 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.79: +18 -15 lines
Diff to previous 1.79 (colored)

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.

Revision 1.79 / (download) - annotate - [select for diffs], Tue May 24 06:59:53 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.78: +14 -14 lines
Diff to previous 1.78 (colored)

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.)

Revision 1.78 / (download) - annotate - [select for diffs], Tue May 24 06:59:35 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.77: +110 -109 lines
Diff to previous 1.77 (colored)

The default name for a "domain" variable should be "dom", not "ypdb".
Change them all, and make a couple other related adjustments.

Revision 1.77 / (download) - annotate - [select for diffs], Tue May 24 06:59:07 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.76: +17 -17 lines
Diff to previous 1.76 (colored)

ypbindlist -> domains

Revision 1.76 / (download) - annotate - [select for diffs], Tue May 24 06:58:54 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.75: +6 -6 lines
Diff to previous 1.75 (colored)

xid2ypdb() -> domain_find()

Revision 1.75 / (download) - annotate - [select for diffs], Tue May 24 06:58:42 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.74: +27 -26 lines
Diff to previous 1.74 (colored)

Rename struct _dom_binding -> struct domain.

Revision 1.74 / (download) - annotate - [select for diffs], Tue May 24 06:58:19 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.73: +51 -41 lines
Diff to previous 1.73 (colored)

Move a bunch of messy sunrpc-related initialization stuff into its own
function instead of blatting it all into main().

Revision 1.73 / (download) - annotate - [select for diffs], Tue May 24 06:58:07 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.72: +29 -17 lines
Diff to previous 1.72 (colored)

Assimilate the open/flock combination used several times into its own
function.

Revision 1.72 / (download) - annotate - [select for diffs], Tue May 24 06:57:55 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.71: +33 -20 lines
Diff to previous 1.71 (colored)

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.

Revision 1.71 / (download) - annotate - [select for diffs], Tue May 24 06:57:30 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.70: +29 -7 lines
Diff to previous 1.70 (colored)

Abstract out some of the handling of the ypservers file.

Revision 1.70 / (download) - annotate - [select for diffs], Tue May 24 06:57:04 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.69: +4 -5 lines
Diff to previous 1.69 (colored)

Check that the domain name is valid up front, instead of doing it
after opening sockets and registering services and whatnot.

Revision 1.69 / (download) - annotate - [select for diffs], Tue May 24 06:56:48 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.68: +9 -32 lines
Diff to previous 1.68 (colored)

Remove now-unnecessary extra forward decls; sprinkle a little more static.

Revision 1.68 / (download) - annotate - [select for diffs], Tue May 24 06:56:16 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.67: +608 -585 lines
Diff to previous 1.67 (colored)

Sort contents of file.

Revision 1.67 / (download) - annotate - [select for diffs], Mon May 23 02:54:53 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.66: +19 -18 lines
Diff to previous 1.66 (colored)

sort includes

Revision 1.66 / (download) - annotate - [select for diffs], Mon May 23 02:43:10 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.65: +12 -12 lines
Diff to previous 1.65 (colored)

Don't use _t as an identifier suffix meaning "variable containing a time".

Revision 1.65 / (download) - annotate - [select for diffs], Mon May 23 02:36:35 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.64: +35 -99 lines
Diff to previous 1.64 (colored)

Introduce DPRINTF() macro, remove most #ifdef DEBUG usages.
No change to compiler output.

Revision 1.64 / (download) - annotate - [select for diffs], Mon May 23 02:06:41 2011 UTC (11 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.63: +17 -17 lines
Diff to previous 1.63 (colored)

u_int32_t -> uint32_t and similar

Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 30 05:24:05 2011 UTC (11 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

Don't cast return value of malloc

Revision 1.62 / (download) - annotate - [select for diffs], Wed Mar 30 05:20:59 2011 UTC (11 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.61: +3 -4 lines
Diff to previous 1.61 (colored)

use __printflike()

Revision 1.57.18.1 / (download) - annotate - [select for diffs], Wed Feb 16 21:04:03 2011 UTC (11 years, 11 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.57: +55 -8 lines
Diff to previous 1.57 (colored)

Pull up following revision(s) (requested by chuck in ticket #1549):
	usr.sbin/ypbind/ypbind.c: revision 1.58 - 1.61
in the case where ypbind is serving more than one domain (i.e.
not just the yp_get_default_domain() domain), we must remove
any old binding files from /var/yp/binding (BINDINGDIR) from
previous runs, or the non-yp_get_default_domain()'s will not
bind properly.   add a purge_bindingdir() function that basically
does "rm BINDINGDIR/*.[0-9]" at ypbind startup time.
example case of where this is an issue: bind a second (non-default)
domain.   ypbind will create and flock a /var/yp/binding/xxx.2
file for it.  stop and restart ypbind.  the old /var/yp/binding/xxx.2
file will remain from the previous run.   since it is not flock()'d
by the new instance of ypbind, libc functions like yp_master() will
fail without even bothering to talk to ypbind itself.   (and ypbind
is totally unaware of the old file...)

Revision 1.61 / (download) - annotate - [select for diffs], Fri Nov 6 15:41:58 2009 UTC (13 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Whitespace.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Nov 6 15:36:55 2009 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.59: +6 -5 lines
Diff to previous 1.59 (colored)

make this compile.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Nov 5 19:34:06 2009 UTC (13 years, 3 months ago) by chuck
Branch: MAIN
Changes since 1.58: +50 -4 lines
Diff to previous 1.58 (colored)

in the case where ypbind is serving more than one domain (i.e.
not just the yp_get_default_domain() domain), we must remove
any old binding files from /var/yp/binding (BINDINGDIR) from
previous runs, or the non-yp_get_default_domain()'s will not
bind properly.   add a purge_bindingdir() function that basically
does "rm BINDINGDIR/*.[0-9]" at ypbind startup time.

example case of where this is an issue: bind a second (non-default)
domain.   ypbind will create and flock a /var/yp/binding/xxx.2
file for it.  stop and restart ypbind.  the old /var/yp/binding/xxx.2
file will remain from the previous run.   since it is not flock()'d
by the new instance of ypbind, libc functions like yp_master() will
fail without even bothering to talk to ypbind itself.   (and ypbind
is totally unaware of the old file...)

Revision 1.58 / (download) - annotate - [select for diffs], Sun Jan 18 10:39:17 2009 UTC (14 years ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.57: +6 -6 lines
Diff to previous 1.57 (colored)

fix -Wsign-compare issues

Revision 1.57 / (download) - annotate - [select for diffs], Sat Jul 7 22:33:57 2007 UTC (15 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: netbsd-5
Changes since 1.56: +110 -70 lines
Diff to previous 1.56 (colored)

- Compile in with debugging by default.
- General cleanup.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Oct 5 09:18:11 2006 UTC (16 years, 4 months ago) by tron
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored)

Ensure alignment of the structure used for RPC requests. This stop
"ypbind" from segfaulting under NetBSD-sparc64 when "ypwhich" is
used to display the current NIS server.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Oct 1 19:43:15 2006 UTC (16 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Fix misleading error message (from PR/32519).

Revision 1.54 / (download) - annotate - [select for diffs], Tue May 9 20:18:10 2006 UTC (16 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.53: +6 -4 lines
Diff to previous 1.53 (colored)

change (mostly) int to socklen_t.  GCC 4 doesn't like that int and
socklen_t are different signness.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Oct 30 15:57:43 2004 UTC (18 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Add (unsigned char) cast to ctype functions

Revision 1.52 / (download) - annotate - [select for diffs], Tue Sep 7 13:20:40 2004 UTC (18 years, 5 months ago) by jrf
Branch: MAIN
Changes since 1.51: +3 -4 lines
Diff to previous 1.51 (colored)

Replaced strncpy with strlcpy.  Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:39 2004 UTC (19 years, 1 month ago) by jmmv
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Dec 10 12:06:26 2003 UTC (19 years, 1 month ago) by agc
Branch: MAIN
Changes since 1.49: +2 -8 lines
Diff to previous 1.49 (colored)

Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Nov 17 21:29:21 2003 UTC (19 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.48: +3 -4 lines
Diff to previous 1.48 (colored)

Apply patch proposted to tech-userlevel on Sun, 12 Oct 2003:
Remove dom_server_port from struct _dom_binding. It's never initialised
and used in only one place, where dom_server_addr.sin_port was probably
intended.

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Tue Sep 9 11:01:56 2003 UTC (19 years, 4 months ago) by msaitoh
Branch: netbsd-1-5
Changes since 1.42.4.1: +8 -9 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Pull up rev. 1.48 (requested by bouyer in ticket #77):
 width needs to be updated before each loop, because svc_maxfd may have
 changed.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Fri Sep 5 18:15:42 2003 UTC (19 years, 5 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.46: +8 -9 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Pull up revision 1.48 (requested by bouyer in ticket #1449):
width needs to be updated before each loop, because svc_maxfd may have
changed.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Sep 5 14:59:37 2003 UTC (19 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.47: +8 -9 lines
Diff to previous 1.47 (colored)

width needs to be updated before each loop, because svc_maxfd may have
changed.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jul 6 21:44:40 2002 UTC (20 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.46: +45 -87 lines
Diff to previous 1.46 (colored)

ANSIfy, remove __P(), unifdef __STDC__.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Feb 19 23:22:50 2001 UTC (21 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Changes since 1.45: +3 -4 lines
Diff to previous 1.45 (colored)

convert to use getprogname()

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jan 11 01:47:55 2001 UTC (22 years ago) by lukem
Branch: MAIN
Changes since 1.44: +5 -5 lines
Diff to previous 1.44 (colored)

use LOG_WARNING for warnings and LOG_ERR for fatal errors

Revision 1.44 / (download) - annotate - [select for diffs], Wed Dec 20 01:34:39 2000 UTC (22 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

__CONCAT does token pasting, not string concatnation.  if something like:
        __CONCAT("foo","bar");
actually works to concantate strings, it's because the preprocessor expands
it into "foo""bar" as separate strings, and then ANSI string concatenation
is performed on that.  It's more straightforward to just use ANSI string
concatenation directly, and newer GCCs complain (rightly) about misuse
of token pasting.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Thu Oct 19 17:05:59 2000 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.38: +4 -3 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Pull up revision 1.43 (requested by he):
  Format string cleanup.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Tue Oct 17 19:50:32 2000 UTC (22 years, 3 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.42: +4 -3 lines
Diff to previous 1.42 (colored)

Pullup usr.sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Oct 11 20:23:58 2000 UTC (22 years, 3 months ago) by is
Branch: MAIN
Changes since 1.42: +4 -3 lines
Diff to previous 1.42 (colored)

More format string cleanups by sommerfeld.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Apr 11 11:36:47 2000 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.41: +26 -52 lines
Diff to previous 1.41 (colored)

use getifaddrs, to avoid complicated alignment constraint in SIOCGIFCONF.
(do we need to keep SIOCGIFCONF code in #ifdef?)

Revision 1.41 / (download) - annotate - [select for diffs], Sun Feb 20 14:31:28 2000 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

avoid 64bit alignment issue with SIOCGIFCONF (packed struct access).
From: Gˇöran Bengtson <goeran@cdg.chalmers.se>

Revision 1.40 / (download) - annotate - [select for diffs], Mon Aug 16 03:12:32 1999 UTC (23 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Spell "privilege" correctly (correct spelling from Jonathan Stone).

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jun 6 02:38:00 1999 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +4 -2 lines
Diff to previous 1.38 (colored)

Use pidfile(3).

Revision 1.38 / (download) - annotate - [select for diffs], Fri Feb 12 15:04:01 1999 UTC (23 years, 11 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

<sys/fcntl.h> -> <fcntl.h>

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Tue Nov 3 18:38:36 1998 UTC (24 years, 3 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.33: +72 -26 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

pull up rev 1.37 from trunk (via patch).  (bouyer)

Revision 1.37 / (download) - annotate - [select for diffs], Fri Aug 21 09:39:04 1998 UTC (24 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.36: +70 -25 lines
Diff to previous 1.36 (colored)

- Makes ypbind use syslog() (with LOG_DAEMON) instead of warn()/err().
  Messages will still be printed to stderr if ypbind is started in debug mode.
- Don't exist if none of the servers listed in
  /var/yp/binding/<domainname>.ypservers are reacheable. It's a temporary
  failure that can be recovered from.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jul 13 12:01:03 1998 UTC (24 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.35: +38 -37 lines
Diff to previous 1.35 (colored)

minor KNF nits.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Feb 12 03:32:51 1998 UTC (24 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.34: +8 -8 lines
Diff to previous 1.34 (colored)

revert; we can't break the existing ABI and API

Revision 1.34 / (download) - annotate - [select for diffs], Tue Feb 10 06:41:00 1998 UTC (24 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.33: +10 -10 lines
Diff to previous 1.33 (colored)

use u_int32_t instead of u_long

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jul 18 23:08:45 1997 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Fix typo in previous.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 18 23:07:44 1997 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Cast pointers to u_long before casting to another integral type.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 18 07:57:56 1997 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +3 -2 lines
Diff to previous 1.30 (colored)

Teensy change to use WARNS.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 7 02:27:08 1997 UTC (25 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.29: +39 -16 lines
Diff to previous 1.29 (colored)

* use _yp_invalid_domain() (from libc) to validate the domainnames
* cleanup for -Wall
* use __RCSID

the following were inspired by openbsd:
* only allow connections from reserved ports
* implement -insecure, which turns off the above restriction (required
  for sunos 3.x and ultrix)
* prevent more than 100 domains from being bound at once, preventing
  a denial of service attacks

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 2 05:55:06 1996 UTC (26 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +6 -6 lines
Diff to previous 1.28 (colored)

Change name of ypservers file to /var/yp/binding/domain.ypservers.
This is a compromise between the Solaris 2.5 naming of this file
(/var/yp/binding/domain/ypservers and /var/yp/binding/domain/vers)
and traditional NetBSD naming (/var/yp/binding/domain.vers).
Changing to the Solaris naming makes the C library incompatible
with ypbind.  While it's easy to change the C library, I don't feel
right about introducing a gratuitous incompatibility.

The current name (/var/yp/domain/ypservers) conflicts with the name
of the YP map listing slave servers for a domain.

Per discussion w/ Chris Demetriou and Luke Mewburn.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Oct 1 01:38:00 1996 UTC (26 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

.ypservers -> ypservers, to match Solaris 2.5

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 1 00:22:30 1996 UTC (26 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +243 -40 lines
Diff to previous 1.26 (colored)

Add Luke Mewburn's support for a .ypservers file, which contains a list
of YP servers a client should bind to, mostly verbatim, but slightly
modified for better semantics when nagging servers if a ypset has been
issued.  Default to broadcast mode if no .ypservers file is present.

Documentation changes to match, slightly tweaked by Scott Reynolds and
myself.

Closes PR #1759.

Revision 1.20.4.4 / (download) - annotate - [select for diffs], Tue Jul 30 17:16:14 1996 UTC (26 years, 6 months ago) by jtc
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE, netbsd-1-2-PATCH001
Changes since 1.20.4.3: +3 -3 lines
Diff to previous 1.20.4.3 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Change type of rmtcr_outval from char to bool_t; pulled up by request from Wolfgang

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jul 25 18:53:43 1996 UTC (26 years, 6 months ago) by ws
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

xdr_bool wants a bool_t (which happens to be an int32_t on our port)
and not a char

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jul 9 06:34:12 1996 UTC (26 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Fix a misplaced #endif - if DEBUG wasn't defined, ypbind would never
detach from the controlling tty.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jun 22 17:59:52 1996 UTC (26 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.23: +304 -186 lines
Diff to previous 1.23 (colored)

Code cleanups.
- check malloc returns
- null terminate strncpy() strings
- use snprintf instead of sprintf
- pass the right arguments to the right functions
- check usage
- use err(3) and warn(3) instead of printfs.

Revision 1.20.4.3 / (download) - annotate - [select for diffs], Mon Jun 3 20:47:51 1996 UTC (26 years, 8 months ago) by thorpej
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-BETA
Changes since 1.20.4.2: +3 -3 lines
Diff to previous 1.20.4.2 (colored) to branchpoint 1.20 (colored)

Pull up typo fix from trunk.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 3 20:44:51 1996 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Fix typo that can cause ypbind to assume an error when one doesn't
actually exist if the server takes a dive.

Revision 1.20.4.2 / (download) - annotate - [select for diffs], Mon Jun 3 20:38:41 1996 UTC (26 years, 8 months ago) by thorpej
Branch: netbsd-1-2
Changes since 1.20.4.1: +7 -6 lines
Diff to previous 1.20.4.1 (colored) to branchpoint 1.20 (colored)

Pull up ypbindproc_domain_2 fix from the trunk.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 3 20:32:55 1996 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +7 -6 lines
Diff to previous 1.21 (colored)

Fix buglet in ypbindproc_domain_2() which caused:

	ypbind; sleep 10; ypwhich

to fail (where failure is defined as ypwhich hangs until it gives up,
complaining about not being able to communicate with ypbind).  Failure
mode pointed out by Chris G. Demetriou <cgd@cs.cmu.edu>.

Revision 1.21 / (download) - annotate - [select for diffs], Wed May 29 20:11:10 1996 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +6 -10 lines
Diff to previous 1.20 (colored)

Pull down yp/xdr fixes from release branch.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Sun May 26 06:20:09 1996 UTC (26 years, 8 months ago) by jtc
Branch: netbsd-1-2
Changes since 1.20: +6 -10 lines
Diff to previous 1.20 (colored)

yp/xdr fixes from Jason Thorpe

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 30 22:49:08 1996 UTC (26 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.19: +43 -12 lines
Diff to previous 1.19 (colored)

apply patch from PR 2085: don't treat XIDs and domain mapping pointers
interchangeably, because this is fragile and doesn't work at all on
the alpha.  (get rid of the old hack used on the alpha, and fix RCS
Ids, too.)

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 21 04:40:36 1995 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.18: +6 -1 lines
Diff to previous 1.18 (colored)

really nasty hack for the alpha.  bigtime XXX

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 15 09:09:30 1995 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.17: +14 -21 lines
Diff to previous 1.17 (colored)

Daemonify only after the bind has been completed, and use daemon().

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jan 15 08:55:59 1995 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.16: +142 -143 lines
Diff to previous 1.16 (colored)

Closer to KNF, ANSI, and POSIX.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 6 13:16:15 1995 UTC (28 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.15: +8 -8 lines
Diff to previous 1.15 (colored)

Recompute `width' before each select(), as the value of `svc_maxfd' can
be changed by the rpc library.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Dec 30 04:49:06 1994 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.14: +11 -9 lines
Diff to previous 1.14 (colored)

Avoid getdtablesize(3).  Also, remove some useless FD_CLR()s.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 23 16:21:49 1994 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.13: +9 -6 lines
Diff to previous 1.13 (colored)

be a bit more careful with types, and prototype scope.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 28 01:39:54 1994 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +24 -12 lines
Diff to previous 1.12 (colored)

create ypbind.lock file
fix ypset code

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 20 07:21:46 1994 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

force first binding poll automatically -- someone will need it very soon!

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sat Jul 16 21:09:14 1994 UTC (28 years, 6 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.9.2.1: +19 -9 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

update from trunk

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jul 16 11:50:58 1994 UTC (28 years, 6 months ago) by ws
Branch: MAIN
Changes since 1.10: +19 -9 lines
Diff to previous 1.10 (colored)

Keep a server even if we lost contact when noone else is available

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Fri Jul 15 21:44:39 1994 UTC (28 years, 6 months ago) by cgd
Branch: netbsd-1-0
Changes since 1.9: +128 -30 lines
Diff to previous 1.9 (colored)

from trunk.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 14 20:54:29 1994 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +128 -30 lines
Diff to previous 1.9 (colored)

changes from <ws@tools.de> to do selective pinging of servers.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jul 2 06:45:51 1994 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.8: +47 -32 lines
Diff to previous 1.8 (colored)

from wolfgang, various further cleanup, and
mpliment the "clients are asking via RPC, therefore that might mean
the server is possibly dead" heuristic I bailed on earlier.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 1 19:40:23 1994 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +34 -14 lines
Diff to previous 1.7 (colored)

improved rebinding from ws@tools.de

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 25 09:55:39 1994 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +6 -3 lines
Diff to previous 1.6 (colored)

correct copyright

Revision 1.6 / (download) - annotate - [select for diffs], Fri Dec 3 10:08:12 1993 UTC (29 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +26 -9 lines
Diff to previous 1.5 (colored)

sunos compatible /var/yp/binding/ files.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Nov 15 21:51:30 1993 UTC (29 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

fix typo in last

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 15 08:20:05 1993 UTC (29 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

ypset should only be permitted from a reserved port.
from Tor Egge <tegge@pvv.unit.no>

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 5 16:10:01 1993 UTC (29 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

#endif in the wrong place

Revision 1.2 / (download) - annotate - [select for diffs], Sun May 16 02:48:49 1993 UTC (29 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.1: +33 -0 lines
Diff to previous 1.1 (colored)

added my copyright.. how self efacing of me

Revision 1.1 / (download) - annotate - [select for diffs], Mon Apr 26 08:09:04 1993 UTC (29 years, 9 months ago) by deraadt
Branch: MAIN

initial rev

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>