summaryrefslogtreecommitdiff
path: root/src/stat_cache.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-09-29 13:38:29 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-10-11 12:19:27 -0400
commit86e5f09062c20bc2287e91d3d70ccbf9c065805d (patch)
tree74326d43b9ab7da8f34909cc1fe89798b5f7d7d1 /src/stat_cache.h
parented297e7e67bdbcca4ee8460d919741fba47630a2 (diff)
downloadlighttpd-git-86e5f09062c20bc2287e91d3d70ccbf9c065805d.tar.gz
[core] perf adjustments to avoid load miss
Diffstat (limited to 'src/stat_cache.h')
-rw-r--r--src/stat_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stat_cache.h b/src/stat_cache.h
index 41e00833..a7341820 100644
--- a/src/stat_cache.h
+++ b/src/stat_cache.h
@@ -50,7 +50,10 @@ void stat_cache_delete_entry(const char *name, uint32_t len);
void stat_cache_delete_dir(const char *name, uint32_t len);
void stat_cache_invalidate_entry(const char *name, uint32_t len);
stat_cache_entry * stat_cache_get_entry(const buffer *name);
+
+__attribute_cold__
int stat_cache_path_contains_symlink(const buffer *name, log_error_st *errh);
+
int stat_cache_open_rdonly_fstat (const buffer *name, struct stat *st, int symlinks);
void stat_cache_trigger_cleanup(void);