From owner-freebsd-questions@freebsd.org Thu Jun 17 00:21:04 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 2535D648215 for ; Thu, 17 Jun 2021 00:21:04 +0000 (UTC) (envelope-from Norman.Gray@glasgow.ac.uk) Received: from hillend.cent.gla.ac.uk (hillend.cent.gla.ac.uk [130.209.16.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4G52lf5dytz4c6k for ; Thu, 17 Jun 2021 00:21:02 +0000 (UTC) (envelope-from Norman.Gray@glasgow.ac.uk) Received: from cas08.campus.gla.ac.uk ([130.209.14.165]) by hillend.cent.gla.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1ltfmG-0000n1-GE; Thu, 17 Jun 2021 01:21:00 +0100 Received: from cas07.campus.gla.ac.uk (130.209.14.164) by cas08.campus.gla.ac.uk (130.209.14.165) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Jun 2021 01:20:59 +0100 Received: from GBR01-LO2-obe.outbound.protection.outlook.com (104.47.21.50) by cas07.campus.gla.ac.uk (130.209.14.164) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 17 Jun 2021 01:20:59 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PGFDrXvaBhjJHQVTQ21xWQKFGivja4bso5MnhCpqx+cNECus3W9WKUAy3/HFwsBd3rONtFRfRCRPb+XXYHHVQ31fJSl2zAN6b8B5w0/xeGA/ZQVUfezmoNbhVGOZSBiKMZ0HtmoFJW21Dvt+HjoSgvk0AUPDTefYcPdHLzFTeBW5Sg1QN7C+i9DYZi5jXCv8xz7aFmWf2aMOuBpWqht2jTp2JFusaeK8slJLhgxaWVBbk5HyQ+d7jvT/kNEkONf3UxHgzqWX0KMavWwFALBT2YndnCL7vf3i3E5WUDdLpvG59OwoA2cqt0pH09aTu4sSeNCRkhbZrU/+QliBvPJcxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h9D1vEvtQ+8JrU9jOX3NIZU6neVGuxzblU3biuJyYxg=; b=Ttb/WqC3XqpSJiVTF6y9SzcugExD865m/lpLvBxIghjYseKRsG3UK+q0qd61cNSEhgm4DSz3Ea8xK+kgIW0Mwhct0ULnqaUWxdFvNs4K447Tn1lnmkFvMK4Bh/acxrUxRNOjVIgWzNIgEh5I9XQRJ5blv7os5oD4GAVH3solLAxa/NCFtOUhhgxBbUDeDWI1yYh+wFbpjWxihf45b8wDzsBKrsuvuJE6wKRPS8f743IlbjH1V3oVD3FStd0I78akgsckItdVP54Vxc6lKcRAHeHAAguuRpdVustV5gMkPbxnrP56Lce2Yhi3Zy8CDvckJ4qzpMq6mLMwvq8z2HDu5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=glasgow.ac.uk; dmarc=pass action=none header.from=glasgow.ac.uk; dkim=pass header.d=glasgow.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gla.onmicrosoft.com; s=selector2-gla-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h9D1vEvtQ+8JrU9jOX3NIZU6neVGuxzblU3biuJyYxg=; b=OK29U0/JTxlUHZ1metxAxCdsrNAk9TkR06ODErzKh2FmMw1Ar8Rui32loAMvvtAZAM0ybJpR2XrYNhktjPrBv2xPrfbqq/S1a72+SLDxR1N5FAJ4Gm+xS4W06GwmVgfGSdblInTMdlHN+h/YHw/U5PNSs5wEozlA3dvUQNkUPyU= Received: from CWLP265MB3361.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:d4::7) by CWLP265MB3266.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:e3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.24; Thu, 17 Jun 2021 00:20:59 +0000 Received: from CWLP265MB3361.GBRP265.PROD.OUTLOOK.COM ([fe80::977:cd20:64d7:e0bf]) by CWLP265MB3361.GBRP265.PROD.OUTLOOK.COM ([fe80::977:cd20:64d7:e0bf%4]) with mapi id 15.20.4242.018; Thu, 17 Jun 2021 00:20:59 +0000 From: Norman Gray To: "Ronald F. Guilmette" CC: Subject: Re: Why doesn't cc -ansi disable conflicting type for getline from stdio.h? Date: Thu, 17 Jun 2021 01:20:58 +0100 X-Mailer: MailMate (1.14r5769) Message-ID: In-Reply-To: <31517.1623881219@segfault.tristatelogic.com> References: <31517.1623881219@segfault.tristatelogic.com> Content-Type: text/plain; format=flowed X-Originating-IP: [81.2.70.164] X-ClientProxiedBy: LO2P265CA0370.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a3::22) To CWLP265MB3361.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:d4::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [130.209.150.74] (81.2.70.164) by LO2P265CA0370.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Thu, 17 Jun 2021 00:20:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ab9689d3-7228-4a5b-a39f-08d93125c809 X-MS-TrafficTypeDiagnostic: CWLP265MB3266: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3vGi2jrr4gShOy3kVCI1pbPIgb0CeHSUiDskzTizd9OLUS/WHDSXWr+smYgyod80wScpl3W1WDTvpme7D+UbYUXoJl8buKIbDtQeLWWSGsNkfV/io/rAgrbvBnsX4VmskDnNk+YeyqT4YmjY8RDqh0QlMV4Z72Cgtj0/RyKT99biq2m+kmI/2b7ADXSrViERxIOYvFeq1IwDBmekc+ThZ/vgxLRFUGmMnuIFVAFllte2urrhBa2vMTpg7MwMDSw73gh8aPeg1JTwn1hm+lMWXHfBcpBegC5EZFol2KFY2ReejEAytUqXvB0bJ0ghwQwQmgrSAK57YUXyxzqje2tod3otdiXlZY6MRbvAiW0LAwBytxrkq+V+ssmLFG8LMMGXBXEZ80bfIVLcgQ2PISPN6XVHOHeZXz2hkIIBeP5+p+g5jHz+sj1PbaIVKWtZX6xCPbLepQ75gZ9/JEYl1wXZe7vpDne46GJm03uNjmqAj5HUJqwXTl9lUTWufE5kR01hMi+hpJJ+Q4Y90MAZ32PsVmVVbcm6T8m3RIIZZ2Eev+whEFzTDogM5po8Z2DWf0EpLRONvLN/fPnaVx7VxkkEkhBPhAr52HTVxcKkXQDiB8pVAedsgxrFNuuyM8xCxzSGo4WeVYkcWCtK9+fwaXsOGcxlaWCub4z5t/Omg1CpygThEDdeFrONaqBtxf4VEQlXA0+ytuAUknEl6J2pv/9oqovgZUkSg4vgxYaCvTyNkPG6AQyMs7hjA+RA6+puKEtCCktWxf+TZKjVCnSvsqmyvI8tyZTRTigft0Ad0wRP5K4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CWLP265MB3361.GBRP265.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(136003)(366004)(39850400004)(396003)(66946007)(66556008)(5660300002)(26005)(66476007)(4326008)(966005)(316002)(478600001)(16526019)(186003)(8676002)(6916009)(6706004)(53546011)(786003)(16576012)(8936002)(36756003)(44832011)(956004)(33656002)(86362001)(2616005)(83380400001)(38100700002)(6486002)(2906002)(78286007)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?3v03VMpTyYyc5qcX3bABjHxeVdttA9viYQpSyhDADLNnIdPyWGFuRjrAQPep?= =?us-ascii?Q?Z6lSueFjYm7InaPXUHIWQUvTE0TUH8g+Q+aFAsVTd+rzTyS1D79VA6KXEvP/?= =?us-ascii?Q?b/CXCumSLbiZ066nsU9W+qcmoo+znnYyYkuFQkGvHCN7l6G84jlQuCmOT6/X?= =?us-ascii?Q?sgSUQlWVrpaU7iz9F37Zs0mw2xUUx5cYQN7ZqjXsidzxZqOIdGG00A8GaZCY?= =?us-ascii?Q?VTqpFyvLkLprcrJB3h1bWehOg2zTSUhaKYuhz+LAjkliw08RMDy0zkZ0WH92?= =?us-ascii?Q?LDyxXICSmmNBjxribjkmaeYPpyFCkC3S/faf8Zymf7PoSUzOuu4oOGNEwHZn?= =?us-ascii?Q?1YT8wKe0pcUJSQEGEizfnji19ERS91O+uYvTlDOrp9ne95bHoj9M6MvXOV8L?= =?us-ascii?Q?zABVPtQtFMSQNqkRTiJDnto2uybDhbglKgIFyfnWdjKH8/E3Y8wytPALyJSz?= =?us-ascii?Q?drHYo5Y9Nndb/zsgKTGW6p+nb/IykVqyAN7PFl/ZF1Y0bi+8ULaVlbHEyjvb?= =?us-ascii?Q?7p1I8awaISLNz2r2Y/T29w+bf7ROSX917BrU7rjOUaGhK2gTtES1rgM79UwP?= =?us-ascii?Q?nFYUcWIfdPUqsReZueTzFi1W81Hx0e5SUG5H7Uk1pVs+Q3KTQzBGvBPm7Lj6?= =?us-ascii?Q?37Ii1iE/VenqWHCNUW2hAnWc4eGOW/Eg79yEPtRGRdbbKwQHFhoxi642z6Z+?= =?us-ascii?Q?4++0e7n/qSQKtXobOclkl9K2ce2xyh52NBGW6EdhvAgKdH2MnRMY2EJIQquJ?= =?us-ascii?Q?IDYj5wcqTv1QPv8bCpGTU28HoSQi5NcHuEHq3bV/W27DlAHwGz34fzth92qG?= =?us-ascii?Q?JzDyMEMk9cK79F/2q09JhOgTojF6YyKQ0y/lk6kAK2WioXWHz+4wada5GGSK?= =?us-ascii?Q?vwHkXasHT6sRbwFiqMFkxA/Apx1hKcG1cub4CIyhB0cuLQkACZ/TRurXOdCl?= =?us-ascii?Q?XEx532aeLJhvLNCgjm+dRWiH9p3DSr6upXbJPCIzIHnQ665hv28OvnuqZqNL?= =?us-ascii?Q?9m9KhAOIfUqFlHszoi7valuMchCHHZO8+3K9ewT7VQL0dEISmF65B1APbehe?= =?us-ascii?Q?070CCjGTSlzFptBA2aHMQYVODOYpJcAcgQ5oWf8MDLMuDCMKwwbH76vm82zQ?= =?us-ascii?Q?8dW3QpQUcmgP0zDuG53JvhDUYyqLjEKg5Qs01nceTk1ZDwFCJ+zGuyLvYxG3?= =?us-ascii?Q?DuOZCj3JLldMXkEP/0YayGHujjsosJqseKc/BKfdIfODvWcnxMZiZizb01F3?= =?us-ascii?Q?jlSq7T3uuVzH4WyJueob74XjuszIFNdIHXcKvcX2SSmKGN0kjq2+J6cT61mI?= =?us-ascii?Q?pSrCKlGCI1Vn7UViK8XqfpFQ?= X-MS-Exchange-CrossTenant-Network-Message-Id: ab9689d3-7228-4a5b-a39f-08d93125c809 X-MS-Exchange-CrossTenant-AuthSource: CWLP265MB3361.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2021 00:20:59.0824 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 6e725c29-763a-4f50-81f2-2e254f0133c8 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JfRg6bKz7szkjMpz4dadyWqSAXyPhwZSrrkuJ0gpLdCrwfogR6mDbtrWL117xj6vQ1pOGFQkdBoUhUHIhYPCtz2JQx6m9czIwBXpouKkrOM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP265MB3266 X-OriginatorOrg: glasgow.ac.uk X-Rspamd-Queue-Id: 4G52lf5dytz4c6k X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gla.onmicrosoft.com header.s=selector2-gla-onmicrosoft-com header.b=OK29U0/J; arc=pass (microsoft.com:s=arcselector9901:i=1); dmarc=none; spf=pass (mx1.freebsd.org: domain of Norman.Gray@glasgow.ac.uk designates 130.209.16.102 as permitted sender) smtp.mailfrom=Norman.Gray@glasgow.ac.uk X-Spamd-Result: default: False [-2.20 / 15.00]; RCVD_TLS_LAST(0.00)[]; R_DKIM_ALLOW(-0.20)[gla.onmicrosoft.com:s=selector2-gla-onmicrosoft-com]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[130.209.16.102:from]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:130.209.0.0/16]; DMARC_NA(0.00)[glasgow.ac.uk]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[130.209.16.102:from]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gla.onmicrosoft.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:786, ipnet:130.209.0.0/16, country:GB]; RCVD_COUNT_SEVEN(0.00)[7]; MAILMAN_DEST(0.00)[freebsd-questions]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1] 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: Thu, 17 Jun 2021 00:21:04 -0000 Greetings. On 16 Jun 2021, at 23:06, Ronald F. Guilmette wrote: >> You're thinking of WSL (Windows System for Linux). > > Yes, apparently. (I'm reading the Wikipedia page on that now. Thanks > for giving me the name of the thing, so that I could google it.) > > I'm sure that this "WSL 2" thing is swell for some projects, but > for me personally it just looks like more lipstick on the pig. Apropos of not very much, I'll chip in at this point to say that WSL2 is interestingly and unexpectedly good, in an 'it just works' sense. Example 1: I recently taught an 'Introduction to unix tools' course, with a mixed-OS class. Unlike WSL1 or (OMG) cygnus in previous years, once the WSL2 students had been shown how to enable WSL2 on their Windows machines (admittedly not trivial in every case), they were officially No Problem, being less of a drain on lab demonstrator time than the students with random Linux distributions. Example 2: In a recent project, I was collaborating with a firmly Windows-based colleague on an Arduino project, where the build toolchain used slightly fragile Makefiles invoking (on their machine, via WSL2) the Windows install of the Arduino cross-compilers. This turned out to be massively less of a problem than I expected it to be. It's not bulletproof, and there's non-zero scope for filesystem-confusion -- at one point, if I recall correctly, the Makefile and the compiler turned out to have different ideas about what 'the home directory' was, and where ../ went from there (oooh, the hilarity) -- but these were at the level of unix-to-unix porting problems, rather than anything more hair-pullingly entertaining. I think it's possible to get X running on WSL2, but that's only for masochists. MS are not going to help you with that at all. It all ends up feeling agreeably old-skool. Best wishes, Norman -- Norman Gray : http://www.astro.gla.ac.uk/users/norman/it/ Research IT Coordinator SUPA School of Physics and Astronomy, University of Glasgow, UK Charity number SC004401