1 17 18 package org.apache.tomcat.jni; 19 20 25 26 public class Status { 27 28 31 public static final int APR_OS_START_ERROR = 20000; 32 37 public static final int APR_OS_ERRSPACE_SIZE = 50000; 38 41 public static final int APR_OS_START_STATUS = (APR_OS_START_ERROR + APR_OS_ERRSPACE_SIZE); 42 43 50 public static final int APR_OS_START_USERERR = (APR_OS_START_STATUS + APR_OS_ERRSPACE_SIZE); 51 55 public static final int APR_OS_START_USEERR = APR_OS_START_USERERR; 56 60 public static final int APR_OS_START_CANONERR = (APR_OS_START_USERERR + (APR_OS_ERRSPACE_SIZE * 10)); 61 62 66 public static final int APR_OS_START_EAIERR = (APR_OS_START_CANONERR + APR_OS_ERRSPACE_SIZE); 67 71 public static final int APR_OS_START_SYSERR = (APR_OS_START_EAIERR + APR_OS_ERRSPACE_SIZE); 72 73 74 public static final int APR_SUCCESS = 0; 75 76 102 public static final int APR_ENOSTAT = (APR_OS_START_ERROR + 1); 103 public static final int APR_ENOPOOL = (APR_OS_START_ERROR + 2); 104 public static final int APR_EBADDATE = (APR_OS_START_ERROR + 4); 105 public static final int APR_EINVALSOCK = (APR_OS_START_ERROR + 5); 106 public static final int APR_ENOPROC = (APR_OS_START_ERROR + 6); 107 public static final int APR_ENOTIME = (APR_OS_START_ERROR + 7); 108 public static final int APR_ENODIR = (APR_OS_START_ERROR + 8); 109 public static final int APR_ENOLOCK = (APR_OS_START_ERROR + 9); 110 public static final int APR_ENOPOLL = (APR_OS_START_ERROR + 10); 111 public static final int APR_ENOSOCKET = (APR_OS_START_ERROR + 11); 112 public static final int APR_ENOTHREAD = (APR_OS_START_ERROR + 12); 113 public static final int APR_ENOTHDKEY = (APR_OS_START_ERROR + 13); 114 public static final int APR_EGENERAL = (APR_OS_START_ERROR + 14); 115 public static final int APR_ENOSHMAVAIL = (APR_OS_START_ERROR + 15); 116 public static final int APR_EBADIP = (APR_OS_START_ERROR + 16); 117 public static final int APR_EBADMASK = (APR_OS_START_ERROR + 17); 118 public static final int APR_EDSOOPEN = (APR_OS_START_ERROR + 19); 119 public static final int APR_EABSOLUTE = (APR_OS_START_ERROR + 20); 120 public static final int APR_ERELATIVE = (APR_OS_START_ERROR + 21); 121 public static final int APR_EINCOMPLETE = (APR_OS_START_ERROR + 22); 122 public static final int APR_EABOVEROOT = (APR_OS_START_ERROR + 23); 123 public static final int APR_EBADPATH = (APR_OS_START_ERROR + 24); 124 public static final int APR_EPATHWILD = (APR_OS_START_ERROR + 25); 125 public static final int APR_ESYMNOTFOUND = (APR_OS_START_ERROR + 26); 126 public static final int APR_EPROC_UNKNOWN = (APR_OS_START_ERROR + 27); 127 public static final int APR_ENOTENOUGHENTROPY = (APR_OS_START_ERROR + 28); 128 129 159 public static final int APR_INCHILD = (APR_OS_START_STATUS + 1); 160 public static final int APR_INPARENT = (APR_OS_START_STATUS + 2); 161 public static final int APR_DETACH = (APR_OS_START_STATUS + 3); 162 public static final int APR_NOTDETACH = (APR_OS_START_STATUS + 4); 163 public static final int APR_CHILD_DONE = (APR_OS_START_STATUS + 5); 164 public static final int APR_CHILD_NOTDONE = (APR_OS_START_STATUS + 6); 165 public static final int APR_TIMEUP = (APR_OS_START_STATUS + 7); 166 public static final int APR_INCOMPLETE = (APR_OS_START_STATUS + 8); 167 public static final int APR_BADCH = (APR_OS_START_STATUS + 12); 168 public static final int APR_BADARG = (APR_OS_START_STATUS + 13); 169 public static final int APR_EOF = (APR_OS_START_STATUS + 14); 170 public static final int APR_NOTFOUND = (APR_OS_START_STATUS + 15); 171 public static final int APR_ANONYMOUS = (APR_OS_START_STATUS + 19); 172 public static final int APR_FILEBASED = (APR_OS_START_STATUS + 20); 173 public static final int APR_KEYBASED = (APR_OS_START_STATUS + 21); 174 public static final int APR_EINIT = (APR_OS_START_STATUS + 22); 175 public static final int APR_ENOTIMPL = (APR_OS_START_STATUS + 23); 176 public static final int APR_EMISMATCH = (APR_OS_START_STATUS + 24); 177 public static final int APR_EBUSY = (APR_OS_START_STATUS + 25); 178 179 public static final int TIMEUP = (APR_OS_START_USERERR + 1); 180 public static final int EAGAIN = (APR_OS_START_USERERR + 2); 181 public static final int EINTR = (APR_OS_START_USERERR + 3); 182 public static final int EINPROGRESS = (APR_OS_START_USERERR + 4); 183 public static final int ETIMEDOUT = (APR_OS_START_USERERR + 5); 184 185 private static native boolean is(int err, int idx); 186 197 public static final boolean APR_STATUS_IS_ENOSTAT(int s) { return is(s, 1); } 198 public static final boolean APR_STATUS_IS_ENOPOOL(int s) { return is(s, 2); } 199 200 public static final boolean APR_STATUS_IS_EBADDATE(int s) { return is(s, 4); } 201 public static final boolean APR_STATUS_IS_EINVALSOCK(int s) { return is(s, 5); } 202 public static final boolean APR_STATUS_IS_ENOPROC(int s) { return is(s, 6); } 203 public static final boolean APR_STATUS_IS_ENOTIME(int s) { return is(s, 7); } 204 public static final boolean APR_STATUS_IS_ENODIR(int s) { return is(s, 8); } 205 public static final boolean APR_STATUS_IS_ENOLOCK(int s) { return is(s, 9); } 206 public static final boolean APR_STATUS_IS_ENOPOLL(int s) { return is(s, 10); } 207 public static final boolean APR_STATUS_IS_ENOSOCKET(int s) { return is(s, 11); } 208 public static final boolean APR_STATUS_IS_ENOTHREAD(int s) { return is(s, 12); } 209 public static final boolean APR_STATUS_IS_ENOTHDKEY(int s) { return is(s, 13); } 210 public static final boolean APR_STATUS_IS_EGENERAL(int s) { return is(s, 14); } 211 public static final boolean APR_STATUS_IS_ENOSHMAVAIL(int s){ return is(s, 15); } 212 public static final boolean APR_STATUS_IS_EBADIP(int s) { return is(s, 16); } 213 public static final boolean APR_STATUS_IS_EBADMASK(int s) { return is(s, 17); } 214 215 public static final boolean APR_STATUS_IS_EDSOPEN(int s) { return is(s, 19); } 216 public static final boolean APR_STATUS_IS_EABSOLUTE(int s) { return is(s, 20); } 217 public static final boolean APR_STATUS_IS_ERELATIVE(int s) { return is(s, 21); } 218 public static final boolean APR_STATUS_IS_EINCOMPLETE(int s){ return is(s, 22); } 219 public static final boolean APR_STATUS_IS_EABOVEROOT(int s) { return is(s, 23); } 220 public static final boolean APR_STATUS_IS_EBADPATH(int s) { return is(s, 24); } 221 public static final boolean APR_STATUS_IS_EPATHWILD(int s) { return is(s, 25); } 222 public static final boolean APR_STATUS_IS_ESYMNOTFOUND(int s) { return is(s, 26); } 223 public static final boolean APR_STATUS_IS_EPROC_UNKNOWN(int s) { return is(s, 27); } 224 public static final boolean APR_STATUS_IS_ENOTENOUGHENTROPY(int s) { return is(s, 28); } 225 226 229 public static final boolean APR_STATUS_IS_INCHILD(int s) { return is(s, 51); } 230 public static final boolean APR_STATUS_IS_INPARENT(int s) { return is(s, 52); } 231 public static final boolean APR_STATUS_IS_DETACH(int s) { return is(s, 53); } 232 public static final boolean APR_STATUS_IS_NOTDETACH(int s) { return is(s, 54); } 233 public static final boolean APR_STATUS_IS_CHILD_DONE(int s) { return is(s, 55); } 234 public static final boolean APR_STATUS_IS_CHILD_NOTDONE(int s) { return is(s, 56); } 235 public static final boolean APR_STATUS_IS_TIMEUP(int s) { return is(s, 57); } 236 public static final boolean APR_STATUS_IS_INCOMPLETE(int s) { return is(s, 58); } 237 238 239 240 public static final boolean APR_STATUS_IS_BADCH(int s) { return is(s, 62); } 241 public static final boolean APR_STATUS_IS_BADARG(int s) { return is(s, 63); } 242 public static final boolean APR_STATUS_IS_EOF(int s) { return is(s, 64); } 243 public static final boolean APR_STATUS_IS_NOTFOUND(int s) { return is(s, 65); } 244 245 246 247 public static final boolean APR_STATUS_IS_ANONYMOUS(int s) { return is(s, 69); } 248 public static final boolean APR_STATUS_IS_FILEBASED(int s) { return is(s, 70); } 249 public static final boolean APR_STATUS_IS_KEYBASED(int s) { return is(s, 71); } 250 public static final boolean APR_STATUS_IS_EINIT(int s) { return is(s, 72); } 251 public static final boolean APR_STATUS_IS_ENOTIMPL(int s) { return is(s, 73); } 252 public static final boolean APR_STATUS_IS_EMISMATCH(int s) { return is(s, 74); } 253 public static final boolean APR_STATUS_IS_EBUSY(int s) { return is(s, 75); } 254 255 256 public static final boolean APR_STATUS_IS_EAGAIN(int s) { return is(s, 90); } 257 public static final boolean APR_STATUS_IS_ETIMEDOUT(int s) { return is(s, 91); } 258 public static final boolean APR_STATUS_IS_ECONNABORTED(int s) { return is(s, 92); } 259 public static final boolean APR_STATUS_IS_ECONNRESET(int s) { return is(s, 93); } 260 public static final boolean APR_STATUS_IS_EINPROGRESS(int s) { return is(s, 94); } 261 public static final boolean APR_STATUS_IS_EINTR(int s) { return is(s, 95); } 262 public static final boolean APR_STATUS_IS_ENOTSOCK(int s) { return is(s, 96); } 263 public static final boolean APR_STATUS_IS_EINVAL(int s) { return is(s, 97); } 264 265 } 266 | Popular Tags |