From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 26864 invoked from network); 25 Apr 2020 11:52:13 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with UTF8ESMTPZ; 25 Apr 2020 11:52:13 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 950EF9C84C; Sat, 25 Apr 2020 21:52:12 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 833BD9C733; Sat, 25 Apr 2020 21:51:43 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 50E069C733; Sat, 25 Apr 2020 21:51:41 +1000 (AEST) X-Greylist: delayed 433 seconds by postgrey-1.36 at minnie.tuhs.org; Sat, 25 Apr 2020 21:51:40 AEST Received: from ste-pvt-msa2.bahnhof.se (ste-pvt-msa2.bahnhof.se [213.80.101.71]) by minnie.tuhs.org (Postfix) with ESMTPS id 262FE9C171 for ; Sat, 25 Apr 2020 21:51:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id 9216D3FEA9 for ; Sat, 25 Apr 2020 13:44:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5hB0PtqBy3dI for ; Sat, 25 Apr 2020 13:44:24 +0200 (CEST) Received: from localhost (unknown [85.24.253.39]) (Authenticated sender: mc592273) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id 9FC0D3FE7D for ; Sat, 25 Apr 2020 13:44:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTPS id 23AC32E02D2 for ; Sat, 25 Apr 2020 13:44:24 +0200 (CEST) Date: Sat, 25 Apr 2020 11:44:23 +0000 From: Michael =?utf-8?B?S2rDtnJsaW5n?= To: tuhs@tuhs.org Message-ID: References: <6D6EFA0C-36C3-4225-A331-D1998A07C50A@gmail.com> <20200425030436.GF30547@mcvoy.com> <20200425034307.GG30547@mcvoy.com> <202004250354.03P3sFJe2522940@darkstar.fourwinds.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202004250354.03P3sFJe2522940@darkstar.fourwinds.com> Subject: Re: [TUHS] v7 K&R C X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On 24 Apr 2020 20:54 -0700, from jon@fourwinds.com (Jon Steinhart): > Enums are implemented badly, but it's possible to do even worse. This is from > linux /usr/include/sys/mount.h - can anyone explain the point of it to me? > > enum > { > MS_RDONLY = 1, /* Mount read-only. */ > #define MS_RDONLY MS_RDONLY > MS_NOSUID = 2, /* Ignore suid and sgid bits. */ > #define MS_NOSUID MS_NOSUID If you mean the #defining to itself, check out the discussion starting at . If you have the archive locally, that's Message-ID <201911131802.xADI2fxE752068@darkstar.fourwinds.com> from 13 Nov 2019 10:02 -0800 / 18:02 UTC. -- Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”