Re: [Mingw-w64-public] Building winpthreads with MSVC tools

2024-11-13 Thread Kirill Makurin
read.la to construct alias filenames seems convenient, but it probably has to be tested every time new version of libtool is used. - Kirill Makurin From: JonY via Mingw-w64-public Sent: Wednesday, November 13, 2024 9:22 AM To: mingw-w64-public@lists.sourceforge.net

Re: [Mingw-w64-public] Building winpthreads with MSVC tools

2024-11-12 Thread Kirill Makurin
t will create actual symbolic links, but native (non-cygwin/msys2) programs cannot read them. - Kirill Makurin From: Antonin Décimo Sent: Thursday, November 7, 2024 8:36 PM To: mingw-w64-public@lists.sourceforge.net ; Kirill Makurin Subject: Re: [Mingw-w64-public]

[Mingw-w64-public] Building winpthreads with MSVC tools

2024-11-06 Thread Kirill Makurin
ch may fail if CC has value like "cl.exe -nologo -std:c11". Try to compile and check whether macro _MSC_VER is defined may be more robust. I may write a patch for this as well. * Kirill Makurin From 2d0ef83e3981ebf91fc81f9c48018d2a7fa4fe78 Mon Sep 17 00:00:00 2001 From: Kirill M

[Mingw-w64-public] _access with X_OK always fails

2024-12-07 Thread Kirill Makurin
``` _access(filename, X_OK) ``` will always return -1 and set errno to EINVAL. Windows does not use execution permissions for files. Maybe it would make sense to define X_OK to the same value as R_OK? - Kirill Makurin ___ Mingw-w64-public mailing list Mingw

Re: [Mingw-w64-public] winpthreads and MSVC

2025-01-30 Thread Kirill Makurin
using `clock_gettime` is that if it somehow breaks, it will also make this test to fail. From: LIU Hao Sent: Friday, January 31, 2025 3:07 PM To: mingw-w64-public@lists.sourceforge.net; Jonathan Yong; Kirill Makurin Subject: Re: [Mingw-w64-public] winpthreads and MSVC 在 2025-

Re: [Mingw-w64-public] winpthreads and MSVC

2025-01-30 Thread Kirill Makurin
I think `"pthread_time.h"` makes more sense when including headers from the source tree? From: LIU Hao Sent: Friday, January 31, 2025 3:57 PM To: Kirill Makurin; mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] winpthreads and MS

Re: [Mingw-w64-public] winpthreads and MSVC

