deswrite_compat
static int deswrite_compat(int, char *, int, int);
r = deswrite_compat(fd, p, outlen, secondary);