return error for posix