]> code.delx.au - gnu-emacs/blobdiff - src/ndir.h
* fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
[gnu-emacs] / src / ndir.h
index 438d5c20a12cd7b62a96f9a599057ee876069e1e..d254b5cf603df57f382261f763e4eaa6db02eca0 100644 (file)
@@ -2,8 +2,11 @@
        <dir.h> -- definitions for 4.2BSD-compatible directory access
 
        last edit:      09-Jul-1983     D A Gwyn
-*/
 
+ * The code here is forced by the interface, and is not subject to
+ * copyright, constituting the only possible expression of the
+ * algorithm in this format.
+ */
 #ifdef VMS
 #ifndef FAB$C_BID
 #include <fab.h>
@@ -14,7 +17,7 @@
 #ifndef RMS$_SUC
 #include <rmsdef.h>
 #endif
-#include "dir.h"
+#include "vmsdir.h"
 #endif /* VMS */
 
 #define DIRBLKSIZ      512             /* size of directory block */
 #define MAXNAMLEN      (DIR$S_NAME + 7) /* 80 plus room for version #.  */
 #define MAXFULLSPEC    NAM$C_MAXRSS /* Maximum full spec */
 #else
+#ifdef WINDOWSNT
+#define MAXNAMLEN      255
+#else  /* not WINDOWSNT */
 #define MAXNAMLEN      15              /* maximum filename length */
+#endif /* not WINDOWSNT */
 #endif /* VMS */
        /* NOTE:  MAXNAMLEN must be one less than a multiple of 4 */
 
@@ -49,3 +56,6 @@ extern void           seekdir();
 extern void            closedir();
 
 #define rewinddir( dirp )      seekdir( dirp, 0L )
+
+/* arch-tag: aea50570-ffb7-43fd-b423-7743b10fbe6e
+   (do not change this comment) */