summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-19 16:18:46 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-19 16:18:46 +0000
commite1f775196788199aa205bfd047e37a8e188e06b2 (patch)
tree1b80176c05c5e6e42e12b75200bc7a2d8f817b7e /perl.h
parentd0e85dcee87ca227273fd34b9a90f68c96b3d833 (diff)
parentd5374cbf8154953394e54aab9ae393cca31f237d (diff)
downloadperl-e1f775196788199aa205bfd047e37a8e188e06b2.tar.gz
integrate cfgperl contents into mainline
p4raw-id: //depot/perl@5146
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h32
1 files changed, 30 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index b47745f41e..cb3e6eb251 100644
--- a/perl.h
+++ b/perl.h
@@ -821,6 +821,10 @@ struct perl_mstats {
* in the face of half-implementations.)
*/
+#ifdef I_SYSMODE
+#include <sys/mode.h>
+#endif
+
#ifndef S_IFMT
# ifdef _S_IFMT
# define S_IFMT _S_IFMT
@@ -915,6 +919,30 @@ struct perl_mstats {
# define S_ISGID 02000
#endif
+#ifndef S_IRWXU
+# define S_IRWXU (S_IRUSR|S_IWUSR|S_IXUSR)
+#endif
+
+#ifndef S_IRWXG
+# define S_IRWXG (S_IRGRP|S_IWGRP|S_IXGRP)
+#endif
+
+#ifndef S_IRWXO
+# define S_IRWXO (S_IROTH|S_IWOTH|S_IXOTH)
+#endif
+
+#ifndef S_IREAD
+# define S_IREAD S_IRUSR
+#endif
+
+#ifndef S_IWRITE
+# define S_IWRITE S_IWUSR
+#endif
+
+#ifndef S_IEXEC
+# define S_IEXEC S_IXUSR
+#endif
+
#ifdef ff_next
# undef ff_next
#endif
@@ -2059,9 +2087,9 @@ char *crypt (const char*, const char*);
# ifndef getenv
char *getenv (const char*);
# endif /* !getenv */
-#if !defined(EPOC) && !(defined(__hpux) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
+# if !defined(EPOC) && !(defined(__hpux) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64)
Off_t lseek (int,Off_t,int);
-#endif
+# endif
# endif /* !DONT_DECLARE_STD */
char *getlogin (void);
#endif /* !__cplusplus */