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,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29898 invoked from network); 24 Jun 2020 14:39:56 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 24 Jun 2020 14:39:56 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id E0961945B4; Thu, 25 Jun 2020 00:39:52 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 2662B9459A; Thu, 25 Jun 2020 00:39:29 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GeqRzA87"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 149179459A; Thu, 25 Jun 2020 00:39:26 +1000 (AEST) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by minnie.tuhs.org (Postfix) with ESMTPS id 1925794599 for ; Thu, 25 Jun 2020 00:39:25 +1000 (AEST) Received: by mail-lf1-f54.google.com with SMTP id o4so1407722lfi.7 for ; Wed, 24 Jun 2020 07:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=RBkMbQ84e6OBD0B8sfR9F/Pw7ytzuDxzZD6QwTKhSwQ=; b=GeqRzA87MZUntWp/7jmkejxCTPK6sDCwOcIiBJ3Py4LlnptUtQgnqRW4Xkibb10krO ismDk916/bcPP7d4jvQuRLChB1LAGdDP8YjjaVr0yBIAL7l7IB0rkoCwNob2wuQui1yP CUZA4Gu9KkINxICZT6caSQ0pF//iQX9APGQ0CLbq3oXLJ4QhII1piTN6+U51UQH9woDi lridYkqCe3y6UxZPujcYEi3mqcvAoyvF9xAHJCNAa/El4G63nbS59sSRAcIG9M6yY7d+ rhM1+WrRQAgmN00Id7kwZuWBcaNBUXPoa2MLm1E3zPTK+RCqcDzVJ1rlPSJS5W9s0kbC y9/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=RBkMbQ84e6OBD0B8sfR9F/Pw7ytzuDxzZD6QwTKhSwQ=; b=o7gt6aIvfdCtMAdBysTd06n+hkvPSH3igPzgWAiVZnsCwvSXGh/0G46jDlbBx6Pwan MknD+OIizqEfEDiCEGUutIv6Vjs9K6b4A02gsQdL63MJhID/mvIYUlGsg+86a+Xh26ak KNuN5u+agBSFxp+/biSLLmPWOH+Xb/9WdSrTpI8v5r65kjhPTkcf18m5I6x5ufwV99oR vGtqoeozGvnYCtlKYYuzOR1MDSfQ7ZYWKpdH4URTu3qWDZjn+dQa6PZr3r6DC7ntUrkT +6QBQUlDDrKCN7fs0/kfMq5xniu+HrrGB+64NzMGq+seX+SDa1K254P9O0ixFjoGv39O ezdg== X-Gm-Message-State: AOAM530w6o8KFK6G8nJGFCYbhFxJ6BqbZ2FlVRgoyZBpLlV0UP5Iqo/p wsMhwltyVL6ylcw6T9m1loVbOZWf8PE= X-Google-Smtp-Source: ABdhPJxropLjpaBcw7YG6PGlyGett9s63McDLVXT6v2BRz+nMAyKGvs9Y/wTUGaJFdtDP+HhOP1kVQ== X-Received: by 2002:ac2:5a4b:: with SMTP id r11mr15639720lfn.39.1593009563314; Wed, 24 Jun 2020 07:39:23 -0700 (PDT) Received: from sartre.localdomain (91-157-121-9.elisa-laajakaista.fi. [91.157.121.9]) by smtp.gmail.com with ESMTPSA id 4sm4172371ljq.34.2020.06.24.07.39.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 07:39:22 -0700 (PDT) Received: by sartre.localdomain (Postfix, from userid 1000) id EED581C0E08; Wed, 24 Jun 2020 17:39:20 +0300 (EEST) Date: Wed, 24 Jun 2020 17:39:20 +0300 From: Jukka Ruohonen To: tuhs@minnie.tuhs.org Message-ID: <20200624143920.GA8127@sartre> Mail-Followup-To: tuhs@minnie.tuhs.org References: <98DC6210-A6ED-4E51-8EF8-085CB553D966@planet.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98DC6210-A6ED-4E51-8EF8-085CB553D966@planet.nl> User-Agent: Mutt/1.13.5 (2020-03-28) Subject: [TUHS] About the history of cfree() 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: , Reply-To: jruohonen@iki.fi Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Hello, does anyone remember details on how the cfree() function ended to of various systems? >From the only available documentation I could easily find [1], I'd reckon it came from SCO's malloc implementation that tried to conform to Intel's i386 iBCS. But almost all other systems wrapped it to free(). Interestingly, it seems that also SunOS 4.0 (1988) used the free()-wrapper. So was the 3-parameter cfree() only used in SCO XENIX 386 (1987) and the like [2]? Anyways, a small but interesting detail, and I suppose a good example on the developments that led to ANSI C. - Jukka [1] https://man7.org/linux/man-pages/man3/cfree.3.html [2] https://www.landley.net/history/mirror/unix/scohistory.html