X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=vms%2Fvmsish.h;h=95ac23b403a33b9b3f32f6191032a17e9f684310;hb=a0614a7b604f0f7f994a6210a436500d449c1384;hp=281d503afbac3673e2977a544f9e33d55c7bf150;hpb=9ec7171b93c2f7e007fcbb49144b664695f0d21b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/vms/vmsish.h b/vms/vmsish.h index 281d503..95ac23b 100644 --- a/vms/vmsish.h +++ b/vms/vmsish.h @@ -133,6 +133,7 @@ #define vms_image_init Perl_vms_image_init #define my_tmpfile Perl_my_tmpfile #define vmstrnenv Perl_vmstrnenv +#define my_fgetname(a, b) Perl_my_fgetname(a, b) #if !defined(PERL_IMPLICIT_CONTEXT) #define my_getenv_len Perl_my_getenv_len #define vmssetenv Perl_vmssetenv @@ -276,7 +277,7 @@ #define my_endpwent() Perl_my_endpwent(aTHX) #define my_getlogin Perl_my_getlogin #ifdef HAS_SYMLINK -# define my_symlink Perl_my_symlink +# define my_symlink(a, b) Perl_my_symlink(aTHX_ a, b) #endif #define init_os_extras Perl_init_os_extras #define vms_realpath(a, b, c) Perl_vms_realpath(aTHX_ a,b,c) @@ -361,7 +362,11 @@ #define HINT_M_VMSISH_TIME 0x80000000 /* times are local, not UTC */ #define NATIVE_HINTS (PL_hints >> HINT_V_VMSISH) /* used in op.c */ -#define TEST_VMSISH(h) (PL_curcop->op_private & ((h) >> HINT_V_VMSISH)) +#ifdef PERL_IMPLICIT_CONTEXT +# define TEST_VMSISH(h) (my_perl && PL_curcop && (PL_curcop->op_private & ((h) >> HINT_V_VMSISH))) +#else +# define TEST_VMSISH(h) (PL_curcop && (PL_curcop->op_private & ((h) >> HINT_V_VMSISH))) +#endif #define VMSISH_STATUS TEST_VMSISH(HINT_M_VMSISH_STATUS) #define VMSISH_TIME TEST_VMSISH(HINT_M_VMSISH_TIME) @@ -413,7 +418,12 @@ struct interp_intern { #define HAS_KILL #define HAS_WAIT -#define PERL_FS_VER_FMT "%d_%d_%d" +#ifndef PERL_CORE +# define PERL_FS_VER_FMT "%d_%d_%d" +#endif +#define PERL_FS_VERSION STRINGIFY(PERL_REVISION) "_" \ + STRINGIFY(PERL_VERSION) "_" \ + STRINGIFY(PERL_SUBVERSION) /* Temporary; we need to add support for this to Configure.Com */ #ifdef PERL_INC_VERSION_LIST # undef PERL_INC_VERSION_LIST @@ -449,7 +459,11 @@ struct interp_intern { * getgrgid() routines are available to get group entries. * The getgrent() has a separate definition, HAS_GETGRENT. */ +#if __CRTL_VER >= 70302000 +#define HAS_GROUP /**/ +#else #undef HAS_GROUP /**/ +#endif /* HAS_PASSWD * This symbol, if defined, indicates that the getpwnam() and @@ -512,6 +526,7 @@ struct interp_intern { # define fwrite my_fwrite /* for PerlSIO_fwrite */ # define fdopen my_fdopen # define fclose my_fclose +# define fgetname(a, b) my_fgetname(a, b) #ifdef HAS_SYMLINK # define symlink my_symlink #endif @@ -965,8 +980,9 @@ bool Perl_vms_do_exec (pTHX_ const char *); FILE * my_fdopen (int, const char *); int my_fclose (FILE *); int my_fwrite (const void *, size_t, size_t, FILE *); +char * Perl_my_fgetname (FILE *fp, char *buf); #ifdef HAS_SYMLINK -int my_symlink(const char *path1, const char *path2); +int Perl_my_symlink(pTHX_ const char *path1, const char *path2); #endif int Perl_my_flush (pTHX_ FILE *); struct passwd * Perl_my_getpwnam (pTHX_ const char *name);