In dev_stdout_write, user_strdup_errno should be user_memdup_errno.