00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef APR_FILE_INFO_H
00018 #define APR_FILE_INFO_H
00019
00020
00021
00022
00023
00024
00025 #include "apr.h"
00026 #include "apr_user.h"
00027 #include "apr_pools.h"
00028 #include "apr_tables.h"
00029 #include "apr_time.h"
00030 #include "apr_errno.h"
00031
00032 #if APR_HAVE_SYS_UIO_H
00033 #include <sys/uio.h>
00034 #endif
00035
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 typedef enum {
00063 APR_NOFILE = 0,
00064 APR_REG,
00065 APR_DIR,
00066 APR_CHR,
00067 APR_BLK,
00068 APR_PIPE,
00069 APR_LNK,
00070 APR_SOCK,
00071 APR_UNKFILE = 127
00072 } apr_filetype_e;
00073
00074
00075
00076
00077
00078
00079 #define APR_FPROT_USETID 0x8000
00080 #define APR_FPROT_UREAD 0x0400
00081 #define APR_FPROT_UWRITE 0x0200
00082 #define APR_FPROT_UEXECUTE 0x0100
00083
00084 #define APR_FPROT_GSETID 0x4000
00085 #define APR_FPROT_GREAD 0x0040
00086 #define APR_FPROT_GWRITE 0x0020
00087 #define APR_FPROT_GEXECUTE 0x0010
00088
00089 #define APR_FPROT_WSTICKY 0x2000
00090 #define APR_FPROT_WREAD 0x0004
00091 #define APR_FPROT_WWRITE 0x0002
00092 #define APR_FPROT_WEXECUTE 0x0001
00093
00094 #define APR_FPROT_OS_DEFAULT 0x0FFF
00095
00096
00097 #define APR_FPROT_FILE_SOURCE_PERMS 0x1000
00098
00099
00100 #define APR_USETID APR_FPROT_USETID
00101 #define APR_UREAD APR_FPROT_UREAD
00102 #define APR_UWRITE APR_FPROT_UWRITE
00103 #define APR_UEXECUTE APR_FPROT_UEXECUTE
00104 #define APR_GSETID APR_FPROT_GSETID
00105 #define APR_GREAD APR_FPROT_GREAD
00106 #define APR_GWRITE APR_FPROT_GWRITE
00107 #define APR_GEXECUTE APR_FPROT_GEXECUTE
00108 #define APR_WSTICKY APR_FPROT_WSTICKY
00109 #define APR_WREAD APR_FPROT_WREAD
00110 #define APR_WWRITE APR_FPROT_WWRITE
00111 #define APR_WEXECUTE APR_FPROT_WEXECUTE
00112 #define APR_OS_DEFAULT APR_FPROT_OS_DEFAULT
00113 #define APR_FILE_SOURCE_PERMS APR_FPROT_FILE_SOURCE_PERMS
00114
00115
00116
00117
00118
00119
00120
00121 typedef struct apr_dir_t apr_dir_t;
00122
00123
00124
00125 typedef apr_int32_t apr_fileperms_t;
00126 #if (defined WIN32) || (defined NETWARE)
00127
00128
00129
00130 typedef apr_uint32_t apr_dev_t;
00131 #else
00132
00133
00134
00135 typedef dev_t apr_dev_t;
00136 #endif
00137
00138
00139
00140
00141
00142
00143 typedef struct apr_finfo_t apr_finfo_t;
00144
00145 #define APR_FINFO_LINK 0x00000001
00146 #define APR_FINFO_MTIME 0x00000010
00147 #define APR_FINFO_CTIME 0x00000020
00148 #define APR_FINFO_ATIME 0x00000040
00149 #define APR_FINFO_SIZE 0x00000100
00150 #define APR_FINFO_CSIZE 0x00000200
00151 #define APR_FINFO_DEV 0x00001000
00152 #define APR_FINFO_INODE 0x00002000
00153 #define APR_FINFO_NLINK 0x00004000
00154 #define APR_FINFO_TYPE 0x00008000
00155 #define APR_FINFO_USER 0x00010000
00156 #define APR_FINFO_GROUP 0x00020000
00157 #define APR_FINFO_UPROT 0x00100000
00158 #define APR_FINFO_GPROT 0x00200000
00159 #define APR_FINFO_WPROT 0x00400000
00160 #define APR_FINFO_ICASE 0x01000000
00161 #define APR_FINFO_NAME 0x02000000
00162
00163 #define APR_FINFO_MIN 0x00008170
00164 #define APR_FINFO_IDENT 0x00003000
00165 #define APR_FINFO_OWNER 0x00030000
00166 #define APR_FINFO_PROT 0x00700000
00167 #define APR_FINFO_NORM 0x0073b170
00168 #define APR_FINFO_DIRENT 0x02000000
00169
00170
00171
00172
00173
00174 de" href="group__apr__file__permissions.html#g4e4e9bb05f2bb156b174461551c9c329">00104 #define APR_GSETID APR_FPROT_GSETID
00105 #define APR_GREAD APR_FPROT_GREAD
00106 #define APR_GWRITE APR_FPROT_GWRITE
00107 #define APR_GEXECUTE APR_FPROT_GEXECUTE
00108 #define APR_WSTICKY APR_FPROT_WSTICKY
00109 #define APR_WREAD APR_FPROT_WREAD
00110 #define APR_WWRITE APR_FPROT_WWRITE
00111 #define APR_WEXECUTE APR_FPROT_WEXECUTE
00112 #define APR_OS_DEFAULT APR_FPROT_OS_DEFAULT
00113 #define APR_FILE_SOURCE_PERMS APR_FPROT_FILE_SOURCE_PERMS
00114
00115
00116
00117
00118
00119
00120
00121 typedef struct apr_dir_t apr_dir_t;
00122
00123
00124
00125 typedef apr_int32_t apr_fileperms_t;
00126 #if (defined WIN32) || (defined NETWARE)
00127
00128
00129
00130 typedef apr_uint32_t apr_dev_t;
00131 #else
00132
00133
00134
00135 typedef dev_t apr_dev_t;
00136 #endif
00137
00138
00139
00140
00141
00142
00143 typedef struct apr_finfo_t apr_finfo_t;
00144
00145 #define APR_FINFO_LINK 0x00000001
00146 #define APR_FINFO_MTIME 0x00000010
00147 #define APR_FINFO_CTIME 0x00000020
00148 #define APR_FINFO_ATIME 0x00000040
00149 #define APR_FINFO_SIZE 0x00000100
00150 #define APR_FINFO_CSIZE 0x00000200
00151 #define APR_FINFO_DEV 0x00001000
00152 #define APR_FINFO_INODE 0x00002000
00153 #define APR_FINFO_NLINK 0x00004000
00154 #define APR_FINFO_TYPE 0x00008000
00155 #define APR_FINFO_USER 0x00010000
00156 #define APR_FINFO_GROUP 0x00020000
00157 #define APR_FINFO_UPROT 0x00100000
00158 #define APR_FINFO_GPROT 0x00200000
00159 #define APR_FINFO_WPROT 0x00400000
00160 #define APR_FINFO_ICASE 0x01000000
00161 #define APR_FINFO_NAME 0x02000000
00162
00163 #define APR_FINFO_MIN 0x00008170
00164 #define APR_FINFO_IDENT 0x00003000
00165 #define APR_FINFO_OWNER 0x00030000
00166 #define APR_FINFO_PROT 0x00700000
00167 #define APR_FINFO_NORM 0x0073b170
00168 #define APR_FINFO_DIRENT 0x02000000
00169
00170
00171
00172
00173
00174 de" href="group__apr__file__permissions.html#g4e4e9bb05f2bb156b174461551c9c329">00104 #define APR_GSETID APR_FPROT_GSETID
00105 #define APR_GREAD APR_FPROT_GREAD
00106 #define APR_GWRITE APR_FPROT_GWRITE
00107 #define APR_GEXECUTE APR_FPROT_GEXECUTE
00108 #define APR_WSTICKY APR_FPROT_WSTICKY
00109 #define APR_WREAD APR_FPROT_WREAD
00110 #define APR_WWRITE APR_FPROT_WWRITE
00111 #define APR_WEXECUTE APR_FPROT_WEXECUTE
00112 #define APR_OS_DEFAULT APR_FPROT_OS_DEFAULT
00113 #define APR_FILE_SOURCE_PERMS APR_FPROT_FILE_SOURCE_PERMS
00114
00115
00116
00117
00118
00119
00120
00121 typedef struct apr_dir_t apr_dir_t;
00122
00123
00124
00125 typedef apr_int32_t apr_fileperms_t;
00126 #if (defined WIN32) || (defined NETWARE)
00127
00128
00129
00130 typedef apr_uint32_t apr_dev_t;
00131 #else
00132
00133
00134
00135 typedef dev_t apr_dev_t;
00136 #endif
00137
00138
00139
00140
00141
00142
00143 typedef struct apr_finfo_t apr_finfo_t;
00144
00145 #define APR_FINFO_LINK 0x00000001
00146 #define APR_FINFO_MTIME 0x00000010
00147 #define APR_FINFO_CTIME 0x00000020
00148 #define APR_FINFO_ATIME 0x00000040
00149 #define APR_FINFO_SIZE 0x00000100
00150 #define APR_FINFO_CSIZE 0x00000200
00151 #define APR_FINFO_DEV 0x00001000
00152 #define APR_FINFO_INODE 0x00002000
00153 #define APR_FINFO_NLINK 0x00004000
00154 #define APR_FINFO_TYPE 0x00008000
00155 #define APR_FINFO_USER 0x00010000
00156 #define APR_FINFO_GROUP 0x00020000
00157 #define APR_FINFO_UPROT 0x00100000
00158 #define APR_FINFO_GPROT 0x00200000
00159 #define APR_FINFO_WPROT 0x00400000
00160 #define APR_FINFO_ICASE 0x01000000
00161 #define APR_FINFO_NAME 0x02000000
00162
00163 #define APR_FINFO_MIN 0x00008170
00164 #define APR_FINFO_IDENT 0x00003000
00165 #define APR_FINFO_OWNER 0x00030000
00166 #define APR_FINFO_PROT 0x00700000
00167 #define APR_FINFO_NORM 0x0073b170
00168 #define APR_FINFO_DIRENT 0x02000000
00169
00170
00171
00172
00173
00174 de" href="group__apr__file__permissions.html#g4e4e9bb05f2bb156b174461551c9c329">00104 #define APR_GSETID APR_FPROT_GSETID
00105 #define APR_GREAD APR_FPROT_GREAD
00106 #define APR_GWRITE APR_FPROT_GWRITE
00107 #define APR_GEXECUTE APR_FPROT_GEXECUTE
00108 #define APR_WSTICKY APR_FPROT_WSTICKY
00109 #define APR_WREAD APR_FPROT_WREAD
00110 #define APR_WWRITE APR_FPROT_WWRITE
00111 #define APR_WEXECUTE APR_FPROT_WEXECUTE
00112 #define APR_OS_DEFAULT APR_FPROT_OS_DEFAULT
00113 #define APR_FILE_SOURCE_PERMS APR_FPROT_FILE_SOURCE_PERMS
00114
00115
00116
00117
00118
00119
00120
00121 typedef struct apr_dir_t apr_dir_t;
00122
00123
00124
00125 typedef apr_int32_t apr_fileperms_t;
00126 #if (defined WIN32) || (defined NETWARE)
00127
00128
00129
00130 typedef apr_uint32_t apr_dev_t;
00131 #else
00132
00133
00134
00135 typedef dev_t apr_dev_t;
00136 #endif
00137
00138
00139
00140
00141
00142
00143 typedef struct apr_finfo_t apr_finfo_t;
00144
00145 #define APR_FINFO_LINK 0x00000001
00146 #define APR_FINFO_MTIME 0x00000010
00147 #define APR_FINFO_CTIME 0x00000020
00148 #define APR_FINFO_ATIME 0x00000040
00149 #define APR_FINFO_SIZE 0x00000100
00150 #define APR_FINFO_CSIZE 0x00000200
00151 #define APR_FINFO_DEV 0x00001000
00152 #define APR_FINFO_INODE 0x00002000
00153 #define APR_FINFO_NLINK 0x00004000
00154 #define APR_FINFO_TYPE 0x00008000
00155 #define APR_FINFO_USER 0x00010000
00156 #define APR_FINFO_GROUP 0x00020000
00157 #define APR_FINFO_UPROT 0x00100000
00158 #define APR_FINFO_GPROT 0x00200000
00159 #define APR_FINFO_WPROT 0x00400000
<