Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.arch
Subject: Re: 80286 protected mode
Date: Thu, 17 Oct 2024 03:16:13 -0700
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <86ttdbvxua.fsf@linuxsc.com>
References: <2024Oct8.092821@mips.complang.tuwien.ac.at> <86y12uy8ku.fsf@linuxsc.com> <3f2cb127c8d5dc2381fc80631a495e3e@www.novabbs.org> <8HBPO.471560$_o_3.464389@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Thu, 17 Oct 2024 12:16:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4d902cc0473bdb0fc4a91596ca166507";
logging-data="2853073"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18beN0uZ+T8Naj7Q/UlAIo620WypD499Lk="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:oXld3UZnc3d3k9Z40Ylvg7vkVE8=
sha1:Hzq6mh1mEt4hnAyHrun/OpHpx3I=
Bytes: 2344
George Neuner writes:
> On Wed, 16 Oct 2024 15:38:47 GMT, scott@slp53.sl.home (Scott Lurndal)
> wrote:
>
>> mitchalsup@aol.com (MitchAlsup1) writes:
>>
>>> On Tue, 15 Oct 2024 22:05:56 +0000, Scott Lurndal wrote:
>>>
>>>> mitchalsup@aol.com (MitchAlsup1) writes:
[...]
>>>>> malloc() used to be standard K&R C--what dropped it from the
>>>>> standard ??
>>>>
>>>> It still is part of the ISO C standard.
>>>
>>> The paragraaph with 3 >'s indicates malloc() cannot be written in
>>> standard C. It used to be written in standard K&R C.
>>
>> K&R may have been 'de facto' standard C, but not 'de jure'.
>>
>> Unix V6 malloc used the 'brk' system call to allocate space
>> for the heap. Later versions used 'sbrk'.
>>
>> Those are both kernel system calls.
>
> Yes, but malloc() subdivides an already provided space.
Not necessarily.
> Because that space can be treated as a single array of char,
Not always.