putw is supposed to return 0 (not the value written) on success
[musl] / src / stdio / __stdio_exit.c
2012-06-19 Rich Felkerstdio: handle file position correctly at program exit