writing files from uspace with newlib