tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Directory entry parsing code has changed on NetBSD 4.0
On Saturday 15 March 2008, Joerg Sonnenberger wrote:
> On Sat, Mar 15, 2008 at 05:30:27PM +0100, Hans Petter Selasky wrote:
> > On Saturday 15 March 2008, Joerg Sonnenberger wrote:
> > > On Sat, Mar 15, 2008 at 02:43:35PM +0100, Hans Petter Selasky wrote:
> > > > devfs_newdirent in:
> > > >
> > > > http://www.selasky.org/hans_petter/isdn4bsd/sources/module/freebsd_de
> > > >vfs_ devs.c
> > >
> > > What's GENERIC_DIRSIZ? I am wildly guessing if that is the problem...
> > >
> > > Joerg
> >
> > Hi,
> >
> > It's defined like this:
> >
> > # define GENERIC_DIRSIZ(dp) \
> > ((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3)
> > &~ 3))
>
> ..which is wrong. See _DIRENT_RECLEN macro (which should be used for
> this purpose).
>
> Joerg
This is not defined on NetBSD 3.x ... What should I do there ?
--HPS
Home |
Main Index |
Thread Index |
Old Index