Lines Matching defs:filename
35 * magic number, regardless of filename extension, are not
104 exists(const char* filename)
107 return _access(filename, 0) == 0;
109 return access(filename, F_OK) == 0;
277 char *filename = (char *) JLI_MemAlloc(len+1);
278 memcpy(filename, beg, len);
279 filename[len] = '\0';
281 fl->files[fl->size++] = filename;
330 isJarFileName(const char *filename)
332 int len = (int)JLI_StrLen(filename);
334 (filename[len - 4] == '.') &&
335 (equal(filename + len - 3, "jar") ||
336 equal(filename + len - 3, "JAR")) &&
337 /* Paranoia: Maybe filename is "DIR:foo.jar" */
338 (JLI_StrChr(filename, PATH_SEPARATOR) == NULL);
346 char *filename = (char *) JLI_MemAlloc(wildlen + baselen);
348 memcpy(filename, wildcard, wildlen-1);
349 memcpy(filename+wildlen-1, basename, baselen+1);
350 return filename;
369 isWildcard(const char *filename)
371 int len = (int)JLI_StrLen(filename);
373 (filename[len - 1] == '*') &&
374 (len == 1 || IS_FILE_SEPARATOR(filename[len - 2])) &&
375 (! exists(filename));