From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Function to make a struct timespec from a floating point number? Date: Fri, 21 Jan 2022 09:36:27 +0800 Message-ID: <87lez9zx7o.fsf@yahoo.com> References: <87czkm1sry.fsf.ref@yahoo.com> <87czkm1sry.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4589"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Robin Tarsiger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 21 02:43:31 2022 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 1nAixf-00011f-7J for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jan 2022 02:43:31 +0100 Original-Received: from localhost ([::1]:44996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAixd-0005ZT-Nq for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Jan 2022 20:43:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAir1-0002FY-Hl for emacs-devel@gnu.org; Thu, 20 Jan 2022 20:36:39 -0500 Original-Received: from sonic302-20.consmr.mail.ne1.yahoo.com ([66.163.186.146]:39299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAiqz-0004B8-IB for emacs-devel@gnu.org; Thu, 20 Jan 2022 20:36:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642728995; bh=W/psAGnrSEXciCK7u7UnvDpjR8YoWw7tRN2tfmzum24=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=YY/gGf2QNefZKHPCNn85H0IdroOxVbq6VqC4IA4aSGw3/AgO+FnP8KzC//Pne7d951HqzeJ52JfG757ZWNPCc6kxsz2r6cmn0kdHrJftkgGYVki0Ex3mwIqrOefQHaxOmgMcqKPUs+ExtgvTbQMTgJK5vdLDDjn9itHvVAwnF6aEU3dpZN6Ho+39fWmxq7MEYgHnwRXuzQJ36/9tZwwe5T0T5v/nacYSa24KP2Elc/sJMO7x0vLGcrUALMhHwBQFCzgGpyzS+bFj1vEeNbcHEgLg+C563y8Ml3ax9FtMr83/0xi3bX40DRApKf1xW+rUng+z1bx/Niv2xCzsBB/ZTg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642728995; bh=aY+flSQW26YW5Wt5vlmNehTZEGDGnPk5QOikuKrF3rs=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=dTd9gxjDOXG7ID3ZSJq5WJwDHx33NcpamSk8V0pJQs24mDuWQTijboPJl4QiNqS8eJtq1jH5oS+/hsf35ydHNHAhQEWKasFfDbcZTSNX4o5adYR+FD3JOYkF4XdoIGXUa7jcCnwb4NxD7GjPNUSdWCE2UcMizRPFqPCtA+Go4egXw9cYgx0Th1xFEjTwPqZTPrbrqDJuQysezzQasnkyorHtWhkkCTtcISY2VHocwZ52GKqzeaue2bDoWtRwnWoem8oB5bMYyGFbN9mtOtgr1zc+tfeeVUhy22KgQGjDnMoWDku+SMF3CvvlzyZ3Gxkd0s4Rgqevhz0LL01dXj80Jw== X-YMail-OSG: WIYV55AVM1kTpoEFQEfIAgB6Uwd9WdHModvWc4J9doBPA8QIxSAFWBNZ.1Wy2T7 .CcOKA8sPvmYuOQhWhDLaKO2l7PkVjDDIc3XeJe6V0J_ur6fYBebgqG2xOt_jECIT_CVfrXwd.2B ATg_1Z23Smcf1xNeVQC8FTRlcEut8Ex4UeuoFccELDAUNd279NEDeQiFsHJnP1Xg8eongffJK_oY iL6VmB5jMd2bhkdXoQsjpOR6l6BEj25OoLMlrcNi_fW.a1MSyfDVEUNQkmgNnv.baUFyLWPAOReZ mlmGlYLnAg2roB8QnOpQ2v8MmHrxyKsL6bZWM07D.NiDsj1t6_AYJhF94.W7fO_NSk7pRQPR.c7q kz6YorJGGFicWqxxvDDyS30Z2z86PM5lxstAAo0zd3CkPhiUaoy_.ITowkBanwKLPU5tWfwH6hhp lEVjOEfayqjD.JPvo_xo3LdZjacfjYo3wA9d4AlSwd345HH3Uzd65vM2CEGHOE1cgz_WVWIovB9o snrIN8B.WeL66.SF9ZPy3UeWsuAP2qColtTCWgBE.4cAiYuESP714TfFLNfv7g.qMyydgSbB7mlg ULoACBcNK1yrAIBbJKKleKG3IJWW_uzbexLDI.mX_j4yryHDY787TvUTKjV.cycJhNlofST3CE0e 8g7WjBEuijIfl3ifXe4xer9GR0X3Z_g__Spmr3QlA3c8Fl4BXZqdzvWof.HSlYmCVf_fIIUu7caM N.EhaYSyjBiZdvJ_2_LWrb49gddlfcwd5zxD4.JSkxxv4pKvZDPxYHJWbMOxYZ.mOXVti.BAq47u E3xf0bqJC5ANmSmr6gg0VwuOWfAoUGz1VqAxy5EZS2 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Fri, 21 Jan 2022 01:36:35 +0000 Original-Received: by kubenode515.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d2cf2f29abeec813dc7f5708fe3e7454; Fri, 21 Jan 2022 01:36:31 +0000 (UTC) In-Reply-To: (Robin Tarsiger's message of "Thu, 20 Jan 2022 12:31:08 -0600") X-Mailer: WebService/1.1.19615 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.146; envelope-from=luangruo@yahoo.com; helo=sonic302-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:285069 Archived-At: Robin Tarsiger writes: > I spy a =E2=80=98dtotimespec=E2=80=99 in lib/dtotimespec.c. Is that what = you wanted? > >> Thanks. > > In case it's useful to you in the future, I obtained that by a fairly > simple search across the C files for the expected return type at bol. > I used =E2=80=98less=E2=80=99 at the command line, but =E2=80=98dired-do-= find-regexp=E2=80=99 would > have offered something similar. There are not many functions nor global > variables with a =E2=80=98struct timespec=E2=80=99 type. Thanks. dtotimespec is indeed what I wanted.