How about O_CREAT_DIRECTORY?
How about O_CREAT_DIRECTORY?
Posted Jul 31, 2026 8:12 UTC (Fri) by pm215 (subscriber, #98099)In reply to: How about O_CREAT_DIRECTORY? by lmartelli
Parent article: Reconsidering O_CREAT|O_DIRECTORY
O_DIRECTORY is a much later addition, and presumably done when there was much less cultural pressure towards abbreviations in naming. In 7th edition unix the only valid mode flags were 0, 1 and 2 for read, write and readwrite, and the manpage documents them as magic numbers without any named symbols provided. By 2.10BSD the O_ names have been defined, but O_DIRECTORY is not yet among them, and it's not in 4.4BSD either.
