rem: int io_error_write(int f, char *buf, int len)
add: int io_error_write(int f, enum logcode code, char *buf, int len)
context: int io_error_write(int f, char *buf, int len){	if (f == -1) return 0;	writefd_unbuffered(f, buf, len);	return 1;}