Lines Matching defs:scp
50 struct statcache *scp;
60 for (scp = statcache_head[hash]; scp != NULL; scp = scp->sc_next)
61 if (strcmp(filename, scp->sc_filename) == 0)
63 if (scp) {
64 (void) memcpy((caddr_t)sbp, (caddr_t)&scp->sc_stat,
74 scp = (struct statcache *)malloc(sizeof (*scp));
75 if (scp != NULL) {
76 (void) memcpy((caddr_t)&scp->sc_stat, (caddr_t)sbp,
78 scp->sc_filename = strdup(filename);
79 if (scp->sc_filename == NULL) {
80 free((char *)scp);
83 scp->sc_next = statcache_head[hash];
84 statcache_head[hash] = scp;