diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1998-09-29 03:56:33 +0300 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-10-02 01:53:25 +0000 |
commit | 85ab1d1d99f8dc082af2267b48b9a2c5983f3161 (patch) | |
tree | 15498360e04711d0a640d19d489175cdf9982398 /pp_sys.c | |
parent | 13b51b796ac5d39ced5a8f4f5922bfa7ca1678d5 (diff) | |
download | perl-85ab1d1d99f8dc082af2267b48b9a2c5983f3161.tar.gz |
various Configure and hints updates (prefer drand48() or random()
over rand(); add -Dusemultiplicity; enhanced 64-bitness); patch
applied modulo SCO hints superseded by later patch
Message-Id: <199809282156.AAA18615@alpha.hut.fi>
Subject: [PATCH] 5.005_52: Configure et al:
p4raw-id: //depot/perl@1904
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -173,6 +173,17 @@ static int dooneliner _((char *cmd, char *filename)); #endif /* no flock() */ +#ifndef MAXPATHLEN +# ifdef PATH_MAX +# define MAXPATHLEN PATH_MAX +# else +# define MAXPATHLEN 1024 +# endif +#endif + +#define ZBTLEN 10 +static char zero_but_true[ZBTLEN + 1] = "0 but true"; + #if defined(I_SYS_ACCESS) && !defined(R_OK) # include <sys/access.h> #endif @@ -184,7 +195,7 @@ static int dooneliner _((char *cmd, char *filename)); /* F_OK unused: if stat() cannot find it... */ #if !defined(PERL_EFF_ACCESS_R_OK) && defined(HAS_ACCESS) && defined(EFF_ONLY_OK) && !defined(NO_EFF_ONLY_OK) -/* Digital UNIX, UnixWare */ +/* Digital UNIX (when the EFF_ONLY_OK gets fixed), UnixWare */ # define PERL_EFF_ACCESS_R_OK(p) (access((p), R_OK | EFF_ONLY_OK)) # define PERL_EFF_ACCESS_W_OK(p) (access((p), W_OK | EFF_ONLY_OK)) # define PERL_EFF_ACCESS_X_OK(p) (access((p), X_OK | EFF_ONLY_OK)) @@ -221,7 +232,7 @@ emulate_eaccess (const char* path, int mode) { MUTEX_LOCK(&PL_cred_mutex); #if !defined(HAS_SETREUID) && !defined(HAS_SETRESUID) - croak("effective uid access is not implemented"); + croak("switching effective uid is not implemented"); #else #ifdef HAS_SETREUID if (setreuid(euid, ruid)) @@ -230,11 +241,11 @@ emulate_eaccess (const char* path, int mode) { if (setresuid(euid, ruid, (Uid_t)-1)) #endif #endif - croak("entering effective uid access failed"); + croak("entering effective uid failed"); #endif #if !defined(HAS_SETREGID) && !defined(HAS_SETRESGID) - croak("effective gid access is not implemented"); + croak("switching effective gid is not implemented"); #else #ifdef HAS_SETREGID if (setregid(egid, rgid)) @@ -243,7 +254,7 @@ emulate_eaccess (const char* path, int mode) { if (setresgid(egid, rgid, (Gid_t)-1)) #endif #endif - croak("entering effective gid access failed"); + croak("entering effective gid failed"); #endif res = access(path, mode); @@ -255,7 +266,7 @@ emulate_eaccess (const char* path, int mode) { if (setresuid(ruid, euid, (Uid_t)-1)) #endif #endif - croak("leaving effective uid access failed"); + croak("leaving effective uid failed"); #ifdef HAS_SETREGID if (setregid(rgid, egid)) @@ -264,7 +275,7 @@ emulate_eaccess (const char* path, int mode) { if (setresgid(rgid, egid, (Gid_t)-1)) #endif #endif - croak("leaving effective gid access failed"); + croak("leaving effective gid failed"); MUTEX_UNLOCK(&PL_cred_mutex); return res; @@ -277,23 +288,12 @@ emulate_eaccess (const char* path, int mode) { #if !defined(PERL_EFF_ACCESS_R_OK) STATIC int emulate_eaccess (const char* path, int mode) { - croak("effective uid access is not implemented"); + croak("switching effective uid is not implemented"); /*NOTREACHED*/ return -1; } #endif -#ifndef MAXPATHLEN -# ifdef PATH_MAX -# define MAXPATHLEN PATH_MAX -# else -# define MAXPATHLEN 1024 -# endif -#endif - -#define ZBTLEN 10 -static char zero_but_true[ZBTLEN + 1] = "0 but true"; - PP(pp_backtick) { djSP; dTARGET; |