3 * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
4 * All rights reserved. See COPYRIGHT.
6 * if we could depend upon inline functions, this would be one.
11 #endif /* HAVE_CONFIG_H */
14 #include <atalk/logger.h>
15 #include <atalk/adouble.h>
17 off_t ad_size(const struct adouble *ad, const uint32_t eid)
19 if (eid == ADEID_DFORK) {
22 if (ad->ad_data_fork.adf_syml)
23 return strlen(ad->ad_data_fork.adf_syml);
25 if (fstat(ad_data_fileno(ad), &st) < 0)
30 return ad_getentrylen(ad, eid);