X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=unixish.h;h=6cb748f4e3433b5fadbaf94a530dd35dcce01636;hb=a14cb26abd9e94e845d7de891545ccdb8fb0fad9;hp=4968a383292fb3ff2f97a909e7f0538a08ba553d;hpb=8cc95fdbe3687330bd987cea170494b4cd263d90;p=p5sagit%2Fp5-mst-13.2.git diff --git a/unixish.h b/unixish.h index 4968a38..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 @@ -106,12 +114,18 @@ #define Fflush(fp) fflush(fp) #define Mkdir(path,mode) mkdir((path),(mode)) +#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"