I have found part of functionality I want to replicate in some of the modules distributed with the NAG Fortran Compiler.
It is essentially an interface to POSIX. This would be a good candidate for inclusion into stdlib
(not the NAG one, but a community developed version).
Intel Fortran comes with its own interface: