aboutsummaryrefslogtreecommitdiffstats
path: root/local.h
diff options
context:
space:
mode:
authorAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
committerAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
commit68a07bf03b7624c9924065cce9ffa45497225834 (patch)
treec2adb06a909a8594445e4a3f8587c4bad46e3ecd /local.h
downloadw3m-68a07bf03b7624c9924065cce9ffa45497225834.tar.gz
w3m-68a07bf03b7624c9924065cce9ffa45497225834.zip
Initial revision
Diffstat (limited to '')
-rw-r--r--local.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/local.h b/local.h
new file mode 100644
index 0000000..f4adde8
--- /dev/null
+++ b/local.h
@@ -0,0 +1,44 @@
+/*
+ * w3m local.h
+ */
+
+#ifndef LOCAL_H
+#define LOCAL_H
+
+#include <sys/types.h>
+#ifdef DIRENT
+#include <dirent.h>
+typedef struct dirent Directory;
+#else /* not DIRENT */
+#include <sys/dir.h>
+typedef struct direct Directory;
+#endif /* not DIRENT */
+#include <sys/stat.h>
+
+#ifndef S_IFMT
+#define S_IFMT 0170000
+#endif /* not S_IFMT */
+#ifndef S_IFREG
+#define S_IFREG 0100000
+#endif /* not S_IFREG */
+
+#define NOT_REGULAR(m) (((m) & S_IFMT) != S_IFREG)
+#define IS_DIRECTORY(m) (((m) & S_IFMT) == S_IFDIR)
+
+#ifndef S_ISDIR
+#ifndef S_IFDIR
+#define S_IFDIR 0040000
+#endif /* not S_IFDIR */
+#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
+#endif /* not S_ISDIR */
+
+#ifdef READLINK
+#ifndef S_IFLNK
+#define S_IFLNK 0120000
+#endif /* not S_IFLNK */
+#ifndef S_ISLNK
+#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
+#endif /* not S_ISLNK */
+#endif /* not READLINK */
+
+#endif /* not LOCAL_H */