From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs pretest 28.0.90 is out Date: Thu, 09 Dec 2021 12:41:18 +0200 Message-ID: <838rwuukkx.fsf@gnu.org> References: <875ys3qr0o.fsf@yahoo.com> <8335n748sj.fsf@gnu.org> <87wnkjpaff.fsf@yahoo.com> <831r2r47lk.fsf@gnu.org> <87sfv7p9uw.fsf@yahoo.com> <83zgpf2mdr.fsf@gnu.org> <87fsr6pn9r.fsf@yahoo.com> <834k7l3nko.fsf@gnu.org> <87o85tlv9o.fsf@yahoo.com> <87a6hdlukl.fsf@yahoo.com> <83pmq925hc.fsf@gnu.org> <87tufljldf.fsf@yahoo.com> <87pmq9jh21.fsf@yahoo.com> <83k0ggzg6v.fsf@gnu.org> <87r1angb8d.fsf@yahoo.com> <838rwvxofc.fsf@gnu.org> <877dcfdy7a.fsf@yahoo.com> <83mtlbw75d.fsf@gnu.org> <8735n2cyui.fsf@yahoo.com> <83k0geuoi1.fsf@gnu.org> <87czm6ax3c.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 09 11:42:44 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvGsr-0008lg-Io for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 11:42:41 +0100 Original-Received: from localhost ([::1]:46800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvGsp-0006SY-3w for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 05:42:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvGro-0005k3-7f for emacs-devel@gnu.org; Thu, 09 Dec 2021 05:41:36 -0500 Original-Received: from [2001:470:142:3::e] (port=37718 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvGrn-0000eD-Vb; Thu, 09 Dec 2021 05:41:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vjNrEUGNDzOW2OPdJ47B3jUXfKQwvOEQHqwc3RBR4XI=; b=X9XlF8YcRiBr mIIv7N+rGHw7BbgGzcEJY4+puNAoc0wvXmLyyof3gujLB7GI/uI+CDx+dWrpDhVehCNNlB1msYNvR PVvadfpc9/rvBiwcda1OFEBU3lpsKvPhomseITpxhLDkjz8H2IhV7Xcd9QsfIfn67ZKDkjYKBzlL6 t01JhLsxhqJ00QcwxmC0eBYC887JuO7fJgMarq4yq+9GDGu3RbToy6Jq+YlzE9kgipJy3+OsVqiKk lnV31Sct6dJYZMs4Ch/TzpROKJoI2cgoN79QyQM28mFwLJaD7Syivo5Nhm45hy6ITKBYNvlH5HRc6 oIM/QmclpqNpoNBk4lrKPA==; Original-Received: from [87.69.77.57] (port=1319 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvGrn-0004FX-LX; Thu, 09 Dec 2021 05:41:35 -0500 In-Reply-To: <87czm6ax3c.fsf@yahoo.com> (message from Po Lu on Thu, 09 Dec 2021 18:31:19 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281479 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Thu, 09 Dec 2021 18:31:19 +0800 > > > As for the rest, my recommendation is to implement futimens based on > > DJGPP's setftime. > > Thanks, but I'm confused with the DJGPP `struct ftime': do I have to > take leap years and the different lengths of each month into account > when setting the various members of a `struct ftime' from a time_t? No, you don't. You just populate these fields from the time value. > Alternatively, is there some function I overlooked that populates > `struct ftime' from time_t? Not directly, but you could use localtime to obtain a 'struct tm', then populate 'struct ftime' from that, with the necessary adjustments.