fspr_arch_misc.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. #ifndef MISC_H
  17. #define MISC_H
  18. #include "fspr.h"
  19. #include "fspr_portable.h"
  20. #include "fspr_private.h"
  21. #include "fspr_general.h"
  22. #include "fspr_pools.h"
  23. #include "fspr_getopt.h"
  24. #include "fspr_thread_proc.h"
  25. #include "fspr_file_io.h"
  26. #include "fspr_errno.h"
  27. #include "fspr_getopt.h"
  28. #if APR_HAVE_STDIO_H
  29. #include <stdio.h>
  30. #endif
  31. #if APR_HAVE_SIGNAL_H
  32. #include <signal.h>
  33. #endif
  34. #if APR_HAVE_PTHREAD_H
  35. #include <pthread.h>
  36. #endif
  37. #if APR_HAVE_STDLIB_H
  38. #include <stdlib.h>
  39. #endif
  40. #if APR_HAVE_STRING_H
  41. #include <string.h>
  42. #endif
  43. #ifdef BEOS
  44. #include <kernel/OS.h>
  45. #endif
  46. struct fspr_other_child_rec_t {
  47. fspr_pool_t *p;
  48. struct fspr_other_child_rec_t *next;
  49. fspr_proc_t *proc;
  50. void (*maintenance) (int, void *, int);
  51. void *data;
  52. fspr_os_file_t write_fd;
  53. };
  54. #if defined(WIN32) || defined(NETWARE)
  55. #define WSAHighByte 2
  56. #define WSALowByte 0
  57. #endif
  58. #endif /* ! MISC_H */