Spotted by: Antoine Brodin (antoine _dot_ brodin _at_ laposte _dot_ net)
Linux also provides an fcloseall() implementation. Discussed on: arch