X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=dosish.h;h=8734cda27c2264c0b77df5650dd42805b1914a2b;hb=64f14228217abb04a437553319642d6e7a82a3e8;hp=58fdb28aac0f3cbf0d0b042b02f4302b12619715;hpb=aa6893958c2bfb6fa4ab923c8466c188c65748fd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/dosish.h b/dosish.h index 58fdb28..8734cda 100644 --- a/dosish.h +++ b/dosish.h @@ -1,22 +1,33 @@ #define ABORT() abort(); +#ifndef SH_PATH #define SH_PATH "/bin/sh" +#endif #ifdef DJGPP -#define BIT_BUCKET "nul" -#define OP_BINARY O_BINARY +# define BIT_BUCKET "nul" +# define OP_BINARY O_BINARY void Perl_DJGPP_init(); -#define PERL_SYS_INIT(argcp, argvp) STMT_START { \ +# define PERL_SYS_INIT(argcp, argvp) STMT_START { \ Perl_DJGPP_init(); } STMT_END -#else -#define PERL_SYS_INIT(c,v) -#define BIT_BUCKET "\dev\nul" -#endif +#else /* DJGPP */ +# define PERL_SYS_INIT(c,v) +# ifdef WIN32 +# define BIT_BUCKET "nul" +# else +# define BIT_BUCKET "\\dev\\nul" /* "wanna be like, umm, Newlined, or somethin?" */ +# endif +#endif /* DJGPP */ #define PERL_SYS_TERM() -#define dXSUB_SYS int dummy +#define dXSUB_SYS #define TMPPATH "plXXXXXX" +#ifdef WIN32 +#define HAS_UTIME +#define HAS_KILL +#endif + /* * 5.003_07 and earlier keyed on #ifdef MSDOS for determining if we were * running on DOS, *and* if we had to cope with 16 bit memory addressing @@ -75,6 +86,19 @@ void Perl_DJGPP_init(); */ #define fwrite1 fwrite -#define Stat(fname,bufptr) stat((fname),(bufptr)) #define Fstat(fd,bufptr) fstat((fd),(bufptr)) #define Fflush(fp) fflush(fp) +#define Mkdir(path,mode) mkdir((path),(mode)) + +#ifndef WIN32 +# define Stat(fname,bufptr) stat((fname),(bufptr)) +#else +# define Stat(fname,bufptr) win32_stat((fname),(bufptr)) +# define my_getenv(var) getenv(var) +/* + * the following are standard library calls (stdio in particular) + * that is being redirected to the perl DLL. This is needed for + * Dynaloading any modules that called stdio functions + */ +# include +#endif /* WIN32 */