aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-05-13 01:28:24 +0000
committerRichard M. Stallman1996-05-13 01:28:24 +0000
commit5066676655ae1db49d3ed90df1fb0628afaed5c9 (patch)
tree9fb09667c61afd0ae997b9c456e978005e04ce48 /src
parentcd5f8f60db59311aa897a9952541f29dc2ceb7af (diff)
downloademacs-5066676655ae1db49d3ed90df1fb0628afaed5c9.tar.gz
emacs-5066676655ae1db49d3ed90df1fb0628afaed5c9.zip
(init_dosfns) [DJGPP >= 2]: Make `opendir' preserve
filename case (under Win95) and find hidden files.
Diffstat (limited to 'src')
-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. */
35#include "dosfns.h" 35#include "dosfns.h"
36#include "msdos.h" 36#include "msdos.h"
37#include <go32.h> 37#include <go32.h>
38#include <dirent.h>
38 39
39DEFUN ("int86", Fint86, Sint86, 2, 2, 0, 40DEFUN ("int86", Fint86, Sint86, 2, 2, 0,
40 "Call specific MSDOS interrupt number INTERRUPT with REGISTERS.\n\ 41 "Call specific MSDOS interrupt number INTERRUPT with REGISTERS.\n\
@@ -304,6 +305,17 @@ init_dosfns ()
304 } 305 }
305 else 306 else
306 dos_codepage = regs.x.bx & 0xffff; 307 dos_codepage = regs.x.bx & 0xffff;
308
309#if __DJGPP__ >= 2
310
311 /* Without this, we never see hidden files. */
312 __opendir_flags |= __OPENDIR_FIND_HIDDEN;
313
314 /* Under LFN, preserve the case of files as recorded in the directory. */
315 if (!NILP (Fmsdos_long_file_names ()))
316 __opendir_flags |= __OPENDIR_PRESERVE_CASE;
317
318#endif
307} 319}
308 320
309/* 321/*