Current-Users archive

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

Re: getmntinfo compatibility question



On Fri, Feb 14, 2025 at 02:20:33PM +0100, Havard Eidnes wrote:
> getvfsstat() should get a similar treatment.  The "struct statvfs"
> in that same header file looks like the one in rust's libc crate.

No, we don't _need_ to do anything here yet. The rust crate uses the
definition from NetBSD 9, and calls the NetBSD-9-version of
getvfsstat(), so it's consistent.

If we're interested in adding the new field statvfs provided in NetBSD
10, then we'll need to change something.

> > Some Rust `#cfg[]' magic is certainly reqd...
> 
> Perhaps we can avoid that, then, since we don't even pretend to
> be able to build rust for 8.x or earlier?

Right now, we don't need any (yet?).
 Thomas


Home | Main Index | Thread Index | Old Index