delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/28/18:37:20

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7689388A83D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1611876997;
bh=oxjtkyM5GwLSOJjnLCHeo8Y3HEfFck5W8Z7FIR78Owg=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=l2nmihKvb0hsjtHExbvAo5qUEhmzFXGx7jEcKU1e1KPMSnoS2FLkcdR/1vCyFPx7c
IE+P9QdLwXfgjNGad1OD9r+uJ7oEYZ8Bqt4wOHoK4QQpc5brRY7xJbblOP2eLFKyJc
Fd6LzbR1XjgCP0ySGua5SG92J10smQF8xQTomvHg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CE412386EC57
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=LYuHje4nZWpbyc9yD7Yh0hdrIYEx+Am01a2MoTPrJ0FMN2ohdnSLZg7lG/4oSgiXQExxcp2LP4rhyPpIdS+tPj7w42D9RyKcGxd++aq8a+FtbZb0S5/ZcazaKlRqEBpSknkRlZqfEfwGBbkjePVDO1A6d+O0ajI0s7MKAZ1YTEf30cpXjC4mZndif00iIpoJznicxUlpdh7zwW+edVZ/Nmsb+38WC5uqPIKpfAddUUNChv+jPh0PD6kMl5B7KY7A2Gji7uF0Yf3uHgwBrVZpkW1KHHEJq7/1dhsNvy4sXH0rEO5T/uyEilSPU95SriiYqY4uNekadRXGyK+QK8WG1Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=Q7czLSVNMPcByUE+R5poLZwI+DQOUHuydp2kK9LjUsc=;
b=hV5QFOqXWEPiETVAn+Dp+tl8ARAVwdCDxHpjrL8FJo3ZGo/6M4uuV3zz8RS3PWiB7yjTk3UfG4vQve8jW+ykOeyC9t5VY0fOKUAvn+bTNasdVe3/ytmsYskosJT/4KEFRsCN6kq2DASqbRc5SoShYNcP9GDXMfew/FQKbK8uZ5w55qnIGKySrDRF1v0srw4VdpLNrHUUpsrHr6JBtICr9hF4WC5f8oW7KXWpTbhbWM38d3GajetpHEHMaQuz08J4gfwxKjpwmKMhPRuj+zi2uQiJH/nr5PhRjEgVGoYbKolpNIysot+zO2TRhwjXam73Vo0II3Y9fs2DX6aYh9ly0A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: thrd_sleep
Thread-Topic: thrd_sleep
Thread-Index: AQHW9cxhTDi0pBOUUU2t43hLgO9VUQ==
Date: Thu, 28 Jan 2021 23:36:32 +0000
Message-ID: <AM0PR10MB25163DA2BF075E90C50FABA1CCBA9@AM0PR10MB2516.EURPRD10.PROD.OUTLOOK.COM>
Accept-Language: pl-PL, en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-incomingtopheadermarker: OriginalChecksum:60A2FDE962E9AC4764617D38EFF1E41AD72114865C23EDAE82E0B1127D77BEAF;
UpperCasedChecksum:F62FE52848CA94A2EF6D39A544D10ED935514A681CD5FB6844FE09137751AFB7;
SizeAsReceived:6576; Count:41
x-tmn: [JV01uyNr0m+Lwcjxh0SZkrW5y4GuYylo]
x-ms-publictraffictype: Email
x-incomingheadercount: 41
x-eopattributedmessage: 0
x-ms-office365-filtering-correlation-id: 77cb05ed-72aa-495c-3fe7-08d8c3e58ba7
x-ms-traffictypediagnostic: DB8EUR05HT180:
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: l9Qfh/nm/NPqnXfAEUbg751TZAGo1RMfCuizsc1bFjwue5CezsDPiCjkImzoXVWpWA71cFttj31I125h5ymjiKR8JxJDl5bToUyz2WQXZZyuyaYtjTEwXSGkpG6GKcAVt+e2p+S5AJqJIPghMWT5SkY5zJxDO2UUsHO/SMU+L8PUR2OQw3fMnTOoTgQMSs+VerIQ9WrfK+jq5RzsMbEmk8x4a9gSUIqXiQFtUawGLWHtLqTIPCOHiWClo5Qu5K8USxvN+v7BNL5joR6J2Zc4BKpVkZKglFetl2n11rYsf76O0fmaaRIPI9b4KeL6DOTveVWWG/P4IUjKiG4Zqfj7dnLER6EEiAiVa75TpA7Gyo+gv7881DnxB5y1xDRhLujGuRy+i6aUYa8F0vcQ5wAvBA==
x-ms-exchange-antispam-messagedata: COgyoj/y1HpTCy4dxXetC5w9967gydf8bWk2IaikGCgClysdIrIR3OA4DQem2ghH/PRdpbE07/E87H8PIfeAKhXo6lfL4YiTgd6meHig6TbX/G4WyU2wf7co4qEm8i4GX6fpJ9gKE4/AcEORH9+6jw==
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT047.eop-eur05.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 77cb05ed-72aa-495c-3fe7-08d8c3e58ba7
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jan 2021 23:36:32.9436 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT180
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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: =?utf-8?q?Rafa=C5=82_Jopek_via_Cygwin?= <cygwin AT cygwin DOT com>
Reply-To: =?iso-8859-2?Q?Rafa=B3_Jopek?= <rafaljopek AT hotmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 10SNb1Hr017848

Hi,

What package should be installed ?

I use gcc under Cygwin:
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.

C11 standard (ISO/IEC 9899:2011):7.26.5.7
The thrd_sleep function (p: 385)

the code that compiles:
``` c
#include <threads.h>
#include <time.h>
#include <stdio.h>

int main(void)
{
    printf("Time: %s", ctime(&(time_t){time(NULL)}));
    thrd_sleep(&(struct timespec){.tv_sec=1}, NULL);
    printf("Time: %s", ctime(&(time_t){time(NULL)}));
}
```
compile error:
/usr/include/threads.h:30:10: fatal error: machine/_threads.h: No such file or directory
   30 | #include <machine/_threads.h>


- Rafał

--
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