bug-gnulib
[Top][All Lists]
Advanced

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

Re: configure issue: getfsstat(), 'struct statfs' and 'struct fsstat'


From: Bruno Haible
Subject: Re: configure issue: getfsstat(), 'struct statfs' and 'struct fsstat'
Date: Tue, 17 Jul 2018 19:09:14 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-130-generic; KDE/5.18.0; x86_64; ; )

Barath Aron wrote:
> ... on an OS that partially (mostly?) supports POSIX, and 
> implements widely used BSD functions. And when I saw the getfsstat() and 
> now the getmntinfo() functions I put them into the libc

If you want to minimize porting efforts in the long run, I would
suggest to implement the POSIX functions, rather than the BSD functions.
Rationale:
  * Lots of applications have been ported to run on Linux, and use
    the POSIX API to that effect.
  * POSIX is a standard that has even some dark corner-cases fledged
    out. Like you said here:
    > I cannot implement something in libc based on 
    > presumption. That's why I'm looking for at least a manual page that 
    > clearly defines ...
  * Test suites exist that you can use to validate your implementation
    (even if the implementation, as for Threos, is closed-source).

Bruno




reply via email to

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