News for hackers. Stuff that matters.
Re:Apple agrees to settle potential class action suit by U.S... by saagarjha on Friday August 27, 2021 @02:39AM (#28324966)
Took a leaf out of the UNIX creat/umount handbook, clearly.
Re:Apple agrees to settle potential class action suit by U.S... by int_19h on Friday August 27, 2021 @03:36AM (#28325281)
umount() is actually legit - early C limited extern identifiers to 6 chars (or rather it would allow more than that, but the rest would be silently ignored for linking purposes), hence why we also have strlen() etc.

creat() is weird because create() would fit that constraint just fine, so there's no obvious reason as to why it had to be shortened. The 1978 K&R C book actually notes it with [sic].

Re:Apple agrees to settle potential class action suit by U.S... by mike_hock on Friday August 27, 2021 @05:01AM (#28325675)
When you're dumping loads of short, generic, common words into the global namespace (well ... the only namespace in C), it's nice to have them misspelled so user code is still free to use the real word.
Re:Apple agrees to settle potential class action suit by U.S... by guerrilla on Friday August 27, 2021 @07:23AM (#28326388)
> well ... the only namespace in C

Technically there are several namespaces since you can, for example, name a struct the name as its type.

Re:Apple agrees to settle potential class action suit by U.S... by dhosek on Friday August 27, 2021 @09:22AM (#28327472)
After many years in Javaworld, seeing this sort of thing in C++ really freaked me out.