Lines Matching refs:filename
34 * magic number, regardless of filename extension, are not
103 exists(const char* filename)
106 return _access(filename, 0) == 0;
108 return access(filename, F_OK) == 0;
289 char *filename = (char *) JLI_MemAlloc(len+1);
290 memcpy(filename, beg, len);
291 filename[len] = '\0';
293 fl->files[fl->size++] = filename;
342 isJarFileName(const char *filename)
344 int len = strlen(filename);
346 (filename[len - 4] == '.') &&
347 (equal(filename + len - 3, "jar") ||
348 equal(filename + len - 3, "JAR")) &&
349 /* Paranoia: Maybe filename is "DIR:foo.jar" */
350 (strchr(filename, PATH_SEPARATOR) == NULL);
358 char *filename = (char *) JLI_MemAlloc(wildlen + baselen);
360 memcpy(filename, wildcard, wildlen-1);
361 memcpy(filename+wildlen-1, basename, baselen+1);
362 return filename;
381 isWildcard(const char *filename)
383 int len = strlen(filename);
385 (filename[len - 1] == '*') &&
386 (len == 1 || IS_FILE_SEPARATOR(filename[len - 2])) &&
387 (! exists(filename));