FYI, Windows's approach is better in some respects, like letting you avoid syscall overhead in some cases.