summaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.lockd/lockd_lock.c
AgeCommit message (Collapse)Author
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).
2012-09-13Fix typo in syslog message.wiz
From Edgar Fuß in PR 46950.
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 !
2008-12-29fix dev_t format.christos
2007-11-04- pass lint (not completely)christos
- KNF - ansify - use %m instead of "%s, strerror(errno)" in syslog messages
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.
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
2002-07-26enouth -> enough.wiz
2002-07-10Spell acquire with a 'c'.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.
2000-08-12Clean up some include paths.thorpej
2000-07-05setproctitle fix. from openbsditojun
2000-06-09Convert to tirpc interface, and to be af-independent.fvdl
2000-06-07Implement file locking in lockd. All the stuff is done in userland, usingbouyer
fhopen() and flock(). This means that if you kill lockd, all locks will be relased (but you're supposed to kill statd at the same time, so remote hosts will know it and re-establish the lock). Tested against solaris 2.7 and linux 2.2.14 clients. Shared lock are not handled efficiently, they're serialised in lockd when they could be granted.