Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2021 14:36:21 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        "Ronald F. Guilmette" <rfg@tristatelogic.com>, freebsd-questions@freebsd.org
Subject:   Re: Why doesn't cc -ansi disable conflicting type for getline from stdio.h?
Message-ID:  <8033286d-cfb8-59a3-600d-e752f7f963a3@qeng-ho.org>
In-Reply-To: <27606.1623824321@segfault.tristatelogic.com>
References:  <27606.1623824321@segfault.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16/06/2021 07:18, Ronald F. Guilmette wrote:
> In message <4018acc9-2607-67ed-0327-8a3c9bc647b8@panix.com>, 
> Kurt Hackenberg <kh@panix.com> wrote:
> 
>> The boundary between C and Unix has always been blurred a little in 
>> practice. It's good to keep the boundary clear in your mind...
> 
> But but but...that's no longer necessary now that EVERYTHING is UNIX,
> right?  So if you have a C compiler, and it isn't cross targeting for
> some embedded sysetem, then you likely have all of the UNIX primitives
> and all of the standard UNIX anmd POSIX C libraries at your disposal.

Technically the C standard allows for hosted C environments on any
operating system, so there may be a C17 implementation running on an
emulation of Multics somewhere.

> Didn't a read a few years ago that Windoze had basically absorbed all of
> UNIX and that it now provides al of the same stuff, via libraries?
> 
> Or maybe I misunderstood.
> 
> It certainly seemed consistant with Microsoft's well publicised "embrace,
> extend, and destroy" philosophy at the time I read that.

You're thinking of WSL (Windows System for Linux). With the release of
WSL 2 you've got Linux compatibiity (and it's sometimes faster than
native Windows code).

-- 
Lebowskisort, aka dudesort, an O(1) sorting algorithm:

"Man, the array is cool as it is. Let's go bowling."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8033286d-cfb8-59a3-600d-e752f7f963a3>