Home | History | Annotate | only in /src/usr.sbin/rpc.pcnfsd
History log of /src/usr.sbin/rpc.pcnfsd
RevisionDateAuthorComments
 1.25 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.24 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.23 10-Aug-2012  joerg branches: 1.23.32;
Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
 1.22 20-Jun-2011  mrg branches: 1.22.2;
remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
 1.21 30-Sep-2008  dholland branches: 1.21.18;
Refine previous: can put the main -> mymain thing in the .x file, which is
both tidier and also doesn't break update builds.
 1.20 30-Sep-2008  dholland Enable the code that reads /etc/pcnfsd.conf. It was disabled because
rpcgen offers no mechanism to call it from the rpcgen-created main().
So, use the preprocessor to rename that mymain() and provide another
main() that loads the config file first.

PR bin/12758.
 1.19 27-Sep-2008  reed Fix the Title of manual page so it our official name (rpc.pcnfsd).
Install so first file installed matches this correct manual page
name.

(Both manual pages are still installed. And only rpc.pcnfsd binary is
installed. So no change.)
 1.18 29-Aug-2008  gmcgarry Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
 1.17 11-May-2006  mrg branches: 1.17.20;
sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
 1.16 29-Jul-2003  lukem remove unnecessary dependency now that bsd.rpc.mk adds to DPSRCS
 1.15 05-Jan-2003  sommerfeld Use <bsd.rpc.mk>
 1.14 14-Sep-2002  thorpej Resolve rpcgen's path in a way that works with other shells.
 1.13 02-Aug-2002  christos welcome to the 20th century; use logwtmp{,x}; don't write to /var/adm/wtmp!
 1.12 22-Mar-2002  thorpej branches: 1.12.2;
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.
 1.11 16-Feb-2001  enami No need to invoke extra shell.
 1.10 16-Feb-2001  enami Run make in compat mode while evaluating rhs of != op.
 1.9 16-Jan-2001  cgd use expr to do subtraction. shell math isn't as portable.
 1.8 10-Sep-2000  erh Make targets which are generated with rpcgen depend on the rpcgen binary.
 1.7 25-Jul-2000  cgd ${RPCGEN}, not hard-coded rpcgen
 1.6 25-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.5 18-Oct-1997  lukem branches: 1.5.2;
