Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/sys pullup rev. 1.10 from trunk (approved by releng...



details:   https://anonhg.NetBSD.org/src/rev/40cfd718321f
branches:  netbsd-1-5
changeset: 489074:40cfd718321f
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Aug 11 23:51:11 2000 +0000

description:
pullup rev. 1.10 from trunk (approved by releng-1-5):
guard prototypes for lf_* functions by ifdef _KERNEL, so that
userland kernel grovellers can get on struct lockf easily.
Noted by Andrew Brown <atatat%atatdot.net@localhost>

diffstat:

 sys/sys/lockf.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r a92827492358 -r 40cfd718321f sys/sys/lockf.h
--- a/sys/sys/lockf.h   Fri Aug 11 23:21:02 2000 +0000
+++ b/sys/sys/lockf.h   Fri Aug 11 23:51:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockf.h,v 1.8.2.1 2000/07/30 20:38:33 jdolecek Exp $   */
+/*     $NetBSD: lockf.h,v 1.8.2.2 2000/08/11 23:51:11 jdolecek Exp $   */
 
 /*
  * Copyright (c) 1991, 1993
@@ -71,6 +71,8 @@
 /* Maximum length of sleep chains to traverse to try and detect deadlock. */
 #define MAXDEPTH 50
 
+#ifdef _KERNEL
+
 __BEGIN_DECLS
 void    lf_addblock __P((struct lockf *, struct lockf *));
 int     lf_advlock __P((struct vop_advlock_args *, struct lockf **, off_t));
@@ -94,4 +96,6 @@
 __END_DECLS
 #endif /* LOCKF_DEBUG */
 
+#endif /* _KERNEL */
+
 #endif /* !_SYS_LOCKF_H_ */



Home | Main Index | Thread Index | Old Index