LOGIN_SETRESOURCES
flags &= LOGIN_SETRESOURCES | LOGIN_SETPRIORITY |
if (flags & LOGIN_SETRESOURCES)
LOGIN_SETPRIORITY|LOGIN_SETRESOURCES|LOGIN_SETUMASK);
LOGIN_SETRESOURCES|LOGIN_SETUMASK);
setusercontext(lc, NULL, 0, LOGIN_SETPRIORITY|LOGIN_SETRESOURCES);
setwhat &= ~(LOGIN_SETPRIORITY | LOGIN_SETRESOURCES);