2025-01-30 Thread Kirill Makurin
public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] winpthreads and MSVC On 1/30/25 3:02 AM, Kirill Makurin wrote: > Yes, no problem. > > I also had a patch for Makefile.am which tried to solve the alias issue by > copying `[lib]winpthreads[.dll].{lib|a}` as `[lib]pthread[.dll].

[Mingw-w64-public] winpthreads: further clean up header files

2025-02-10 Thread Kirill Makurin
pthread_compat.h and use `WINPTHREAD_API` instead. Remove duplicated code from pthread.h. It contains verbatim code from sched.h. Simply include sched.h. - Kirill Makurin From 63bc936b8cf13ee302cc4be47f1bb10e7e5a38c2 Mon Sep 17 00:00:00 2001 From: Kirill Makurin Date: Mon, 10 Feb 2025 17:14:48 +0900 Subject

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

2025-02-09 Thread Kirill Makurin
dependency on winpthreads.la in pthread.la. I tried to experiment with libtool's --mode=execute hoping it would substitute .la with a library filename, but --mode=execute works only with executables. - Kirill Makurin From: LIU Hao Sent: Sunday, February 9, 2025 8:

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

2025-02-07 Thread Kirill Makurin
See attached patch. - Kirill Makurin From 87951029ce19f763ebf28262bf0bb3a48fbed0c2 Mon Sep 17 00:00:00 2001 From: Kirill Makurin Date: Sat, 8 Feb 2025 01:45:40 +0900 Subject: [PATCH] winpthreads: make sure WINPTHREAD_API is correctly defined in pthread_time.h When building with MSVC

[Mingw-w64-public] winpthreads and MSVC

2025-01-29 Thread Kirill Makurin
as a subproject, which will allow projects to use POSIX threads even when building with MSVC. - Kirill Makurin ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] winpthreads and MSVC

2025-01-29 Thread Kirill Makurin
:58 PM, Kirill Makurin wrote: > Hi, > > I was writing to the list a few months ago regarding building of winpthreads > with MSVC tools. I also sent a few patches back then, none of which were > pushed. The first two patches were fixing a syntax error in `src/thread.h` > and linking

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

2025-02-09 Thread Kirill Makurin
a and libpthread.dll.a so winpthreads can be linked with usual `-lpthread`. Any ideas? - Kirill Makurin From: LIU Hao Sent: Sunday, February 9, 2025 6:58 PM To: Kirill Makurin; mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] make sure WINPTHREAD_A

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

2025-02-09 Thread Kirill Makurin
You make a good point here. Move both guarded declaration of `clockid_t` and definition of `WINPTHREAD_API ` to pthread_compat.h and include it from both pthread.h and pthread_time.h. How does this look? - Kirill Makurin From: LIU Hao Sent: Sunday, February 9

[Mingw-w64-public] missing _isblank_l and _iswblank_l symbols

2025-02-16 Thread Kirill Makurin
Hi, mingw-w64's `ctype.c` and `wchar.h` are respectively missing declaration of `_isblank_l` and `_iswblank_l` symbols. - Kirill Makurin ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/

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

2025-02-15 Thread Kirill Makurin
It slipped my mind back then that we can source .la files to get the variables. I attached modified patch. The only issue that will remain is silly libtool behavior I described. But I think it should be fixed in libtool, not by copying the DLL. - Kirill Makurin

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

2025-02-15 Thread Kirill Makurin
also think to write CMake infrastructure for it, and I want to upload it with a copy of winpthreads to GitHub. I think it is a much better way to build winpthreads with MSVC. Maybe it would even worth to remove support for MSVC tools from winpthreads' `configure.ac` and `Makefile.am`

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

2025-02-16 Thread Kirill Makurin
If you're good with that patch, I would like to update it to also remove lines in `configure.ac` which define `COPY_STATIC` and `COPY_SHARED` Automake conditionals. Let me know what you decide. - Kirill Makurin From: Kirill Makurin Sent: Sunday, Februa

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

2025-02-16 Thread Kirill Makurin
What do you think about usage of `$(LN_S)` in install-exec-hook? I'm not fan of it because if the library will be built from Cygwin environment it'll create actual symbolic links which cannot be read by native applications. - Kirill Makurin From: LI

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

2025-02-16 Thread Kirill Makurin
Here's the updated patch. I also used `$(INSTALL_DATA)` instead of `$(LN_S)` which I think makes more sense. - Kirill Makurin From: LIU Hao Sent: Sunday, February 16, 2025 8:46 PM To: Kirill Makurin; mingw-w64-public@lists.sourceforge.net Subject: Re: [Ming

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

2025-02-16 Thread Kirill Makurin
seems strange to me. None of source files use `ftime`. There are some tests in `tests_pthread` subdirectory that use it, but the explicitly include `sys/timeb.h`. - Kirill Makurin From 8845189f7a9a0943d2eeea437a723c64da0f Mon Sep 17 00:00:00 2001 From: Kirill Makurin Date: Sun, 16 Feb 2025

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

2025-02-24 Thread Kirill Makurin
"pthread_compat.h"` to not duplicate it in pthread_time.h, but I think it could be useful to make pthread_time.h usable on its own. - Kirill Makurin From: LIU Hao Sent: Sunday, February 9, 2025 12:43:20 AM To: mingw-w64-public@lists.sourceforge.net

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

2025-02-19 Thread Kirill Makurin
ts to be cautious. - Kirill Makurin From: LIU Hao Sent: Tuesday, February 18, 2025 10:37 PM To: Kirill Makurin; mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] make sure WINPTHREAD_API is correctly defined in pthread_time.h 在 2025-02-16

[Mingw-w64-public] winpthreads: a few more header file cleanups

2025-02-19 Thread Kirill Makurin
th MSVC as they use `pthread_t` as if it was an old struct removed in patch 1. I don't know if anyone uses these tests the way the are now, so I think integrating them with Automake could be useful. - Kirill Makurin ___ Mingw-w64-public mailing

Re: [Mingw-w64-public] winpthreads: a few more header file cleanups

2025-02-19 Thread Kirill Makurin
Sorry, I forgot to attach patches. From: Kirill Makurin Sent: Thursday, February 20, 2025 2:33 AM To: mingw-w64-public Subject: winpthreads: a few more header file cleanups Patch 1: remove old, commented out typedef for `pthread_t`. Patch 2: move `SIG_BLOCK