Lines Matching refs:name
12 char name[];
27 static bool lookup_fncache(const char *name, bool *res)
29 int h = shash((const unsigned char *)name) % FNHSIZE;
33 if (!strcmp(n->name, name)) {
41 static void update_fncache(const char *name, bool res)
43 struct fncache *n = malloc(sizeof(struct fncache) + strlen(name) + 1);
44 int h = shash((const unsigned char *)name) % FNHSIZE;
48 strcpy(n->name, name);
54 bool file_available(const char *name)
58 if (lookup_fncache(name, &res))
60 res = access(name, R_OK) == 0;
61 update_fncache(name, res);