Lines Matching refs:file
2 * contributor license agreements. See the NOTICE file distributed with
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
20 APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file,
26 apr_thread_mutex_lock(file->mutex);
28 if(file->buffered) {
30 rv = apr_file_flush(file);
32 apr_thread_mutex_unlock(file->mutex);
37 file->buffer = buffer;
38 file->bufsize = bufsize;
39 file->buffered = 1;
40 file->bufpos = 0;
41 file->direction = 0;
42 file->dataRead = 0;
44 if (file->bufsize == 0) {
48 file->buffered = 0;
51 apr_thread_mutex_unlock(file->mutex);
56 APR_DECLARE(apr_size_t) apr_file_buffer_size_get(apr_file_t *file)
58 return file->bufsize;