21 #ifndef APR_PORTABLE_H
22 #define APR_PORTABLE_H
46 #if APR_HAVE_PTHREAD_H
49 #if APR_HAVE_SEMAPHORE_H
50 #include <semaphore.h>
85 typedef struct timeval apr_os_imp_time_t;
86 typedef struct tm apr_os_exp_time_t;
90 #elif defined(__BEOS__)
91 #include <kernel/OS.h>
92 #include <kernel/image.h>
94 struct apr_os_proc_mutex_t {
102 typedef struct apr_os_proc_mutex_t apr_os_proc_mutex_t;
106 typedef struct timeval apr_os_imp_time_t;
107 typedef struct tm apr_os_exp_time_t;
111 #elif defined(NETWARE)
119 typedef struct timeval apr_os_imp_time_t;
120 typedef struct tm apr_os_exp_time_t;
130 struct apr_os_proc_mutex_t {
131 #if APR_HAS_SYSVSEM_SERIALIZE || APR_HAS_FCNTL_SERIALIZE || APR_HAS_FLOCK_SERIALIZE
135 #if APR_HAS_PROC_PTHREAD_SERIALIZE
141 #if APR_USE_PTHREAD_SERIALIZE
146 #if APR_HAS_POSIXSEM_SERIALIZE
155 typedef struct apr_os_proc_mutex_t apr_os_proc_mutex_t;
158 #if APR_HAS_THREADS && APR_HAVE_PTHREAD_H
164 typedef struct timeval apr_os_imp_time_t;
165 typedef struct tm apr_os_exp_time_t;
169 #if defined(HPUX) || defined(HPUX10) || defined(HPUX11)
172 #elif defined(DARWIN)
173 #include <mach-o/dyld.h>
201 #if APR_PROC_MUTEX_IS_GLOBAL || defined(DOXYGEN)
203 #define apr_os_global_mutex_t apr_os_proc_mutex_t
205 #define apr_os_global_mutex_get apr_os_proc_mutex_get
295 #if APR_HAS_THREADS || defined(DOXYGEN)
323 apr_os_thread_t *thethd,
333 apr_os_threadkey_t *thekey,
347 apr_os_thread_t tid2);
362 apr_os_file_t *thefile,
374 apr_os_file_t *thefile,
388 apr_os_file_t *thefile,
389 int register_cleanup,
399 apr_os_dir_t *thedir,
414 apr_os_sock_t *thesock,
438 apr_os_proc_mutex_t *ospmutex,
454 apr_os_proc_mutex_t *ospmutex,
456 int register_cleanup,
466 apr_os_imp_time_t **ostime,
476 apr_os_exp_time_t **ostime,
493 #if APR_HAS_DSO || defined(DOXYGEN)
505 apr_os_dso_handle_t thedso,