utmpx_set_runlevel
utmpx_set_runlevel(target_milestone_as_runlevel(), 'S', B_TRUE);
utmpx_set_runlevel(trl, 'S', B_FALSE);
utmpx_set_runlevel(rl, current_runlevel, B_TRUE);
utmpx_set_runlevel('S', '0', B_FALSE);
void utmpx_set_runlevel(char, char, boolean_t);