This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH for 5.004_64] Configure patch Config_64-01
[perl5.git] / plan9 / plan9ish.h
index c225d28..d984e4f 100644 (file)
  */
 #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 <sys/stat.h> and <sys/types.h> 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
 #define ABORT() kill(getpid(),SIGABRT);
 
 #define BIT_BUCKET "/dev/null"
-#define PERL_SYS_INIT(c,v)
-#define dXSUB_SYS int dummy
-#define PERL_SYS_TERM()
+#define PERL_SYS_INIT(c,v)     MALLOC_INIT
+#define dXSUB_SYS
+#define PERL_SYS_TERM()                MALLOC_TERM
 
 /*
  * fwrite1() should be a routine with the same calling sequence as 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))
 
 /* getenv related stuff */
 #define my_getenv(var) getenv(var)