Lines Matching defs:meth
30 ardiropen(const char* file, Ardirmeth_t* meth, int flags)
42 if (((ar->fd = open(file, (flags & ARDIR_CREATE) ? (O_CREAT|O_TRUNC|O_RDWR|O_BINARY|O_cloexec) : (flags & ARDIR_UPDATE) ? (O_RDWR|O_BINARY|O_cloexec) : (O_RDONLY|O_BINARY|O_cloexec))) < 0 || fstat(ar->fd, &ar->st) || !S_ISREG(ar->st.st_mode)) && (!meth || !(flags & ARDIR_FORCE)))
52 if (!(ar->meth = meth))
55 for (meth = ar_first_method; ar->meth = meth; meth = meth->next)
56 if ((!skip || !strmatch(meth->name, skip)) && !(*meth->openf)(ar, buf, n))
58 if (!(ar->meth = meth))
64 else if ((*meth->openf)(ar, buf, n))
75 return (ar->meth && ar->meth->nextf) ? (*ar->meth->nextf)(ar) : (Ardirent_t*)0;
127 if (!ar->meth || !ar->meth->changef)
132 return (*ar->meth->changef)(ar, ent);
138 if (!ar->meth || !ar->meth->insertf)
143 return (*ar->meth->insertf)(ar, name, flags);
149 if (!ar->meth || !ar->meth->specialf)
154 return (*ar->meth->specialf)(ar);
164 r = (ar->meth && ar->meth->closef) ? (*ar->meth->closef)(ar) : -1;
176 Ardirmeth_t* meth;
178 for (meth = ar_first_method; meth; meth = meth->next)
179 if (!strcasecmp(name, meth->name))
180 return meth;
185 ardirlist(Ardirmeth_t* meth)
187 return meth ? meth->next : ar_first_method;