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.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5755 invoked from network); 13 Mar 2023 22:47:37 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 13 Mar 2023 22:47:37 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 52F6F415FD; Tue, 14 Mar 2023 08:47:33 +1000 (AEST) Received: from nsstlmta26p.bpe.bigpond.com (nsstlmta26p.bpe.bigpond.com [203.38.21.26]) by minnie.tuhs.org (Postfix) with ESMTPS id ED51B4126F for ; Tue, 14 Mar 2023 08:47:26 +1000 (AEST) Received: from smtp.telstra.com ([10.10.24.4]) by nsstlfep26p-svc.bpe.nexus.telstra.com.au with ESMTP id <20230313224724.FSTR29807.nsstlfep26p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com> for ; Tue, 14 Mar 2023 09:47:24 +1100 X-RG-Spam: Unknown X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvhedrvddvhedgtddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuuffpveftpgfvgffnuffvtfetpdfqfgfvnecuuegrihhlohhuthemucegtddtnecunecujfgurhepfffhvffujgfkfhgfgggtsehttddttddtredvnecuhfhrohhmpeffrghvvgcujfhorhhsfhgrlhhluceouggrvhgvsehhohhrshhfrghllhdrohhrgheqnecuggftrfgrthhtvghrnhepkeeiteejueeuhfefgeeuvdduieefvedugfevtdffkefhffejkefhuddtteehtefhnecukfhppeduuddtrddugedurdduleefrddvfeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheprghnvghurhhinhdrhhhorhhsfhgrlhhlrdhorhhgpdhinhgvthepuddutddrudeguddrudelfedrvdeffedpmhgrihhlfhhrohhmpegurghvvgeshhhorhhsfhgrlhhlrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtohepthhuhhhssehtuhhhshdrohhrghdprhgvvhfkrfeptghpvgdquddutddqudeguddqudelfedqvdeffedrnhhsfidrrghsphdrthgvlhhsthhrrgdrnhgvthdpghgvohfkrfeptegfpdfovfetjfhoshhtpehnshhsthhlrhhguddvphdqshhvtg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-RG-VS-CLASS: clean Received: from aneurin.horsfall.org (110.141.193.233) by smtp.telstra.com (5.8.812) id 6407D7E9012E02BD for tuhs@tuhs.org; Tue, 14 Mar 2023 09:47:24 +1100 Received: from aneurin.horsfall.org (localhost [127.0.0.1]) by aneurin.horsfall.org (8.15.2/8.15.2) with ESMTP id 32DMlOwb076187 for ; Tue, 14 Mar 2023 09:47:24 +1100 (EST) (envelope-from dave@horsfall.org) Received: from localhost (dave@localhost) by aneurin.horsfall.org (8.15.2/8.15.2/Submit) with ESMTP id 32DMlO47076184 for ; Tue, 14 Mar 2023 09:47:24 +1100 (EST) (envelope-from dave@horsfall.org) X-Authentication-Warning: aneurin.horsfall.org: dave owned process doing -bs Date: Tue, 14 Mar 2023 09:47:24 +1100 (EST) From: Dave Horsfall To: The Eunuchs Hysterical Society In-Reply-To: Message-ID: References: <20230310113708.AD55518C080@mercury.lcs.mit.edu> <10C77771-5232-4DBB-8685-ADC38C5E8350@iitbombay.org> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) X-GPG-Public-Key: http://www.horsfall.org/gpgkey.pub X-GPG-Fingerprint: 05B4 FFBC 0218 B438 66E0 587B EF46 7357 EF5E F58B X-Home-Page: http://www.horsfall.org/ X-Witty-Saying: "chmod 666 the_mode_of_the_beast" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-ID-Hash: CFXG3RCBBNQX5T4OI4EVBULEZP5NWF7L X-Message-ID-Hash: CFXG3RCBBNQX5T4OI4EVBULEZP5NWF7L X-MailFrom: dave@horsfall.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: [TUHS]: C dialects (was: I can't drive 55: "GOTO considered harmful" 55th anniversary) List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue, 14 Mar 2023, Dave Horsfall followed himself up: > Trivia: I think it was OpenBSD that nobbled gets() to print a warning > whenever it was invoked :-) FreeBSD 10.4 (old, I know): c.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() ^~~~ c.c:2:3: warning: implicit declaration of function 'gets' is invalid in C99 [-Wimplicit-function-declaration] { gets(); } ^ 2 warnings generated. /tmp/c-36bc21.o: In function `main': c.c:(.text+0x4): warning: warning: this program uses gets(), which is unsafe. aneurin% ./c warning: this program uses gets(), which is unsafe. aneurin% On the MacBook (10.13.6 High Sierra): c.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() ^ c.c:2:3: warning: implicit declaration of function 'gets' is invalid in C99 [-Wimplicit-function-declaration] { gets(); } ^ 2 warnings generated. mackie:tmp dave$ ./c warning: this program uses gets(), which is unsafe. And it core-dumped,,, (I don't have access to my Penguin/OS lapdog right now.) I think that it's trying to tel me something :-) -- Dave