2 * $Id: ad_size.c,v 1.7 2006-09-29 09:39:16 didg Exp $
4 * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
5 * All rights reserved. See COPYRIGHT.
7 * if we could depend upon inline functions, this would be one.
12 #endif /* HAVE_CONFIG_H */
14 #include <atalk/logger.h>
15 #include <atalk/adouble.h>
17 off_t ad_size(const struct adouble *ad, const u_int32_t eid)
19 if (eid == ADEID_DFORK) {
22 if (fstat(ad_data_fileno(ad), &st) < 0)
27 return ad_getentrylen(ad, eid);