diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-16 19:47:51 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-16 19:47:51 +0000 |
commit | ca6e1c26e8ac218f83b0cec7616cb26dab979947 (patch) | |
tree | 8962df12664e64e831aa8d5e4bba857fa6592593 /perl.h | |
parent | d4935d7f25ace6b599fe75f422b41624ca6bf4a6 (diff) | |
download | perl-ca6e1c26e8ac218f83b0cec7616cb26dab979947.tar.gz |
Fcntl: more O_ constants, move SEEK_ to @EXPORT_OK
(tag :seek), add S_I constants (and functions) (tag :mode);
refer only to the SEEK_ of Fcntl, not the ones from
POSIX or IO::; add SHUT_ to Socket; get trigonometric
functions from Math::Trig instead of POSIX.
p4raw-id: //depot/cfgperl@5118
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -817,6 +817,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 @@ -911,6 +915,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 |