summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd
Commit message (Collapse)AuthorAgeFilesLines
* The .Nm utilitycharnier2002-07-141-2/+2
|
* When binding to transports if getnetconfigent() fails then actuallyalfred2002-04-111-1/+2
| | | | | | print out the correct transport it failed on rather than always spitting out 'udp', also call nc_sperror() to give a more verbose error message detailing the problem.
* Use char foo[] = "BAR" to avoid direct assignment of const char * into char *.alfred2002-03-221-2/+4
| | | | | | rpcgen can't really make those fields const because the remote side might want to munge them, so we need to pass non-const in. Hackish, but should work.
* Const fix.alfred2002-03-221-1/+1
|
* Remove cast that's not needed.alfred2002-03-221-1/+1
|
* WARNS from 3 to 4. still some warnings about assigning const char * toalfred2002-03-221-1/+1
| | | | char *, but we'll fix those later.
* constify log_from_addr() parameter.alfred2002-03-221-2/+2
|
* Bring code to WARNS=3 level. Mostly fix unused variables.alfred2002-03-213-17/+22
|
* Remove main() prototype.alfred2002-03-211-1/+0
|
* Remove __P.alfred2002-03-213-15/+15
|
* Fix boundry condition in lock management:alfred2002-01-171-2/+13
| | | | | | | | | | | | | | | | | | | Alfred, I took a look at retry_blockingfilelocklist() and the solution seemed simple enough. Please correct me if I am wrong. It seems said routine doesn't take into account boundary conditions when putting back file_lock entries into the blocked lock-list. Specifically, it fails when the file_lock being put back is the last element in the list, and when it is the only element in the list. I've included a patch below. Basically, it introduces another variable: pfl, which keeps track of the list item before ifl. That way if nfl is NULL, ifl gets inserted after pfl. If pfl is also NULL, then it gets inserted at the head of the list (since it was the only element in the list). Submitted by: Mike Makonnen <mike_makonnen@yahoo.com> Tested by: Thomas Quinot <thomas@cuivre.fr.eu.org>
* prototype functions and fix some line wrappingalfred2001-12-021-6/+16
|
* Fold ANDREW_LOCKD into -current.alfred2001-11-293-566/+1965
|
* Turn on NO_WERROR and set WARNS to 1.alfred2001-11-135-20/+27
| | | | | | | | | | | | Fix the WARNS 1 warnings except unused variables. Add prototype for log_netobj(). Don't compare signed/unsigned. Cast u_int64_t to 'unsigned long long' and print using %llu. Fix constness of string arrays. Use a cast to avoid an unused parameter in a signal handler. alarm(2) can't fail, so don't check for it. ANSI'ify some functions.
* fix parameters to lock_answer().alfred2001-11-121-1/+1
| | | | Submitted by: Timo Geusch <freebsd@unix-consult.com>
* Fixup for WARNS.alfred2001-11-121-6/+9
|
* Drop privs while servicing kernel lock requests.alfred2001-11-111-7/+17
| | | | | | Restore umask used before FIFO creation. If opening the FIFO fails, exit. Properly check the return value of open (use == -1 instead of < 0).
* leverage fixed fifo implementation (rev 1.56 ofalfred2001-11-081-8/+3
| | | | | | | | | | src/sys/fs/fifofs/fifo_vnops.c) to serve locks better, my previous workaround for lack of decent fifo system wasn't cutting it, particularly the kernel would send a message down the fifo and immediately close it, this would lead to delayed unlock requests being seen by the lockd causing all sorts of badness. Basically, don't reopen the fifo, just select(2) on it.
* use syslog rather than printf so we can see what's going on in debug modealfred2001-11-081-4/+4
|
* style fixes, fix line wrap and function declarationalfred2001-11-081-6/+5
|
* Implement partial-file NFS lock testing.alfred2001-10-143-13/+139
| | | | Submitted by: "Andrew P. Lentvorski" <andrewl@io.com>
* Userland part of nfs client/server split and cleanup.peter2001-09-181-5/+5
|
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-2/+2
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Distinguish between rpc version numbers in the client cache to avoidalfred2001-04-281-1/+6
| | | | replying on the wrong port.
* handles.c belonged to the old stub lockd, nuke it.alfred2001-04-281-61/+0
|
* procs.c belonged to the old stub lockd, nuke it.alfred2001-04-281-592/+0
|
* mdoc(7) police: Removed forgotten .Pp.ru2001-04-271-1/+0
|
* Fix compiling without -O, some dead code was using non-existant functions,alfred2001-04-252-6/+10
| | | | | | | | | | | make the code not automatically dead but actually use the debug level in order to determine if output is needed. Fix non-existant from_addr() by #define'ing it to inet_ntoa(). Remove hardcoded -g from Makefile. Reported by: "John W. De Boskey" <jwd@bsdwins.com> Tested by: "John W. De Boskey" <jwd@bsdwins.com>
* Remove section from bugs that says we don't support client locks.alfred2001-04-191-11/+0
| | | | Pointed out by: Martin Blapp <mb@imp.ch>
* remove debug code left in by accidentalfred2001-04-181-7/+0
|
* Implement client side NFS locks.alfred2001-04-176-9/+672
| | | | | Obtained from: BSD/os Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-198-160/+2390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Use Fx macro wherever possible.ru2000-11-141-2/+2
|
* Don't call syslog() without a format string.kris2000-07-121-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-286-6/+6
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Removed bogus dependencies of generated .c files on generated headers.bde1998-05-101-2/+2
|
* Fixed `make -jN' for large N, as usual.bde1998-03-061-2/+2
|
* Use err(3). Add usage() and #includes.charnier1997-10-135-52/+58
|
* Typo fix: ${.DESTDIR} -> ${DESTDIR}.asami1997-05-231-2/+2
| | | | Reviewed by: bde
* Fixed type mismatch caused by bogus prototypes. rpcgen for some reasonbde1997-04-151-2/+2
| | | | doesn't generate any prototypes for the functions to be registered.
* Typo police.mpp1997-03-161-2/+2
| | | | Partially obtained from: NetBSD PR# 3333
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Sort cross references.wosch1997-01-201-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* rpc.rstatd -> rpc.lockd typopeter1996-08-161-1/+1
| | | | Noticed by: tholo@sigmasoft.com (Thorsten Lockert)
* Correct the rpc.lockd and rpc.statd man pages to not referencempp1996-04-071-3/+3
| | | | | | their path names in the synopsis line (especially since they referenced the wrong path!). Corrected some other minor problems with the rpc.lockd man page.
OpenPOWER on IntegriCloud