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.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26156 invoked from network); 14 Jun 2023 20:03:50 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2023 20:03:50 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 2E990410DC; Thu, 15 Jun 2023 06:03:44 +1000 (AEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by minnie.tuhs.org (Postfix) with ESMTPS id 37D5F4108E for ; Thu, 15 Jun 2023 06:03:30 +1000 (AEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0F0715C015E for ; Wed, 14 Jun 2023 16:03:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 14 Jun 2023 16:03:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=papnet.eu; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1686773008; x=1686859408; bh=e0 bhLhxFB8xzLwy4DruU4iSLPnHNfXEJaFomqeT8j/E=; b=Bq8Dcd1LHafutVQpAq 4pduL0G59MX1UdxrGcGqX8gomq3cy6yzbMqnK5nAJRr3YfhUP6YLAW/uyhzZKVoE UFrR+40Sehj8+5M04p/4Bg6wBZztHSKiqKXbbUlOmLHSZFb33DfnwIXEJ8EGsmON +pNARWPBwxB0pRFG/fphSNNYFtdEX/f3QiA3A+6Wu0bJ7d0Tb1/hD89YlfduLd0S y7Dx9Dl13OE2HIAR9T3vJR5ae8j0v1CnW3FAagXwptlsiOIr+b6HmvNZtZU8Q/M3 PUOLS9zRPB7OIH0BIUlkQWviBxhE+hGkhz4JMHMWqadt1hc0cNZF+z8fQQ/sGbKg Xkrw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1686773008; x=1686859408; bh=e0bhLhxFB8xzL wy4DruU4iSLPnHNfXEJaFomqeT8j/E=; b=bBGi4HOBOe5h4mineNFhfTFNEMFZO r6gC7NXfBl8okutiwOBU/pogNRuM0f1kCNOYHEYpCwB3tKkEw+NhjK6GZHM3BNDv M2xgqbhA0WKSTGmNFnycCiwK6+GJp6JEbxIycIgwZ1yDKYIMtidjmu/p5aaXz9t7 2cDWdpgMZr+2U6mOCWq8rx4P2rlF/qhaSVRQ2CIiEaPflgOttjGXVUAAETVPzxFl gko1Z7KlWineYTBZgMN2gzJVmVwgBZebticcMjBeJCJLdg/OOiYufdqMti0/YzTe nViRR6dAs7Vxtz0dRymhAkbG/sGXUy47xwmXVrby/6v5l7HWHmb1W4NtA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvtddgudegjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpeetnhhgvghlohcurfgrphgvnhhhohhffhcuoegrrghpsehp rghpnhgvthdrvghuqeenucggtffrrghtthgvrhhnpedugeelgfehhfefgeefteetgfektd fhleeltedthfeiheejffffgefhgfeltedvueenucffohhmrghinhepshhquhhoiigvrdhn vghtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg grphesphgrphhnvghtrdgvuh X-ME-Proxy: Feedback-ID: i47c14439:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 14 Jun 2023 16:03:26 -0400 (EDT) Date: Wed, 14 Jun 2023 22:03:19 +0200 From: Angelo Papenhoff To: tuhs@tuhs.org Message-ID: References: <1e651370-3ada-e211-c277-409d6563500d@f4grx.net> <202306080331.3583Vrw7057546@ultimate.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Message-ID-Hash: 463OB4VXOJGKX6JVUJ4SF54ZH7GBMW4I X-Message-ID-Hash: 463OB4VXOJGKX6JVUJ4SF54ZH7GBMW4I X-MailFrom: aap@papnet.eu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Software written in B List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: After writing this mail I actually started reversing the B binaries. You can find them here: http://squoze.net/B/programs/ I did find some differences in versions of the B runtime and library. Especially interesting was an implementation of the cksto routine in su and stty that checks whether an address in an assignment is in a reasonable range ("LV out of range" error if not) What is perhaps interesting historically is that the su binary contains a hardcoded password ^Q^R^S^T, which is not printable for a good reason: it is given as a command line argument. I will hopefully continue with this in the next time (if, goto, mail and glob are left). Best, aap On 14/06/23, Angelo Papenhoff wrote: > Thank you two for finding this! > I did some disassembling yesterday and have uploaded brt1.s and brt2.s > to my site now: http://squoze.net/B/brt/ (I haven't actually assembled > them yet, there may be mistakes) > > Some observations: > > - The 'chain' format is actually a linked list and not a list of > addresses. Phil and I both got this wrong. > > - The "Init" string is an error message if for some reason the B init > chain didn't run or main doesn't look like a function > > - The cmdline arguments overwrite part of the init code. There's about > 80 bytes of space for them before it overwrites the code that builds the > argv vector > > - brt2.s is only to mark the beginning of the stack > > > I also saw some differences in the bilib code but haven't really > analyzed that part (yet?) > > Would be really great if we could get all the files disassembled and > decompiled and restore the source code for everything :) > > Best, > Angelo