Re: [Mingw-w64-public] dirent changes

2025-02-18 Thread Pali Rohár
On Tuesday 18 February 2025 23:32:54 Lasse Collin wrote: > On 2025-02-18 Pali Rohár wrote: > > Just one test case, can you check that your new readdir() function is > > working correctly on these two paths? > > > > \\?\GLOBALROOT\Device\Harddisk0\Partition1\ > > \\?\GLOBALROOT\Device\HardiskVolume

Re: [Mingw-w64-public] dirent changes

2025-02-18 Thread Lasse Collin
On 2025-02-18 Pali Rohár wrote: > Just one test case, can you check that your new readdir() function is > working correctly on these two paths? > > \\?\GLOBALROOT\Device\Harddisk0\Partition1\ > \\?\GLOBALROOT\Device\HardiskVolume1\ > > If you are not familiar with NT paths encoded in WinAPI paths

Re: [Mingw-w64-public] dirent changes

2025-02-18 Thread Lasse Collin
On 2025-02-18 Lasse Collin wrote: > Python's stat.S_IFBLK and stat.S_ISBLK(mode) use the values from > . Thus, MSYS2-Python uses 0x6000 and UCRT64-Python > uses 0x3000. Python/fileutils.c hardcodes 0x6000: https://github.com/python/cpython/blob/51d4bf1e0e5349090da72721c865b6c2b28277f3/Python

Re: [Mingw-w64-public] dirent changes

2025-02-18 Thread Pali Rohár
On Tuesday 18 February 2025 18:48:40 Lasse Collin wrote: > On 2025-02-17 Pali Rohár wrote: > > On Monday 17 February 2025 17:37:17 Lasse Collin wrote: > > > I suppose lstat() shouldn't follow any reparse points. > > > > That is a question for which I do not have answer. > > One would need to fi

Re: [Mingw-w64-public] dirent changes

2025-02-18 Thread Lasse Collin
On 2025-02-17 Pali Rohár wrote: > On Monday 17 February 2025 17:37:17 Lasse Collin wrote: > > I suppose lstat() shouldn't follow any reparse points. > > That is a question for which I do not have answer. One would need to figure out what is the least surprising behavior. > Why should follow: >

Re: [Mingw-w64-public] [PATCH] headers: Add new constants in winnt.rh

2025-02-18 Thread LIU Hao
在 2025-02-18 15:00, Biswapriyo Nath 写道: patch From 4d8c296500a5f24cdaffda847c76b75ef9ec5fe1 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 18 Feb 2025 06:39:53 + Subject: [PATCH] headers: Add new constants in winnt.rh Required forhttps://github.com/TypesettingTools/Aegisub/blob

Re: [Mingw-w64-public] winpthreads: remove include of sys/timeb.h from public header files

2025-02-18 Thread LIU Hao
在 2025-02-16 21:46, Kirill Makurin 写道: The `pthread.h`, `pthread_time.h` and `sched.h` include `sys/timeb.h`. The `ftime` function was marked obsolete and later removed in POSIX 2008. I don't see any reason to include this header file unless some legacy projects rely on `ftime` being available

Re: [Mingw-w64-public] make sure WINPTHREAD_API is correctly defined in pthread_time.h

2025-02-18 Thread LIU Hao
在 2025-02-16 20:27, Kirill Makurin 写道: +# Handle -lpthread alias when installing +install-exec-hook: + . $(builddir)/libwinpthread.la; \ + if test -n "$${library_names}"; then \ + alias=$$(printf %s "$${library_names}" | $(SED) 's|winpthread|pthread|'); \ +