Deleted Added
sdiff udiff text old ( 80224 ) new ( 81965 )
full compact
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static const char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95";
37#endif
38static const char rcsid[] =
39 "$FreeBSD: head/contrib/telnet/telnetd/utility.c 80224 2001-07-23 21:52:26Z kris $";
40#endif /* not lint */
41
42#ifdef __FreeBSD__
43#include <locale.h>
44#include <sys/utsname.h>
45#endif
46#define PRINTOPTIONS
47#include "telnetd.h"
48
49#if defined(AUTHENTICATION)
50#include <libtelnet/auth.h>
51#endif
52#if defined(ENCRYPTION)
53#include <libtelnet/encrypt.h>

--- 379 unchanged lines hidden (view full) ---

433 void
434putf(cp, where)
435 register char *cp;
436 char *where;
437{
438 char *slash;
439 time_t t;
440 char db[100];
441#ifdef STREAMSPTY
442 extern char *strchr();
443#else
444 extern char *strrchr();
445#endif
446#ifdef __FreeBSD__
447 static struct utsname kerninfo;
448
449 if (!*kerninfo.sysname)
450 uname(&kerninfo);
451#endif
452
453 putlocation = where;

--- 658 unchanged lines hidden ---