summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lockf.c
Commit message (Collapse)AuthorAgeFilesLines
* Commit the remaining part of PR14914:phk1999-11-161-8/+8
| | | | | | | | | | | Alot of the code in sys/kern directly accesses the *Q_HEAD and *Q_ENTRY structures for list operations. This patch makes all list operations in sys/kern use the queue(3) macros, rather than directly accessing the *Q_{HEAD,ENTRY} structures. Reviewed by: phk Submitted by: Jake Burkholder <jake@checker.org> PR: 14914
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fixed corruption of the "blocked" list in lf_setlock() when tsleep()bde1999-07-041-17/+20
| | | | | | | | | | | returns 0 after ptrace() attach and/or detach doesn't quite quite deliver a signal. Perhaps the process shouldn't be woken in this case, but avoiding the problem is easy. PR: 12247 Fixed a couple of places where mechanical fixing of compiler warnings caused misspelling of NOLOCKF as NULL.
* Fix a freelist trashing under following confitions:dt1999-05-081-1/+2
| | | | | | | - first program lock a region in a file, - second program wait on the lock, - first program extend the region, - second program interrupted by a signal.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-3/+3
| | | | kernel compile
* add #include <sys/kernel.h> where it's needed by MALLOC_DEFINE()peter1998-11-101-1/+2
|
* Fixed printf format errors.bde1998-07-291-34/+39
|
* Make the debug options new-style.eivind1998-01-311-1/+3
| | | | | This also zaps a DPT option from lint; it wasn't referenced from anywhere.
* Don't include <sys/lock.h> in headers when only `struct simplelock' isbde1997-12-051-1/+2
| | | | required. Fixed everything that depended on the pollution.
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.phk1997-10-121-2/+2
| | | | | | | | Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
* Distribute and statizice a lot of the malloc M_* types.phk1997-10-111-1/+4
| | | | Substantial input from: bde
* Use OID_AUTO instead of a magic number for Lite2 sysctl debug.lockf_debug.bde1997-04-011-5/+3
| | | | Removed unused #includes.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Added some ufs #includes so that this compiles with option LOCKF_DEBUG.bde1997-02-181-2/+7
| | | | | | | Moving this all from ufs wasn't a good move. At least the debugging routines depend on the file system. Cleaned up the LOCKF_DEBUG #includes.
* Restored some lost function return types.bde1997-02-121-0/+2
|
* This is the kernel Lite/2 commit. There are some requisite userlanddyson1997-02-101-69/+54
| | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
* 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.
* Delete bogus inconsistency check that could cause a gratuitous panic. Idg1996-12-291-8/+1
| | | | | had added this years ago when I didn't understand all the subtilties of the flock code.
* Fixed arg checking in if_advlock(). Invalid args were accepted in anbde1996-12-191-11/+14
| | | | | | optimized case. Preposterous lengths weren't checked for. Found by: NIST-PCTS
* Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel.bde1996-09-031-2/+2
| | | | | | | Include it directly in the few places where it is used. Reduced some #includes of <sys/file.h> to #includes of <sys/fcntl.h> or nothing.
* A Major staticize sweep. Generates a couple of warnings that I'll dealphk1995-12-141-9/+19
| | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed.
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Changed some variable names in lf_addblock to make the code bothdg1994-10-251-9/+9
| | | | understandable and conform to other conventions used in the file.
* While in the real world, I had a bad case of being swapped out for a lot ofphk1994-09-251-7/+8
| | | | | | | | cycles. While waiting there I added a lot of the extra ()'s I have, (I have never used LISP to any extent). So I compiled the kernel with -Wall and shut up a lot of "suggest you add ()'s", removed a bunch of unused var's and added a couple of declarations here and there. Having a lap-top is highly recommended. My kernel still runs, yell at me if you kernel breaks.
* Made lockf advisory locking code generic (rather than ufs specific), anddg1994-08-081-0/+797
use it in NFS. This is required both for diskless support and for POSIX compliance. Note: the support in NFS is only for the local node. Submitted by: based on work originally done by Yuval Yurom
OpenPOWER on IntegriCloud