home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 December / PCpro_2006_12.ISO / ossdvd / server / Apache / include / util_script.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-21  |  2.0 KB  |  54 lines

  1. /* Copyright 1999-2004 The Apache Software Foundation
  2.  *
  3.  * Licensed under the Apache License, Version 2.0 (the "License");
  4.  * you may not use this file except in compliance with the License.
  5.  * You may obtain a copy of the License at
  6.  *
  7.  *     http://www.apache.org/licenses/LICENSE-2.0
  8.  *
  9.  * Unless required by applicable law or agreed to in writing, software
  10.  * distributed under the License is distributed on an "AS IS" BASIS,
  11.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12.  * See the License for the specific language governing permissions and
  13.  * limitations under the License.
  14.  */
  15.  
  16. #ifndef APACHE_UTIL_SCRIPT_H
  17. #define APACHE_UTIL_SCRIPT_H
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. #ifndef APACHE_ARG_MAX
  24. #ifdef _POSIX_ARG_MAX
  25. #define APACHE_ARG_MAX _POSIX_ARG_MAX
  26. #else
  27. #define APACHE_ARG_MAX 512
  28. #endif
  29. #endif
  30.  
  31. API_EXPORT(char **) ap_create_environment(pool *p, table *t);
  32. API_EXPORT(int) ap_find_path_info(const char *uri, const char *path_info);
  33. API_EXPORT(void) ap_add_cgi_vars(request_rec *r);
  34. API_EXPORT(void) ap_add_common_vars(request_rec *r);
  35. API_EXPORT(int) ap_scan_script_header_err(request_rec *r, FILE *f, char *buffer);
  36. API_EXPORT(int) ap_scan_script_header_err_buff(request_rec *r, BUFF *f,
  37.                                                char *buffer);
  38. API_EXPORT(int) ap_scan_script_header_err_core(request_rec *r, char *buffer,
  39.                        int (*getsfunc) (char *, int, void *),
  40.                        void *getsfunc_data);
  41. API_EXPORT_NONSTD(int) ap_scan_script_header_err_strs(request_rec *r, 
  42.                                                       char *buffer, 
  43.                                                       const char **termch,
  44.                                                       int *termarg, ...);
  45. API_EXPORT(void) ap_send_size(size_t size, request_rec *r);
  46. API_EXPORT(int) ap_call_exec(request_rec *r, child_info *pinfo, char *argv0, char **env,
  47.                           int shellcmd);
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.  
  53. #endif    /* !APACHE_UTIL_SCRIPT_H */
  54.