X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CF4B3AAAC0E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1611881497; bh=uQfZTvOoYp50nPXoPbQVYHZO+1IWLpvnduy375sCgUo=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=oiJy44+YahKtKVkbMf6+ZU9n2kGvKL9Wm0jcJD6wkfp4gcjpgs+jBnmM6fGOrQgcU CxeN9F2M2HkGH1JAR15yV5xgQSHKbugfUyLvTpfgCAULE97UBiqeMkmofdwzSETzda 9J8Qg2x6s8Ks1g1L7hOScNuHQ5nyLt7v8ZKd1Zhw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 88D5139D4411 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=glZ4feohW34Vr7+kr8d3XTEDE4cbPuoQmhn6WltQ88JR8G0jbwfrHekCAiqRr7TnMJmMelN3DC1v7GY08BIXVDlLQEqIUiIgBxLLSNkUgdneQ4vpamn/G7fe/2SdMfCT8ZYV1YWH8PRCNSS4Bvsjr8z2wn7c6CSmoS0gvIDQezMxjYLGnyByczV3v1CNfSVGL88aCqwsRYbZYMg/Ic9Llr5IpY6hwegcKkGcg+lEtPSVsxzK4Q8cPw4RuNrttagGBCdlLrCh+MZ+GQlG3Gr5Vi+6/40JxV0GTuPUFPf+LFL+Et80C7KIFnJXyTS5ewAbvdvQkr96Eg5Z4BOOWmoe1g== 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=Qp1LjEmohP8H+G4Lq1OI40IlSUJZpX8bVyTEV63i+Ok=; b=Cf5D0ry+oeNTrtsnFNoMephdhQ+aOyV+6ybAh7jpzIctNWLjuNBUWm6WSy2n/I0bdDmp//I14iBoZ4TknSrgW4S8O8bKwmsQo2PDmL3DeNohlyqa2zQiFYhNR1ywhS1gcWZIwEYkZ3sqt3pUn5+utQK9RxO9JXwK1Xg5cAVwku/pE/X1ZPklhoYZxcEFHwGUs7FQZju/1wCrigzJ/BeDPSeKHXg+FJlgd88s/YDo0ogOkqtHblaagUnPHJfmYdKWT82Ba83JM2pNXxWoIz2nPFZ96lGyc+MDP+5BN+WInKBzCrjM8cIKaP4+EA7JDoRRQBsImK7CFSuz4GhB5vFb8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none Subject: Re: thrd_sleep To: cygwin AT cygwin DOT com References: Message-ID: <16347c28-66bf-1e45-078b-4e69ff5ab32a@cornell.edu> Date: Thu, 28 Jan 2021 19:51:30 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [65.112.130.200] X-ClientProxiedBy: BN6PR07CA0017.namprd07.prod.outlook.com (2603:10b6:404:8c::27) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.13.22.4] (65.112.130.200) by BN6PR07CA0017.namprd07.prod.outlook.com (2603:10b6:404:8c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17 via Frontend Transport; Fri, 29 Jan 2021 00:51:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92f048c3-1534-433e-50e5-08d8c3f005be X-MS-TrafficTypeDiagnostic: BN8PR04MB5953: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:983; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3sfOU+tT2nsPPn3GsShTawUG82FyF9I5EvuMsWc0Wc3Ui4yDkyJ7IM6kEnPKapLkuskcuwyzAtHyEPPoH/cRAE9MnEhH/Zyq6QFFoOJ8GezDzL0382puM9VqTiaKJ0GsTNVk9kPnbJS9xRBJ3bFEhqzDYDz7WfFbTmzgQfokP08anBPbRzCbAVdXo97QrgHTjuX8SEMhV0PmkLyZLnD3JAs3au5I/n/Dhc9W/7ueuir1IW508yR/D0W3aaqJXxCGQFgntpZDyTeefXOsFK51iVnggD8fqx9CKqVXArgDGfTnvxvt7vBKr6sQ2KKpmDiPwHPCvNJrzVZd6tj3ofxzLjFMVdcZ4mF27dkH7kMiz5YkvdJyl6Ot2CMzGfpGRxQWS4r42yQTW+UnI9b88v0uB8UpszeXXCj2lfRIe+7nzqjafgeAUJLebOaGKFQG+f/DebTjJo80gmzlfFUah065c0gI+tOX9LybOHmnYt3Q7TwECGau6+qrQZijsyE5O28EFI0AorKrTM9u1cWy8GfJalwcDgyDN5PPFUS1nMY9+lblQ+D7v4szfvdOQX39aT+6tapyiJ8+Y9xI7Xns8pz4XJ9F1K7WgqxG/hQ7ZkvZKesQfSrtlvDr6cQz5wf+kaMQ9wmmG0SQ/EGqfqNf7wvlwre90Vxl9VSlTGnwZnewVKq/7hJ3Yef3vwE4nTKZ7sVOiPlFAeswgWP37+mZ7CD6ag== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(136003)(376002)(396003)(366004)(26005)(16526019)(478600001)(36756003)(186003)(5660300002)(956004)(16576012)(6486002)(316002)(2616005)(31696002)(4744005)(53546011)(6916009)(966005)(66946007)(8936002)(786003)(7116003)(2906002)(66556008)(31686004)(86362001)(66476007)(8676002)(52116002)(75432002)(2004002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?M2ZDQXZVcUI3Qmc4MVhWeWtzNGhScFhhTFdvek5tRGZMWTB3SjFxOW51ZXZi?= =?utf-8?B?SDRWTC9KKzFjaVFHVE05MVJPalRHWmdpcGdpVGtsN1BRNEJsdGhoMHdVa0hv?= =?utf-8?B?ZUhqLzVNQXVEY2NVMWprVVJBVVQ1VzFHUy9KY01mQkhzZmhwUkRnaGhNU0M2?= =?utf-8?B?K3JBZkl0SnY1YngzTVhvci9RUGVROVRYRHFpbXJSNjM5bk9wOTg5QW12WWlP?= =?utf-8?B?eEhUSGwvb2Vnd3FGaVNqQ3FQOHl1RmhockZEWm04bENKT3orN1BaeVQ1MVJT?= =?utf-8?B?QjJHYWgzVXk2Zzlxb0dtUENRSVhMOVNQVUROQlA5YXkzQm9mNVJvUUNzcm9X?= =?utf-8?B?cUhVeTVQZ29oc0hpN05aQmUzMUVYT3pKazd5RXZ3ZXprR2ZoOFNjbWxGSHg2?= =?utf-8?B?dXordmk5a21SM296NHZOanIrN2NXK2xhN28vVlAwR3c2dVFkNldUVVVmYXc1?= =?utf-8?B?aVpsaWFoZjdLRXJZM1RMalRFUENPbnNpc1ZnK2VhRE5xc1g4UUJmKzY0WGNR?= =?utf-8?B?MjF6NFJWa0NmeEpxNElCdjh6OHdGbyt1UThqekxpY0xiZjZyUCttZjlaUE15?= =?utf-8?B?Zkx5R0xjVElwc3FvZjZUT21zWmlNSVpReWhJaVNuYmhrSTJtZW8ra251RmFq?= =?utf-8?B?UlBwdk9Renp3dThEN3N6QXdwZnVzeGYyRy8xNStTRHVQdWE0eWUwSkFEOC8x?= =?utf-8?B?bmd2WUZZYUFIVnM1RGwxVHNpV28vN2gwM1pKZEx0L1RLS2tNZmVJVU8xSnla?= =?utf-8?B?eGc0a29xa2d0RmVjQWtNQ1h1Y2kwOWJ2U1VJa04xdnQ3UENqWXdRSU9DSTM5?= =?utf-8?B?d1BIM2V1elkzc1E2T1VIR1pmeWtYMFdKcVMyRXJveVo2N1lDeDNvaE85cUVW?= =?utf-8?B?T1NIYzZuMmwzbHR6bVRoRk40YjJLMkJXbWwwZFNicXRFaUtwc3ZUeE9PQ2Vr?= =?utf-8?B?U1Y2elNhV0M1RGtETjd2bUFtcS95S1RRZWRTamE3cmNnRzNsemEyRnk4RGZB?= =?utf-8?B?K3YzZmU2SjI0U3l1N0w3b1VrYytZODZtUGNybzhyRW8vdEF5RHpQSXZ0V2xX?= =?utf-8?B?czMyaTBpK1crMTdhcVY4WG1tWlJPa0dIUDJGMGNUMEltY1NhMEp3L2dGTjJM?= =?utf-8?B?K3ZIVWVvYWVPbklzYWJDVDlKTWpNa1JBS3Jxd2psTmYza0Q2TUJZWGJwR1Ex?= =?utf-8?B?RlB4dEhYR3UyeUN5dXlINzNkbDdrZU9mQkJQbUJLTW9HZTRSYXJLNmFnSFBv?= =?utf-8?B?ZWFGc1RlMUhiYlM0UjJvUWF5ZytMSm9TSitwVzlXZDRESERib0VyNHczaVhD?= =?utf-8?B?WnBTZVVnR2h1UHB2SEVFS05ObXRsWVBwUXg5enVTYnNMWHMxaUhFNEZtK2R3?= =?utf-8?B?Y3dqYWJZSnBWWW5CTDZHVnMrVkZrUGw5OFRTYXBCYlZFS3ZueVVUUSt2Ylh3?= =?utf-8?Q?8s+gtvQZ?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 92f048c3-1534-433e-50e5-08d8c3f005be X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2021 00:51:33.1799 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mvKP1/yeYpdS50HQRHDhgTXbnbR0B7iv18PXvik4w68wXAUC2gblkb9P5hZFkGFYW55KABhwOwnWTniSBRkHFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR04MB5953 X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER, NICE_REPLY_A, 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-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Ken Brown via Cygwin Reply-To: Ken Brown Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 10T0q4MP028017 On 1/28/2021 6:36 PM, RafaƂ Jopek via Cygwin wrote: > 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 > #include > #include > > 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 This has been fixed. You'll need to try a snapshot to get the fix. See https://cygwin.com/pipermail/cygwin/2020-August/246070.html Ken -- 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