Go to the documentation of this file. 52 #if defined(_CC_MWERKS_) 55 #elif !defined(_OS_MAC_) 56 # include <sys/types.h> 57 # include <sys/stat.h> 58 #elif defined(_OS_MAC_) 59 # include <sys/types.h> 60 # include <sys/stat.h> 65 #if defined(_OS_UNIX_) 69 #if defined(_OS_MSDOS_) || defined(_OS_WIN32_) || defined(_OS_OS2_) 71 # if defined(__CYGWIN32__) 74 # if !defined(_OS_UNIX_) 79 # if !defined(_CC_MWERKS_) 88 #if !defined(PATH_MAX) 89 #if defined( MAXPATHLEN ) 90 #define PATH_MAX MAXPATHLEN 123 #if defined(_CC_MSVC_) || defined(_CC_SYM_) 125 # define STATBUF struct _stat // non-ANSI defs 126 # define STATBUF4TSTAT struct _stat // non-ANSI defs 127 # define STAT ::_stat 128 # define FSTAT ::_fstat 129 # define STAT_REG _S_IFREG 130 # define STAT_DIR _S_IFDIR 131 # define STAT_MASK _S_IFMT 132 # if defined(_S_IFLNK) 133 # define STAT_LNK _S_IFLNK 135 # define FILENO _fileno 136 # define OPEN ::_open 137 # define CLOSE ::_close 138 # define LSEEK ::_lseek 139 # define READ ::_read 140 # define WRITE ::_write 141 # define ACCESS ::_access 142 # define GETCWD ::_getcwd 143 # define CHDIR ::_chdir 144 # define MKDIR ::_mkdir 145 # define RMDIR ::_rmdir 146 # define OPEN_RDONLY _O_RDONLY 147 # define OPEN_WRONLY _O_WRONLY 148 # define OPEN_RDWR _O_RDWR 149 # define OPEN_CREAT _O_CREAT 150 # define OPEN_TRUNC _O_TRUNC 151 # define OPEN_APPEND _O_APPEND 153 # define OPEN_TEXT _O_TEXT 154 # define OPEN_BINARY _O_BINARY 157 #elif defined(_CC_BOR_) && __BORLANDC__ >= 0x550 159 # define STATBUF struct stat // non-ANSI defs 160 # define STATBUF4TSTAT struct _stat // non-ANSI defs 162 # define FSTAT ::fstat 163 # define STAT_REG _S_IFREG 164 # define STAT_DIR _S_IFDIR 165 # define STAT_MASK _S_IFMT 166 # if defined(_S_IFLNK) 167 # define STAT_LNK _S_IFLNK 169 # define FILENO _fileno 171 # define CLOSE ::_close 172 # define LSEEK ::_lseek 173 # define READ ::_read 174 # define WRITE ::_write 175 # define ACCESS ::_access 176 # define GETCWD ::_getcwd 177 # define CHDIR ::chdir 178 # define MKDIR ::_mkdir 179 # define RMDIR ::_rmdir 180 # define OPEN_RDONLY _O_RDONLY 181 # define OPEN_WRONLY _O_WRONLY 182 # define OPEN_RDWR _O_RDWR 183 # define OPEN_CREAT _O_CREAT 184 # define OPEN_TRUNC _O_TRUNC 185 # define OPEN_APPEND _O_APPEND 187 # define OPEN_TEXT _O_TEXT 188 # define OPEN_BINARY _O_BINARY 191 #else // all other systems 194 # define STATBUF struct _stat 195 # define STATBUF4TSTAT struct _stat 197 # define FSTAT _fstat 199 # define STATBUF struct stat 200 # define STATBUF4TSTAT struct stat 202 # define FSTAT ::fstat 204 # define STAT_REG S_IFREG 205 # define STAT_DIR S_IFDIR 206 # define STAT_MASK S_IFMT 207 # if defined(S_IFLNK) 208 # define STAT_LNK S_IFLNK 210 # define FILENO fileno 212 # define CLOSE ::close 213 # define LSEEK ::lseek 215 # define WRITE ::write 216 # define ACCESS ::access 217 # if defined(_OS_OS2EMX_) 218 # define GETCWD ::_getcwd2 219 # define CHDIR ::_chdir2 221 # define GETCWD ::getcwd 222 # define CHDIR ::chdir 224 # define MKDIR ::mkdir 225 # define RMDIR ::rmdir 226 # define OPEN_RDONLY O_RDONLY 227 # define OPEN_WRONLY O_WRONLY 228 # define OPEN_RDWR O_RDWR 229 # define OPEN_CREAT O_CREAT 230 # define OPEN_TRUNC O_TRUNC 231 # define OPEN_APPEND O_APPEND 233 # define OPEN_TEXT O_TEXT 234 # define OPEN_BINARY O_BINARY 238 #if defined(_CC_MWERKS_) 248 #if defined(_OS_FATFS_) 255 #if defined(_OS_MAC_) && !defined(_OS_UNIX_)