回覆: C11 gmtime_s support in curlx_gmtime
Joseph Chen via curl-library <[email protected]> Thu, 30 Apr 2026 13:20:39 +0000
| Newsgroups | gmane.comp.web.curl.library |
|---|---|
| Message-ID | <TYSPR02MB81337F920852528F657A2FC490352@TYSPR02MB8133.apcprd02.prod.outlook.com> |
--===============3286604483495153158==
Content-Language: zh-TW
Content-Type: multipart/alternative;
boundary="_000_TYSPR02MB81337F920852528F657A2FC490352TYSPR02MB8133apcp_"
--_000_TYSPR02MB81337F920852528F657A2FC490352TYSPR02MB8133apcp_
Content-Type: text/plain; charset="big5"
Content-Transfer-Encoding: base64
SSdtIHNlZWluZyB0aGlzIHdpdGggdGhlIElBUiBjb21waWxlciwgaXRzIHJ1bnRpbWUgbGlicmFy
eSBwcm92aWRlcyBnbXRpbWVfcygpIGJ1dCBub3QgZ210aW1lX3IoKS4NCg0KX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX18NCrFIpfOqzDogRGFuaWVsIFN0ZW5iZXJnIDxkYW5pZWxAaGF4
eC5zZT4NCqR3tsewZTogrFC0waV8LCAyMDI2IKZ+IDQgpOsgMzAgpOkgMjE6MDkNCqaspfOqzDog
Sm9zZXBoIENoZW4gdmlhIGN1cmwtbGlicmFyeSA8Y3VybC1saWJyYXJ5QGxpc3RzLmhheHguc2U+
DQqwxqW7OiBKb3NlcGggQ2hlbiA8Sm9zZXBoQGJhb3J1aC5jb20udHc+DQqlRKauOiBSZTogQzEx
IGdtdGltZV9zIHN1cHBvcnQgaW4gY3VybHhfZ210aW1lDQoNCk9uIFRodSwgMzAgQXByIDIwMjYs
IEpvc2VwaCBDaGVuIHZpYSBjdXJsLWxpYnJhcnkgd3JvdGU6DQoNCj4gY3VybHhfZ210aW1lKCkg
aGFuZGxlcyBXaW5kb3dzIGdtdGltZV9zIGFuZCBnbXRpbWVfciwgYnV0IG5vdCB0aGUgQzExDQo+
IGdtdGltZV9zKGNvbnN0IHRpbWVfdCosIHN0cnVjdCB0bSopIHZhcmlhbnQuIFdvdWxkIGl0IG1h
a2Ugc2Vuc2UgdG8gc3VwcG9ydA0KPiB0aGlzIHZlcnNpb24gYXMgd2VsbD8NCg0KSXMgdGhlcmUg
YWN0dWFsbHkgYSB0aW1lIG9yIHBsYWNlIHdoZXJlIGdtdGltZV9zKCkgaXMgcHJlc2VudCBidXQg
Z210aW1lX3IoKQ0KaXMgbm90Pw0KDQotLQ0KDQogIC8gZGFuaWVsLmhheHguc2UgfHwgaHR0cHM6
Ly9yb2NrLXNvbGlkLmN1cmwuZGV2DQo=
--_000_TYSPR02MB81337F920852528F657A2FC490352TYSPR02MB8133apcp_
Content-Type: text/html; charset="big5"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dbig5">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
I'm seeing this with the IAR compiler, its runtime library provides gmtime_=
s() but not gmtime_r().</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style=3D"display: inline-block; width: 98%;">
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<b>=B1H=A5=F3=AA=CC:</b> Daniel Stenberg <[email protected]><br>
<b>=A4w=B6=C7=B0e:</b> =ACP=B4=C1=A5|, 2026 =A6~ 4 =A4=EB 30 =A4=E9 21=
:09<br>
<b>=A6=AC=A5=F3=AA=CC:</b> Joseph Chen via curl-library <curl-libra=
[email protected]><br>
<b>=B0=C6=A5=BB:</b> Joseph Chen <[email protected]><br>
<b>=A5D=A6=AE:</b> Re: C11 gmtime_s support in curlx_gmtime </div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-size: 11pt;">On Thu, 30 Apr 2026, Joseph Chen via curl-l=
ibrary wrote:<br>
<br>
> curlx_gmtime() handles Windows gmtime_s and gmtime_r, but not the C11<=
br>
> gmtime_s(const time_t*, struct tm*) variant. Would it make sense to su=
pport<br>
> this version as well?<br>
<br>
Is there actually a time or place where gmtime_s() is present but gmtime_r(=
)<br>
is not?<br>
<br>
--<br>
<br>
/ daniel.haxx.se || <a href=3D"https://rock-solid.curl.dev" id=3D"OW=
A38b70ff1-3550-3d84-4ff6-b03a90b07140" class=3D"OWAAutoLink" data-auth=3D"N=
otApplicable">
https://rock-solid.curl.dev</a><br>
</div>
</body>
</html>
--_000_TYSPR02MB81337F920852528F657A2FC490352TYSPR02MB8133apcp_--
--===============3286604483495153158==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
--===============3286604483495153158==--