delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org C59263858C42 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1708428897; | |
bh=5Er83M0iMNtnY/qWy1btG4KJF9J1IAysgmmKQTk1fOU=; | |
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | |
From; | |
b=VIcEPbhfm/N++L5uxJ9n7FWgGuWNToACQxE5dRyDO2arjweP3Gkxza140EBIn+C7C | |
DIABCLf1r+2HlOQuVGwYng4FRl2D7xdgWakQdHRYWadCZRNHVJOKNfbLqAUY6V4C1i | |
8G7l8B8ascu/GSG745KtfOp73IwR74CrVm07h8Us= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 7E35E3858D20 |
Date: | Tue, 20 Feb 2024 12:34:33 +0100 |
To: | 109224573 <109224573 AT qq DOT com> |
Subject: | Re: BUG: gettimeofday() didn't handle first argument being NULL |
Message-ID: | <ZdSOScV7yG91fNWt@calimero.vinschen.de> |
Mail-Followup-To: | 109224573 <109224573 AT qq DOT com>, cygwin <cygwin AT cygwin DOT com> |
References: | <tencent_ADE1F2996E16CBB6F3A2956A2044485DD105 AT qq DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <tencent_ADE1F2996E16CBB6F3A2956A2044485DD105@qq.com> |
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: | Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
Cc: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com>, cygwin <cygwin AT cygwin 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> |
On Feb 20 19:15, 109224573 via Cygwin wrote: > this code works on Linux, but not msys2: > > #include<stdio.h> > #include<sys time.h=""> > int main() { > struct timezone tz; > puts("a"); > gettimeofday(NULL, &tz); > puts("b"); > } > > > I guess the reason would be > winsup/cygwin/times.cc Thanks for the bug report. Fixed in git. The test release cygwin-3.6.0-0.46.g70653fd8f1db containing this patch will be available shortly. Corinna -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |