Subject: RE: 64 bit inode changes
To: Christos Zoulas <tech-kern@netbsd.org>
From: Gordon Waidhofer <gww@traakan.com>
List: tech-kern
Date: 08/16/2005 12:49:41
> | 
> | Why the parameter 'dp' to DIRENT_NAMEOFF? Why wouldn't
> | it just boil down to a constant? ((struct dirent *)0)
> 
> Because I can use this macro with struct dirent, struct dirent12, 
> and struct direct. Otherwise I would need 3 macros.

#define _DIRENT_RECLEN(dp, namlen) \     
    ((_DIRENT_NAMEOFF(dp) + (namlen) + 1 + 0xf) & ~0xf)

Does this 0xF alignment hold for all variants of dirent?