enable WARNS=1 by default, but disable in unclean 3rd party code
 1.4 24-Mar-1997  christos Makefile cleanups
 1.3 25-Jul-1995  gwr Add the NetBSD ID strings.
 1.2 24-Jul-1995  cgd make work regardless of 'obj', do dependencies a bit better
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.5.2.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.12.2.1 30-Nov-2002  he Pull up revision 1.14 (requested by thorpej in ticket #810):
Resolve rpcgen's path in a way that works with other shells.
 1.17.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.21.18.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.22.2.1 30-Oct-2012  yamt sync with head
 1.23.32.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.14 15-Dec-2013  christos Add extra rpcgen flags.
 1.13 01-Aug-2003  lukem branches: 1.13.54; 1.13.60;
Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
 1.12 28-Jul-2003  lukem Use ${DEPENDSRCS} as a target instead of .depend, now that
<bsd.dep.mk> builds .depend from .dep files.
 1.11 10-Jul-2003  lukem Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
 1.10 18-Sep-2002  lukem minor makefile delint
 1.9 22-Mar-2002  thorpej Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.
 1.8 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.7 10-Sep-2000  erh Make targets which are generated with rpcgen depend on the rpcgen binary.
 1.6 25-Jul-2000  cgd ${RPCGEN}, not hard-coded rpcgen
 1.5 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.4 25-Oct-1997  lukem use CPPFLAGS instead of CFLAGS
 1.3 25-Jul-1995  gwr branches: 1.3.4;
Add the NetBSD ID strings.
 1.2 24-Jul-1995  cgd make work regardless of 'obj', do dependencies a bit better
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.3.4.1 08-Nov-1997  lukem sync with trunk (approved by thorpej)
 1.13.60.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.13.54.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4 09-Aug-2021  andvar fix various typos in compatibility, mainly in comments.
 1.3 12-Nov-2003  grant s/netbsd.org/NetBSD.org/i
 1.2 25-Jul-1995  gwr Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.3 03-Aug-2021  andvar s/pasword/password/
 1.2 25-Jul-1995  gwr Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.5 01-Aug-2023  mrg fix simple mis-matched function prototype and definitions.

most of these are like, eg

void foo(int[2]);

with either of these

void foo(int*) { ... }
void foo(int[]) { ... }

in some cases (such as stat or utimes* calls found in our header files),
we now match standard definition from opengroup.

found by GCC 12.
 1.4 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.3 29-Mar-2014  apb Add a statuslen argument to get_pr_status(), and use it
as the length in a call to strlcpy(). The previous code would
have used the size of a pointer as the length.
 1.2 18-Apr-2009  lukem branches: 1.2.6; 1.2.12;
Fix -Wshadow and -Wcast-qual issues
 1.1 25-Oct-1997  lukem branches: 1.1.2; 1.1.54;
WARNSify, KNFify
 1.1.54.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.1.2.2 09-Nov-1997  veego Pull up changes from the trunk (from luke, approved by jason):
>WARNSify, KNFify
 1.1.2.1 25-Oct-1997  veego file extern.h was added on branch netbsd-1-3 on 1997-11-09 21:52:29 +0000
 1.2.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 14-Aug-1995  gwr minor cleanup
 1.8 27-Sep-2008  reed Fix the Title of manual page so it our official name (rpc.pcnfsd).
Install so first file installed matches this correct manual page
name.

(Both manual pages are still installed. And only rpc.pcnfsd binary is
installed. So no change.)
 1.7 19-Jan-2002  wiz Whitespace nits.
 1.6 18-Mar-1998  mikel (8C) -> (8)
 1.5 11-Nov-1997  mrg add missing .Nm sections
 1.4 14-Aug-1995  gwr branches: 1.4.4;
Add note (in HISTORY) to satisfy distribution terms.
 1.3 25-Jul-1995  gwr Add the NetBSD ID strings.
 1.2 25-Jul-1995  jtc /usr/etc -> /usr/sbin
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.4.4.1 11-Nov-1997  mrg pull up from trunk: add missing .Nm sections
 1.7 23-Jan-2018  sevan More K&R style prototypes missed in the previous run
 1.6 18-Apr-2009  lukem Fix -Wshadow and -Wcast-qual issues
 1.5 30-Sep-2008  dholland branches: 1.5.6;
Refine previous: can put the main -> mymain thing in the .x file, which is
both tidier and also doesn't break update builds.
 1.4 31-Oct-2002  petrov follow-up rpcgen changes.
 1.3 25-Oct-1997  lukem WARNSify, KNFify
 1.2 25-Jul-1995  gwr branches: 1.2.4;
Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.2.4.1 09-Nov-1997  veego Pull up changes from the trunk (from luke, approved by jason):
>WARNSify, KNFify
 1.5.6.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.5 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.4 16-Jul-2003  itojun use bounded string op
 1.3 25-Oct-1997  lukem WARNSify, KNFify
 1.2 25-Jul-1995  gwr branches: 1.2.4;
Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.2.4.1 09-Nov-1997  veego Pull up changes from the trunk (from luke, approved by jason):
>WARNSify, KNFify
 1.17 22-Apr-2020  joerg tempstr is only used in one file, make it static
 1.16 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.15 04-Nov-2012  christos include the headers that you need.
 1.14 01-Sep-2011  plunky branches: 1.14.2; 1.14.8;
reinstate NULL cast by request, where the NULL was being passed as a vararg
 1.13 31-Aug-2011  plunky NULL does not need a cast
 1.12 17-Nov-2009  drochner ANSIfy partially
 1.11 30-Sep-2008  dholland Enable the code that reads /etc/pcnfsd.conf. It was disabled because
rpcgen offers no mechanism to call it from the rpcgen-created main().
So, use the preprocessor to rename that mymain() and provide another
main() that loads the config file first.

PR bin/12758.
 1.10 16-Jul-2003  itojun use bounded string op
 1.9 20-Jan-2003  simonb The Double-Semi-Colon Police.
 1.8 02-Aug-2002  christos fix argument order.
 1.7 02-Aug-2002  christos oops reversed argument order.
 1.6 02-Aug-2002  christos welcome to the 20th century; use logwtmp{,x}; don't write to /var/adm/wtmp!
 1.5 27-Jul-1998  mycroft const propagation.
 1.4 27-Jul-1998  mycroft const poisoning.
 1.3 25-Oct-1997  lukem WARNSify, KNFify
 1.2 25-Jul-1995  gwr branches: 1.2.4;
Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.2.4.1 09-Nov-1997  veego Pull up changes from the trunk (from luke, approved by jason):
>WARNSify, KNFify
 1.14.8.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.14.2.1 16-Jan-2013  yamt sync with (a bit old) head
 1.16 22-Apr-2020  joerg tempstr is only used in one file, make it static
 1.15 27-Dec-2019  msaitoh s/orignal/original/
 1.14 23-Jan-2018  sevan branches: 1.14.4;
ansify - drop the K&R style prototypes & implementations.
 1.13 29-Mar-2014  apb Add a statuslen argument to get_pr_status(), and use it
as the length in a call to strlcpy(). The previous code would
have used the size of a pointer as the length.
 1.12 16-Aug-2011  mbalmer branches: 1.12.2; 1.12.8;
Fix some typos.
 1.11 04-Jan-2011  wiz Use pclose() after popen(). Found by cppcheck.
 1.10 07-Aug-2009  wiz Fix parenthesis problem in ifdef SVR4 code.
From Henning Petersen in PR 41839.
 1.9 18-Apr-2009  lukem Fix -Wshadow and -Wcast-qual issues
 1.8 30-Oct-2004  dsl branches: 1.8.34;
Add (unsigned char) cast to ctype functions
 1.7 16-Jul-2003  itojun use bounded string op
 1.6 29-Sep-2002  wiz "definitions" has lots of 'i's, but that's not reason to leave one out.
 1.5 25-Oct-1997  lukem WARNSify, KNFify
 1.4 25-Apr-1996  gwr branches: 1.4.2;
Correct the "Vulnerabilities" announced in CERT advisory CA-96.08.
 1.3 14-Aug-1995  gwr Put the SVR4 code back in (#ifdef SVR4) so as to respect the
requests made in the distribution terms. (re. modifications)
 1.2 25-Jul-1995  gwr Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.4.2.1 09-Nov-1997  veego Pull up changes from the trunk (from luke, approved by jason):
>WARNSify, KNFify
 1.8.34.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.12.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14.4.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.4 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.3 16-Jul-2003  itojun use bounded string op
 1.2 25-Jul-1995  gwr Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.5 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.4 31-Aug-2011  plunky NULL does not need a cast
 1.3 25-Oct-1997  lukem WARNSify, KNFify
 1.2 25-Jul-1995  gwr branches: 1.2.4;
Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.2.4.1 09-Nov-1997  veego Pull up changes from the trunk (from luke, approved by jason):
>WARNSify, KNFify
 1.14 23-Jan-2018  sevan ansify - drop the K&R style prototypes & implementations.
 1.13 29-Mar-2014  apb Add a statuslen argument to get_pr_status(), and use it
as the length in a call to strlcpy(). The previous code would
have used the size of a pointer as the length.
 1.12 07-Oct-2011  joerg branches: 1.12.2; 1.12.8;
Simplify
 1.11 31-Aug-2011  plunky NULL does not need a cast
 1.10 18-Apr-2009  lukem Fix -Wshadow and -Wcast-qual issues
 1.9 16-Jul-2003  itojun branches: 1.9.40;
use bounded string op
 1.8 27-Jul-1998  mycroft const propagation.
 1.7 27-Jul-1998  mycroft const poisoning.
 1.6 25-Oct-1997  lukem WARNSify, KNFify
 1.5 21-May-1997  lukem branches: 1.5.2;
free returned value from yp_match() if an error occurs
 1.4 14-Aug-1995  gwr minor cleanup
 1.3 25-Jul-1995  gwr Do not complain when yp_bind fails. It is optional.
 1.2 25-Jul-1995  gwr Add the NetBSD ID strings.
 1.1 24-Jul-1995  jtc gwr's port of pcnfsd
 1.5.2.1 09-Nov-1997  veego Pull up changes from the trunk (from luke, approved by jason):
>WARNSify, KNFify
 1.9.40.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.12.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.2.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed