2 * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
3 * All rights reserved. See COPYRIGHT.
5 * if we could depend upon inline functions, this would be one.
14 #include <sys/types.h>
18 #include <atalk/adouble.h>
20 off_t ad_size(const struct adouble *ad, const u_int32_t eid)
22 if (eid == ADEID_DFORK) {
25 if (fstat(ad_dfileno(ad), &st) < 0)
30 return ad_getentrylen(ad, eid);