X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=unixish.h;h=6cb748f4e3433b5fadbaf94a530dd35dcce01636;hb=a14cb26abd9e94e845d7de891545ccdb8fb0fad9;hp=f21ca739fbd699563121eb0402b36d368a9c4df9;hpb=35f4835537ae774426df7791662087b4be88978a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/unixish.h b/unixish.h index f21ca73..6cb748f 100644 --- a/unixish.h +++ b/unixish.h @@ -42,6 +42,14 @@ */ #undef USEMYBINMODE +/* Stat_t: + * This symbol holds the type used to declare buffers for information + * returned by stat(). It's usually just struct stat. It may be necessary + * to include and to get any typedef'ed + * information. + */ +#define Stat_t struct stat + /* USE_STAT_RDEV: * This symbol is defined if this system has a stat structure declaring * st_rdev @@ -104,16 +112,21 @@ #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)) -#define my_getenv(var) getenv(var) - +#ifndef PERL_SYS_INIT #ifdef PERL_SCO5 -# define PERL_SYS_INIT(c,v) fpsetmask(0) +/* this should be set in a hint file, not here */ +# define PERL_SYS_INIT(c,v) fpsetmask(0); MALLOC_INIT #else -# define PERL_SYS_INIT(c,v) +# define PERL_SYS_INIT(c,v) MALLOC_INIT +#endif +#endif + +#ifndef PERL_SYS_TERM +#define PERL_SYS_TERM() MALLOC_TERM #endif -#define PERL_SYS_TERM() #define BIT_BUCKET "/dev/null" -#define dXSUB_SYS int dummy +#define dXSUB_SYS