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.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: boot time on Linux Date: Thu, 10 Aug 2023 14:58:44 +0800 Message-ID: <87bkfftmcb.fsf@yahoo.com> References: <87tttmpt5h.fsf@turtle.gmx.de> <5962135.d8TiXCRyrx@nimes> <875y5nve2k.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28625"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Bruno Haible , Robert Pluim , bug-gnulib@gnu.org, =?utf-8?Q?P=C3=A1draig?= Brady , Sven Joachim , 64937@debbugs.gnu.org, Natanael Copa , Emacs-devel@gnu.org, Thorsten Kukuk To: Paul Eggert Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Thu Aug 10 08:59:14 2023 Return-path: Envelope-to: gnu-bug-gnulib@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 1qTzda-0007F6-7o for gnu-bug-gnulib@m.gmane-mx.org; Thu, 10 Aug 2023 08:59:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTzdR-0002d2-VR; Thu, 10 Aug 2023 02:59:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTzdP-0002cN-KV for bug-gnulib@gnu.org; Thu, 10 Aug 2023 02:59:04 -0400 Original-Received: from sonic313-10.consmr.mail.ne1.yahoo.com ([66.163.185.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTzdN-0003Hd-1T for bug-gnulib@gnu.org; Thu, 10 Aug 2023 02:59:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691650738; bh=P5HqlqbRarELjAmXuX5fKYE2Xj9Pa+cPXM44TSxyvso=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=eOm0Ds14+XuQw7LjrDl4n2VsgHNbqtKidc/JwHsdRlBn3em2Wbfc+Cv7OW6Njz6nYO6x5t0MxRVfLmrjw2ijsFsZbRglSf2oLJzdQ9YwJFFu3qmJ7stJuMX/URhV5dqbyn+g7xuIguuqhUxtb2MS0OIt/2Tr8mBpl8Qrs8Cefln2IQWQx/qXZQ7wxCNKQ+2lqpWSSml2p3L4GWBG4STV19r6GoyMt8rcfESkt7jiBqow02WrkzD7vgUEhEVDgocslmSwi6EXeI9Fs91Hhp2so79EjZKuuhsWS2TnLg9p+5efS3/yWSnwGU+HXpAEXqK4/0tAr7zn6Evy6nCuEVbeHA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691650738; bh=eX1+dC/CCdWoWsWlvGd4y1d6hHzzzk4hG9cUziH0H0D=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=mF9tik7xZylhjcDJxot1urNDcoA6wEHphJSPJdkRWZu3rYBvT1QWU1+BzQesfaf5mS9xS1J4zRgvvcHcp2J6TJ3Z7aY+DynoeS8sTulO32dadPelXy/C/x1lhrAzH4Vdk9n9UGz18yU4QOXKAzvWRBGJjZL5uzshZmDCSq3c/zaNiyy+2c2MTsJzYkgKRBfzzATsu3CjgWIzMEtN+sYiT1CL8a0lGVXrdLIx2IvsPoqb8XTG3DRZpTWyRxJdaYJRGjFzecmY+Df8lPT25/6zEykxgreabwtLbd/dpsSJJEScK0oQV/HA+CFKZnVEuo7tK7vxiqi1fXvEbI+YndP2HA== X-YMail-OSG: 5HdEriQVM1l6zPmtmqbwD3QyjpHFozXB22t0zLrIk_Xnni1JzFXbMPlbwotyljb 4R_GtPmfhEYlcImNOaseZzTpXeMs.bb6_s3WlnYmtlGGgDABRKFT_8F7x1MY2H3ukazvRNbALEEn CAyyiFaGbKT.h6TqT5eT_v3.t.4ZckgctC4xIp1V9t.szmJqO1Wktl1xigBUy8rTKYOryYAh5JWC A5W1Wj75udXs9EijI8OJqKBOrzLS6iBVnIaPy1GIfGZdMpFCGpKlP53Dv27wia24e_MNF1Hri6n1 E1bbgIhVkkQlL.MuNFwHoi26diCrzFbPapI5eklYDjV6RPpjuSZoSpmOQNr5yu4FAjsn9DjBRMbC Fm3oh_g0D8YV3.C57fXHtyzT22fqsgukLYwQzLIg6ezIzRDp6OSd3KMd2VFtXOQwHnzoWc5dB46s LhcygcDkK0DBBjaEOvuNlPCtlk8tWBaLzuvZa99i3lM2BLA5uvDvu5lKIZECjZTdlNVEVps_V3br SNkqOKxRsznCRkZcEWglgfZ7LHJ9sKkJw9f9Y5cWrSeAF1e8wkt_Z7yQC2k6dvcpLycVknSqv7wq b2IxTPQ9GMjjRu3TXwyQWGANnMy_MiDeoj8U2tcUuH91OdOf8uODOdZVB3FO3pnHT08iIX_VrfNY xjlq9cS58nXTb.VdpcgMAfT5_Xcbwh7Jb7hGhLvtupb9ISDOf4bSJKst22me1nObDExOqzBx1M7h VSXkJ_BUDyUXpsCOOPsp48L0vnqW.9ZrMqypQn5xnNuRHTCuE9wYMZdA.SgsG0zMRaeXWkO6qJMW mpH6JjY21d8WoCYXSBfrSXocVk6.rdh0cKFqdhUH.K X-Sonic-MF: X-Sonic-ID: bd178c8b-4a36-4f42-b415-ee6c1e59a442 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Thu, 10 Aug 2023 06:58:58 +0000 Original-Received: by hermes--production-sg3-69654d8bd-nqk75 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7f580949c8e73f43f1f3e84821b76f91; Thu, 10 Aug 2023 06:58:51 +0000 (UTC) In-Reply-To: (Paul Eggert's message of "Wed, 9 Aug 2023 23:22:17 -0700") X-Mailer: WebService/1.1.21695 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.33; envelope-from=luangruo@yahoo.com; helo=sonic313-10.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Original-Sender: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.comp.lib.gnulib.bugs:48137 gmane.emacs.devel:308511 Archived-At: Paul Eggert writes: > On 2023-08-09 19:14, Po Lu wrote: >> This uses the uptime counter (which also results in an SELinux denial >> for me, but different Android distributions have SELinux policies of >> varying strictness), which cannot establish the precise time the system >> started > > Emacs doesn't need a precise boot time. All it really needs is an > integer that uniquely identifies the current OS boot. > >> since time elapses between the read from the uptime counter and >> the read from the RTC. > > Emacs allows for up to one second of slop in computing the boot > time. (In other words, it assumes that reboots are at least one second > apart.) So if there are minor errors in computing the boot time it > should be OK. If the errors are greater than one second, though, > lock-file may assume that locks are stale when they're not. OK, but the SELinux problem still stands in the way. There's an uptime counter in the Settings app though -- I'll try to establish how that works.