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=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE,URIBL_CSS autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1711 invoked from network); 13 May 2022 14:22:31 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 13 May 2022 14:22:31 -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 E0C8F1D8E9 for ; Fri, 13 May 2022 10:22:29 -0400 (EDT) (envelope-from bounce.mM11b2b34d2e1336b13546b09f.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id DE1CC23CD3D6; Fri, 13 May 2022 10:22:29 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=eigenstate.org; spf=pass smtp.mailfrom=ori@eigenstate.org smtp.helo=mimir.eigenstate.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:date:from:in-reply-to :mime-version:content-type:content-transfer-encoding:list-help :list-id:list-post:list-subscribe:reply-to:list-unsubscribe; s= sysmsg-1; t=1652451749; bh=D7F/r7opeocFW/D2T70uwsE8JrlcNTSPRAp0G np5u2k=; b=S+EfIobHAOQWs3vBptVPpCNWShWdSsOUv7t3EOFRvN1XzcZWw18p6 zjWIDJ7sOF0BmxzZCo6dfZtq25bDPLeZaxIQ8LJ1rPmFLrv02pZ7xSDOUbMXKa93 vXa/WGFh9ilHUhEassvtgEG8XdlXA1aE5cyvec4VOF6KKehU2Pd9i8= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1652451749; b=Qt0uQ37Nvu+pwqwgtkX5FCYFc0hARl2+hSA7wabTKAazhcIvCz tqoYRJGt2/B8xYcKxedUh37wawRrVLQpTdaE8EZScIqyL07rOk5R+gajD3lIMQ2p wN43d3pPd9w02vpYh8I1qdj513+FpvfCygYYYCuo6URH/L53+WL8vZ4oQ= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=eigenstate.org; spf=pass smtp.mailfrom=ori@eigenstate.org smtp.helo=mimir.eigenstate.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=eigenstate.org; iprev=pass smtp.remote-ip=206.124.132.107 (mimir.eigenstate.org); spf=pass smtp.mailfrom=ori@eigenstate.org smtp.helo=mimir.eigenstate.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mimir.eigenstate.org policy.ptr=mimir.eigenstate.org; x-return-mx=pass header.domain=eigenstate.org policy.is_org=yes (MX Records found: kusuri.pikopiko.org,nokogiri.pikopiko.org,eigenstate.org,mail.pikopiko.org); x-return-mx=pass smtp.domain=eigenstate.org policy.is_org=yes (MX Records found: kusuri.pikopiko.org,nokogiri.pikopiko.org,eigenstate.org,mail.pikopiko.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=49 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=message-id :to:subject:date:from:in-reply-to:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:list-unsubscribe; s=dkim-1; bh=pnmjpCC/ mZmQHOSeV7p7O3EeQ7nLb5LOSae7br3SYN0=; b=ZJMYqP/75tHRPxs+oxpzk02n BIiyYULClcq2tCliPDdPlTQ3eubmuIlkZlMQ2jwFlG/+y95lQiKulIfhvkBNCNoo pwvyDM6pEhy6i3uqnScML9E0NcWuAbXfFKwUCNUN9VPxWJGjjt7Xyft0lnFQvnGe naaJbUeFIVpX8I15hqU= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id AEE7223CCFA7 for <9fans@9fans.net>; Fri, 13 May 2022 10:22:17 -0400 (EDT) (envelope-from ori@eigenstate.org) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 37CA0440702; Fri, 13 May 2022 10:22:17 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1652451737; b=KMsGK5hWrDCYOKPo+5KyWrGjUbCXkfonymBfaxa9PN9ulfhQJP GcPJxzlWib+r+1IgRhHbGDsPf5zD2FI9+9yDFffvDi/n5G04eCc+qGvsps1SsDSf QaAn1t8y+TUGmKT2pLo/F6z5hNa+epJ7gQrdS93UgJUsvcGfrFvj2f70o/M5V+TY Q9IJxzzoxi/ZabZyF3rrqu47NiwTaKaZaSBj/OWCdMThSUj+9N8e3uChpDWwasme jGo4MGubBuhzpQ2Vnn3CdZWpFDwPi7es8yzpP350WzjelJ3tCenGP4rDbl/MyrDW THhe8+hXd5ELOLNjFCQCk/VP9Met/NRmkKMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:date:from:in-reply-to :mime-version:content-type:content-transfer-encoding; s=arcseal; t=1652451737; bh=UXH5JGXdea2HfvnGKzxZ8bMn9FTsdIbdIVEbyFZMxwA=; b= H8T+ofhflbtkJWl2M0TXvK52KWV4sJdj2AeEmP2FkQ1noYwmmkH+t54XuKv6xMuM JTd+iEehWmwo0Ojf98cXTysxGtksFIzVG272hxrG+qokv7rsK7eY3iIVM8cFrtWc LvXHK/zUSDZlgqJ4GMNCt8oanoeEXD+SQCg3mL2zy6DTSQG2Im3feapyONDvxC2M n3LTmdNqVggZfMLb634I72Hu2ai+MDrEwc1SxcKcHrSEW5q7maDvH7N87G7VwMIy PNziQYQX3AUgvB1qI5337y2DKBObIfFEsoel0os7sb5fOF7Ddd4BY2pVD6rwudE5 GxZbrXF/LZiG7udzGIMdJQ== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=eigenstate.org; iprev=pass smtp.remote-ip=206.124.132.107 (mimir.eigenstate.org); spf=pass smtp.mailfrom=ori@eigenstate.org smtp.helo=mimir.eigenstate.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mimir.eigenstate.org policy.ptr=mimir.eigenstate.org; x-return-mx=pass header.domain=eigenstate.org policy.is_org=yes (MX Records found: kusuri.pikopiko.org,nokogiri.pikopiko.org,eigenstate.org,mail.pikopiko.org); x-return-mx=pass smtp.domain=eigenstate.org policy.is_org=yes (MX Records found: kusuri.pikopiko.org,nokogiri.pikopiko.org,eigenstate.org,mail.pikopiko.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=49 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeelgdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtffhomh grihhnucdlgeelmdenucfjughrpefkvffufffhjgggtgfgsehtjeejtddttddvnecuhfhr ohhmpehorhhisegvihhgvghnshhtrghtvgdrohhrghenucggtffrrghtthgvrhhnpedtle euuefhiedvueehleeihfejjeetveethfekheelleeitefgveeiveeijeeuieenucffohhm rghinhepsghlohhgshhpohhtrdgtohhmnecukfhppedvtdeirdduvdegrddufedvrddutd ejpdejgedruddtkedrheeirddvvdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehinhgvthepvddtiedruddvgedrudefvddruddtjedphhgvlhhopehmihhmihhrrd gvihhgvghnshhtrghtvgdrohhrghdpmhgrihhlfhhrohhmpeeoohhrihesvghighgvnhhs thgrthgvrdhorhhgqe X-ME-VSScore: 49 X-ME-VSCategory: clean Received-SPF: pass (eigenstate.org: 206.124.132.107 is authorized to use 'ori@eigenstate.org' in 'mfrom' identity (mechanism 'mx' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="ori@eigenstate.org"; helo=mimir.eigenstate.org; client-ip=206.124.132.107 Received: from mimir.eigenstate.org (mimir.eigenstate.org [206.124.132.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 13 May 2022 10:22:16 -0400 (EDT) (envelope-from ori@eigenstate.org) Received: from abbatoir.myfiosgateway.com (pool-74-108-56-225.nycmny.fios.verizon.net [74.108.56.225]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id df29bcb6 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9fans@9fans.net>; Fri, 13 May 2022 07:22:14 -0700 (PDT) Message-ID: <7528AA612E26746F7C665AA5D5472930@eigenstate.org> To: 9fans@9fans.net Subject: Re: [9fans] ntohl, htonl, &c Date: Fri, 13 May 2022 10:22:13 -0400 From: ori@eigenstate.org In-Reply-To: <13F82633F6415657513741E64A249C22@musolino.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 1a8ae8ac-d2c8-11ec-ab27-e7eaae0f3232 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYmY1ODMxMGI1NjFjZDE4MC1NMTFiMmIzNGQyZTEzMzZiMTM1NDZi?= =?UTF-8?B?MDlmPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M11b2b34d2e1336b13546b09f:1:0KJauRKvpXyIcGe2d5qxaTpo3BhG9ZpVFURb75D2zFY Quoth Alex Musolino : > > I'm getting rid of ape but I need the functions at > > /sys/src/ape/lib/bsd/ntohl.c to port some software. These functions > > just change endianness. Is there some native similar functions > > somebody is aware of? lookman is not helping me here. I don't want > > to add code if a similar functionality is already in the system. >=20 > No. Those functions are mental. The Plan 9 way is so simple that > there's no library, everyone just brings their own macros/functions. > The trick is: if you care about the order of bytes then you should be > dealing with a byte array, not a native integral type. see also: https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tbf58310b561cd180-M11b2b= 34d2e1336b13546b09f Delivery options: https://9fans.topicbox.com/groups/9fans/subscription