From owner-freebsd-questions@freebsd.org Wed Jun 16 13:36:25 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 38251663125 for ; Wed, 16 Jun 2021 13:36:25 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from mailout.qeng-ho.org (mailout.qeng-ho.org [217.155.128.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4G4mRr3PTDz3rRv for ; Wed, 16 Jun 2021 13:36:24 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (unknown [IPv6:2a02:8010:64c9:1::2]) by mailout.qeng-ho.org (Postfix) with ESMTP id CD92C20093; Wed, 16 Jun 2021 14:36:21 +0100 (BST) Subject: Re: Why doesn't cc -ansi disable conflicting type for getline from stdio.h? To: "Ronald F. Guilmette" , freebsd-questions@freebsd.org References: <27606.1623824321@segfault.tristatelogic.com> From: Arthur Chance Message-ID: <8033286d-cfb8-59a3-600d-e752f7f963a3@qeng-ho.org> Date: Wed, 16 Jun 2021 14:36:21 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <27606.1623824321@segfault.tristatelogic.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4G4mRr3PTDz3rRv X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.244 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-0.30 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[qeng-ho.org]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[217.155.128.244:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[217.155.128.244:from]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2021 13:36:25 -0000 On 16/06/2021 07:18, Ronald F. Guilmette wrote: > In message <4018acc9-2607-67ed-0327-8a3c9bc647b8@panix.com>, > Kurt Hackenberg 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."