diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:18:09 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:18:09 +0000 |
commit | 5f8e0f8ef9a422691dd72e8a953a42a41478fcb4 (patch) | |
tree | 4b2df4796a534793648b3c4fc532fc36bd0cd525 /local.h | |
parent | Releasing debian version 0.3-2.4 (diff) | |
download | w3m-5f8e0f8ef9a422691dd72e8a953a42a41478fcb4.tar.gz w3m-5f8e0f8ef9a422691dd72e8a953a42a41478fcb4.zip |
Releasing debian version 0.5.1-1debian/0.5.1-1
Diffstat (limited to '')
-rw-r--r-- | local.h | 45 |
1 files changed, 45 insertions, 0 deletions
@@ -0,0 +1,45 @@ +/* $Id: local.h,v 1.3 2001/11/20 17:49:23 ukai Exp $ */ +/* + * w3m local.h + */ + +#ifndef LOCAL_H +#define LOCAL_H + +#include <sys/types.h> +#ifdef HAVE_DIRENT_H +#include <dirent.h> +typedef struct dirent Directory; +#else /* not HAVE_DIRENT_H */ +#include <sys/dir.h> +typedef struct direct Directory; +#endif /* not HAVE_DIRENT_H */ +#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 HAVE_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 HAVE_READLINK */ + +#endif /* not LOCAL_H */ |