Home
last modified time | relevance | path

Searched refs:cache_file (Results 1 – 25 of 4971) sorted by relevance

12345678910>>...199

/dports/graphics/blender/blender-2.91.0/source/blender/blenkernel/intern/
H A Dcachefile.c66 cache_file->scale = 1.0f; in cache_file_init_data()
98 memset(cache_file->handle_filepath, 0, sizeof(cache_file->handle_filepath)); in cache_file_blend_write()
103 if (cache_file->adt) { in cache_file_blend_write()
113 cache_file->handle = NULL; in cache_file_blend_read_data()
196 if (cache_file) { in BKE_cachefile_reader_free()
205 if (cache_file && cache_file->handle_readers) { in BKE_cachefile_reader_free()
237 if (cache_file->handle) { in cachefile_handle_free()
244 UNUSED_VARS(cache_file); in cachefile_handle_free()
252 return cache_file; in BKE_cachefile_add()
285 cache_file->handle = ABC_create_handle(bmain, filepath, &cache_file->object_paths); in BKE_cachefile_eval()
[all …]
/dports/devel/upp/upp/bazaar/plugin/gdal/frmts/wms/
H A Dgdalwmscache.cpp71 CPLString cache_file(KeyToCacheFile(key)); in Write() local
74 MakeDirs(cache_file.c_str()); in Write()
83 CPLString cache_file(KeyToCacheFile(key)); in Read() local
88 *file_name = cache_file; in Read()
98 CPLString cache_file(m_cache_path); in KeyToCacheFile() local
100 if (cache_file.size() && (cache_file[cache_file.size() - 1] != '/')) cache_file.append(1, '/'); in KeyToCacheFile()
102 cache_file.append(1, hash[i]); in KeyToCacheFile()
103 cache_file.append(1, '/'); in KeyToCacheFile()
105 cache_file.append(hash); in KeyToCacheFile()
106 cache_file.append(m_postfix); in KeyToCacheFile()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/native_client/pynacl/
H A Dlocal_storage_cache.py62 cache_file = os.path.join(self._cache_path, key)
63 if os.path.exists(cache_file):
64 return LocalFileURL(cache_file)
89 cache_dir = os.path.dirname(cache_file)
92 file_tools.AtomicWriteFile(data, cache_file)
93 return LocalFileURL(cache_file)
106 if os.path.exists(cache_file):
107 data = file_tools.ReadFile(cache_file)
109 return LocalFileURL(cache_file)
123 if os.path.exists(cache_file):
[all …]
/dports/mail/spamassassin-devel/spamassassin-1ea352210/lib/Mail/SpamAssassin/
H A DAICache.pm70 $self->{cache_file} = File::Spec->catdir(
75 my @stat = stat($self->{cache_file});
76 @stat or dbg("AIcache: no access to %s: %s", $self->{cache_file}, $!);
81 $self->{cache_file} = File::Spec->catdir(
86 my @stat = stat($self->{cache_file});
98 $self->{cache_file} = File::Spec->canonpath($self->{cache_file});
104 } elsif (!open(CACHE, $self->{cache_file})) {
116 or die "error closing AI cache file (".$self->{cache_file}."): $!";
164 mkpath(dirname($self->{cache_file}));
181 if (!open(CACHE, ">".$self->{cache_file}))
[all …]
/dports/mail/spamassassin/Mail-SpamAssassin-3.4.5/lib/Mail/SpamAssassin/
H A DAICache.pm70 $self->{cache_file} = File::Spec->catdir(
75 my @stat = stat($self->{cache_file});
76 @stat or dbg("AIcache: no access to %s: %s", $self->{cache_file}, $!);
81 $self->{cache_file} = File::Spec->catdir(
86 my @stat = stat($self->{cache_file});
98 $self->{cache_file} = File::Spec->canonpath($self->{cache_file});
104 } elsif (!open(CACHE, $self->{cache_file})) {
116 or die "error closing AI cache file (".$self->{cache_file}."): $!";
164 mkpath(dirname($self->{cache_file}));
181 if (!open(CACHE, ">".$self->{cache_file}))
[all …]
/dports/graphics/libgphoto2/libgphoto2-2.5.26/camlibs/docupen/
H A Dcache.c28 camera->pl->cache = fopen(camera->pl->cache_file, "w+"); in fill_cache()
55 if (camera->pl->cache_file) in dp_init_cache()
58 camera->pl->cache_file = malloc(64 + strlen(getenv("HOME"))); in dp_init_cache()
59 if (!camera->pl->cache_file) in dp_init_cache()
61 sprintf(camera->pl->cache_file, "%s/.cache", getenv("HOME")); in dp_init_cache()
63 …if (!gp_system_is_dir(camera->pl->cache_file) && gp_system_mkdir(camera->pl->cache_file) != GP_OK)… in dp_init_cache()
69 camera->pl->cache = fopen(camera->pl->cache_file, "a+"); in dp_init_cache()
72 GP_LOG_E("unable to open cache file %s", camera->pl->cache_file); in dp_init_cache()
93 free(camera->pl->cache_file); in dp_init_cache()
94 camera->pl->cache_file = NULL; in dp_init_cache()
[all …]
/dports/devel/p5-Cache-AgainstFile/Cache-AgainstFile-1.016/lib/Cache/AgainstFile/
H A DStorable.pm148 my $cache_file = catfile($cache_dir, $_);
166 my $cache_file = catfile($cache_dir, $_);
168 my $cache_mt = (stat ($cache_file))[9];
269 my $cache_file = rel2abs($filename);
270 TRACE({Level => 2}, " - rel2abs => $cache_file");
274 $cache_file = Win32::GetFullPathName($cache_file);
277 $cache_file =~ tr:\\:/:;
285 $cache_file = lc $cache_file if File::Spec->case_tolerant;
288 TRACE("filename2cache $filename -> $cache_file");
289 return $cache_file;
[all …]
/dports/databases/dalmp/DALMP-3.1.0/src/DALMP/Cache/
H A DDisk.php60 $cache_file = sprintf('%s/%s', $cache_path, "dalmp_{$key}.cache");
62 if (!($fp = fopen($cache_file, 'w'))) {
63 throw new \Exception(__METHOD__ . ": Cannot create cache file $cache_file");
72 return touch($cache_file, $time);
77 throw new \Exception(__METHOD__ . ": Cannot lock/truncate the cache file: $cache_file");
90 …$cache_file = sprintf('%s/%s/%s/%s/%s', $this->cache_dir, substr($key, 0, 2), substr($key, 2, 2), …
92 if (file_exists($cache_file)) {
93 if (filemtime($cache_file) > time()) {
94 return unserialize(file_get_contents($cache_file));
96 unlink($cache_file);
[all …]
/dports/www/osticket/upload/include/pear/Net/DNS2/Cache/
H A DFile.php68 * @param string $cache_file path to a file to use for cache storage
77 public function open($cache_file, $size, $serializer) argument
80 $this->cache_file = $cache_file;
86 if ( (file_exists($this->cache_file) == true)
87 && (filesize($this->cache_file) > 0)
93 $fp = @fopen($this->cache_file, 'r');
104 $data = fread($fp, filesize($this->cache_file));
153 if (strlen($this->cache_file) == 0) {
160 $fp = fopen($this->cache_file, 'a+');
176 $data = @fread($fp, filesize($this->cache_file));
/dports/net-mgmt/librenms/librenms-vendor-21.5.1/pear/net_dns2/Net/DNS2/Cache/
H A DFile.php29 * @param string $cache_file path to a file to use for cache storage
38 public function open($cache_file, $size, $serializer) argument
41 $this->cache_file = $cache_file;
48 && (file_exists($this->cache_file) == true)
49 && (filesize($this->cache_file) > 0)
54 $fp = @fopen($this->cache_file, 'r');
65 $data = fread($fp, filesize($this->cache_file));
119 if (strlen($this->cache_file) == 0) {
126 $fp = fopen($this->cache_file, 'a+');
142 $data = @fread($fp, filesize($this->cache_file));
H A DShm.php39 * @param string $cache_file path to a file to use for cache storage
48 public function open($cache_file, $size, $serializer) argument
51 $this->cache_file = $cache_file;
65 if (!file_exists($cache_file)) {
67 if (file_put_contents($cache_file, '') === false) {
70 'failed to create empty SHM file: ' . $cache_file,
79 $this->_cache_file_tok = ftok($cache_file, 't');
154 if (strlen($this->cache_file) == 0) {
158 $fp = fopen($this->cache_file, 'r');
/dports/net-mgmt/phpipam/phpipam-a14bc06/functions/PEAR/Net/DNS2/Cache/
H A DFile.php68 * @param string $cache_file path to a file to use for cache storage
77 public function open($cache_file, $size, $serializer) argument
80 $this->cache_file = $cache_file;
87 && (file_exists($this->cache_file) == true)
88 && (filesize($this->cache_file) > 0)
93 $fp = @fopen($this->cache_file, 'r');
104 $data = fread($fp, filesize($this->cache_file));
158 if (strlen($this->cache_file) == 0) {
165 $fp = fopen($this->cache_file, 'a+');
181 $data = @fread($fp, filesize($this->cache_file));
/dports/net-mgmt/observium/observium/libs/pear/Net/DNS2/Cache/
H A DFile.php68 * @param string $cache_file path to a file to use for cache storage
77 public function open($cache_file, $size, $serializer) argument
80 $this->cache_file = $cache_file;
87 && (file_exists($this->cache_file) == true)
88 && (filesize($this->cache_file) > 0)
93 $fp = @fopen($this->cache_file, 'r');
104 $data = fread($fp, filesize($this->cache_file));
158 if (strlen($this->cache_file) == 0) {
165 $fp = fopen($this->cache_file, 'a+');
181 $data = @fread($fp, filesize($this->cache_file));
/dports/dns/pear-Net_DNS2/Net_DNS2-1.5.0/Net/DNS2/Cache/
H A DFile.php29 * @param string $cache_file path to a file to use for cache storage
38 public function open($cache_file, $size, $serializer) argument
41 $this->cache_file = $cache_file;
48 && (file_exists($this->cache_file) == true)
49 && (filesize($this->cache_file) > 0)
54 $fp = @fopen($this->cache_file, 'r');
65 $data = fread($fp, filesize($this->cache_file));
119 if (strlen($this->cache_file) == 0) {
126 $fp = fopen($this->cache_file, 'a+');
142 $data = @fread($fp, filesize($this->cache_file));
/dports/www/serendipity/Serendipity-2.3.5/bundled-libs/Net/DNS2/Cache/
H A DFile.php68 * @param string $cache_file path to a file to use for cache storage
77 public function open($cache_file, $size, $serializer) argument
80 $this->cache_file = $cache_file;
87 && (file_exists($this->cache_file) == true)
88 && (filesize($this->cache_file) > 0)
93 $fp = @fopen($this->cache_file, 'r');
104 $data = fread($fp, filesize($this->cache_file));
158 if (strlen($this->cache_file) == 0) {
165 $fp = fopen($this->cache_file, 'a+');
181 $data = @fread($fp, filesize($this->cache_file));
H A DShm.php78 * @param string $cache_file path to a file to use for cache storage
87 public function open($cache_file, $size, $serializer) argument
90 $this->cache_file = $cache_file;
104 if (!file_exists($cache_file)) {
106 if (file_put_contents($cache_file, '') === false) {
109 'failed to create empty SHM file: ' . $cache_file,
118 $this->_cache_file_tok = ftok($cache_file, 't');
193 if (strlen($this->cache_file) == 0) {
197 $fp = fopen($this->cache_file, 'r');
/dports/sysutils/modules/modules-4.6.0/compat/
H A DModuleCmd_Whatis.c205 cache_file = apropos_cache(); in ModuleCmd_Whatis()
206 if( !sw_create && cache_file && !stat( cache_file, &stats)) { in ModuleCmd_Whatis()
212 if( OK != ErrorLogger( ERR_OPEN, LOC, cache_file, NULL)) in ModuleCmd_Whatis()
238 if( sw_create && cache_file) in ModuleCmd_Whatis()
278 null_free((void *) &cache_file); in ModuleCmd_Whatis()
292 null_free((void *) &cache_file); in ModuleCmd_Whatis()
331 char *cache_file; /** Name of the cache file **/ in ModuleCmd_Apropos() local
357 cache_file = apropos_cache(); in ModuleCmd_Apropos()
358 if( !sw_create && cache_file && !stat( cache_file, &stats)) { in ModuleCmd_Apropos()
390 if( sw_create && cache_file) in ModuleCmd_Apropos()
[all …]
/dports/science/libgeodecomp/libgeodecomp-0.4.0/tools/typemapgenerator/
H A Dgenerate.rb23 "into larger builds.") do |cache_file|
24 options[:cache] = cache_file
87 cache_file = options[:cache]
93 if File.exists?(cache_file)
94 typemaps_deps = File.read(cache_file).split("\n")
104 unless File.exists?(cache_file)
105 FileUtils.touch cache_file
107 File.utime(Time.at(0), Time.at(0), cache_file)
110 cache_age = File.mtime(cache_file)
125 FileUtils.touch cache_file
[all …]
/dports/www/p5-WWW-Myspace/WWW-Myspace-0.92/lib/WWW/Myspace/
H A DFriendChanges.pm62 $self->{cache_file} = shift if @_;
75 if ( -f $self->cache_file ) {
76 open( CACHE, "<", $self->cache_file ) or croak "Can't open cache file.\n";
122 $self->cache_file( @_ );
140 sub cache_file { subroutine
144 $self->{cache_file} = shift;
147 } elsif (! defined $self->{cache_file} ) {
150 $self->{cache_file} = catfile( $self->{myspace}->cache_dir,
154 return $self->{cache_file};
168 open( CACHE, ">", $self->cache_file ) or croak "Can't open cache file.\n";
H A DMessage.pm236 sub cache_file { subroutine
239 $self->{cache_file} = shift;
241 } elsif (! defined $self->{cache_file} ) {
248 return $self->{cache_file};
622 unlink $self->cache_file or croak $!;
655 open( MESSAGED, ">", $self->cache_file ) or croak
656 "Can't write cache file: " . $self->cache_file;
663 open( MESSAGED, '>>', $self->cache_file ) or croak
664 "Can't write cache file: " . $self->cache_file;
687 if ( -f $self->cache_file ) {
[all …]
/dports/sysutils/py-salt/salt-3004.1/tests/unit/pillar/
H A Dtest_azureblob.py100 cache_file = tempfile.NamedTemporaryFile()
106 MagicMock(return_value=str(cache_file.name)),
118 cache_file.close()
155 cache_file = tempfile.NamedTemporaryFile()
164 MagicMock(return_value=str(cache_file.name)),
179 cache_file.close()
218 cache_file = tempfile.NamedTemporaryFile()
225 "", container, cache_file.name
227 cache_file.close()
258 cache_file = tempfile.NamedTemporaryFile()
[all …]
/dports/shells/fish/fish-3.3.1/share/functions/
H A D__fish_print_eopkg_packages.fish14 set -l cache_file $xdg_cache_home/.eopkg-installed-cache.$USER
15 if test -f $cache_file
16 cat $cache_file
17 set -l age (math (date +%s) - (stat -c '%Y' $cache_file))
25 eopkg list-installed -N | cut -d ' ' -f 1 >$cache_file &
28 set -l cache_file $xdg_cache_home/.eopkg-available-cache.$USER
29 if test -f $cache_file
30 cat $cache_file
31 set -l age (math (date +%s) - (stat -c '%Y' $cache_file))
39 eopkg list-available -N | cut -d ' ' -f 1 >$cache_file &
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/libzrtp/src/
H A Dzrtp_iface_cache.c424 FILE* cache_file = 0; in zrtp_cache_user_init() local
482 fclose(cache_file); in zrtp_cache_user_init()
525 fclose(cache_file); in zrtp_cache_user_init()
538 fclose(cache_file); in zrtp_cache_user_init()
570 if (0 != fclose(cache_file)) { in zrtp_cache_user_init()
625 fseek(cache_file, pos, SEEK_SET); in flush_elem_()
646 FILE* cache_file = 0; in zrtp_cache_user_down() local
664 if (!cache_file) { in zrtp_cache_user_down()
671 fseek(cache_file, 0, SEEK_SET); in zrtp_cache_user_down()
688 pos = ftell(cache_file); in zrtp_cache_user_down()
[all …]
/dports/dns/py-tldextract/tldextract-2.2.1/tldextract/
H A Dtldextract.py211 self.cache_file = os.path.expanduser(cache_file or '')
269 if os.path.exists(self.cache_file):
270 os.unlink(self.cache_file)
325 if not self.cache_file:
329 with open(self.cache_file) as cache_file:
331 return json.loads(cache_file.read())
335 self.cache_file,
364 tofile=self.cache_file
367 if self.cache_file:
369 with open(self.cache_file, 'w') as cache_file:
[all …]
/dports/devel/android-tools-fastboot/platform_system_core-platform-tools-29.0.5/extras/preopt2cachename/
H A Dpreopt2cachename.cpp68 /*in-out*/std::string& cache_file) { in SystemBFilenameToCacheFile() argument
77 size_t cache_file_position = cache_file.size(); in SystemBFilenameToCacheFile()
78 cache_file += file_location.substr(initial_position, apk_position); in SystemBFilenameToCacheFile()
80 cache_file_position = cache_file.find('/', cache_file_position); in SystemBFilenameToCacheFile()
82 cache_file[cache_file_position] = '@'; in SystemBFilenameToCacheFile()
83 cache_file_position = cache_file.find('/', cache_file_position); in SystemBFilenameToCacheFile()
97 cache_file += apk_name; in SystemBFilenameToCacheFile()
100 cache_file += kVdexCacheSuffix; in SystemBFilenameToCacheFile()
102 cache_file += kArtCacheSuffix; in SystemBFilenameToCacheFile()
104 cache_file += kOdexCacheSuffix; in SystemBFilenameToCacheFile()

12345678910>>...199