posix: fix return value of write, fixes #189
1 file changed