From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12563 invoked from network); 14 Oct 2021 18:12:24 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 14 Oct 2021 18:12:24 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 565F92492A for ; Thu, 14 Oct 2021 14:12:23 -0400 (EDT) (envelope-from bounce.mMf1f6b24803e829b411b0691d.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 5375C430D43E; Thu, 14 Oct 2021 14:12:23 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Jf7u11W5 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=conor.williams@gmail.com smtp.helo=mail-ot1-f46.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1634235143; bh=bD2at9m8aQZOMEXI 91WSjJxsKob7blU9R/Df3yCXX1k=; b=U8jubPS4FP3rEtpvvcal/yKqJQUz4RWu A7aX9oHpEsQ+9GRa8PLi6EdUV6Yj6qdjrZvw4EnbTQB3i9luG2YSOa008EMpcel1 b3e/kxtaSfPglD/4wNaNXemMYUZWfSDmHfM9RNt1TPcxQD2JW+HjmA2Cx5i8/IoB TfNcLDPT2Fk= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1634235143; b=iNMAInQ31TAj6go5oTMzYEFVr4Q5kTTPZ6eZ128GZvN/5TiZBF WWQbSHlYWGUnpW+8r52ib1ddEF2BKQuz/+GSvhxqmVWYvaVoLJ+gZiyB6LOvbrDZ aS0UgZn+hXq+HcBzIRovzhTycXo4XSclz3d8cktcdK4e1jA/nd4V8xBD8= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Jf7u11W5 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=conor.williams@gmail.com smtp.helo=mail-ot1-f46.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Jf7u11W5 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.210.46 (mail-ot1-f46.google.com); spf=pass smtp.mailfrom=conor.williams@gmail.com smtp.helo=mail-ot1-f46.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=qPhQsmPH; x-me-sender=none; x-ptr=pass smtp.helo=mail-ot1-f46.google.com policy.ptr=mail-ot1-f46.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=+LJdAuejeEv7Pm416g5EdBEfvDgx3/mAFD0ai1y9GTQ=; b=KTAsL14mlRLL 1osddxr8OKdsZ7SlAbeR7FSZYVqp5tKqsuDeERG1jQxrlab2Dmh2ZqgjK++DzkbL xW7oZw7PaE3BQ+WZD0BAWikp4L3OFdAPcPomy7YOG0utfZHBHm+jwaa0jAJwigfi ezdQuTec/ptWGB3ELo0kVUFCmLiLvpw= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 1BCD4243744 for <9fans@9fans.net>; Thu, 14 Oct 2021 14:12:10 -0400 (EDT) (envelope-from conor.williams@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 3B7B152B783; Thu, 14 Oct 2021 14:12:10 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1634235129; b=f3RSjla3wLD4EozJVXXBWlY6qxIzEhps9UwSqpJuFlbjNnUOaf 41ld9M0uxjr7RwbUGoiSX08wdoDRD46F7cxP4QG4vTdzDdGsY+NINrd7Az6+Up1t OZRwkSxLBY2buAhoKFN4jbCoO9wSk9FO963iU1hDIfN5woO7EMXr0Bd1uY8/Figt sr87wSFddxrp8KXdi8ctH/A0nuuweUWy9USK4VTIgZLFxIpTbhnYGJPchGCyS8Ll Ryj2HTqah0VDWbHi635bXDlUbCDhYqNtlw6DlyrTY2s9R2J7BcOrbEwEUWDMIKDm oKepssplTGUDjro5ViHCIE+Y0Xx1FpaANrgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1634235129; bh=jzTOeayX33REAwv6YDNPICqzdZrMBLCfziqrn5XBETE=; b=J+CJvv6ktNpz 17DD+qohFUZEqYKFe8pPG3I9bPr39isTxWqFUHwh9l6Sx4mUyOwYIZCN0ZBptm+Z jRHv7jfk6xmSJr9gVgdgvRSEeQW5TuLMp0AlO8RMs7bLc1yJcpWWkcJ9vzdKvaBu fIMyMuufCIFj7saZHMzEe6MhBa8QL3X2a/fCIYM4vUC7j8KpnnRATm7k7F6QTuRW si/fK4aocWsoZKzeOLa31aE22H3nGM1uEcG9OFlnxE5g/NJL4KvIkp4KJt7sQiG6 CYCqkD/WKaIrZkM68TTJrnvSVlQkximVw4cHk5r992iuS/0/e9ZupD2TqvrT51yX Toq9CXbmRg== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Jf7u11W5 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.210.46 (mail-ot1-f46.google.com); spf=pass smtp.mailfrom=conor.williams@gmail.com smtp.helo=mail-ot1-f46.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=qPhQsmPH; x-me-sender=none; x-ptr=pass smtp.helo=mail-ot1-f46.google.com policy.ptr=mail-ot1-f46.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdduvddgudduleculddtuddrgeduhedrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecunecujfgurhepgghfjgfhfffkuffvtgesrgdtreertddtjeenucfhrhhomhepveho nhhorhcuhghilhhlihgrmhhsuceotghonhhorhdrfihilhhlihgrmhhssehgmhgrihhlrd gtohhmqeenucggtffrrghtthgvrhhnpeeuteduudffheekkeehjeevgedvueevffekueeh ueduveehtdetudeihefhieehtdenucffohhmrghinhepkhgvrhhgihhsrdgtohhmpdhssg hfrgdrfhhrpdhtohhpihgtsghogidrtghomhenucfkphepvddtledrkeehrddvuddtrdeg ieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtdelrdekhe drvddutddrgeeipdhhvghlohepmhgrihhlqdhothduqdhfgeeirdhgohhoghhlvgdrtgho mhdpmhgrihhlfhhrohhmpeeotghonhhorhdrfihilhhlihgrmhhssehgmhgrihhlrdgtoh hmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'conor.williams@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="conor.williams@gmail.com"; helo=mail-ot1-f46.google.com; client-ip=209.85.210.46 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Thu, 14 Oct 2021 14:12:08 -0400 (EDT) (envelope-from conor.williams@gmail.com) Received: by mail-ot1-f46.google.com with SMTP id g62-20020a9d2dc4000000b0054752cfbc59so9415350otb.1 for <9fans@9fans.net>; Thu, 14 Oct 2021 11:12:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=jzTOeayX33REAwv6YDNPICqzdZrMBLCfziqrn5XBETE=; b=qPhQsmPHjtz6s3V+Ut/NYgXupqdbGQPnkFlxPakWLv9EhefRmoh8bIs4hl8uNkedGn o2mFSMmaHzsGj0uX5JNOPuwgimUbrGM7diLoKeYdI8BKlDEprfQNED0a903eBm0KMAHD A+iUvqmI4MBKvlf/+q0aeW3egkywztexyakcnql4Yb/FXKTFPtx1m+wQf+W8nsCtDUIo xdEbRvrMPCbVACfcg/OCVault8r6JltoAsjXpOrs+IP94fS8ahGd2UyGaWZYXS7rCv4e KovxVTewsv64fIpKyHoWekEfU7EG3ADMCUQCsTZIlPdqyOXyKrW9lkALunwys2/rhhIJ 04QQ== X-Gm-Message-State: AOAM531IvEHVegfq51yEyrvzCdrI2fygLMLgNj42MDdWK/9qJEYxlWHw EKY/eo/mPFh2rgAf5/PiP9Ec2VA/k/A++MZiK5U7b3obgeU= X-Google-Smtp-Source: ABdhPJxW7yT9IdN1gf0ykLq5frFJXygj3VHzLxMLQgmz9FAc1MH37BRHtRUqksefQo5qvoyV+XJ3vtjviHG/uzzxeKo= X-Received: by 2002:a9d:7354:: with SMTP id l20mr3880426otk.187.1634235127702; Thu, 14 Oct 2021 11:12:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Conor Williams Date: Thu, 14 Oct 2021 18:11:54 +0000 Message-ID: Subject: Re: [9fans] Re: APE:sys/time.h: long instead of suseconds_t To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary="0000000000004428dc05ce54042c" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 44180e2e-2d1a-11ec-b640-e2adec0a6e8b Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMjMyYjcxNzYzNTJjMDEyYi1NZjFmNmIyNDgwM2U4MjliNDExYjA2?= =?UTF-8?B?OTFkPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mf1f6b24803e829b411b0691d:1:o5-vlxc9ZG9iknGEF1BZasS8CtEsyrUuET3iIA_td3I --0000000000004428dc05ce54042c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable surely you can shift a 64 bit long? On Thu, Oct 14, 2021 at 6:04 PM wrote: > Le Thu, Oct 14, 2021 at 07:56:37PM +0200, tlaronde a =C3=A9crit : > > As suggested by ori@eigenstate.org, I have used gettimeofday(2) to > > achieve what I needed. > > > > But I had to change suseconds_t (in POSIX) to long (in Plan9 > > ape/include/sys/time.h). > > > > But are all the compilers in Plan9 making long an octabytes, whatever > > the arch and the machine? Because a long, if it is a tetra, will never > > hold the value... > > I misread: the microseconds are for the fractional part. I was still > focusing on nsec() and taking the one for the other. > > But the following still holds: > > > > > Furthermore, for portability, there should be a typedef associating > > suseconds_t to long (or vlong, if long is not guaranteed to be an > > octa). > > > -- > Thierry Laronde > http://www.kergis.com/ > http://kertex.kergis.com/ > http://www.sbfa.fr/ > Key fingerprint =3D 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T232b7176352c012b-Mf1f6b= 24803e829b411b0691d Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --0000000000004428dc05ce54042c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
surely you can shift a 64 bit long?

On = Thu, Oct 14, 2021 at 6:04 PM <tl= aronde@polynum.com> wrote:
Le Thu, Oct 14, 2021 at 07:56:37PM +0200, tlaronde a &e= acute;crit :
> As suggested by ori@eigenstate.org, I have used gettimeofday(2) to
> achieve what I needed.
>
> But I had to change suseconds_t (in POSIX) to long (in Plan9
> ape/include/sys/time.h).
>
> But are all the compilers in Plan9 making long an octabytes, whatever<= br /> > the arch and the machine? Because a long, if it is a tetra, will never=
> hold the value...

I misread: the microseconds are for the fractional part. I was still
focusing on nsec() and taking the one for the other.

But the following still holds:

>
> Furthermore, for portability, there should be a typedef associating > suseconds_t to long (or vlong, if long is not guaranteed to be an
> octa).
>
--
        Thierry Laronde <tlaronde +AT+ polynum +dot+= com>
                     = ;ht= tp://www.kergis.com/
                    http:= //kertex.kergis.com/
                     = ;  http://www.sbfa.fr/
Key fingerprint =3D 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C=

------------------------------------------
9fans: 9fans
Permalink: https:= //9fans.topicbox.com/groups/9fans/T232b7176352c012b-M25528c1fccfb87e2a5f365= 84
Delivery options: https://9fans.topicbox.com/gro= ups/9fans/subscription
= --0000000000004428dc05ce54042c--