A history of S_IFMT
http://www.lubutu.com/soso/a-history-of-sifmt [www.lubutu.com]
2019-05-31 23:01
The question I’m going to answer in this post is not why 4 bits are used, but why they’re used the way they are. If you have a look at the standard file types, their values seem pretty arbitrary, when you might expect a simple count upwards.
source: L