21#include "apr_private.h"
29#ifndef WAITIO_USES_POLL
37#if APR_HAVE_SYS_TYPES_H
67#if APR_HAVE_SYS_TIME_H
74#ifdef HAVE_SYS_PARAM_H
81# include <sys/socket.h>
84# include <sys/ioctl.h>
89#define APR_FILE_DEFAULT_BUFSIZE 4096
91#define APR_FILE_BUFSIZE APR_FILE_DEFAULT_BUFSIZE
104#ifndef WAITIO_USES_POLL
121#define file_lock(f) do { \
123 apr_thread_mutex_lock((f)->thlock); \
125#define file_unlock(f) do { \
127 apr_thread_mutex_unlock((f)->thlock); \
130#define file_lock(f) do {} while (0)
131#define file_unlock(f) do {} while (0)
134#if APR_HAS_LARGE_FILES && defined(_LARGEFILE64_SOURCE)
135#define stat(f,b) stat64(f,b)
136#define lstat(f,b) lstat64(f,b)
137#define fstat(f,b) fstat64(f,b)
138#define lseek(f,o,w) lseek64(f,o,w)
139#define ftruncate(f,l) ftruncate64(f,l)
146#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) \
147 && !defined(READDIR_IS_THREAD_SAFE) && defined(HAVE_READDIR64_R)
148#define APR_USE_READDIR64_R
155#ifdef APR_USE_READDIR64_R
APR Miscellaneous library routines.
APR general purpose library routines.
APR Thread Mutex Routines.
apr_dbd_transaction_t int mode
apr_int32_t apr_fileperms_t
const char apr_fileperms_t perms
const char apr_int32_t wanted
apr_int64_t apr_interval_time_t
mode_t apr_unix_perms2mode(apr_fileperms_t perms)
apr_status_t apr_unix_file_cleanup(void *)
apr_fileperms_t apr_unix_mode2perms(mode_t mode)
apr_status_t apr_unix_child_file_cleanup(void *)
apr_status_t apr_file_flush_locked(apr_file_t *thefile)
apr_status_t apr_file_info_get_locked(apr_finfo_t *finfo, apr_int32_t wanted, apr_file_t *thefile)
apr_interval_time_t timeout
enum apr_file_t::@57 blocking