Here is a small patch for djgpp version of Lynx that speeds up local directory
listings
significantly. djgpp's stat() by default opens the file to check for .exe-signatures
and
"#!/bin/sh" etc. It also calculates directory sizes and inode numbers.
AFAICS, Lynx don't depend on this information.
--- src/lymain.c.org Fri Jun 23 14:15:08 2000
+++ src/lymain.c Mon Jul 10 10:40:02 2000
@@ -38,6 +38,8 @@
#ifdef __DJGPP__
#include <dos.h>
#include <dpmi.h>
+#include <io.h>
+#include <sys/stat.h>
#endif /* __DJGPP__ */
#ifdef __EMX__
@@ -1725,6 +1727,9 @@
__system_use_shell | /* use $SHELL if set */
__system_allow_multiple_cmds | /* allow `cmd1; cmd2; ...' */
__system_redirect; /* redirect internally */
+
+ /* This speeds up stat() tremendously */
+ _djstat_flags |= _STAT_INODE | _STAT_EXEC_MAGIC |_STAT_DIRSIZE;
#endif /* __DJGPP__ */
/* trap interrupts */
--------------------------------------
Gisle V.
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]