summaryrefslogtreecommitdiff
path: root/src/dosfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-05-13 01:28:24 +0000
committerRichard M. Stallman <rms@gnu.org>1996-05-13 01:28:24 +0000
commitb18dde44cbd828ae14ff313d1faca5d06fd0c183 (patch)
treed7a4fd542c37802c9eb0f113ad47a6b42d346e73 /src/dosfns.c
parent4ba025d4888b8e31bbf9320decde3d0e13d6c41f (diff)
downloademacs-b18dde44cbd828ae14ff313d1faca5d06fd0c183.tar.gz
(init_dosfns) [DJGPP >= 2]: Make `opendir' preserve
filename case (under Win95) and find hidden files.
Diffstat (limited to 'src/dosfns.c')
-rw-r--r--src/dosfns.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dosfns.c b/src/dosfns.c
index a88f992e56b..d66912f2363 100644
--- a/src/dosfns.c
+++ b/src/dosfns.c
@@ -35,6 +35,7 @@ Boston, MA 02111-1307, USA. */
#include "dosfns.h"
#include "msdos.h"
#include <go32.h>
+#include <dirent.h>
DEFUN ("int86", Fint86, Sint86, 2, 2, 0,
"Call specific MSDOS interrupt number INTERRUPT with REGISTERS.\n\
@@ -304,6 +305,17 @@ init_dosfns ()
}
else
dos_codepage = regs.x.bx & 0xffff;
+
+#if __DJGPP__ >= 2
+
+ /* Without this, we never see hidden files. */
+ __opendir_flags |= __OPENDIR_FIND_HIDDEN;
+
+ /* Under LFN, preserve the case of files as recorded in the directory. */
+ if (!NILP (Fmsdos_long_file_names ()))
+ __opendir_flags |= __OPENDIR_PRESERVE_CASE;
+
+#endif
}
/*