summaryrefslogtreecommitdiffabout
path: root/src/filetypes.h
Side-by-side diff
Diffstat (limited to 'src/filetypes.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/filetypes.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/filetypes.h b/src/filetypes.h
index 81f0c32..252a1db 100644
--- a/src/filetypes.h
+++ b/src/filetypes.h
@@ -19,65 +19,65 @@
/* Include sys/types.h and sys/stat.h before this file. */
#ifndef S_ISREG /* Doesn't have POSIX.1 stat stuff. */
-#define mode_t unsigned short
+# define mode_t unsigned short
#endif
/* Define the POSIX macros for systems that lack them. */
#if !defined(S_ISBLK) && defined(S_IFBLK)
-#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
+# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
#endif
#if !defined(S_ISCHR) && defined(S_IFCHR)
-#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
+# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
#endif
#if !defined(S_ISDIR) && defined(S_IFDIR)
-#define S_ISDIR(m) (((m) & S_IFMT) == 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)
+# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
#if !defined(S_ISFIFO) && defined(S_IFIFO)
-#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
+# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
#endif
#if !defined(S_ISLNK) && defined(S_IFLNK)
-#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
+# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#endif
#if !defined(S_ISSOCK) && defined(S_IFSOCK)
-#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
+# define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
#endif
#if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX network special */
-#define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
+# define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
#endif
/* Define the file type bits used in cpio archives.
They have the same values as the S_IF bits in traditional Unix. */
-#define CP_IFMT 0170000 /* Mask for all file type bits. */
+#define CP_IFMT 0170000 /* Mask for all file type bits. */
#if defined(S_ISBLK)
-#define CP_IFBLK 0060000
+# define CP_IFBLK 0060000
#endif
#if defined(S_ISCHR)
-#define CP_IFCHR 0020000
+# define CP_IFCHR 0020000
#endif
#if defined(S_ISDIR)
-#define CP_IFDIR 0040000
+# define CP_IFDIR 0040000
#endif
#if defined(S_ISREG)
-#define CP_IFREG 0100000
+# define CP_IFREG 0100000
#endif
#if defined(S_ISFIFO)
-#define CP_IFIFO 0010000
+# define CP_IFIFO 0010000
#endif
#if defined(S_ISLNK)
-#define CP_IFLNK 0120000
+# define CP_IFLNK 0120000
#endif
#if defined(S_ISSOCK)
-#define CP_IFSOCK 0140000
+# define CP_IFSOCK 0140000
#endif
#if defined(S_ISNWK)
-#define CP_IFNWK 0110000
+# define CP_IFNWK 0110000
#endif
#ifndef S_ISLNK
-#define lstat stat
+# define lstat stat
#endif

Return to:

Send suggestions and report system problems to the System administrator.