Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Overuse of 'auto' Date: Wed, 21 Dec 2022 10:24:54 -0800 Organization: None to speak of Lines: 25 Message-ID: <87cz8cr4w9.fsf@nosuchdomain.example.com> References: MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="8eed7febdf69c507239cf5ff2d734e27"; logging-data="1157248"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qWAc4QX3DtdNAEegJzCwL" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:ytFPEby3bhFwgWiLgzqh4E8zjIY= sha1:bAEOjynvg8pBKJODDosVNY8OXg0= Xref: csiph.com comp.lang.c++:88204 scott@slp53.sl.home (Scott Lurndal) writes: > Muttley@dastardlyhq.com writes: >>On Tue, 20 Dec 2022 20:29:02 +0200 >>Paavo Helde wrote: [...] >>>I recall the authors of those names are generally happy with them, >>>except for one abbreviation: creat(). >> >>Yes, that is a bit of an odd one. Perhaps they thought that "create" would be >>a name people would want to use a lot for their own function names. > > IIRC, "creat" actually came from the assembler version of the system call name. That doesn't really explain anything. The system call could still have been called "create", whether it was in assembler or C. (I've seen speculation that the linker imposed a 6-character limit on external identifiers, and "creat" was transformed to "_creat", but that doesn't seem plausible given that there are other system calls with 6-character names.) -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for XCOM Labs void Void(void) { Void(); } /* The recursive call of the void */