[TUHS] v7 K&R C
Michael Kjörling
michael at kjorling.se
Sat Apr 25 21:44:23 AEST 2020
On 24 Apr 2020 20:54 -0700, from jon at 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 <https://minnie.tuhs.org/pipermail/tuhs/2019-November/019429.html>.
If you have the archive locally, that's Message-ID
<201911131802.xADI2fxE752068 at darkstar.fourwinds.com> from 13 Nov 2019
10:02 -0800 / 18:02 UTC.
--
Michael Kjörling • https://michael.kjorling.se • michael at kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”
More information about the TUHS
mailing list