X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=epoc%2Fepocish.h;h=bd364ec563f9793c0c9c443401e770af2d9e5df4;hb=993f042350da76bc3fd9ee9391fd43c55e148ad4;hp=f4be0ff677b4813c0d4a8ec160870fc2c0c7ea3c;hpb=16fe6d5906f6eff9da00cb861a7054a440d1f6eb;p=p5sagit%2Fp5-mst-13.2.git diff --git a/epoc/epocish.h b/epoc/epocish.h index f4be0ff..bd364ec 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,31 +105,54 @@ #define Fflush(fp) fflush(fp) #define Mkdir(path,mode) mkdir((path),(mode)) -/* these should be set in a hint file, not here */ -#ifndef PERL_SYS_INIT -# define PERL_SYS_INIT(c,v) Perl_epoc_init(c,v); MALLOC_INIT + +/* epocemx setenv bug workaround */ +#ifndef PERL_SYS_INIT_BODY +# define PERL_SYS_INIT_BODY(c,v) \ + MALLOC_CHECK_TAINT2(*c,*v) putenv(".dummy=foo"); putenv(".dummy"); \ + PERLIO_INIT; MALLOC_INIT #endif -#ifndef PERL_SYS_TERM -#define PERL_SYS_TERM() MALLOC_TERM +#ifndef PERL_SYS_TERM_BODY +#define PERL_SYS_TERM_BODY() PERLIO_TERM; MALLOC_TERM #endif -#define BIT_BUCKET "NUL:" +#define BIT_BUCKET "/dev/null" #define dXSUB_SYS /* getsockname returns the size of struct sockaddr_in *without* padding */ #define BOGUS_GETNAME_RETURN 8 -/* Yes, size_t is size_t */ -#define Sock_size_t size_t - /* - 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 + +/* + work around for buggy atof(): + atof() in ER5 stdlib depends on locale. +*/ + +#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 + +