SCCS-vsn: libexec/getty/Makefile 5.12
SCCS-vsn: libexec/telnetd/Makefile 5.12
SCCS-vsn: libexec/telnetd/utility.c 5.5
-# @(#)Makefile 5.11 (Berkeley) %G%
+# @(#)Makefile 5.12 (Berkeley) %G%
-SRCS= main.c init.c subr.c gettytab.c get_date.c ttydefaults.c
+SRCS= main.c init.c subr.c gettytab.c ttydefaults.c
DPADD= ${LIBUTIL}
LDADD= -lutil
MAN5= gettytab.0 ttys.0
DPADD= ${LIBUTIL}
LDADD= -lutil
MAN5= gettytab.0 ttys.0
-# @(#)Makefile 5.11 (Berkeley) %G%
+# @(#)Makefile 5.12 (Berkeley) %G%
PROG= telnetd
CFLAGS+=-DNEED_GETTOS -DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS
PROG= telnetd
CFLAGS+=-DNEED_GETTOS -DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS
-SRCS= get_date.c gettytab.c global.c slc.c state.c sys_term.c telnetd.c \
+SRCS= gettytab.c global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c
DPADD= ${LIBUTIL} ${LIBTERM}
LDADD= -lutil -ltermcap
termstat.c utility.c
DPADD= ${LIBUTIL} ${LIBTERM}
LDADD= -lutil -ltermcap
-static char sccsid[] = "@(#)utility.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)utility.c 5.5 (Berkeley) %G%";
#endif /* not lint */
#define PRINTOPTIONS
#endif /* not lint */
#define PRINTOPTIONS
register char *cp;
char *where;
{
register char *cp;
char *where;
{
- char *slash;
-#ifndef NO_GETTYTAB
- char datebuffer[60];
-#endif /* NO_GETTYTAB */
+ time_t t;
+ char *fmt, *slash, db[100];
extern char *rindex();
putlocation = where;
extern char *rindex();
putlocation = where;
putstr(editedhost);
break;
putstr(editedhost);
break;
- get_date(datebuffer);
- putstr(datebuffer);
+ (void)time(&t);
+ /* SCCS *likes* utility.c... */
+ fmt = "%l:% %P on %A, %d %B %Y";
+ fmt[4] = 'M';
+ (void)strftime(db, sizeof(db), fmt, &t);
+ putstr(db);
-#endif /* NO_GETTYTAB */