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.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11678 invoked from network); 17 Aug 2020 23:08:21 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 17 Aug 2020 23:08:21 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 0C29C9E1DA; Tue, 18 Aug 2020 09:08:13 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id B59D99DFBF; Tue, 18 Aug 2020 09:07:12 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="h/i1ud5G"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 1D3E89CAB6; Tue, 18 Aug 2020 09:07:09 +1000 (AEST) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by minnie.tuhs.org (Postfix) with ESMTPS id 8078B9C8BB for ; Tue, 18 Aug 2020 09:07:08 +1000 (AEST) Received: by mail-io1-f66.google.com with SMTP id b17so19313528ion.7 for ; Mon, 17 Aug 2020 16:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=l6Z8vTkpSKwHNgjbBPBdLPOly7f1hYcEpH8mniMBMBU=; b=h/i1ud5Ggi27zsM+9d1JXylW+Nz4kR8VmMm/mGzTZdYYWSI2auhj0QRmeFos7paxBv fqa6eWwc9HNseQcHSF+P2yjoMMKRKjtweWrfhe/ls8ic8wHJfC+aBqPVDVISEy/LDRZP BPMSPQTpAP67OHbu9xZ0haR0mnm5ngfzaA21Aa5KioFm5xH4J8AHshkkkQ1fO1DlSgET 4yyHzVmPwDmGpjsFEUHj3mopMMY0+eLKcoK4DldnszQt2J0nOrYbD4hWt6xihz+T3gne uXFr8wQyLaYZKQ94w74JCoyIrVJdou12auLH/rvFPTTzeLgxSURA2jEUmOB6B7vncoss DMGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=l6Z8vTkpSKwHNgjbBPBdLPOly7f1hYcEpH8mniMBMBU=; b=Zer1ju1GERGfbOYfqdIsaoSnB8J4VqGfQ6wbUx9gmW8hy8R2CzOzWIU6IMDYjzCDEy aUYWn0vKZk19bI3AvU9udnuHufKyCvuMcTSL1qOlfvSv0+Nsg3fJbT2OP/mTcwZ0uOLQ yyI4g0ivJTh7aShdk8ywJC3cDyNqTOS6tERtQ2g83KJZ/j9Gwhk8Dc35YOJqWVJC2PYO +5kTJjRQfKBNXHeEKfU/qdkDloRKmCaEPVqkgZwBEdloGY4yZ8CfexvTT8jvUJj/kg/S ozPumzcY1jYsC3mOgTksl1sS8Ox22Wd7UJ/5GqfUlwlhZPC8fE5ueMGMaBdISdOK32kB 8NAQ== X-Gm-Message-State: AOAM531yKhf48mP7Fm3kqYBjFneSHZ5mVEsq9TDwAI3Aq5c9kgw55miL oRpHD+XNBETdeOpU8tlvvg/7p7LCCkS6ng== X-Google-Smtp-Source: ABdhPJwtTKSMJ4B/AObK97H2kq2BGNhIe5d8KNOy0b807k/qssRElT5XDGlBVNF1gBJzSN+F0iI7yQ== X-Received: by 2002:a6b:7e41:: with SMTP id k1mr14079659ioq.130.1597705626744; Mon, 17 Aug 2020 16:07:06 -0700 (PDT) Received: from [10.0.1.24] (198.27.14-65.ip.mltn.standardbroadband.ca. [198.27.14.65]) by smtp.gmail.com with ESMTPSA id a9sm9911609iol.9.2020.08.17.16.07.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Aug 2020 16:07:06 -0700 (PDT) To: tuhs@minnie.tuhs.org References: From: Nemo Nusquam Message-ID: <107719ce-b631-c4c9-fedd-ac8845d01213@gmail.com> Date: Mon, 17 Aug 2020 19:06:56 -0400 User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [TUHS] Memory management in Dennis Ritchie's C Compiler 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 08/17/20 18:47, Dave Horsfall wrote: > On Mon, 17 Aug 2020, Dibyendu Majumdar wrote: > >> From Wikipedia: >> sbrk and brk are considered legacy even by 1997 standards (Single UNIX >> Specification v2 or POSIX.1-1998).[5] They were removed in >> POSIX.1-2001.[6] > > On a whim, I checked a couple of boxes around here (I haven't used sbrk() > since malloc() came along): > > Mac: > > The brk and sbrk functions are historical curiosities left over > from ear- > lier days before the advent of virtual memory management. > > FreeBSD: > > The brk() and sbrk() functions are legacy interfaces from before the > advent of modern virtual memory management. > > Both of them come right after the DESCRIPTION header. More whimsy from "man sbrk" on Solaris 10: The use of mmap(2) is now preferred because it can be used portably with all other memory allocation functions and with any function that uses other allocation functions. N. > > -- Dave