• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Heimdal-398.1.2/appl/telnet/telnetd/

Lines Matching defs:utmp

43 #include <utmp.h>
53 struct utmp wtmp;
66 #define UTMP_FILE "/etc/utmp"
739 extern struct utmp wtmp;
848 * Wait for our parent to get the utmp stuff to get done.
1144 * Cray parent will create utmp entry for child and send
1154 * Create utmp entry for child
1169 write(i, &wtmp, sizeof(struct utmp));
1294 * Create utmp entry for child
1411 * remove the utmp entry for this person.
1422 * This updates the utmpx and utmp entries and make a wtmp/x entry
1464 struct utmp wtmp;
1489 struct utmp *u, *utmp;
1497 utmp = (struct utmp *)malloc((unsigned)statbf.st_size);
1498 if (!utmp)
1499 syslog(LOG_ERR, "utmp malloc failed");
1500 if (statbf.st_size && utmp) {
1501 nutmp = read(f, utmp, (int)statbf.st_size);
1502 nutmp /= sizeof(struct utmp);
1504 for (u = utmp ; u < &utmp[nutmp] ; u++) {
1510 lseek(f, ((long)u)-((long)utmp), L_SET);
1547 struct utmp utmp;
1548 struct utmp *utptr;
1551 utmp.ut_type = USER_PROCESS;
1552 strncpy(utmp.ut_line, clean_ttyname(line), sizeof(utmp.ut_line));
1554 utptr = getutline(&utmp);
1562 write(fd, utptr, sizeof(utmp));
1605 * 4: Fill in utmp with shutdown of process.
1677 * the utmp file between the server and the soon-to-be-login shell.
1678 * The server actually creates the utmp structure, the child calls
1718 * Wait for parent to write our utmp entry.
1760 struct utmp *
1764 struct utmp *cur = NULL;
1779 * from the utmp. If the job has already gone away,
1786 struct utmp *wtp;
1788 struct utmp *utp;
1791 extern struct utmp *getutid (const struct utmp *_Id);
1807 syslog(LOG_ERR, "Can't get /etc/utmp entry to clean TMPDIR");
1862 /* if the jid has changed, get the correct entry from the utmp file */
1865 struct utmp *utp = NULL;
1866 struct utmp *jid_getutid();
1871 syslog(LOG_ERR, "Can't get /etc/utmp entry to clean TMPDIR");