Lines Matching defs:utmpx
65 #include <utmpx.h>
1632 ut_time(struct utmpx *utmpx)
1637 (void)localtime_r(&utmpx->ut_tv.tv_sec, &tm);
1642 utmpx->ut_tv.tv_usec / 1000);
1649 ut_id(struct utmpx *utmpx)
1654 cp = utmpx->ut_id + sizeof(utmpx->ut_id);
1655 while(--cp >= utmpx->ut_id && isprint(*cp)) {}
1656 if(cp < utmpx->ut_id) {
1657 snprintf(str, sizeof(str), "%-4.4s", utmpx->ut_id);
1661 utmpx->ut_id[0],
1662 utmpx->ut_id[1],
1663 utmpx->ut_id[2],
1664 utmpx->ut_id[3]);
1672 ut_pid(struct utmpx *utmpx)
1676 snprintf(pid, sizeof(pid), "%d", utmpx->ut_pid);
1686 struct utmpx *utmpx;
1695 while ((utmpx = _getutxent(utx)) != NULL) {
1705 switch (utmpx->ut_type) {
1708 entry_tv = ut_time(utmpx);
1712 entry_id = ut_id (utmpx);
1713 entry_pid = ut_pid (utmpx);
1714 entry_tv = ut_time(utmpx);
1720 entry_id = ut_id (utmpx);
1721 entry_pid = ut_pid (utmpx);
1722 entry_tv = ut_time(utmpx);
1726 entry_id = ut_id (utmpx);
1727 entry_user = utmpx->ut_user;
1728 entry_pid = ut_pid (utmpx);
1729 entry_tv = ut_time(utmpx);
1733 entry_tv = ut_time(utmpx);
1737 entry_tv = ut_time(utmpx);
1744 entry_id = ut_id (utmpx);
1745 entry_user = utmpx->ut_user;
1746 entry_line = utmpx->ut_line;
1747 entry_pid = ut_pid (utmpx);
1748 entry_tv = ut_time(utmpx);
1752 entry_tv = ut_time(utmpx);
1806 mp = _SC_CFMachPortCreateWithPort("Logger/utmpx", notify_port, pututxline_notification, NULL);