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.
10 #include <sys/types.h>
14 #include <atalk/adouble.h>
16 off_t ad_size(const struct adouble *ad, const u_int32_t eid)
18 if (eid == ADEID_DFORK) {
21 if (fstat(ad_dfileno(ad), &st) < 0)
26 return ad_getentrylen(ad, eid);