[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mountlist: platform comments
From: |
Assaf Gordon |
Subject: |
Re: mountlist: platform comments |
Date: |
Thu, 11 Oct 2018 15:41:45 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Hello Bruno,
On 11/10/18 03:31 PM, Bruno Haible wrote:
The platform comments in mountlist.c and ls-mntd-fs.m4 are not very informative
any more. E.g. What is "BSD4.4" nowadays? Why is "Solaris" not mentioned?
Here's what I found by compiling a testdir on today's platforms and looking
for MOUNTED_ in config.h.
Linux MOUNTED_GETMNTENT1
GNU/kFreeBSD MOUNTED_GETMNTENT1
Hurd MOUNTED_GETMNTENT1
Mac OS X MOUNTED_GETMNTINFO
FreeBSD 11 MOUNTED_GETMNTINFO
NetBSD 7 MOUNTED_GETMNTINFO2
OpenBSD 6 MOUNTED_GETMNTINFO
Minix 3.3 None found!
AIX 7 MOUNTED_VMOUNT
HP-UX 11.31 MOUNTED_GETMNTENT1
IRIX 6.5 MOUNTED_GETMNTENT1
OSF/1 5.1 MOUNTED_GETFSSTAT (inferred, not tested)
Solaris 10 MOUNTED_GETMNTENT2
Cygwin MOUNTED_GETMNTENT1
mingw None found!
Interix 3.5 MOUNTED_INTERIX_STATVFS (inferred, not tested)
Haiku MOUNTED_FS_STAT_DEV
Android MOUNTED_GETMNTENT1 (inferred, not tested)
I'm going to send few more patches for mingw in the future (e.g. for
fsusage.c).
Is there an agreed-upon #define for mingw/windows which is not cygwin?
I've seen
#ifdef _WIN32 && ! defined CYGWIN
But it seems clumsy and error-prone.
Basically, I'm looking for a way to know that one should '#include
<windows.h>' and use windows api functions.
Thanks!
- assaf
PS.
Thanks for the careful review of mountlist.c, I'll send updates soon.