From: "Greg Stein" <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 3:27 AM
>
> We should simply nuke the "asize" and "csize" since they are nearly
> impossible to deal with in any reasonable cross-platform way. If/when
> somebody really needs that feature, then we can introduce them.

I'm +.5 on retaining asize, simply becase I believe asize is inadaquately
defined.  I'm strongly +1 on retaining csize, which has a very definate and
legitimate purpose for file management.

Two options.  One - disable their return on Unix (and don't trip those valid
member bits), or two, define them as identity until someone has an interest
in making them work.  We will probably find a few more dribs and drabs along
the way.  The 'right way', imho, is to test in libtool for specific (unusual)
fields in the stat/dirent structures.

> > I wonder if st_size/st_blksize might do the trick.

That sounds rational, or rather ((st_size - 1)/st_blksize) + 1) * st_blksize

Interesting from the post below, though, what is st_ctime vs. st_mtime vs.
st_crtime... it isn't appparent to me why there is a third?

Bill

[Folks, if you are commenting on the 'house flavor' of stat, please toss
your dirent in the mix, and visa versa.  Nearly every machine I use is some
BSD flavor, so this would be very interesting to me personally.]

>
> Cheers,
> -g
>
> On Wed, Jan 24, 2001 at 03:01:12AM -0600, Sam TH wrote:
> > Well, I recently tried building APR on BeOS R4.5 (this time an i586)
> > again.  I get the following error:
> >
> > /bin/sh /boot/home/subversion/apr/libtool --mode=compile --silent
gcc -DBEOS -DBEOS  -I../../include -I../../include/arch/beos 
-I../../include/arch/unix -c filestat.c && touch filestat.lo
> > /boot/home/subversion/apr/file_io/unix/filestat.c: In function 
> > `fill_out_finfo':
> > /boot/home/subversion/apr/file_io/unix/filestat.c:101: structure has no 
> > member named `st_blocks'
> >
> > This error is not surprising, since as it turns out, the stat.h header
> > defines a struct stat without st_blocks as a member, nor with any
> > close analogue.  The definition of stat is as follows:
> >
> > struct stat {
> >     dev_t                       st_dev;        /* "device" that this file 
> > resides on */
> >     ino_t                       st_ino;        /* this file's inode #, 
> > unique per device */
> >     mode_t                      st_mode;       /* mode bits (rwx for user, 
> > group, etc) */
> >     nlink_t                     st_nlink;      /* number of hard links to 
> > this file */
> >     uid_t                       st_uid;        /* user id of the owner of 
> > this file */
> >     gid_t                       st_gid;        /* group id of the owner of 
> > this file */
> >     off_t                       st_size;       /* size in bytes of this 
> > file */
> >     dev_t                       st_rdev;       /* device type (not used) */
> >     size_t                      st_blksize;    /* preferred block size for 
> > i/o */
> >     time_t                      st_atime;      /* last access time */
> >     time_t                      st_mtime;      /* last modification time */
> >     time_t                      st_ctime;      /* last change time, not 
> > creation time */
> >     time_t                      st_crtime;     /* creation time */
> > };
> >
> >
> > Thanks
> > sam th
> > [EMAIL PROTECTED]
> > http://www.abisource.com/~sam/
> > GnuPG Key:
> > http://www.abisource.com/~sam/key
>
>
>
> --
> Greg Stein, http://www.lyra.org/
>

Reply via email to