Lines Matching refs:utmp

43 #include <utmp.h>
53 struct utmp wtmp;
66 #define UTMP_FILE "/etc/utmp"
732 extern struct utmp wtmp;
841 * Wait for our parent to get the utmp stuff to get done.
1135 * Cray parent will create utmp entry for child and send
1145 * Create utmp entry for child
1160 write(i, &wtmp, sizeof(struct utmp));
1283 * Create utmp entry for child
1400 * remove the utmp entry for this person.
1411 * This updates the utmpx and utmp entries and make a wtmp/x entry
1453 struct utmp wtmp;
1478 struct utmp *u, *utmp;
1486 utmp = (struct utmp *)malloc((unsigned)statbf.st_size);
1487 if (!utmp)
1488 syslog(LOG_ERR, "utmp malloc failed");
1489 if (statbf.st_size && utmp) {
1490 nutmp = read(f, utmp, (int)statbf.st_size);
1491 nutmp /= sizeof(struct utmp);
1493 for (u = utmp ; u < &utmp[nutmp] ; u++) {
1499 lseek(f, ((long)u)-((long)utmp), L_SET);
1536 struct utmp utmp;
1537 struct utmp *utptr;
1540 utmp.ut_type = USER_PROCESS;
1541 strncpy(utmp.ut_line, clean_ttyname(line), sizeof(utmp.ut_line));
1543 utptr = getutline(&utmp);
1551 write(fd, utptr, sizeof(utmp));
1594 * 4: Fill in utmp with shutdown of process.
1666 * the utmp file between the server and the soon-to-be-login shell.
1667 * The server actually creates the utmp structure, the child calls
1707 * Wait for parent to write our utmp entry.
1749 struct utmp *
1753 struct utmp *cur = NULL;
1768 * from the utmp. If the job has already gone away,
1775 struct utmp *wtp;
1777 struct utmp *utp;
1780 extern struct utmp *getutid (const struct utmp *_Id);
1796 syslog(LOG_ERR, "Can't get /etc/utmp entry to clean TMPDIR");
1851 /* if the jid has changed, get the correct entry from the utmp file */
1854 struct utmp *utp = NULL;
1855 struct utmp *jid_getutid();
1860 syslog(LOG_ERR, "Can't get /etc/utmp entry to clean TMPDIR");