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 #include "apr_arch_misc.h" 95 }
while (res == WAIT_ABANDONED);
101 if (res != WAIT_OBJECT_0) {
119 && (res == WAIT_TIMEOUT))
180 char *pos = (
char *)
buf;
181 apr_size_t blocksize;
202 while (rv == 0 &&
size > 0) {
266 char *pos = (
char *)
buf;
267 apr_size_t blocksize;
286 while (rv == 0 &&
size > 0) {
356 timeout_ms = INFINITE;
395 const struct iovec *
vec,
401 apr_size_t bwrote = 0;
405 for (i = 0; i <
nvec; i++) {
407 bwrote =
vec[i].iov_len;
436 rc = apr_file_read(
thefile, ch, &bread);
451 apr_size_t
len = strlen(
str);
462 for (i = 0; i <
len-1; i++) {
476 if (
str[i] ==
'\n') {
488 DWORD numbytes, written = 0;
491 apr_size_t bytesleft;
498 if (bytesleft > APR_DWORD_MAX) {
499 numbytes = APR_DWORD_MAX;
502 numbytes = (
DWORD)bytesleft;
512 bytesleft -= written;
515 }
while (bytesleft > 0);
559 if (apr_file_write_full(
data->fptr,
data->buf,
560 data->vbuff.curpos -
data->buf, NULL)) {
576 if (
data.buf == NULL) {
#define apr_pcalloc(p, size)
apr_status_t apr_file_lock(apr_file_t *thefile, int type)
APR_DECLARE_DATA apr_oslevel_e apr_os_level
typedef DWORD(WINAPI *apr_winapi_fpt_GetCompressedFileSizeA)(IN LPCSTR lpFileName
const struct iovec apr_size_t nvec
typedef LONG(WINAPI *apr_winapi_fpt_NtQueryTimerResolution)(ULONG *pMaxRes
apr_status_t apr_file_unlock(apr_file_t *thefile)
static int file_printf_flush(apr_vformatter_buff_t *buff)
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
static apr_status_t read_with_timeout(apr_file_t *file, void *buf, apr_size_t len_in, apr_size_t *nbytes)
APR general purpose library routines.
apr_vformatter_buff_t vbuff
#define apr_get_os_error()
const void apr_size_t bytes
APR Miscellaneous library routines.
#define APR_FLOCK_EXCLUSIVE
void apr_size_t apr_size_t * bytes_read
apr_interval_time_t timeout
const char apr_file_t * file
#define APR_FOPEN_XTHREAD
apr_thread_mutex_t * mutex
#define APR_FROM_OS_ERROR(e)
#define WaitForSingleObject(h, d)