summaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.lockd
AgeCommit message (Collapse)Author
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
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.
2019-10-13introduce some common variables for use in GCC warning disables:mrg
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."
2019-08-15Stop defining _rpcsvcdirty in bss and datakamil
_rpcsvcdirty is already defined in the generated code from rpcgen(1). Detected during the build with Address Sanitizer (MKSANITIZER).
2018-01-23ansify - drop the K&R style prototypes & implementations.sevan
2017-06-08this file uses the <sys/queue.h> macros so it should includechs
that header itself, rather than relying on getting it indirectly by including some other header (which will soon be changed to not do that anymore).
2016-03-12Fix another conditional with wrong (missing) parens.dholland
2016-03-12Clean up gcc warnings.dholland
2016-03-12Remove trailing whitespacedholland
2016-03-12Fix operator precedence in complex conditional by separating out thedholland
assignment part. PR 50954 from David Binderman. While here, separate out the assignment in all the other similar conditionals too.
2012-09-13Fix typo in syslog message.wiz
From Edgar Fuß in PR 46950.
2012-08-13Sync usage with manpage. End it with a newline.wiz
2012-08-13Sort options in SYNOPSIS. New sentence, new line. Improve descriptions.wiz
Use more markup. Sort option descriptions. Add arguments to option descriptions. Punctuation nits.
2012-08-13Add -4 and -6 options to rpd.lockd for consistent control over thepgoyette
protocols to which it listens. As discussed on tech-userlevel.
2012-06-18Fix broken IPv6 support. My Mac OS X Lion NFS client now happilytron
talks to my NetBSD 6.0_BETA2 NFS server over IPv6.
2011-08-30Apply casts to cases where xdrproc_t is expected but is notplunky
strictly passed, for example because the second argument is a different kind of pointer.
2009-11-19allow comparing v2 and v3 filehandles.christos
2009-10-19Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsenbouyer
for the booring work !
2009-04-22Enable WARNS=4 by default, except for:lukem
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest kimpersonate kstash ktutil makefs ndbootd ntp pppd quot racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump traceroute traceroute6 user veriexecgen wsmoused zic (Mostly third-party applications)
2008-12-29fix dev_t format.christos
2007-12-15convert __attribute__s to applicable cdefs.h macrosperry
2007-11-04- pass lint (not completely)christos
- KNF - ansify - use %m instead of "%s, strerror(errno)" in syslog messages
2007-11-04Fix off-by-one error accessing "clnt_cache_addr" array which causes heaptron
corruption. This will hopefully fix PR bin/37236.
2007-10-27PR/37236: Matthias Scheler: Mac OS X NFS client frequently crashes rpc.lockd(8)christos
on NetBSD. Use calloc to allocate the lock as suggested in the PR.
2007-05-28Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on thetls
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to various string and memory copy and set functions (as well as a few system calls and other miscellany) where known at function entry. RedHat has evidently built all "core system packages" with this option for some time. This option should be used at the top of Makefiles (or Makefile.inc where this is used for subdirectories) but after any setting of LIB. This is only useful for userland code, and cannot be used in libc or in any code which includes the libc internals, because it overrides certain libc functions with macros. Some effort has been made to make USE_FORT=yes work correctly for a full-system build by having the bsd.sys.mk logic disable the feature where it should not be used (libc, libssp iteself, the kernel) but no attempt has been made to build the entire system with USE_FORT and doing so will doubtless expose numerous bugs and misfeatures. Adjust the system build so that all programs and libraries that are setuid, directly handle network data (including serial comm data), perform authentication, or appear likely to have (or have a history of having) data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default, with the exception of libc, which cannot use USE_FORT and thus uses only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no per-directory or in a system build will disable if desired.
2006-08-09Typomartin
2006-08-08deal with variable sized file handles.yamt
2006-07-31Make filehandles opaque to userlandmartin
2006-07-13Fix alignement problems for fhandle_t, exposed by gcc4.1.martin
While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ, version the getfh(2) syscall and explicitly pass the size available in the filehandle from userland. Discussed on tech-kern, with lots of help from yamt (thanks!).
2005-08-1964 bit inode changeschristos
2005-06-02Test the correct pointer 'rfl' rather than an uninitialized 'fl' whenlukem
determining whether the lock was a LOCK_V4 or not. Detected with gcc -Wuninitialized.
2003-10-05Remove references to University of California from my copyright notices.bouyer
2003-06-19We can't keep a reference to the value returned by svc_getrpccaller().bouyer
Instead malloc() some memory and copy the sockaddr returned there. Fix a bug where after a blocked lock gets granted, the grant message would be sent to the wrong machine (or possibly to a completely bogus address). While there, add a NULL check for the return value of another malloc().
2003-03-16getlock: detect duplicated locks slightly correctly.yamt
XXX how should we do for byte range lock?
2003-03-16for lock/unlock requests, log svid as well as client name.yamt
2003-03-14fix a typo in the previous.yamt
2003-03-14use strlcpy instead of strncpy.yamt
2003-03-14use LIST_FOREACH macro.yamt
2003-03-14for fork'ed children, use _exit instead of exit.yamt
2003-03-14- protect from pid reusing.yamt
- fix a null dereference on the error.
2003-01-20The Double-Semi-Colon Police.simonb
2003-01-05Use <bsd.rpc.mk>sommerfeld
2002-11-08Use a non-blocking SVC for TCP connections.fvdl
2002-07-26enouth -> enough.wiz
2002-07-20sweep of errx/warnx, remove unnecessary trailing \ngrant
2002-07-10Spell acquire with a 'c'.wiz
2002-02-02Sort sections.wiz
2001-10-23Fix a memory leak: when unlocking make sure we release the memory associatedoster
with the lock begin removed! Reviewed by thorpej.
2001-06-12receive, not recievewiz
2001-04-06Negative exit code cleanup: Replace exit(-x) with exit(x).wiz
As seen on tech-userlevel.
2000-11-21Don't try to deallocate an object pointed by NULL pointer. Instead,enami
deallocate the right one.