log_IsKeptLocal
if (log_IsKeptLocal(i, arg->prompt->logmask) & LOG_KEPT_LOCAL)
extern int log_IsKeptLocal(int, u_long);