apr_file_io.h File Reference

APR File I/O Handling. More...

#include "apr.h"
#include "apr_pools.h"
#include "apr_time.h"
#include "apr_errno.h"
#include "apr_file_info.h"
#include "apr_inherit.h"
#include "apr_want.h"

Go to the source code of this file.


#define APR_READ   0x00001
#define APR_WRITE   0x00002
#define APR_CREATE   0x00004
#define APR_APPEND   0x00008
#define APR_TRUNCATE   0x00010
#define APR_BINARY   0x00020
#define APR_EXCL   0x00040
#define APR_BUFFERED   0x00080
#define APR_DELONCLOSE   0x00100
#define APR_XTHREAD   0x00200
#define APR_SHARELOCK   0x00400
#define APR_FILE_NOCLEANUP   0x00800
#define APR_SENDFILE_ENABLED   0x01000
#define APR_LARGEFILE   0x04000
#define APR_SET   SEEK_SET
#define APR_CUR   SEEK_CUR
#define APR_END   SEEK_END
#define APR_FILE_ATTR_HIDDEN   0x04
#define APR_FLOCK_SHARED   1
#define APR_FLOCK_TYPEMASK   0x000F
#define APR_FLOCK_NONBLOCK   0x0010


typedef apr_uint32_t apr_fileattrs_t
typedef int apr_seek_where_t
typedef apr_file_t apr_file_t


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)
apr_status_t apr_file_close (apr_file_t *file)
apr_status_t apr_file_remove (const char *path, apr_pool_t *cont)
apr_status_t apr_file_rename (const char *from_path, const char *to_path, apr_pool_t *pool)
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_append (const char *from_path, const char *to_path, apr_fileperms_t perms, apr_pool_t *pool)
apr_status_t apr_file_eof (apr_file_t *fptr)
apr_status_t apr_file_open_stderr (apr_file_t **thefile, apr_pool_t *cont)
apr_status_t apr_file_open_stdout (apr_file_t **thefile, apr_pool_t *cont)
apr_status_t apr_file_open_stdin (apr_file_t **thefile, apr_pool_t *cont)
apr_status_t apr_file_read (apr_file_t *thefile, void *buf, apr_size_t *nbytes)
apr_status_t apr_file_write (apr_file_t *thefile, const void *buf, apr_size_t *nbytes)
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_read_full (apr_file_t *thefile, void *buf, apr_size_t nbytes, apr_size_t *bytes_read)
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_putc (char ch, apr_file_t *thefile)
apr_status_t apr_file_getc (char *ch, apr_file_t *thefile)
apr_status_t apr_file_ungetc (char ch, apr_file_t *thefile)
apr_status_t apr_file_gets (char *str, int len, apr_file_t *thefile)
apr_status_t apr_file_puts (const char *str, apr_file_t *thefile)
apr_status_t apr_file_flush (apr_file_t *thefile)
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_dup2 (apr_file_t *new_file, apr_file_t *old_file, apr_pool_t *p)
apr_status_t apr_file_setaside (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 (apr_file_t **in, apr_file_t **out, apr_pool_t *cont)
apr_status_t apr_file_namedpipe_create (const char *filename, apr_fileperms_t perm, apr_pool_t *cont)
apr_status_t apr_file_pipe_timeout_get (apr_file_t *thepipe, apr_interval_time_t *timeout)
apr_status_t apr_file_pipe_timeout_set (apr_file_t *thepipe, apr_interval_time_t timeout)
apr_status_t apr_file_lock (apr_file_t *thefile, int type)
apr_status_t apr_file_unlock (apr_file_t *thefile)
apr_status_t apr_file_name_get (const char **new_path, apr_file_t *thefile)
apr_status_t apr_file_data_get (void **data, const char *key, apr_file_t *file)
apr_status_t apr_file_data_set (apr_file_t *file, void *data, const char *key, apr_status_t(*cleanup)(void *))
int apr_file_printf (apr_file_t *fptr, const char *format,...)
apr_status_t apr_file_perms_set (const char *fname, apr_fileperms_t perms)
apr_status_t apr_file_attrs_set (const char *fname, apr_fileattrs_t attributes, apr_fileattrs_t attr_mask, apr_pool_t *cont)
apr_status_t apr_file_mtime_set (const char *fname, apr_time_t mtime, apr_pool_t *pool)
apr_status_t apr_dir_make (const char *path, apr_fileperms_t perm, apr_pool_t *cont)
apr_status_t apr_dir_make_recursive (const char *path, apr_fileperms_t perm, apr_pool_t *pool)
apr_status_t apr_dir_remove (const char *path, apr_pool_t *cont)
apr_status_t apr_file_info_get (apr_finfo_t *finfo, apr_int32_t wanted, apr_file_t *thefile)
apr_status_t apr_file_trunc (apr_file_t *fp, apr_off_t offset)
apr_int32_t apr_file_flags_get (apr_file_t *f)
apr_pool_tapr_file_pool_get (const apr_file_t *thefile)
apr_status_t apr_file_inherit_set (apr_file_t *thefile)
void apr_file_set_inherit (apr_file_t *file)
apr_status_t apr_file_inherit_unset (apr_file_t *thefile)
void apr_file_unset_inherit (apr_file_t *file)
apr_status_t apr_file_mktemp (apr_file_t **fp, char *templ, apr_int32_t flags, apr_pool_t *p)
apr_status_t apr_temp_dir_get (const char **temp_dir, apr_pool_t *p)

Detailed Description

APR File I/O Handling.

Define Documentation


for apr_file_writev


for SEEK_*

Generated on Mon Nov 26 11:47:26 2007 for Apache Portable Runtime by  doxygen 1.5.2