- the Linux Cross Reference is a great resource - currently exploring NTFS as implemented by Paragon Software - LXR / The Linux Cross Reference
- learned about the surrogate tag in NTFS, which indicates whether the given file actually represents some other named entity
- it is interesting to examine the code Linus Torvards wrote for Kernel v0.01 back in 1991.
- here is the Linux Kernel coding style - I am surprised to see:
Do not unnecessarily use braces where a single statement will do.
I would have assumed that for safety, the coding style would have recommended one always use curly braces, even unnecessarily when if
or for
is followed by a single statement.
Overall - the placement of braces is unsurprising - at the end of the first line of the for/if etc and at the beginning of the last line.
Exception:
However, there is one special case, namely functions: they have the opening brace at the beginning of the next line, thus:
I would have personally preferred to follow the for/if braces placement for functions too i.e. placing the opening brace as the last character on the line declaring the function.