X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=epoc%2Fepocish.h;h=b9556753cd9ae1c99e6a4333398580c561a4b889;hb=2d736872f25b3e41d616d46e8286fe3f13ef058d;hp=75a64fcda0788555813e55e798a192db27f6a53a;hpb=4b19af017623bfa3bb72bb164598a517f586e0d3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/epoc/epocish.h b/epoc/epocish.h index 75a64fc..b955675 100644 --- a/epoc/epocish.h +++ b/epoc/epocish.h @@ -105,16 +105,17 @@ #define Fflush(fp) fflush(fp) #define Mkdir(path,mode) mkdir((path),(mode)) -/* these should be set in a hint file, not here */ + +/* epocemx setenv bug workaround */ #ifndef PERL_SYS_INIT -# define PERL_SYS_INIT(c,v) Perl_epoc_init(c,v); MALLOC_INIT +# define PERL_SYS_INIT(c,v) putenv(".dummy=foo"); putenv(".dummy"); MALLOC_INIT #endif #ifndef PERL_SYS_TERM #define PERL_SYS_TERM() MALLOC_TERM #endif -#define BIT_BUCKET "NUL:" +#define BIT_BUCKET "/dev/null" #define dXSUB_SYS @@ -122,11 +123,15 @@ #define BOGUS_GETNAME_RETURN 8 /* - read() on a socket blocks until buf is filled completly, - recv() returns each massage + read() on a socket is unimplemented in current epocemx + use recv() instead */ + #define PERL_SOCK_SYSREAD_IS_RECV +/* write ditto, use send */ +#define PERL_SOCK_SYSWRITE_IS_SEND + /* No /dev/random available*/ #define PERL_NO_DEV_RANDOM @@ -136,7 +141,16 @@ atof() in ER5 stdlib depends on locale. */ -double epoc_atof( const char *ptr); -#define atof(a) epoc_atof(a) +#define strtoul(a,b,c) epoc_strtoul(a,b,c) + +#define init_os_extras Perl_init_os_extras + +#define ARG_MAX 4096 + +#define ECONNABORTED 0xdead + +/* For environ */ +#include +#define PERL_USE_SAFE_PUTENV