X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=epoc%2Fepocish.h;h=a971a8e6c7bcfaca167833304ed89333717a6982;hb=77fac9647447c87a596e9746a6031e1ce4ee2607;hp=e365fa2c25dcf6c3b620bce4882fdbfcf0eb2401;hpb=d5ff79b3161a608c49c52fd6aa22cff1af6f6b82;p=p5sagit%2Fp5-mst-13.2.git diff --git a/epoc/epocish.h b/epoc/epocish.h index e365fa2..a971a8e 100644 --- a/epoc/epocish.h +++ b/epoc/epocish.h @@ -9,7 +9,7 @@ * This symbol, if defined, indicates that the ioctl() routine is * available to set I/O characteristics */ -#define HAS_IOCTL / **/ +#define HAS_IOCTL /**/ /* HAS_UTIME: * This symbol, if defined, indicates that the routine utime() is @@ -54,7 +54,7 @@ * This symbol is defined if this system has a stat structure declaring * st_rdev */ -#define USE_STAT_RDEV / **/ +#define USE_STAT_RDEV /**/ /* ACME_MESS: * This symbol, if defined, indicates that error messages should be @@ -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) MALLOC_CHECK_TAINT2(*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,10 +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 NO_ENVIRON_ARRAY +#define ARG_MAX 4096 + +#define ECONNABORTED 0xdead + +/* For environ */ +#include +#define PERL_USE_SAFE_PUTENV + +