summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/defines.h b/defines.h
index 9d58db38d..29c46a620 100644
--- a/defines.h
+++ b/defines.h
@@ -1,7 +1,7 @@
1#ifndef _DEFINES_H 1#ifndef _DEFINES_H
2#define _DEFINES_H 2#define _DEFINES_H
3 3
4/* $Id: defines.h,v 1.59 2001/03/19 02:27:26 tim Exp $ */ 4/* $Id: defines.h,v 1.60 2001/03/19 03:12:26 mouring Exp $ */
5 5
6/* Some platforms need this for the _r() functions */ 6/* Some platforms need this for the _r() functions */
7#if !defined(_REENTRANT) && !defined(SNI) 7#if !defined(_REENTRANT) && !defined(SNI)
@@ -99,11 +99,18 @@ enum
99# define O_NONBLOCK 00004 99# define O_NONBLOCK 00004
100#endif 100#endif
101 101
102#ifndef S_ISREG 102#ifndef S_ISDIR
103# define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) 103# define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
104#endif /* S_ISDIR */
105
106#ifndef S_ISREG
104# define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG)) 107# define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG))
105#endif /* S_ISREG */ 108#endif /* S_ISREG */
106 109
110#ifndef S_ISLNK
111# define S_ISLNK(mode) (((mode) & (_S_IFMT)) == (_S_IFLNK))
112#endif /* S_ISLNK */
113
107#ifndef S_IXUSR 114#ifndef S_IXUSR
108# define S_IXUSR 0000100 /* execute/search permission, */ 115# define S_IXUSR 0000100 /* execute/search permission, */
109# define S_IXGRP 0000010 /* execute/search permission, */ 116# define S_IXGRP 0000010 /* execute/search permission, */