diff options
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)) + |