Lines Matching refs:utmp

110 extern struct utmp *_compat_getutent(void);
111 extern struct utmp *_compat_getutid(const struct utmp *);
112 extern struct utmp *_compat_getutline(const struct utmp *);
113 extern struct utmp *_compat_pututline(const struct utmp *);
116 extern void _compat_updwtmp(const char *, struct utmp *);
117 extern struct utmp *_compat_makeut(struct utmp *);
133 static struct utmp utmpcompat; /* Buffer for returning utmp-format data */
271 struct utmp *
386 struct utmp *
387 getutid(const struct utmp *entry) in getutid()
449 struct utmp *
450 getutline(const struct utmp *entry) in getutline()
701 struct utmp *
702 pututline(const struct utmp *entry) in pututline()
889 updwtmp(const char *file, struct utmp *ut) in updwtmp()
913 struct utmpx utmp; /* holding area */ in modutx() local
914 struct utmpx *ucp = &utmp; /* and a pointer to it */ in modutx()
926 (void) memcpy(&utmp, utp, sizeof (utmp)); in modutx()
956 struct utmp *
957 modut(struct utmp *utp) in modut()
1144 makeutx(const struct utmpx *utmp) in makeutx() argument
1156 if (memchr(utmp->ut_id, SC_WILDC, IDLEN) != NULL) { in makeutx()
1170 if (idcmp(utmp->ut_id, ut->ut_id)) { in makeutx()
1191 (void) memcpy((caddr_t)utmp->ut_id, ut->ut_id, IDLEN); in makeutx()
1193 putoneutx(utmp, offset); in makeutx()
1194 updwtmpx(WTMPX_FILE, (struct utmpx *)utmp); in makeutx()
1196 sendpid(ADDPID, (pid_t)utmp->ut_pid); in makeutx()
1197 return ((struct utmpx *)utmp); in makeutx()
1204 if (allocid((char *)utmp->ut_id, saveid)) { in makeutx()
1215 putoneutx(utmp, offset); in makeutx()
1216 updwtmpx(WTMPX_FILE, (struct utmpx *)utmp); in makeutx()
1218 sendpid(ADDPID, (pid_t)utmp->ut_pid); in makeutx()
1219 return ((struct utmpx *)utmp); in makeutx()
1223 utp = pututxline(utmp); in makeutx()
1227 sendpid(ADDPID, (pid_t)utmp->ut_pid); in makeutx()
1238 struct utmp *
1239 makeut(struct utmp *utmp) in makeut() argument
1245 return (_compat_makeut(utmp)); in makeut()
1247 getutmpx(utmp, &utmpx); in makeut()
1251 getutmp(utmpx2, utmp); in makeut()
1252 return (utmp); in makeut()
1360 getutmpx(const struct utmp *ut, struct utmpx *utx) in getutmpx()
1384 getutmp(const struct utmpx *utx, struct utmp *ut) in getutmp()