Lines Matching defs:adp
54 struct adouble *adp;
69 adp = NULL;
71 adp = ofork->of_ad;
98 return getmetadata(vol, bitmap, &path, dir, buf, buflen, adp );
162 static int setforkmode(struct adouble *adp, int eid, int ofrefnum, int what)
164 return ad_lock(adp, eid, ADLOCK_RD | ADLOCK_FILELOCK, what, 1, ofrefnum);
169 int getforkmode(struct adouble *adp, int eid, int what)
171 return ad_testlock(adp, eid, what);
176 static int fork_setmode(struct adouble *adp, int eid, int access, int ofrefnum)
185 return setforkmode(adp, eid, ofrefnum, AD_FILELOCK_OPEN_NONE);
189 if ((readset = getforkmode(adp, eid, AD_FILELOCK_OPEN_RD)) <0)
191 if ((denyreadset = getforkmode(adp, eid, AD_FILELOCK_DENY_RD)) <0)
206 ret = setforkmode(adp, eid, ofrefnum, AD_FILELOCK_OPEN_RD);
211 ret = setforkmode(adp, eid, ofrefnum, AD_FILELOCK_DENY_RD);
218 if ((writeset = getforkmode(adp, eid, AD_FILELOCK_OPEN_WR)) <0)
220 if ((denywriteset = getforkmode(adp, eid, AD_FILELOCK_DENY_WR)) <0)
232 ret = setforkmode(adp, eid, ofrefnum, AD_FILELOCK_OPEN_WR);
237 ret = setforkmode(adp, eid, ofrefnum, AD_FILELOCK_DENY_WR);
243 return ad_excl_lock(adp, eid);