summaryrefslogtreecommitdiff
path: root/sys/kern/kern_lockf.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove a conditional #include <sys/kernel.h>, it is alreadyMaxime Henrion2002-09-141-1/+0
| | | | | | | | | included unconditionally before. Submitted by: Olivier Houchard <cognet@ci0.org> Notes: svn path=/head/; revision=103317
* Add a #include for <sys/mount.h>Poul-Henning Kamp2002-08-131-0/+1
| | | | Notes: svn path=/head/; revision=101778
* More caddr_t removal.Alfred Perlstein2002-06-291-3/+3
| | | | | | | Change struct knote's kn_hook from caddr_t to void *. Notes: svn path=/head/; revision=98998
* Remove __P.Alfred Perlstein2002-03-191-8/+8
| | | | Notes: svn path=/head/; revision=92723
* make LOCKF_DEBUG kernel option work (sorta)Alfred Perlstein2001-12-021-10/+26
| | | | | | | | Submitted by: Maxim Konovalov <maxim@macomnet.ru> PR: kern/32267 Notes: svn path=/head/; revision=87211
* KSE Milestone 2Julian Elischer2001-09-121-13/+17
| | | | | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366
* advlock: simplify overflow checksAndrey A. Chernov2001-08-291-2/+2
| | | | Notes: svn path=/head/; revision=82516
* Cosmetique & style fixes from bdeAndrey A. Chernov2001-08-261-5/+2
| | | | Notes: svn path=/head/; revision=82346
* Remove extra check unneded nowAndrey A. Chernov2001-08-241-2/+0
| | | | Notes: svn path=/head/; revision=82269
* Add yet one check for SEEK_END overflowAndrey A. Chernov2001-08-231-1/+2
| | | | Notes: svn path=/head/; revision=82209
* Oops, fix my broken handling of new l_len<0 caseAndrey A. Chernov2001-08-231-2/+4
| | | | Notes: svn path=/head/; revision=82202
* Originally BSD return EINVAL for l_len < 0, but now POSIX wants it too,Andrey A. Chernov2001-08-231-3/+6
| | | | | | | so implement POSIX l_len < 0 handling. Notes: svn path=/head/; revision=82200
* Cosmetique: correct English in commentsAndrey A. Chernov2001-08-231-2/+2
| | | | | | | Pointed by: bde Notes: svn path=/head/; revision=82195
* Move <machine/*> after <sys/*>Andrey A. Chernov2001-08-231-2/+2
| | | | | | | Pointed by: bde Notes: svn path=/head/; revision=82189
* Detect off_t EOVERFLOW of start/end offsets calculations for adv. lock,Andrey A. Chernov2001-08-231-1/+12
| | | | | | | as POSIX require. Notes: svn path=/head/; revision=82172
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inMark Murray2001-05-011-0/+1
| | | | | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations) Notes: svn path=/head/; revision=76166
* Implement client side NFS locks.Alfred Perlstein2001-04-171-1/+1
| | | | | | | | Obtained from: BSD/os Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org Notes: svn path=/head/; revision=75631
* Protect p_wmesg and p_wchan with sched_lock while checking for deadlocksJohn Baldwin2001-03-241-0/+3
| | | | | | | with other byte range file locks. Notes: svn path=/head/; revision=74727
* Commit the remaining part of PR14914:Poul-Henning Kamp1999-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 Notes: svn path=/head/; revision=53225
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Fixed corruption of the "blocked" list in lf_setlock() when tsleep()Bruce Evans1999-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. Notes: svn path=/head/; revision=48556
* Fix a freelist trashing under following confitions:Dmitrij Tejblum1999-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. Notes: svn path=/head/; revision=46744
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-271-3/+3
| | | | | | | kernel compile Notes: svn path=/head/; revision=43301
* add #include <sys/kernel.h> where it's needed by MALLOC_DEFINE()Peter Wemm1998-11-101-1/+2
| | | | Notes: svn path=/head/; revision=41059
* Fixed printf format errors.Bruce Evans1998-07-291-34/+39
| | | | Notes: svn path=/head/; revision=37951
* Make the debug options new-style.Eivind Eklund1998-01-311-1/+3
| | | | | | | | This also zaps a DPT option from lint; it wasn't referenced from anywhere. Notes: svn path=/head/; revision=32929
* Don't include <sys/lock.h> in headers when only `struct simplelock' isBruce Evans1997-12-051-1/+2
| | | | | | | required. Fixed everything that depended on the pollution. Notes: svn path=/head/; revision=31561
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.Poul-Henning Kamp1997-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 Notes: svn path=/head/; revision=30354
* Distribute and statizice a lot of the malloc M_* types.Poul-Henning Kamp1997-10-111-1/+4
| | | | | | | Substantial input from: bde Notes: svn path=/head/; revision=30309
* Use OID_AUTO instead of a magic number for Lite2 sysctl debug.lockf_debug.Bruce Evans1997-04-011-5/+3
| | | | | | | Removed unused #includes. Notes: svn path=/head/; revision=24481
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Added some ufs #includes so that this compiles with option LOCKF_DEBUG.Bruce Evans1997-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. Notes: svn path=/head/; revision=22880
* Restored some lost function return types.Bruce Evans1997-02-121-0/+2
| | | | Notes: svn path=/head/; revision=22592
* This is the kernel Lite/2 commit. There are some requisite userlandJohn Dyson1997-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> Notes: svn path=/head/; revision=22521
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Delete bogus inconsistency check that could cause a gratuitous panic. IDavid Greenman1996-12-291-8/+1
| | | | | | | | had added this years ago when I didn't understand all the subtilties of the flock code. Notes: svn path=/head/; revision=21013
* Fixed arg checking in if_advlock(). Invalid args were accepted in anBruce Evans1996-12-191-11/+14
| | | | | | | | | optimized case. Preposterous lengths weren't checked for. Found by: NIST-PCTS Notes: svn path=/head/; revision=20676
* Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel.Bruce Evans1996-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. Notes: svn path=/head/; revision=18020
* A Major staticize sweep. Generates a couple of warnings that I'll dealPoul-Henning Kamp1995-12-141-9/+19
| | | | | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed. Notes: svn path=/head/; revision=12819
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8876
* Changed some variable names in lf_addblock to make the code bothDavid Greenman1994-10-251-9/+9
| | | | | | | understandable and conform to other conventions used in the file. Notes: svn path=/head/; revision=3847
* While in the real world, I had a bad case of being swapped out for a lot ofPoul-Henning Kamp1994-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. Notes: svn path=/head/; revision=3098
* Made lockf advisory locking code generic (rather than ufs specific), andDavid Greenman1994-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 Notes: svn path=/head/; revision=1960