X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl.h;h=d25ffd7f22c42aee23e0b47da16e3d324b8ca39b;hb=1ed8eac0dfbbdc6acb022ff1733a2473c102328b;hp=c9d359c8f5f0e0bc19a56dbb1e299dd18bcb98fc;hpb=c53fc8a620e539470713c5fc9ecf3b649176ff4a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perl.h b/perl.h index c9d359c..d25ffd7 100644 --- a/perl.h +++ b/perl.h @@ -931,11 +931,15 @@ int sockatmark(int); # define S_IRWXO (S_IROTH|S_IWOTH|S_IXOTH) #endif -#ifndef S_IREAD +/* BeOS 5.0 seems to define S_IREAD and S_IWRITE in + * which would get included through , but that is 3000 + * lines in the future. --jhi */ + +#if !defined(S_IREAD) && !defined(__BEOS__) # define S_IREAD S_IRUSR #endif -#ifndef S_IWRITE +#if !defined(S_IWRITE) && !defined(__BEOS__) # define S_IWRITE S_IWUSR #endif @@ -1749,56 +1753,65 @@ typedef struct clone_params CLONE_PARAMS; #endif #if defined(__OPEN_VM) -# include "vmesa/vmesaish.h" +# include "vmesa/vmesaish.h" +# define ISHISH "vmesa" #endif #ifdef DOSISH -# if defined(OS2) -# include "os2ish.h" -# else -# include "dosish.h" -# endif -#else -# if defined(VMS) +# if defined(OS2) +# include "os2ish.h" +# else +# include "dosish.h" +# endif +# define ISHISH "dos" +#endif + +#if defined(VMS) # include "vmsish.h" # include "embed.h" -# else -# if defined(PLAN9) -# include "./plan9/plan9ish.h" -# else -# if defined(MPE) -# include "mpeix/mpeixish.h" -# else -# if defined(__VOS__) -# include "vosish.h" -# else -# if defined(EPOC) -# include "epocish.h" -# else -# if defined(MACOS_TRADITIONAL) -# include "macos/macish.h" -# ifndef NO_ENVIRON_ARRAY -# define NO_ENVIRON_ARRAY -# endif -# else -# include "unixish.h" -# endif -# endif -# endif -# endif +# define ISHISH "vms" +#endif + +#if defined(PLAN9) +# include "./plan9/plan9ish.h" +# define ISHISH "plan9" +#endif + +#if defined(MPE) +# include "mpeix/mpeixish.h" +# define ISHISH "mpeix" +#endif + +#if defined(__VOS__) +# include "vosish.h" +# define ISHISH "vos" +#endif + +#if defined(EPOC) +# include "epocish.h" +# define ISHISH "epoc" +#endif + +#if defined(MACOS_TRADITIONAL) +# include "macos/macish.h" +# ifndef NO_ENVIRON_ARRAY +# define NO_ENVIRON_ARRAY # endif -# endif +# define ISHISH "macos classic" #endif -#ifndef NO_ENVIRON_ARRAY -# define USE_ENVIRON_ARRAY +#if defined(__BEOS__) +# include "beos/beosish.h" +# define ISHISH "beos" +#endif + +#ifndef ISHISH +# include "unixish.h" +# define ISHISH "unix" #endif -#ifdef JPL - /* E.g. JPL needs to operate on a copy of the real environment. - * JDK 1.2 and 1.3 seem to get upset if the original environment - * is diddled with. */ -# define NEED_ENVIRON_DUP_FOR_MODIFY +#ifndef NO_ENVIRON_ARRAY +# define USE_ENVIRON_ARRAY #endif /* @@ -3921,6 +3934,18 @@ int flock(int fd, int op); # define O_TEXT 0 #endif +#if O_TEXT != O_BINARY + /* If you have different O_TEXT and O_BINARY and you are a CLRF shop, + * that is, you are somehow DOSish. */ +# if !defined(__BEOS__) +# define PERLIO_USING_CRLF 1 +# else + /* If you have O_TEXT different from your O_BINARY but you still are + * not a CRLF shop. */ +# undef PERLIO_USING_CRLF +# endif +#endif + #ifdef IAMSUID #ifdef I_SYS_STATVFS