2 * $Id: ad_size.c,v 1.3 2001-06-29 14:14:46 rufustfirefly 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 */
17 #endif /* HAVE_UNISTD_H */
18 #include <sys/types.h>
22 #include <atalk/adouble.h>
24 off_t ad_size(const struct adouble *ad, const u_int32_t eid)
26 if (eid == ADEID_DFORK) {
29 if (fstat(ad_dfileno(ad), &st) < 0)
34 return ad_getentrylen(ad, eid);