bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hurd_types.defs: redefine io_statbuf_t, timespec_t and fsys_


From: Samuel Thibault
Subject: Re: [PATCH] hurd_types.defs: redefine io_statbuf_t, timespec_t and fsys_statfsbuf_t as true structs
Date: Sun, 13 Nov 2022 09:40:37 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Flavio Cruz, le sam. 12 nov. 2022 22:49:02 -0500, a ecrit:
> > > +// Dummy structure just to add padding to io_statbuf_t.
> > > +type io_statbuf_spare_int = struct[9] of int;
> > 
> > According to mach/hurd/bits/stat.h, it depends whether it's 32 or 64
> > bits.
> 
> Are you referring to __USE_FILE_OFFSET64?

No.

> Other than that, it also depends on the size of __fsid_t but that is 8
> bytes on both 32 or 64 bits, so not the same as sizeof (int).

Yes, that's what I mean. You can probably use a struct that uses long to
get the desired result.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]