2002-06-07  Kenneth Kocienda  <kocienda@apple.com>
2002-06-07  Kenneth Kocienda  <kocienda@apple.com>

        Reviewed by: Darin Adler

        Fix for this bug:

        Radar 2936676 (IFURLFileDatabase should be smarter about expiring cache files)

        This patch adds code to generate a list of cache files sorted by file system
        access time. This list is then used to expire least recently used cache
        files first.

	* Database.subproj/IFURLFileDatabase.m:
	(compare_atimes): New function
	(IFPtrEqual): New function
	(IFFileAccessTimeRelease): New function
	(CreateArrayListingFilesSortedByAccessTime): New function
	(-[IFURLFileDatabase truncateToSizeLimit:]): Uses new functions


git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@1300 bbb929c8-8fbe-4397-9dbb-9b2b20218538
nwjs/blink,jtg-gg/blink,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,ondra-novak/blink,smishenk/blink-crosswalk,primiano/blink-gitcs,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,jtg-gg/blink,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,nwjs/blink,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,nwjs/blink,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,jtg-gg/blink,PeterWangIntel/blink-crosswalk,jtg-gg/blink,crosswalk-project/blink-crosswalk-efl,primiano/blink-gitcs,kurli/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,XiaosongWei/blink-crosswalk,primiano/blink-gitcs,smishenk/blink-crosswalk,jtg-gg/blink,ondra-novak/blink,PeterWangIntel/blink-crosswalk,nwjs/blink,nwjs/blink,smishenk/blink-crosswalk,kurli/blink-crosswalk,primiano/blink-gitcs,crosswalk-project/blink-crosswalk-efl,modulexcite/blink,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,nwjs/blink,smishenk/blink-crosswalk,modulexcite/blink,modulexcite/blink,primiano/blink-gitcs,smishenk/blink-crosswalk,ondra-novak/blink,modulexcite/blink,jtg-gg/blink,modulexcite/blink,jtg-gg/blink,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,smishenk/blink-crosswalk,primiano/blink-gitcs,ondra-novak/blink,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,primiano/blink-gitcs,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,ondra-novak/blink,jtg-gg/blink,primiano/blink-gitcs,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,modulexcite/blink,nwjs/blink,jtg-gg/blink,PeterWangIntel/blink-crosswalk,primiano/blink-gitcs,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,modulexcite/blink,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,ondra-novak/blink,ondra-novak/blink,kurli/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk