/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ #include #include #ifndef DJGPP #include #endif /* !DJGPP */ #include #include #include #include #include "afsd.h" /* compute how many 32 byte entries an AFS 3 dir requires for storing * the specified name. */ cm_NameEntries(char *namep, size_t *lenp) { int i; i = strlen(namep); if (lenp) *lenp = i; return 1+((i+16)>>5); }