Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/apache2/modperl_apache_compat.h
$ cat -n /usr/include/apache2/modperl_apache_compat.h 1 /* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef MODPERL_APACHE_COMPAT_H 18 #define MODPERL_APACHE_COMPAT_H 19 20 /* back compat adjustements for older Apache versions */ 21 22 #if !APR_HAS_THREADS 23 typedef unsigned long apr_os_thread_t; 24 typedef void * apr_thread_mutex_t; 25 typedef void * apr_thread_rwlock_t; 26 #endif 27 28 /* back compat adjustements for older Apache versions 29 * BACK_COMPAT_MARKER: make back compat issues easy to find :) 30 */ 31 32 /* use the following format: 33 * #if ! AP_MODULE_MAGIC_AT_LEAST(20020903,4) 34 * [compat code] 35 * #endif 36 * and don't forget to insert comments explaining exactly 37 * which httpd release allows us to remove the compat code 38 */ 39 40 /* pre-APACHE_2.2.4 */ 41 #if ! AP_MODULE_MAGIC_AT_LEAST(20051115,4) 42 43 /* added in APACHE_2.2.4 */ 44 AP_DECLARE(const char *) ap_get_server_description(void); 45 AP_DECLARE(const char *) ap_get_server_banner(void); 46 47 #endif /* pre-APACHE_2.2.4 */ 48 49 /* since-APACHE-2.3.0 */ 50 #if AP_MODULE_MAGIC_AT_LEAST(20060905,0) 51 52 /* removed in APACHE-2.3.0 */ 53 AP_DECLARE(const char *) ap_get_server_version(void); 54 55 #endif /* since-APACHE-2.3.0 */ 56 57 /* ap_http_scheme is called ap_http_method in httpd 2.0 */ 58 #ifndef ap_http_scheme 59 #define ap_http_scheme(r) ap_http_method(r) 60 #endif 61 62 #if AP_SERVER_MAJORVERSION_NUMBER>2 || AP_SERVER_MINORVERSION_NUMBER>=2 63 #define MP_HTTPD_HAS_OVERRIDE_OPTS 64 #endif 65 66 #define MP_HTTPD_OVERRIDE_HTACCESS (OR_LIMIT|OR_OPTIONS|OR_FILEINFO|OR_AUTHCFG|OR_INDEXES) 67 68 #define MP_HTTPD_OVERRIDE_OPTS_UNSET (-1) 69 #if AP_SERVER_MAJORVERSION_NUMBER>2 || \ 70 (AP_SERVER_MAJORVERSION_NUMBER == 2 && AP_SERVER_MINORVERSION_NUMBER>=3) 71 72 /* 2.4 API */ 73 #define MP_HTTPD_OVERRIDE_OPTS_DEFAULT (OPT_UNSET | \ 74 OPT_ALL | \ 75 OPT_SYM_OWNER | \ 76 OPT_MULTI) 77 #define mp_add_loaded_module(modp, pool, name) \ 78 ap_add_loaded_module((modp), (pool), (name)) 79 80 #define mp_loglevel(s) ((s)->log.level) 81 #define mp_module_index_ perl_module.module_index, 82 83 #else 84 /* 2.2 API */ 85 #define MP_HTTPD_OVERRIDE_OPTS_DEFAULT (OPT_UNSET | \ 86 OPT_ALL | \ 87 OPT_INCNOEXEC | \ 88 OPT_SYM_OWNER | \ 89 OPT_MULTI) 90 #define mp_add_loaded_module(modp, pool, name) \ 91 ap_add_loaded_module((modp), (pool)) 92 93 #define mp_loglevel(s) ((s)->loglevel) 94 #define mp_module_index_ 95 96 #define ap_unixd_config unixd_config 97 98 #endif /* 2.4 vs. 2.2 API */ 99 100 #ifndef PROXYREQ_RESPONSE 101 #define PROXYREQ_RESPONSE (3) 102 #endif 103 104 #endif /* MODPERL_APACHE_COMPAT_H */ 105 106 /* 107 * Local Variables: 108 * c-basic-offset: 4 109 * indent-tabs-mode: nil 110 * End: 111 */
Welcome to MyWebUniversity on May 31, 2025.
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™