Prototyped varients of directory lookup functions