Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef ACE_OS_INCLUDE_SYS_OS_STAT_H
00017 #define ACE_OS_INCLUDE_SYS_OS_STAT_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "ace/config-lite.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #include "ace/os_include/sys/os_types.h"
00028
00029 #if defined (ACE_HAS_DIRECT_H)
00030 # include <direct.h>
00031 #endif
00032
00033 #if !defined (ACE_LACKS_SYS_STAT_H)
00034 # include <sys/stat.h>
00035 #endif
00036
00037
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042
00043 #if defined (ACE_LACKS_MODE_MASKS)
00044
00045
00046
00047
00048 # if !defined (ACE_HAS_USER_MODE_MASKS)
00049 # if !defined (S_IRWXU)
00050 # define S_IRWXU 00700
00051 # endif
00052 # if !defined (S_IRUSR)
00053 # define S_IRUSR 00400
00054 # endif
00055 # if !defined (S_IWUSR)
00056 # define S_IWUSR 00200
00057 # endif
00058 # if !defined (S_IXUSR)
00059 # define S_IXUSR 00100
00060 # endif
00061 # endif
00062
00063 # if !defined (S_IRWXG)
00064 # define S_IRWXG 00070
00065 # endif
00066 # if !defined (S_IRGRP)
00067 # define S_IRGRP 00040
00068 # endif
00069 # if !defined (S_IWGRP)
00070 # define S_IWGRP 00020
00071 # endif
00072 # if !defined (S_IXGRP)
00073 # define S_IXGRP 00010
00074 # endif
00075 # if !defined (S_IRWXO)
00076 # define S_IRWXO 00007
00077 # endif
00078 # if !defined (S_IROTH)
00079 # define S_IROTH 00004
00080 # endif
00081 # if !defined (S_IWOTH)
00082 # define S_IWOTH 00002
00083 # endif
00084 # if !defined (S_IXOTH)
00085 # define S_IXOTH 00001
00086 # endif
00087
00088
00089 #if !defined (S_IFLNK) && !defined (ACE_HAS_WINCE)
00090 #define S_IFLNK 0200000
00091 #endif
00092
00093 #endif
00094
00095
00096 #if !defined (S_ISLNK)
00097 # if defined (S_IFLNK)
00098 # define S_ISLNK(mode) (((mode)&S_IFLNK) == S_IFLNK)
00099 # else
00100 # define S_ISLNK(mode) 0
00101 # endif
00102 #endif
00103
00104 #if defined (ACE_HAS_WINCE)
00105
00106
00107
00108
00109 # define S_IFMT 0xFFFF
00110 # define S_IFDIR FILE_ATTRIBUTE_DIRECTORY
00111 # define S_IFREG FILE_ATTRIBUTE_NORMAL
00112 # define S_IFLNK 0
00113
00114 # if !defined (__MINGW32__)
00115
00116
00117
00118
00119 struct stat
00120 {
00121
00122 dev_t st_dev;
00123
00124
00125 dev_t st_rdev;
00126
00127
00128 mode_t st_mode;
00129
00130
00131 nlink_t st_nlink;
00132
00133
00134 time_t st_atime;
00135
00136
00137 time_t st_mtime;
00138
00139
00140 time_t st_ctime;
00141
00142
00143 ACE_OFF_T st_size;
00144
00145
00146
00147
00148 };
00149 #endif
00150 #endif
00151
00152 #ifdef __cplusplus
00153 }
00154 #endif
00155
00156 #include "ace/post.h"
00157 #endif