From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 606777a1 for ; Tue, 25 Jun 2019 19:34:12 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 923F99BDA6; Wed, 26 Jun 2019 05:34:10 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 026479BD4F; Wed, 26 Jun 2019 05:33:40 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id F101B9BD4F; Wed, 26 Jun 2019 05:33:38 +1000 (AEST) Received: from oclsc.com (oclsc.com [206.248.137.164]) by minnie.tuhs.org (Postfix) with SMTP id 6F9419BD16 for ; Wed, 26 Jun 2019 05:33:36 +1000 (AEST) From: Norman Wilson To: tuhs@tuhs.org Date: Tue, 25 Jun 2019 15:33:22 -0400 Message-ID: <1561491205.19116.for-standards-violators@oclsc.org> Subject: [TUHS] 4.1c bsd ptrace man entry ("ptrace is unique and arcane") 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" It's interesting that this comment about ptrace was written as early as 1980. Ron Minnich's reference to Plan 9 /proc misses the mark, though. By the time Plan 9 was written, System V already had /proc; see https://www.usenix.org/sites/default/files/usenix_winter91_faulkner.pdf And as the authors say, the idea actually dates back to Tom Killian's /proc in Research UNIX. I don't know when Tom's code first went live, but I first heard about it by seeing it in action on my first visit to Bell Labs in early 1984, and it was described in public in a talk at the Summer 1984 USENIX conference in Salt Lake City. I cannot quickly find an online copy of the corresponding paper; pointers appreciated. (Is there at least an online index of BTL CSTRs? The big search engine run by the place that still has some 1127 old-timers can't find that either.) As for ptrace itself, I heartily agree that /proc made it obsolete. So did everyone else in 1127 when I was there, but nobody wanted to update adb and sdb, which were big messes inside. So I did, attempting a substantial internal makeover of adb to ease making versions for different systems and even cross-versions, but just a quick hack for sdb. Once I'd done that and shipped the new adb and sdb binaries to all our machines, I removed the ptrace call from the kernel. It happened that in the Eighth (or was it Ninth by then? I'd have to dig out notes to find out) Edition manual, ptrace(2) was on two facing pages. To celebrate, I glued said pages together in the UNIX Room's copy of the manual. Would it were so easy to take out the trash today. Norman Wilson Toronto ON