This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Win32: add lstat(), fetch st_dev and st_ino and fetch st_nlink for fstat
[perl5.git] / dosish.h
index 8b34369..3580693 100644 (file)
--- a/dosish.h
+++ b/dosish.h
 #  define PERL_FS_VERSION      STRINGIFY(PERL_REVISION) "_" \
                                STRINGIFY(PERL_VERSION) "_" \
                                STRINGIFY(PERL_SUBVERSION)
-#else  /* DJGPP */
-#  ifdef WIN32
-#    define PERL_SYS_INIT_BODY(c,v)                                    \
-       MALLOC_CHECK_TAINT2(*c,*v) Perl_win32_init(c,v); PERLIO_INIT
-#    define PERL_SYS_TERM_BODY()   Perl_win32_term()
-#    define BIT_BUCKET "nul"
-#  else
-#       ifdef NETWARE
-#      define PERL_SYS_INIT_BODY(c,v)                                  \
-       MALLOC_CHECK_TAINT2(*c,*v) Perl_nw5_init(c,v); PERLIO_INIT
-#      define BIT_BUCKET "nwnul"
-#    else
-#      define PERL_SYS_INIT_BODY(c,v)          \
-       MALLOC_CHECK_TAINT2(*c,*v); PERLIO_INIT
-#      define BIT_BUCKET "\\dev\\nul" /* "wanna be like, umm, Newlined, or somethin?" */
-#    endif /* NETWARE */
-#  endif
-#endif /* DJGPP */
+#elif defined(WIN32)
+#  define PERL_SYS_INIT_BODY(c,v)                                      \
+      MALLOC_CHECK_TAINT2(*c,*v) Perl_win32_init(c,v); PERLIO_INIT
+#  define PERL_SYS_TERM_BODY()   Perl_win32_term()
+#  define BIT_BUCKET "nul"
+#elif defined(NETWARE)
+#  define PERL_SYS_INIT_BODY(c,v)                                      \
+    MALLOC_CHECK_TAINT2(*c,*v) Perl_nw5_init(c,v); PERLIO_INIT
+#  define BIT_BUCKET "nwnul"
+#else
+#  define PERL_SYS_INIT_BODY(c,v)              \
+    MALLOC_CHECK_TAINT2(*c,*v); PERLIO_INIT
+#  define BIT_BUCKET "\\dev\\nul" /* "wanna be like, umm, Newlined, or somethin?" */
+#endif
 
 #ifndef PERL_SYS_TERM_BODY
-#  define PERL_SYS_TERM_BODY() \
-    HINTS_REFCNT_TERM; OP_CHECK_MUTEX_TERM; \
-    OP_REFCNT_TERM; PERLIO_TERM; MALLOC_TERM
+#  define PERL_SYS_TERM_BODY()                         \
+    HINTS_REFCNT_TERM; KEYWORD_PLUGIN_MUTEX_TERM;      \
+    OP_CHECK_MUTEX_TERM; OP_REFCNT_TERM; PERLIO_TERM;  \
+    MALLOC_TERM; LOCALE_TERM; USER_PROP_MUTEX_TERM;    \
+    ENV_TERM;
 #endif
-#define dXSUB_SYS
+#define dXSUB_SYS dNOOP
 
 /* USEMYBINMODE
  *     This symbol, if defined, indicates that the program should
  *     to include <sys/stat.h> and <sys/types.h> to get any typedef'ed
  *     information.
  */
-#if defined(WIN64) || defined(USE_LARGE_FILES)
-#define Stat_t struct _stati64
-#else
-#if defined(UNDER_CE)
-#define Stat_t struct xcestat
+#if defined(WIN32)
+#  define Stat_t struct w32_stat
 #else
-#define Stat_t struct stat
-#endif
+#  define Stat_t struct _stati64
 #endif
 
 /* USE_STAT_RDEV:
 #define PERL_NO_DEV_RANDOM
 
 /*
- * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * End:
- *
  * ex: set ts=8 sts=4 sw=4 et:
  */