diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/hypertex/tanmoy/ghostview-1.5-hacked/xstat.h |
Initial commit
Diffstat (limited to 'support/hypertex/tanmoy/ghostview-1.5-hacked/xstat.h')
-rw-r--r-- | support/hypertex/tanmoy/ghostview-1.5-hacked/xstat.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/support/hypertex/tanmoy/ghostview-1.5-hacked/xstat.h b/support/hypertex/tanmoy/ghostview-1.5-hacked/xstat.h new file mode 100644 index 0000000000..2b4826e29b --- /dev/null +++ b/support/hypertex/tanmoy/ghostview-1.5-hacked/xstat.h @@ -0,0 +1,23 @@ +#include <sys/stat.h> +#if !defined(S_ISDIR) && defined(S_IFDIR) +#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif +#if !defined(S_ISREG) && defined(S_IFREG) +#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +#endif +#if !defined(S_ISSOCK) && defined(S_IFSOCK) +#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) +#endif + +#ifndef S_IXUSR +#define S_IXUSR 0100 +#endif +#ifndef S_IXGRP +#define S_IXGRP 0010 +#endif +#ifndef S_IXOTH +#define S_IXOTH 0001 +#endif + +#define S_ISXXX(m) ((m) & (S_IXUSR | S_IXGRP | S_IXOTH)) + |