Commit Graph

44 Commits (01ad42372ff9b3385bd25412b761d7af63a6b7ae)

Author SHA1 Message Date
John Keeping b31e99887b cache: close race window when unlocking slots 7 years ago
Ville Skyttä 67d0f87050 global: spelling fixes 7 years ago
John Keeping 3b485cc542 cache: flush stdio before restoring FDs 8 years ago
John Keeping 33bc949a1e cache: don't check for match with no key 9 years ago
John Keeping 3fbfced740 cache: use size_t for string lengths 9 years ago
Christian Hesse 76dc7a3371 cache: fix resource leak: close file handle before return 10 years ago
John Keeping 43620cf6aa cache.c: fix header order 10 years ago
John Keeping 80d52079f7 cache: don't use an integer as a NULL pointer 10 years ago
John Keeping db9a70b159 cache: use F_SETLK to avoid stale lock files 10 years ago
Lukas Fleischer 6ceba453a2 Skip cache slot when time-to-live is zero 11 years ago
Sebastian Andrzej Siewior d3581b5889 cache: use sendfile() instead of a pair of read() + write() 11 years ago
Lukas Fleischer f60ffa143c Switch to exclusively using global ctx 11 years ago
John Keeping 382ecf152e cache: don't leave cache_slot fields uninitialized 11 years ago
Lukas Fleischer f7f26f8875 Update copyright information 11 years ago
John Keeping f32a2da636 cache.c: cache ls_cache output properly 12 years ago
John Keeping f75900b04f cache.c: fix cache_ls 12 years ago
John Keeping fb3655df3b use struct strbuf instead of static buffers 12 years ago
Lukas Fleischer bafab423f2 Mark several functions/variables static 12 years ago
Jason A. Donenfeld bdae1d8a8d White space around control verbs. 12 years ago
Lukas Fleischer 53bc747d31 Fix several whitespace errors 12 years ago
Ramsay Jones bdd4a56ad5 Fix some warnings to allow -Werror 17 years ago
Lars Hjemli 2cecf839a0 cache.c: use %zd for off_t argument 17 years ago
Lars Hjemli dd7c172542 cache.c: fix error checking in print_slot() 17 years ago
Lars Hjemli af2e75616d cache.c: do not ignore errors from print_slot() 17 years ago
Lars Hjemli cdc6b2f8e7 cache.c: use xread()/xwrite() from libgit 17 years ago
Lars Hjemli d402811bd2 cache.c: make all io-related functions return errno on error 17 years ago
Lars Hjemli 6102bcfce4 cache.c: read(2) returns -1 on error, not 0 17 years ago
Lars Hjemli 9000bbf865 Add page 'ls_cache' 17 years ago
Lars Hjemli 939d32fda7 Redesign the caching layer 17 years ago
Lars Hjemli ee4056bd2c Add cache.h 17 years ago
Lars Hjemli d1f3bbe9d2 Move cgit_repo into cgit_context 17 years ago
Lars Hjemli b228d4ff82 Add all config variables into struct cgit_context 17 years ago
Lars Hjemli d14d77fe95 Introduce struct cgit_context 17 years ago
Lars Hjemli 72fa5c63f8 cache_safe_filename() needs more buffers 18 years ago
Lars Hjemli 30ccdcaa74 Enable url=value querystring parameter 18 years ago
Lars Hjemli 2c2047ff67 Remove troublesome chars from cachefile names 18 years ago
Lars Hjemli 83a5f35a27 Move cache_prepare() to cgit 18 years ago
Lars Hjemli 7c849d94ec Allow relative paths for cgit_cache_root 18 years ago
Lars Hjemli 58d04f6523 cache_lock: do xstrdup/free on lockfile 18 years ago
Lars Hjemli fbaf1171b4 Don't truncate valid cachefiles 18 years ago
Lars Hjemli 318d106300 Avoid infinite loops in caching layer 18 years ago
Lars Hjemli f5069d88df Fix cache algorithm loophole 18 years ago
Lars Hjemli 7640d90b73 Add license file and copyright notices 18 years ago
Lars Hjemli 25105d7eca Add caching infrastructure 18 years ago