head	1.3;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.3
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2;
locks; strict;
comment	@# @;


1.3
date	2000.08.15.19.05.10;	author green;	state Exp;
branches;
next	1.2;

1.2
date	2000.05.26.19.01.09;	author kris;	state Exp;
branches;
next	1.1;

1.1
date	2000.04.25.08.04.55;	author kris;	state Exp;
branches;
next	;


desc
@@


1.3
log
@l0pht-watch is much more useful if you can see more than 20 characters
of the pathname.  Use the magic of TIOCGWINSZ to let it scale with the
terminal.
@
text
@--- check_tmp.h.orig	Thu Dec 24 10:40:13 1998
+++ check_tmp.h	Sun Aug 13 23:54:21 2000
@@@@ -1,16 +1,23 @@@@
 #ifndef __CHECK_TMP_H
 #define __CHECK_TMP_H
 
-#include <stdlib.h>
-#include <stdio.h>
 #include <sys/types.h>
+#include <sys/mman.h>
 #include <sys/stat.h>
+#include <sys/param.h>
+#include <sys/ttycom.h>
 #include <dirent.h>
-#include <pwd.h>
-#include <grp.h>
 #include <fcntl.h>
-#include <sys/mman.h>
+#include <grp.h>
+#include <pwd.h>
+#include <stdlib.h>
+#include <stdio.h>
 #include <unistd.h>
+#if (__FreeBSD_version >= 500001) || (__FreeBSD_version >= 400019 && __FreeBSD_version < 500000)
+#include <sys/event.h>
+#include <sys/time.h>
+#include <err.h>
+#endif
 
 #if defined (REGEXPR_3G)
 #include <regexpr.h>
@


1.2
log
@Add kqueue() support for recent versions of -stable as well now that
they have it.
@
text
@d1 3
a3 3
--- check_tmp.h.orig	Thu Dec 24 07:40:13 1998
+++ check_tmp.h	Mon May 22 23:45:37 2000
@@@@ -1,16 +1,22 @@@@
d13 1
@


1.1
log
@On FreeBSD 5.0, use the new kqueue() notification system to monitor
for directory changes. This cuts CPU usage from 100% down to about 0.1%
as well as improving the reliability of change monitoring.
@
text
@d2 1
a2 1
+++ check_tmp.h	Tue Apr 25 00:29:52 2000
d23 1
a23 1
+#if __FreeBSD_version >= 500001
@

