Home
last modified time | relevance | path

Searched refs:ut_type (Results 1 – 20 of 20) sorted by relevance

/external/toybox/toys/pending/
Dlast.c112 if (!strcmp(ut.ut_user, "runlevel")) ut.ut_type = RUN_LVL; in last_main()
113 else if (!strcmp(ut.ut_user, "reboot")) ut.ut_type = BOOT_TIME; in last_main()
114 else if (!strcmp(ut.ut_user, "shutdown")) ut.ut_type = SHUTDOWN_TIME; in last_main()
115 } else if (!*ut.ut_user) ut.ut_type = DEAD_PROCESS; in last_main()
116 else if (*ut.ut_user && *ut.ut_line && ut.ut_type != DEAD_PROCESS in last_main()
117 && strcmp(ut.ut_user, "LOGIN")) ut.ut_type = USER_PROCESS; in last_main()
122 if (ut.ut_line[0] == '|') ut.ut_type = OLD_TIME; in last_main()
123 if (ut.ut_line[0] == '{') ut.ut_type = NEW_TIME; in last_main()
126 if ((ut.ut_type == SHUTDOWN_TIME) || ((ut.ut_type == RUN_LVL) && in last_main()
132 } else if (ut.ut_type == BOOT_TIME) { in last_main()
[all …]
Dgetty.c196 if (ep->ut_pid == entry.ut_pid && ep->ut_type >= INIT_PROCESS) break; in utmp_entry()
198 else entry.ut_type = LOGIN_PROCESS; in utmp_entry()
/external/toybox/toys/other/
Dw.c25 if (x->ut_type==7) { in w_main()
Duptime.c72 while ((entry = getutxent())) if (entry->ut_type == USER_PROCESS) users++; in uptime_main()
/external/toybox/toys/posix/
Dwho.c34 if (FLAG(a) || entry->ut_type == USER_PROCESS) { in who_main()
/external/rust/crates/libc/src/unix/linux_like/linux/musl/
Dmod.rs294 pub ut_type: ::c_short,
388 self.ut_type == other.ut_type
413 .field("ut_type", &self.ut_type)
432 self.ut_type.hash(state);
/external/musl/include/
Dutmpx.h18 short ut_type; member
/external/libcap/contrib/sucap/
Dsu.c872 if ((u_tmp_p->ut_type == INIT_PROCESS || in find_utmp_entry()
873 u_tmp_p->ut_type == LOGIN_PROCESS || in find_utmp_entry()
874 u_tmp_p->ut_type == USER_PROCESS || in find_utmp_entry()
875 u_tmp_p->ut_type == DEAD_PROCESS) && in find_utmp_entry()
1077 u_tmp.ut_type = USER_PROCESS; /* a user process starting */ in utmp_do_open_session()
1130 u_tmp.ut_type = DEAD_PROCESS; /* `old' login process */ in utmp_do_close_session()
/external/selinux/restorecond/
Dutmpwatcher.c63 if (u.ut_type == USER_PROCESS) in utmpwatcher_handle()
/external/rust/crates/libc/src/unix/linux_like/linux/gnu/
Dmod.rs457 pub ut_type: ::c_short,
501 self.ut_type == other.ut_type
524 .field("ut_type", &self.ut_type)
541 self.ut_type.hash(state);
/external/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/
Dmod.rs426 pub ut_type: u16,
548 && self.ut_type == other.ut_type
566 .field("ut_type", &self.ut_type)
583 self.ut_type.hash(state);
/external/toybox/lib/
Dportability.h260 struct utmpx {int ut_type;}; member
/external/rust/crates/libc/src/unix/haiku/
Dmod.rs473 pub ut_type: ::c_short,
488 self.ut_type == other.ut_type
504 .field("ut_type", &self.ut_type)
518 self.ut_type.hash(state);
/external/rust/crates/libc/src/unix/solarish/
Dmod.rs416 pub ut_type: ::c_short,
497 pub ut_type: ::c_short,
582 self.ut_type == other.ut_type
609 .field("ut_type", &self.ut_type)
623 self.ut_type.hash(state);
/external/rust/crates/libc/src/unix/bsd/netbsdlike/netbsd/
Dmod.rs722 pub ut_type: u16,
842 self.ut_type == other.ut_type
874 .field("ut_type", &self.ut_type)
887 self.ut_type.hash(state);
/external/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs533 pub ut_type: ::c_short,
764 self.ut_type == other.ut_type
795 .field("ut_type", &self.ut_type)
812 self.ut_type.hash(state);
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/
Dmod.rs1014 pub ut_type: ::c_short,
1226 self.ut_type == other.ut_type
1248 .field("ut_type", &self.ut_type)
1261 self.ut_type.hash(state);
/external/ppp/pppd/
Dsys-solaris.c2479 utmpx.ut_type = USER_PROCESS;
2481 utmpx.ut_type = DEAD_PROCESS;
Dsys-linux.c2202 ut.ut_type = USER_PROCESS; in logwtmp()
/external/rust/crates/libc/src/unix/bsd/apple/
Dmod.rs1140 pub ut_type: ::c_short,
1851 && self.ut_type == other.ut_type
1871 .field("ut_type", &self.ut_type)
1885 self.ut_type.hash(state);