Re: [PATCH] stat: implement GetFileInformationByHandle with Winstore apps restrictions

2020-05-30 Thread Steve Lhomme
> On May 30, 2020 5:47 PM Bruno Haible wrote: > > > Steve Lhomme wrote: > > > > You can see one of the last commit is adding > > > > GetFileInformationByHandle() for example. But that means anyone > > > > building with an older version of winstorecompat cannot rely on this > > > > helper. >

Re: [PATCH] stat: implement GetFileInformationByHandle with Winstore apps restrictions

2020-05-30 Thread Bruno Haible
Steve Lhomme wrote: > > > You can see one of the last commit is adding GetFileInformationByHandle() > > > for example. But that means anyone building with an older version of > > > winstorecompat cannot rely on this helper. > > > > That's not a good enough reason for adding this code to gnulib.

Re: [PATCH] stat: implement GetFileInformationByHandle with Winstore apps restrictions

2020-05-30 Thread Steve Lhomme
> On May 30, 2020 4:35 PM Bruno Haible wrote: > > > Steve Lhomme wrote: > > > So, it makes sense to put your code into a separate library, that > > > implements > > > Windows API on top of UWP API. Gnulib focuses (partially) on providing the > > > POSIX and glibc API on top of the Windows API.

Re: [PATCH] stat: implement GetFileInformationByHandle with Winstore apps restrictions

2020-05-30 Thread Bruno Haible
Steve Lhomme wrote: > > So, it makes sense to put your code into a separate library, that implements > > Windows API on top of UWP API. Gnulib focuses (partially) on providing the > > POSIX and glibc API on top of the Windows API. > > That's the case in mingw-w64 which has winstorecompat to mimick

Re: [PATCH] stat: implement GetFileInformationByHandle with Winstore apps restrictions

2020-05-30 Thread Steve Lhomme
> On May 30, 2020 11:41 AM Bruno Haible wrote: > > > Hi, > > Steve Lhomme wrote: > > GetFileInformationByHandle() cannot be called. But the same information can > > be > > gathered via calls to GetFileInformationByHandleEx() which is allowed. > > I am understanding from [1] that Microsoft is

Re: [PATCH] stat: implement GetFileInformationByHandle with Winstore apps restrictions

2020-05-30 Thread Bruno Haible
Hi, Steve Lhomme wrote: > GetFileInformationByHandle() cannot be called. But the same information can be > gathered via calls to GetFileInformationByHandleEx() which is allowed. I am understanding from [1] that Microsoft is augmenting the list of allowed functions in UWP over time, and that ultim

[PATCH] stat: implement GetFileInformationByHandle with Winstore apps restrictions

2020-05-19 Thread Steve Lhomme
GetFileInformationByHandle() cannot be called. But the same information can be gathered via calls to GetFileInformationByHandleEx() which is allowed. A function pointer is used to pick between the local version using GetFileInformationByHandleEx() and the system one. If WINSTORECOMPAT is defined