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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12672 invoked from network); 6 Jun 2020 11:31:45 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 6 Jun 2020 11:31:45 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id AE7FC9C6FC; Sat, 6 Jun 2020 21:31:38 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id A067893D56; Sat, 6 Jun 2020 21:31:07 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (1024-bit key; unprotected) header.d=planet.nl header.i=@planet.nl header.b="THvMfDC1"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 5A68E93D56; Sat, 6 Jun 2020 21:31:03 +1000 (AEST) Received: from cpsmtpb-ews03.kpnxchange.com (cpsmtpb-ews03.kpnxchange.com [213.75.39.6]) by minnie.tuhs.org (Postfix) with ESMTP id C8BCF93D52 for ; Sat, 6 Jun 2020 21:31:00 +1000 (AEST) Received: from cpsps-ews13.kpnxchange.com ([10.94.84.180]) by cpsmtpb-ews03.kpnxchange.com with Microsoft SMTPSVC(8.5.9600.16384); Sat, 6 Jun 2020 13:30:59 +0200 X-Brand: 7abm2Q== X-KPN-SpamVerdict: e1=0;e2=0;e3=0;e4=(e1=10;e3=10;e2=11;e4=10);EVW:Whi te;BM:NotScanned;FinalVerdict:Clean X-CMAE-Analysis: v=2.3 cv=KMfB8GNo c=1 sm=1 tr=0 cx=a_idp_e a=4/rmT19p7yX2nqNQQg5uwQ==:117 a=soxbC+bCkqwFbqeW/W/r+Q==:17 a=x1i13A_MHe4A:10 a=IkcTkHD0fZMA:10 a=nTHF0DUjJn0A:10 a=J7S8MM_AAAAA:8 a=EMJYjeMeOmL5s4V9o48A:9 a=QEXdDO2ut3YA:10 a=Mc_7STxokkYwVi4MloDe:22 X-CM-AcctID: kpn@feedback.cloudmark.com Received: from smtp.kpnmail.nl ([195.121.84.44]) by cpsps-ews13.kpnxchange.com over TLS secured channel with Microsoft SMTPSVC(8.5.9600.16384); Sat, 6 Jun 2020 13:30:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=planet.nl; s=planet01; h=to:date:message-id:subject:mime-version:content-type:from; bh=JF73Iui1YEZDlr7fTc3Mj9FCMP2ZiWRUFXvASWYeAFM=; b=THvMfDC1+fDNL1MQ0apnllLtkk5vsUbnctjSm2rtBHfBkalI34S3g4bsRESlRbXEXmwyr15SbmZOg SMYUhU31X2BuJzWjbJJ2SxMgHWTVBHSzxJbxTCGmCwvOzr7538olIctsnUV8oHMkjcF0ze35Op9b72 bAU6YfIrOBTWs+o8= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|+6Iuiir6HruuZQPufOr276xU+8fM6p1ce0suffjAlkvUnz1+Mo7tbY5Hzp//jbQ 2s9VCPhb/v8IfncquThvfXg== X-Originating-IP: 80.101.112.122 Received: from mba2.fritz.box (sqlite.xs4all.nl [80.101.112.122]) by smtp.kpnmail.nl (Halon) with ESMTPSA id 31918ba3-a7e9-11ea-bebe-005056abf0db; Sat, 06 Jun 2020 13:30:59 +0200 (CEST) From: Paul Ruizendaal Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: Date: Sat, 6 Jun 2020 13:30:58 +0200 To: TUHS main list X-Mailer: Apple Mail (2.3445.104.11) X-OriginalArrivalTime: 06 Jun 2020 11:30:59.0618 (UTC) FILETIME=[F3BB6820:01D63BF5] X-RcptDomain: minnie.tuhs.org Subject: [TUHS] Unix on Aprpanet X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" >> On 2020, Jun 3, at 1:38 AM, Lars Brinkhoff = wrote:=20 >>=20 >> Lawrence Stewart wrote:=20 >>> I remember working on getting Arpanet access on an 11/34 running V7=20= >>> around 1978 or 1979. (SU-ISL). We used an 11/23 as a front end to = run=20 >>> NCP, using a variation of Rand=E2=80=99s code. I wrote some sort of = bisync >>> driver for packet communications between the /23 and the /34, and I >>> think added an IOCTL or some hack to ask if there was a message = ready. >>> So a polling variety of non-blocking I/O :) >>=20 >> Has this, or Rand's code, been preserved?=20 >>=20 >> I'm only aware of one Arpanet NCP implementation for Unix that is=20 >> online, the one from University of Illinois.=20 > Alas I do not know. I may have some old emails from that era. I will = check. I have not so far come across an NCP Unix that was not based on the UoI = code base. At a time there was a =E2=80=9CRand Unix=E2=80=9D, that combined the UoI = code with a few other extensions. A 1978 document describes the kernel as: "UNIX version 6 with modifications some of which are: - Accounting - A system call to write end of files on pipes - A system call which checks whether a process would sleep upon doing a = read on either a pipe or tty - Pseudo teletypes - The network control program NCP written at the University of Illinois - A new method of interprocess communication called ports. Ports are = similar to pipes but have names and can be accessed by any process.=E2=80=9D= The system call to write EOF on pipes is eofp() and the blocking read = test is empty(). Both are available in the NCP Unix source code as = included on the TUHS Unix Tree page. It could well be that the hack = Lawrence refers to above was a modification to empty() to also cover his = bisync driver. I guess empty() is the first step on the path that includes = capac()/await() and later select()/poll() as the preferred mechanism to = prevent blocking on IPC files (incl. tty=E2=80=99s).