Lines Matching refs:previous
27 int utmp_get_runlevel(int *runlevel, int *previous) { in utmp_get_runlevel() argument
43 if (previous) in utmp_get_runlevel()
44 *previous = 0; in utmp_get_runlevel()
59 if (previous) in utmp_get_runlevel()
60 *previous = (found->ut_pid >> 8) & 0xFF; in utmp_get_runlevel()
253 int utmp_put_runlevel(int runlevel, int previous) { in utmp_put_runlevel() argument
259 if (previous <= 0) { in utmp_put_runlevel()
262 r = utmp_get_runlevel(&previous, NULL); in utmp_put_runlevel()
267 previous = 0; in utmp_put_runlevel()
271 if (previous == runlevel) in utmp_put_runlevel()
277 store.ut_pid = (runlevel & 0xFF) | ((previous & 0xFF) << 8); in utmp_put_runlevel()