Apache HTTPD
Macros | Typedefs | Functions | Variables
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.

Macros

#define APR_WANT_STDIO
 
#define APR_WANT_IOVEC
 
#define APR_FOPEN_READ   0x00001
 
#define APR_FOPEN_WRITE   0x00002
 
#define APR_FOPEN_CREATE   0x00004
 
#define APR_FOPEN_APPEND   0x00008
 
#define APR_FOPEN_TRUNCATE   0x00010
 
#define APR_FOPEN_BINARY   0x00020
 
#define APR_FOPEN_EXCL   0x00040
 
#define APR_FOPEN_BUFFERED   0x00080
 
#define APR_FOPEN_DELONCLOSE   0x00100
 
#define APR_FOPEN_XTHREAD   0x00200
 
#define APR_FOPEN_SHARELOCK   0x00400
 
#define APR_FOPEN_NOCLEANUP   0x00800
 
#define APR_FOPEN_SENDFILE_ENABLED   0x01000
 
#define APR_FOPEN_LARGEFILE   0x04000
 
#define APR_FOPEN_SPARSE   0x08000
 
#define APR_FOPEN_NONBLOCK   0x40000
 
#define APR_READ   APR_FOPEN_READ
 
#define APR_WRITE   APR_FOPEN_WRITE
 
#define APR_CREATE   APR_FOPEN_CREATE
 
#define APR_APPEND   APR_FOPEN_APPEND
 
#define APR_TRUNCATE   APR_FOPEN_TRUNCATE
 
#define APR_BINARY   APR_FOPEN_BINARY
 
#define APR_EXCL   APR_FOPEN_EXCL
 
#define APR_BUFFERED   APR_FOPEN_BUFFERED
 
#define APR_DELONCLOSE   APR_FOPEN_DELONCLOSE
 
#define APR_XTHREAD   APR_FOPEN_XTHREAD
 
#define APR_SHARELOCK   APR_FOPEN_SHARELOCK
 
#define APR_FILE_NOCLEANUP   APR_FOPEN_NOCLEANUP
 
#define APR_SENDFILE_ENABLED   APR_FOPEN_SENDFILE_ENABLED
 
#define APR_LARGEFILE   APR_FOPEN_LARGEFILE
 
#define APR_SET   SEEK_SET
 
#define APR_CUR   SEEK_CUR
 
#define APR_END   SEEK_END
 
#define APR_FILE_ATTR_READONLY   0x01
 
#define APR_FILE_ATTR_EXECUTABLE   0x02
 
#define APR_FILE_ATTR_HIDDEN   0x04
 
#define APR_MAX_IOVEC_SIZE   1024
 
#define APR_FLOCK_SHARED   1
 
#define APR_FLOCK_EXCLUSIVE   2
 
#define APR_FLOCK_TYPEMASK   0x000F
 
#define APR_FLOCK_NONBLOCK   0x0010
 

Typedefs

typedef apr_uint32_t apr_fileattrs_t
 
typedef int apr_seek_where_t
 
typedef struct apr_file_t apr_file_t
 

Functions

 APR_DECLARE (apr_status_t) apr_file_open(apr_file_t **newf
 
 APR_DECLARE (apr_size_t) apr_file_buffer_size_get(apr_file_t *thefile)
 
 APR_DECLARE_NONSTD (int) apr_file_printf(apr_file_t *fptr
 
const char __attribute__ ((format(printf, 2, 3)))
 
 APR_DECLARE (apr_int32_t) apr_file_flags_get(apr_file_t *f)
 
 APR_DECLARE (apr_pool_t *) apr_file_pool_get(const apr_file_t *thefile)
 

Variables

const charfname
 
const char apr_int32_t flag
 
const char apr_int32_t apr_fileperms_t perm
 
const char apr_int32_t apr_fileperms_t apr_pool_tpool
 
const charto_path
 
const char apr_fileperms_t perms
 
apr_int32_t flags
 
void * buf
 
void apr_size_tnbytes
 
const struct iovecvec
 
const struct iovec apr_size_t nvec
 
void apr_size_t apr_size_tbytes_read
 
const void apr_size_t apr_size_tbytes_written
 
apr_file_tthefile
 
int len
 
apr_file_told_file
 
apr_file_t apr_pool_tp
 
charbuffer
 
char apr_size_t bufsize
 
apr_seek_where_t where
 
apr_seek_where_t apr_off_toffset
 
apr_file_t ** out
 
apr_file_t apr_int32_t blocking
 
apr_file_t apr_int32_t apr_pool_tpool_in
 
apr_file_t apr_int32_t apr_pool_t apr_pool_tpool_out
 
apr_interval_time_ttimeout
 
int type
 
const charkey
 
const char apr_file_tfile
 
void * data
 
void const char apr_status_t(* cleanup )(void *))
 
const charformat
 
apr_fileattrs_t attributes
 
apr_fileattrs_t apr_fileattrs_t attr_mask
 
apr_time_t mtime
 
apr_int32_t wanted
 
chartempl
 

Detailed Description

APR File I/O Handling.

Definition in file apr_file_io.h.

Macro Definition Documentation

◆ APR_WANT_IOVEC

#define APR_WANT_IOVEC

for apr_file_writev

Definition at line 33 of file apr_file_io.h.

◆ APR_WANT_STDIO

#define APR_WANT_STDIO

for SEEK_*

Definition at line 32 of file apr_file_io.h.