delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/09/13/01:43:13

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 48D5hC8s3109313
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ZHNfGepy
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2206E385842A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1726206191;
bh=C5RQVWnJFXgrh49zGXZUTSBmsCcmw+QeP83RDSgtcb0=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=ZHNfGepy1jUZM7+ZXYUy7GjhRd/77gK1yMYqDevVeGWXaoB1IRadEiFKXPLFvntpN
nLoUmEI8Qi/mkkjbp6t8J6yy+HpZQzxFy9Xkm2iiJmJoYoC7OIJ52rSvMxi/NSalvk
Unb37+mIP1cGeDwGjOKqK5CafQmj7X/Ce/ROUw8k=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0A6AD3858D26
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0A6AD3858D26
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726206169; cv=none;
b=KG4ZmoNFnkpUOXSQbIb3S/6NJgZAA2OoakEHALsk3lhuhK+idSSn0IyHbPC76j46SwNdHq7BvUNp9WGA81hj7Zuqz/28t2omRxwECxFvuz4XTTeG4P0yx4Tat//jZxcNmNxE2MI757EKgOY0pwJgBTK/4wez9YaXzc4y0QupqCU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1726206169; c=relaxed/simple;
bh=pqSNRtVa0lLJEFzUXUOqbjaw9IzEObPqAub8T9vE4Vc=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=N2bZYhol8PAzZu/A18Q7oG8WV4mEDTH4pUDBrkdZReRAnx3fZAJWwVRJbMmubXZ/0vMA5FisDuUCDCK0O89ymWzXziLNZjLYf+8k4ZX+FvW9X1QG7AVnrkAH0hJwTElCax/9jHq5rWN5q0CEMmkESdyr77TnMwlNNG4XarGQg6A=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <56737cf9-4336-474d-8e83-285e93f87988@maxrnd.com>
Date: Thu, 12 Sep 2024 22:42:46 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: pthread_sigqueue(): First parameter is incompatible with glibc
To: cygwin AT cygwin DOT com
References: <2e7c69cd-2125-2e88-cc44-1fa63533cdcc AT t-online DOT de>
In-Reply-To: <2e7c69cd-2125-2e88-cc44-1fa63533cdcc@t-online.de>
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, BODY_8BITS,
KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 48D5hC8s3109313

Hi Christian,

On 9/12/2024 9:21 AM, Christian Franke via Cygwin wrote:
> Cygwin /usr/include/pthread.h:
> 
> int pthread_sigqueue (pthread_t *, int, const union sigval);
> 
> Linux /usr/include/x86_64-linux-gnu/bits/sigthread.h:
> 
> extern int pthread_sigqueue (pthread_t __threadid, int __signo,
>                               const union sigval __value) __THROW;
> 
> 
> It is apparently the case since the very first related patch:
> https://sourceware.org/pipermail/cygwin-patches/2012q1/007565.html
> 
> RCS file: /cvs/src/src/winsup/cygwin/thread.cc,v
> ...
> +extern "C" int
> +pthread_sigqueue (pthread_t *thread, int sig, const union sigval value)
> +{

Thanks for the report. There's a couple things wrong that I can see 
right off the bat. The first param should indeed be "pthread_t", and the 
Cygwin code that implements the function should treat that first param 
as a thread id. Currently it's treated as a 'pthread_t *' to match the 
prototype.

I'll work on a patch for these issues.

..mark


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019