apr
1.7.0
About: APR (Apache Portable Runtime) project offers software libraries that provide a predictable and consistent interface to underlying platform-specific implementations (APR core library). Fossies Dox: apr-1.7.0.tar.bz2 ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 17 #include "apr_arch_file_io.h" 25 #define USE_WAIT_FOR_IO 32 char *pos = (
char *)
buf;
33 apr_uint64_t blocksize;
53 while (rv == 0 &&
size > 0) {
62 else if (bytesread == -1) {
117 }
while (rv == -1 && errno == EINTR);
118 #ifdef USE_WAIT_FOR_IO 120 (errno == EAGAIN || errno == EWOULDBLOCK) &&
130 }
while (rv == -1 && errno == EINTR);
152 char *pos = (
char *)
buf;
170 while (rv == 0 &&
size > 0) {
189 }
while (rv == (apr_size_t)-1 && errno == EINTR);
190 #ifdef USE_WAIT_FOR_IO 191 if (rv == (apr_size_t)-1 &&
192 (errno == EAGAIN || errno == EWOULDBLOCK) &&
203 }
while (rv == (apr_size_t)-1 && errno == EINTR);
204 if (rv == (apr_size_t)-1 &&
205 (errno == EAGAIN || errno == EWOULDBLOCK)) {
217 if (rv == (apr_size_t)-1) {
314 apr_ssize_t written = 0, ret;
321 }
while (written < thefile->bufpos &&
322 (ret > 0 || (ret == -1 && errno == EINTR)));
388 #ifdef HAVE_FDATASYNC 390 #elif defined(F_FULLFSYNC) 407 const char *str_start =
str;
408 char *
final =
str +
len - 1;
434 while (
str <
final) {
456 while (
str <
final) {
474 if (
str > str_start) {
493 if (apr_file_write_full(
data->fptr,
data->buf,
494 data->vbuff.curpos -
data->buf, NULL)) {
511 if (
data.buf == NULL) {
apr_status_t apr_file_flush_locked(apr_file_t *thefile)
const struct iovec apr_size_t nvec
static apr_status_t file_read_buffered(apr_file_t *thefile, void *buf, apr_size_t *nbytes)
apr_seek_where_t apr_off_t * offset
APR_DECLARE(apr_status_t)
apr_vformatter_buff_t const char va_list ap
const char apr_ssize_t int apr_size_t * len
apr_vformatter_buff_t vbuff
#define apr_get_os_error()
const void apr_size_t bytes
void apr_size_t apr_size_t * bytes_read
apr_interval_time_t timeout
apr_status_t apr_wait_for_io_or_timeout(apr_file_t *f, apr_socket_t *s, int for_read)
static int file_printf_flush(apr_vformatter_buff_t *buff)
APR Thread Mutex Routines.