32 #define APR_WANT_STDIO
33 #define APR_WANT_IOVEC
54 #define APR_FOPEN_READ 0x00001
55 #define APR_FOPEN_WRITE 0x00002
56 #define APR_FOPEN_CREATE 0x00004
57 #define APR_FOPEN_APPEND 0x00008
58 #define APR_FOPEN_TRUNCATE 0x00010
60 #define APR_FOPEN_BINARY 0x00020
63 #define APR_FOPEN_EXCL 0x00040
65 #define APR_FOPEN_BUFFERED 0x00080
66 #define APR_FOPEN_DELONCLOSE 0x00100
67 #define APR_FOPEN_XTHREAD 0x00200
70 #define APR_FOPEN_SHARELOCK 0x00400
74 #define APR_FOPEN_NOCLEANUP 0x00800
79 #define APR_FOPEN_SENDFILE_ENABLED 0x01000
82 #define APR_FOPEN_LARGEFILE 0x04000
85 #define APR_FOPEN_SPARSE 0x08000
88 #define APR_FOPEN_NONBLOCK 0x40000
93 #define APR_READ APR_FOPEN_READ
94 #define APR_WRITE APR_FOPEN_WRITE
95 #define APR_CREATE APR_FOPEN_CREATE
96 #define APR_APPEND APR_FOPEN_APPEND
97 #define APR_TRUNCATE APR_FOPEN_TRUNCATE
98 #define APR_BINARY APR_FOPEN_BINARY
99 #define APR_EXCL APR_FOPEN_EXCL
100 #define APR_BUFFERED APR_FOPEN_BUFFERED
101 #define APR_DELONCLOSE APR_FOPEN_DELONCLOSE
102 #define APR_XTHREAD APR_FOPEN_XTHREAD
103 #define APR_SHARELOCK APR_FOPEN_SHARELOCK
104 #define APR_FILE_NOCLEANUP APR_FOPEN_NOCLEANUP
105 #define APR_SENDFILE_ENABLED APR_FOPEN_SENDFILE_ENABLED
106 #define APR_LARGEFILE APR_FOPEN_LARGEFILE
145 #define APR_SET SEEK_SET
147 #define APR_CUR SEEK_CUR
149 #define APR_END SEEK_END
158 #define APR_FILE_ATTR_READONLY 0x01
159 #define APR_FILE_ATTR_EXECUTABLE 0x02
160 #define APR_FILE_ATTR_HIDDEN 0x04
168 #define APR_MAX_IOVEC_SIZE 1024
170 #elif defined(IOV_MAX)
171 #define APR_MAX_IOVEC_SIZE IOV_MAX
172 #elif defined(MAX_IOVEC)
173 #define APR_MAX_IOVEC_SIZE MAX_IOVEC
175 #define APR_MAX_IOVEC_SIZE 1024
196 #define APR_FLOCK_SHARED 1
202 #define APR_FLOCK_EXCLUSIVE 2
207 #define APR_FLOCK_TYPEMASK 0x000F
208 #define APR_FLOCK_NONBLOCK 0x0010
289 const
char *to_path);
486 const struct iovec *vec,
487 apr_size_t nvec, apr_size_t *nbytes);
511 apr_size_t *bytes_read);
536 apr_size_t *bytes_written);
553 const struct iovec *vec,
684 apr_seek_where_t where,
725 apr_int32_t blocking,
812 const
char *format, ...)
813 __attribute__((format(printf,2,3)));
847 apr_fileattrs_t attributes,
848 apr_fileattrs_t attr_mask,
apr_status_t apr_file_flush(apr_file_t *thefile)
apr_status_t apr_file_pipe_create(apr_file_t **in, apr_file_t **out, apr_pool_t *pool)
apr_status_t apr_file_open_flags_stdout(apr_file_t **thefile, apr_int32_t flags, apr_pool_t *pool)
apr_status_t apr_file_lock(apr_file_t *thefile, int type)
apr_status_t apr_file_copy(const char *from_path, const char *to_path, apr_fileperms_t perms, apr_pool_t *pool)
apr_status_t apr_file_name_get(const char **new_path, apr_file_t *thefile)
apr_status_t apr_file_remove(const char *path, apr_pool_t *pool)
apr_status_t apr_file_mtime_set(const char *fname, apr_time_t mtime, apr_pool_t *pool)
apr_status_t apr_file_eof(apr_file_t *fptr)
apr_status_t apr_temp_dir_get(const char **temp_dir, apr_pool_t *p)
apr_status_t apr_dir_remove(const char *path, apr_pool_t *pool)
apr_status_t apr_file_open_flags_stderr(apr_file_t **thefile, apr_int32_t flags, apr_pool_t *pool)
apr_status_t apr_file_sync(apr_file_t *thefile)
apr_status_t apr_file_info_get(apr_finfo_t *finfo, apr_int32_t wanted, apr_file_t *thefile)
APR File Handle Inheritance Helpers.
apr_status_t apr_file_read_full(apr_file_t *thefile, void *buf, apr_size_t nbytes, apr_size_t *bytes_read)
apr_int32_t apr_file_flags_get(apr_file_t *f)
APR Standard Headers Support.
apr_status_t apr_file_read(apr_file_t *thefile, void *buf, apr_size_t *nbytes)
apr_status_t apr_file_datasync(apr_file_t *thefile)
apr_status_t apr_file_unlock(apr_file_t *thefile)
apr_status_t apr_file_puts(const char *str, apr_file_t *thefile)
apr_status_t apr_file_setaside(apr_file_t **new_file, apr_file_t *old_file, apr_pool_t *p)
apr_int64_t apr_interval_time_t
Definition: apr_time.h:56
#define APR_DECLARE_INHERIT_SET(type)
Definition: apr_inherit.h:35
apr_status_t apr_file_write_full(apr_file_t *thefile, const void *buf, apr_size_t nbytes, apr_size_t *bytes_written)
apr_status_t apr_file_dup2(apr_file_t *new_file, apr_file_t *old_file, apr_pool_t *p)
apr_status_t apr_file_open_flags_stdin(apr_file_t **thefile, apr_int32_t flags, apr_pool_t *pool)
apr_status_t apr_file_append(const char *from_path, const char *to_path, apr_fileperms_t perms, apr_pool_t *pool)
apr_status_t apr_dir_make(const char *path, apr_fileperms_t perm, apr_pool_t *pool)
struct apr_file_t apr_file_t
Definition: apr_file_io.h:209
apr_int64_t apr_time_t
Definition: apr_time.h:46
apr_status_t apr_file_namedpipe_create(const char *filename, apr_fileperms_t perm, apr_pool_t *pool)
apr_status_t apr_file_trunc(apr_file_t *fp, apr_off_t offset)
apr_status_t apr_file_open_stderr(apr_file_t **thefile, apr_pool_t *pool)
apr_int32_t apr_fileperms_t
Definition: apr_file_info.h:125
apr_status_t apr_file_gets(char *str, int len, apr_file_t *thefile)
apr_status_t apr_file_open_stdout(apr_file_t **thefile, apr_pool_t *pool)
apr_status_t apr_file_data_set(apr_file_t *file, void *data, const char *key, apr_status_t(*cleanup)(void *))
apr_status_t apr_file_open_stdin(apr_file_t **thefile, apr_pool_t *pool)
APR Platform Definitions.
apr_status_t apr_file_pipe_timeout_get(apr_file_t *thepipe, apr_interval_time_t *timeout)
apr_status_t apr_file_mktemp(apr_file_t **fp, char *templ, apr_int32_t flags, apr_pool_t *p)
apr_status_t apr_file_dup(apr_file_t **new_file, apr_file_t *old_file, apr_pool_t *p)
apr_status_t apr_file_seek(apr_file_t *thefile, apr_seek_where_t where, apr_off_t *offset)
apr_status_t apr_file_pipe_create_ex(apr_file_t **in, apr_file_t **out, apr_int32_t blocking, apr_pool_t *pool)
apr_uint32_t apr_fileattrs_t
Definition: apr_file_io.h:201
apr_status_t apr_file_writev(apr_file_t *thefile, const struct iovec *vec, apr_size_t nvec, apr_size_t *nbytes)
apr_status_t apr_file_pipe_timeout_set(apr_file_t *thepipe, apr_interval_time_t timeout)
apr_status_t apr_file_data_get(void **data, const char *key, apr_file_t *file)
int apr_file_printf(apr_file_t *fptr, const char *format,...)
apr_status_t apr_file_close(apr_file_t *file)
#define APR_DECLARE_INHERIT_UNSET(type)
Definition: apr_inherit.h:47
apr_status_t apr_file_rename(const char *from_path, const char *to_path, apr_pool_t *pool)
apr_status_t apr_file_getc(char *ch, apr_file_t *thefile)
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_status_t apr_file_perms_set(const char *fname, apr_fileperms_t perms)
int apr_status_t
Definition: apr_errno.h:44
apr_status_t apr_dir_make_recursive(const char *path, apr_fileperms_t perm, apr_pool_t *pool)
apr_size_t apr_file_buffer_size_get(apr_file_t *thefile)
apr_status_t apr_file_writev_full(apr_file_t *thefile, const struct iovec *vec, apr_size_t nvec, apr_size_t *nbytes)
apr_status_t apr_file_open(apr_file_t **newf, const char *fname, apr_int32_t flag, apr_fileperms_t perm, apr_pool_t *pool)
#define APR_POOL_DECLARE_ACCESSOR(type)
Definition: apr_pools.h:81
apr_status_t apr_file_ungetc(char ch, apr_file_t *thefile)
apr_status_t apr_file_attrs_set(const char *fname, apr_fileattrs_t attributes, apr_fileattrs_t attr_mask, apr_pool_t *pool)
Definition: apr_file_info.h:174
apr_status_t apr_file_write(apr_file_t *thefile, const void *buf, apr_size_t *nbytes)
int apr_seek_where_t
Definition: apr_file_io.h:204
apr_status_t apr_file_putc(char ch, apr_file_t *thefile)
apr_status_t apr_file_link(const char *from_path, const char *to_path)
apr_status_t apr_file_buffer_set(apr_file_t *thefile, char *buffer, apr_size_t bufsize)