Subject: RE: 64 bit inode changes
To: Gordon Waidhofer <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 08/16/2005 15:34:11
On Aug 16, 11:34am, gww@traakan.com ("Gordon Waidhofer") wrote:
-- Subject: RE: 64 bit inode changes
| >
| > /*
| > * The _DIRENT_NAMEOFF macro returns the offset of the d_name field in
| > * struct dirent
| > */
| > #define _DIRENT_NAMEOFF(dp) \
| > ((char *)(void *)&(dp)->d_name - (char *)(void *)dp)
|
| 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.
christos