summaryrefslogtreecommitdiffstats
path: root/support/htcacheclean.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * Whitespace style fixes. No functional change.Ruediger Pluem2020-04-141-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876493 13f79535-47bb-0310-9956-ffa450edef68
* PR64313 htcacheclean: Empty directories in CacheRoot are still present even ↵Jean-Frederic Clere2020-04-141-0/+9
| | | | | | after using "-t" git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876484 13f79535-47bb-0310-9956-ffa450edef68
* -l and -L are not exclusive.Christophe Jaillet2019-08-091-11/+15
| | | | | | | Document the 'G' suffix. Fix some minor style issues. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864784 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling in comments and text files.Rainer Jung2016-08-111-2/+2
| | | | | | | | No functional change. PR 59990 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
* remove unused variablesStefan Fritsch2013-04-051-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1465084 13f79535-47bb-0310-9956-ffa450edef68
* Use apr_file_printf(... "%pm"...) instead of explicit call to apr_strerrorChristophe Jaillet2013-04-041-26/+17
| | | | | | + add some spaces to improve formatting git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1464674 13f79535-47bb-0310-9956-ffa450edef68
* * support/htcacheclean.c (main): Ensure -p was used before attemptingJoe Orton2013-01-211-4/+4
| | | | | | | to process URL arguments. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436401 13f79535-47bb-0310-9956-ffa450edef68
* Fix htcacheclean list options "-a" and "-A".Rainer Jung2013-01-141-1/+1
| | | | | | | No filetype without APR_FINFO_TYPE. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433001 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-2/+2
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
* Use APR_STATUS_IS_... in some more cases.Stefan Fritsch2011-05-121-4/+4
| | | | | | | | While this is not strictly necessary everywhere, it makes it much easier to find the problematic cases. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1102124 13f79535-47bb-0310-9956-ffa450edef68
* fix some dead assignments found by the clang analyzerJeff Trawick2011-04-301-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1098162 13f79535-47bb-0310-9956-ffa450edef68
* Some more casts to make MSVC calm ...Guenter Knauf2010-11-301-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1040791 13f79535-47bb-0310-9956-ffa450edef68
* Fixed return type to silent compiler warning.Guenter Knauf2010-11-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1040733 13f79535-47bb-0310-9956-ffa450edef68
* mod_disk_cache renamed to mod_cache_disk, to be consistent with theGraham Leggett2010-11-201-1/+1
| | | | | | | naming of other modules. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1037229 13f79535-47bb-0310-9956-ffa450edef68
* Remove workaround that was only necessary when htcacheclean included httpd.hStefan Fritsch2010-11-111-7/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1034018 13f79535-47bb-0310-9956-ffa450edef68
* More splitting as suggested by minfrin.Guenter Knauf2010-11-111-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1033952 13f79535-47bb-0310-9956-ffa450edef68
* Splitted off cache defines/structs used by htcacheclean.Guenter Knauf2010-11-111-1/+1
| | | | | | | | This makes htcacheclean again independent from httpd.h. Submitted by: NormW <normw gknw net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1033779 13f79535-47bb-0310-9956-ffa450edef68
* Fix compilation of htcacheclean with enable-maintainer-mode / AP_DEBUGStefan Fritsch2010-10-181-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1023939 13f79535-47bb-0310-9956-ffa450edef68
* htcacheclean: Teach htcacheclean to limit cache size by number ofGraham Leggett2010-10-131-72/+217
| | | | | | | | | | | inodes in addition to size of files. Prevents a cache disk from running out of space when many small files are cached. Move the directory delete process to the "purge" section, so that inode counts are accurate when querying for stats only. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1022230 13f79535-47bb-0310-9956-ffa450edef68
* Fix a segfault when tmpfiles are encountered while cleaning.Graham Leggett2010-10-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1004987 13f79535-47bb-0310-9956-ffa450edef68
* Ensure the correct pool is passed in when listing URLs.Graham Leggett2010-10-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1004641 13f79535-47bb-0310-9956-ffa450edef68
* htcacheclean: Allow the listing of valid URLs within the cache, withGraham Leggett2010-10-051-4/+225
| | | | | | | the option to list entry metadata such as sizes and times. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1004482 13f79535-47bb-0310-9956-ffa450edef68
* htcacheclean: Allow the option to round up file sizes to a givenGraham Leggett2010-09-291-15/+48
| | | | | | | block size, improving the accuracy of disk usage. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1002854 13f79535-47bb-0310-9956-ffa450edef68
* mod_disk_cache: Instead of creating an empty data file when the body isGraham Leggett2010-09-291-1/+38
| | | | | | | empty, don't create a file at all, saving inodes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1002832 13f79535-47bb-0310-9956-ffa450edef68
* htcacheclean: If the cache file format is unrecognised, remove the entryGraham Leggett2010-09-291-0/+6
| | | | | | | from the cache. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1002686 13f79535-47bb-0310-9956-ffa450edef68
* htcacheclean: Introduce the ability to clean specific URLs from theGraham Leggett2010-03-301-3/+241
| | | | | | | cache, if provided as an optional parameter on the command line. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@928921 13f79535-47bb-0310-9956-ffa450edef68
* htcacheclean: Report additional statistics about entries deleted.Graham Leggett2010-03-271-45/+70
| | | | | | | | PR: 48944 Submitted by: Mark Drayton mark markdrayton.info git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@928223 13f79535-47bb-0310-9956-ffa450edef68
* Create the pidfile world readable by adding APR_FPROT_WREAD. UseGraham Leggett2010-02-271-3/+4
| | | | | | | non-deprecated versions of the APR constants. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@917005 13f79535-47bb-0310-9956-ffa450edef68
* Try open the pid file twice, once before daemonisation so we can see anyGraham Leggett2010-02-271-19/+40
| | | | | | | | error, and once after daemonisation so the child's pid is logged correctly. Patch by Jeff Trawick. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@917002 13f79535-47bb-0310-9956-ffa450edef68
* Make sure the pidfile is deleted on close.Graham Leggett2010-02-171-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910756 13f79535-47bb-0310-9956-ffa450edef68
* Use APR_PID_T_FMT instead of %ld and a cast.Graham Leggett2010-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910747 13f79535-47bb-0310-9956-ffa450edef68
* Fix the help description.Graham Leggett2010-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910735 13f79535-47bb-0310-9956-ffa450edef68
* support/htcacheclean: Teach it how to write a pid file (modelled onGraham Leggett2010-02-161-4/+31
| | | | | | | | httpd's writing of a pid file) so that it becomes possible to run more than one instance of htcacheclean on the same machine. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910705 13f79535-47bb-0310-9956-ffa450edef68
* fix or complain about some invalid errno referencesJeff Trawick2009-11-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@882269 13f79535-47bb-0310-9956-ffa450edef68
* Detab.Daniel Earl Poirier2009-09-181-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@816701 13f79535-47bb-0310-9956-ffa450edef68
* simplify reporting of the repeated argument errorJeff Trawick2009-09-151-9/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@815448 13f79535-47bb-0310-9956-ffa450edef68
* Move declaration to remove a compiler warning.Graham Leggett2009-09-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@814779 13f79535-47bb-0310-9956-ffa450edef68
* * Detab.Ruediger Pluem2009-09-121-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@814113 13f79535-47bb-0310-9956-ffa450edef68
* htcacheclean: 19 ways to fail, 1 error message. Fixed.Graham Leggett2009-09-121-24/+41
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@814091 13f79535-47bb-0310-9956-ffa450edef68
* * The header file is still needed in this case. So prevent it from beingRuediger Pluem2009-01-051-0/+1
| | | | | | | deleted. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@731535 13f79535-47bb-0310-9956-ffa450edef68
* * Fix style by doing correct indentingRuediger Pluem2008-05-141-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@656413 13f79535-47bb-0310-9956-ffa450edef68
* Check return value of apr_file_read_full.Paul Querna2008-05-141-5/+7
| | | | | | | Reported By: BOYA SUN <boya.sun case.edu> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@656401 13f79535-47bb-0310-9956-ffa450edef68
* Multiple trivial fixes from Christophe JAILLETNick Kew2007-07-201-3/+1
| | | | | | | | | PR 38699, 39518, 42005, 42006, 42007, 42008, 42009 The patches are all his, and are sufficiently trivial to review at a glance. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@557837 13f79535-47bb-0310-9956-ffa450edef68
* Add a missing include of apr_buckets.h. [Martin Kraemer]Graham Leggett2006-10-161-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@464638 13f79535-47bb-0310-9956-ffa450edef68
* update license header textRoy T. Fielding2006-07-111-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420983 13f79535-47bb-0310-9956-ffa450edef68
* Update the copyright year in all .c, .h and .xml filesColm MacCarthaigh2006-04-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
* No functional Change: Removing trailing whitespace. This alsoJim Jagielski2005-11-101-6/+6
| | | | | | | | means that "blank" lines consisting of just spaces or tabs are now really blank lines git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332306 13f79535-47bb-0310-9956-ffa450edef68
* No functional change: simple detabbing of indented code.Jim Jagielski2005-11-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332305 13f79535-47bb-0310-9956-ffa450edef68
* Allow htcacheclean to deal in gigabytes.Colm MacCarthaigh2005-08-261-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@240297 13f79535-47bb-0310-9956-ffa450edef68
* Add APR_FOPEN_BINARY to the options passed to apr for opening the Colm MacCarthaigh2005-08-231-4/+4
| | | | | | | | cache header files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@239436 13f79535-47bb-0310-9956-ffa450edef68