lkml.org 
[lkml]   [1997]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: struct dirent in Linux 2.0
Date
From
> > > 
> > > Unfortunately Linux currently defines just
> > >
> > > long d_ino;
> > > __kernel_off_t d_off;
> > > unsigned short d_reclen;
> > > char d_name[256]; /* We must not include limits.h! */
> > >

Hmm, for one it's not 64 bit safe. Digital Unix (which does claim to be POSIX etc
compliant) defines d_ino as an ino_t which is a uint_t which, in turn (bear with
me) is a 'unsigned int', voila, it's 32 bits long. Happily the ext2 file definition
(in include/linux/ext2_fs.h) gets it right (its an __u32)...

Dave


----------------------------------------------------------------------
David A Rusling Principal Engineer
European Semiconductor Applications Digital Equipment Co Ltd.,
Engineering PO Box 121,
Imperial Way,
Worton Grange
Reading RG2 0TU
Linux, Alpha, StrongArm, PCI Tel: UK-(0)1734-204380
Fax: UK-(0)1734-203133
----------------------------------------------------------------------



\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.064 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site