7 DIRSIZE = STATFIXLEN + 16 * 4 /* enough for encoded stat buf + some reasonable strings */
18 for(i=0; i<2; i++){ /* should work by the second try */
19 d = malloc(sizeof(Dir) + BIT16SZ + nd);
23 n = stat(name, buf, BIT16SZ+nd);
28 nd = GBIT16((uchar*)buf); /* upper bound on size of Dir + strings */
30 convM2D(buf, n, d, (char*)&d[1]);
33 /* else sizeof(Dir)+BIT16SZ+nd is plenty */