Home | History | Annotate | only in /src/usr.sbin/rpc.statd
History log of /src/usr.sbin/rpc.statd
RevisionDateAuthorComments
 1.13 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.12 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.11 05-Jan-2003  sommerfeld branches: 1.11.96;
Use <bsd.rpc.mk>
 1.10 31-Jan-2002  tv Make sure DESTDIR is defined before attempting to use it in a dependency.
 1.9 25-Jul-2000  cgd ${RPCGEN}, not hard-coded rpcgen
 1.8 12-Jun-2000  mycroft Make the rpcsvc dependencies work a bit better.
 1.7 06-Jun-1999  thorpej branches: 1.7.6;
Use pidfile(3).
 1.6 25-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.5 17-Oct-1997  lukem branches: 1.5.2;
WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids
 1.4 31-May-1997  cjs Back out BUILDDIR and NOINSTALL changes.
 1.3 26-May-1997  cjs These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
 1.2 11-Mar-1997  scottr RCS Id police
 1.1 10-Mar-1997  scottr Status monitor daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.
 1.5.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.7.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.11.96.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.6 07-Apr-2003  wiz More e.g. cleanup. Igor Sobrado, PR 19692.
 1.5 21-Dec-2002  wiz hardware with a d, from Adrian Mrva.
 1.4 02-Feb-2002  wiz Sort sections.
 1.3 19-Jan-2002  wiz Whitespace nits.
 1.2 14-Mar-1997  perry transations -> transactions per pr 3333 from SAITOH Masanobu
 1.1 10-Mar-1997  scottr Status monitor daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.
 1.9 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.8 18-Apr-2009  lukem Fix -Wshadow and -Wcast-qual issues
 1.7 03-Nov-2005  bouyer branches: 1.7.28;
When forking, we keep a reference to the status db file, and if the
memory copy of the file is dirty, is will be synced when the child exists.
But the parent may have done changes to the database in the meantime, resulting
in a db corruption.
Fix this by calling sync_file() just before the fork. The child will still have
a reference to the db, but won't try to write it on exit.
 1.6 09-Jun-2000  fvdl branches: 1.6.4; 1.6.8; 1.6.10;
Convert to tirpc interface, and to be af-independent.
 1.5 06-Jun-2000  bouyer Solaris hosts with multiple names (e.g. short & fqdn) sends notification
with both names. So log the "Unsolicited notification" with LOG_DEBUG
instead of LOG_ERR.
Don't return failure if we received a notification for which the host is
unknown, or we don't have outstanding requests. The remote host will retry
forever otherwise.
 1.4 21-Oct-1997  christos branches: 1.4.8;
