Sets the logmask and returns the previous mask.
int setlogmask(int maskpri) { int old = _mask; if (maskpri != 0) { _mask = maskpri; } return old; }