Lines Matching defs: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
30 mod_mmap_static, caches open file handles, not file content.
32 that have an efficient sendfile implementation, caching file handles
33 offers several advantages over caching content. First, the file system
38 as the server runs. On systems that have file change notification,
67 The file will be served out of the file handle cache, but there will be
100 apr_file_t *file;
109 char sizestr[21]; /* big enough to hold any 64-bit file size + null */
137 "invalid file path "
149 "%s isn't a regular file, skipping", fspec);
167 /* WooHoo, we have a file to put in the cache */
173 /* MMAPFile directive. MMAP'ing the file
191 /* CacheFile directive. Caching the file handle */
193 new_file->file = fd;
213 "unable to cache file: %s. Sendfile is not supported on this OS", filename);
224 "unable to cache file: %s. MMAP is not supported by this OS", filename);
270 static int mmap_handler(request_rec *r, a_file *file)
278 apr_mmap_dup(&mm, file->mm, r->pool);
279 b = apr_bucket_mmap_create(mm, 0, (apr_size_t)file->finfo.size,
291 static int sendfile_handler(request_rec *r, a_file *file)
298 apr_brigade_insert_file(bb, file->file, 0, file->finfo.size, r->pool);
325 /* did xlat phase find the file? */
343 /* ap_set_last_modified() always converts the file mtime to a string
386 "A space separated list of files to add to the file handle cache at config time"),