Use a db(3) hash database instead of shared memory. Don't fork() to service
requests in the database when restarting.
 1.3 17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids
 1.2 17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids
 1.1 10-Mar-1997  scottr Status monitor daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.
 1.4.8.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.6.10.1 05-Nov-2005  tron Pull up following revision(s) (requested by bouyer in ticket #932):
usr.sbin/rpc.statd/stat_proc.c: revision 1.7
When forking, we keep a reference to the status db file, and if the
memory copy of the file is dirty, is will be synced when the child exists.
But the parent may have done changes to the database in the meantime, resulting
in a db corruption.
Fix this by calling sync_file() just before the fork. The child will still have
a reference to the db, but won't try to write it on exit.
 1.6.8.1 06-Nov-2005  riz Pull up following revision(s) (requested by bouyer in ticket #5967):
usr.sbin/rpc.statd/stat_proc.c: revision 1.7
When forking, we keep a reference to the status db file, and if the
memory copy of the file is dirty, is will be synced when the child exists.
But the parent may have done changes to the database in the meantime, resulting
in a db corruption.
Fix this by calling sync_file() just before the fork. The child will still have
a reference to the db, but won't try to write it on exit.
 1.6.4.1 06-Nov-2005  riz Pull up following revision(s) (requested by bouyer in ticket #5930):
usr.sbin/rpc.statd/stat_proc.c: revision 1.7
When forking, we keep a reference to the status db file, and if the
memory copy of the file is dirty, is will be synced when the child exists.
But the parent may have done changes to the database in the meantime, resulting
in a db corruption.
Fix this by calling sync_file() just before the fork. The child will still have
a reference to the db, but won't try to write it on exit.
 1.7.28.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.34 02-Dec-2019  christos drop my name from the advertising clause.
 1.33 15-Aug-2019  kamil Stop defining _rpcsvcdirty in bss and data

_rpcsvcdirty is already defined in the generated code from rpcgen(1).

Detected during the build with Address Sanitizer (MKSANITIZER).
 1.32 23-Jan-2018  sevan branches: 1.32.4; 1.32.6;
ansify - drop the K&R style prototypes & implementations.
 1.31 03-Jun-2017  christos remove my copyright.
 1.30 21-Aug-2015  christos fix bogus %m
use EXIT_FAILURE
 1.29 18-Apr-2009  lukem Fix -Wshadow and -Wcast-qual issues
 1.28 15-Dec-2007  perry branches: 1.28.12;
convert __attribute__s to applicable cdefs.h macros
 1.27 28-Mar-2006  tron branches: 1.27.10;
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.

Reviewed by christos@.
 1.26 17-Mar-2006  elad Overrun found by Coverity, CID 1549.
 1.25 27-Nov-2005  bouyer We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
 1.24 20-Oct-2005  christos PR/31502: John: rpc.statd doesn't save failed notifies in the database.
Tested by Martti Kuparinen.
 1.23 14-Jan-2004  yamt branches: 1.23.2; 1.23.4; 1.23.6; 1.23.8;
init_file: copy status_info from static storage so that
statd doesn't always use the same "status" number.
 1.22 14-Jan-2004  yamt reset_host: reset actual host infos rather than reset copies of them.
 1.21 08-Nov-2002  fvdl Use a non-blocking SVC for TCP connections.
 1.20 23-Nov-2001  christos branches: 1.20.2;
Use SA_NOCLDWAIT to avoid zombies.
 1.19 22-Nov-2001  tron Add a handler for SIGCHLD which collects dead childs via wait3(2) so that
"rpc.statd" won't leave zombies arround.
 1.18 19-Feb-2001  cgd convert to use getprogname()
 1.17 09-Jun-2000  fvdl branches: 1.17.2;
Convert to tirpc interface, and to be af-independent.
 1.16 09-Jun-2000  bouyer Always copy pointer returned by db->get or db->seq before using, to avoid
alignements issues.
While doing this I found a bug in reset_host(), notifyReqd was set to
the wrong pointer.
 1.15 06-Jun-2000  bouyer db->seq() returns 0 for success and 1 for failure, not the opposite.
walk_db() was silently failing because of this.
 1.14 10-Jun-1999  scottr branches: 1.14.6;
Tweak the usage output a bit, and exit after printing it.
 1.13 06-Jun-1999  thorpej Use pidfile(3).
 1.12 06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.11 22-Jun-1998  tron Fix broken call to dbopen(), fixes PR bin/5637 by Azuma Okamoto.
 1.10 25-Oct-1997  thorpej To print a size_t, cast to u_long and use %lu printf format so that
this works on the Alpha.
 1.9 21-Oct-1997  christos Use a db(3) hash database instead of shared memory. Don't fork() to service
requests in the database when restarting.
 1.8 21-Oct-1997  is Only map 16MBytes of file, enough for some 16000 hosts on the LAN.
Stopgap fix for PR 4225 by Matthias Scheler (rpc.statd doesn't run on m68k).

XXX This should be done in a different way. XXX

Matthias proposes to use a PMAP capable of mapping more than 256 MB
per user process (You can do this by changing your vm_param constants
even now).

However, statd could use saner data structure to save on address space
easily. E.g., most host names will be much smaller than the allocated
1024(+1 for trailing zero) bytes. Using variable length names would
allow, depending on environment, a factor of 30 more hosts per address
space.

Btw, if anybody really needs more than 16k hosts handled by statd, the
data structure is unsuable anyway; currently, the array of entries is
linearly searched. Something like a DB_BTREE should be used.
 1.7 18-Oct-1997  drochner branches: 1.7.2;
The third argument to msync() got lost - bring it back.
 1.6 17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids
 1.5 17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids
 1.4 17-Oct-1997  lukem call msync() correctly
 1.3 16-Oct-1997  christos msync needs a third argument.
 1.2 17-May-1997  christos eliminate struct sigcontext
 1.1 10-Mar-1997  scottr Status monitor daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.
 1.7.2.1 21-Oct-1997  thorpej Pull up from trunk: Make this work on systems that don't have huge
gobs of user address space (e.g. amiga).
 1.14.6.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.17.2.1 09-Dec-2001  he Pull up revision 1.19 (requested by tron):
Add a handler for SIGCHLD which collects dead children, so that
rpc.statd won't leave zombies around.
 1.20.2.6 28-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #6037):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.20.2.5 14-Dec-2005  jmc Pullup rev 1.25 (requested by bouyer in ticket #5970)

We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
 1.20.2.4 14-Dec-2005  jmc Pullup rev 1.24 (requested by bouyer in ticket #5959)

rpc.statd doesn't save failed notifies in the database. PR#31502
 1.20.2.3 06-Apr-2004  grant Pull up revision 1.23 (requested by bouyer in ticket #1657):

init_file: copy status_info from static storage so that
statd doesn't always use the same "status" number.
 1.20.2.2 06-Apr-2004  grant Pull up revision 1.22 (requested by bouyer in ticket #1656):

reset_host: reset actual host infos rather than reset copies of them.
 1.20.2.1 06-Jan-2003  jmc Pull up revisions 1.20-1.21 (requested by fvdl in ticket #1037)
Use a non-blocking SVC for TCP connections.
 1.23.8.1 28-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #10400):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.23.6.3 29-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #1228):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.23.6.2 27-Nov-2005  riz branches: 1.23.6.2.2;
Pull up following revision(s) (requested by bouyer in ticket #1007):
usr.sbin/rpc.statd/statd.c: revision 1.25
We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
 1.23.6.1 22-Oct-2005  riz Pull up following revision(s) (requested by christos in ticket #905):
usr.sbin/rpc.statd/statd.c: revision 1.24
PR/31502: John: rpc.statd doesn't save failed notifies in the database.
Tested by Martti Kuparinen.
 1.23.6.2.2.1 29-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #1228):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.23.4.3 28-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #10400):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.23.4.2 14-Dec-2005  jmc Pullup rev 1.25 (requested by bouyer in ticket #10171)

We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
 1.23.4.1 28-Oct-2005  jmc "Pullup rev 1.24 (requested by christos in ticket #5934)
rpc.statd doesn't save failed notifies in the database. PR#31502"
 1.23.2.1 28-Mar-2006  riz Pull up following revision(s) (requested by tron in ticket #10400):
usr.sbin/rpc.statd/statd.c: revision 1.27
Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.
Reviewed by christos@.
 1.27.10.1 09-Jan-2008  matt sync with HEAD
 1.28.12.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.32.6.1 16-Aug-2019  martin Pull up following revision(s) (requested by kamil in ticket #70):

usr.sbin/rpc.statd/statd.c: revision 1.33
usr.sbin/rpc.lockd/lockd.c: revision 1.13
usr.sbin/rpc.bootparamd/bootparamd.c: revision 1.47

Stop defining _rpcsvcdirty in bss and data

_rpcsvcdirty is already defined in the generated code from rpcgen(1).

Detected during the build with Address Sanitizer (MKSANITIZER).
 1.32.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.32.4.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.3 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.2 21-Oct-1997  christos Use a db(3) hash database instead of shared memory. Don't fork() to service
requests in the database when restarting.
 1.1 10-Mar-1997  scottr Status monitor daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.
 1.3 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.2 17-Oct-1997  lukem WARNSify; generate ansi c code with rpcgen, cleanup manpage, add rcsids
 1.1 10-Mar-1997  scottr Status monitor daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.

RSS XML Feed