Lines Matching refs:fn
300 static int mkdir_for_file (char *fn) { in mkdir_for_file() argument
301 for (char *p = fn; (p = strchr(p + 1, '/')) != NULL; ) { in mkdir_for_file()
304 int rc = mkdir(fn, 0700); in mkdir_for_file()
334 static void mod_deflate_cache_file_open (handler_ctx * const hctx, const buffer * const fn) { in mod_deflate_cache_file_open() argument
338 const uint32_t fnlen = buffer_clen(fn); in mod_deflate_cache_file_open()
340 memcpy(hctx->cache_fn, fn->ptr, fnlen); in mod_deflate_cache_file_open()
352 …flate_cache_file_finish (request_st * const r, handler_ctx * const hctx, const buffer * const fn) { in mod_deflate_cache_file_finish() argument
353 if (0 != fdevent_rename(hctx->cache_fn, fn->ptr)) in mod_deflate_cache_file_finish()
358 int rc = http_chunk_append_file_fd(r, fn, hctx->cache_fd, hctx->bytes_out); in mod_deflate_cache_file_finish()
1431 static int mod_deflate_using_libdeflate_err (handler_ctx * const hctx, buffer * const fn, const int… in mod_deflate_using_libdeflate_err() argument
1442 if (0 != unlink(fn->ptr)) in mod_deflate_using_libdeflate_err()
1446 buffer_clear(fn); /*(&p->tmp_buf)*/ in mod_deflate_using_libdeflate_err()
1515 buffer * const fn = hctx->output; /*(&p->tmp_buf)*/ in mod_deflate_using_libdeflate() local
1521 buffer_copy_string_len(fn, BUF_PTR_LEN(&ds->value)); in mod_deflate_using_libdeflate()
1524 buffer_copy_string_len(fn, CONST_STR_LEN("/var/tmp")); in mod_deflate_using_libdeflate()
1525 buffer_append_path_len(fn, CONST_STR_LEN("lighttpd-XXXXXX")); in mod_deflate_using_libdeflate()
1526 fd = fdevent_mkostemp(fn->ptr, 0); in mod_deflate_using_libdeflate()
1536 return mod_deflate_using_libdeflate_err(hctx, fn, fd); in mod_deflate_using_libdeflate()
1543 return mod_deflate_using_libdeflate_err(hctx, fn, fd); in mod_deflate_using_libdeflate()
1581 return mod_deflate_using_libdeflate_err(hctx, fn, fd); in mod_deflate_using_libdeflate()
1586 http_chunk_append_file_fd_range(hctx->r, fn, fd, 0, hctx->bytes_out); in mod_deflate_using_libdeflate()