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 81965 2001-08-20 12:28:40Z markm $"; |
40#endif /* not lint */ 41 42#ifdef __FreeBSD__ 43#include <locale.h> 44#include <sys/utsname.h> 45#endif |
46#include <string.h> |
47#define PRINTOPTIONS 48#include "telnetd.h" 49 50#if defined(AUTHENTICATION) 51#include <libtelnet/auth.h> 52#endif 53#if defined(ENCRYPTION) 54#include <libtelnet/encrypt.h> --- 379 unchanged lines hidden (view full) --- 434 void 435putf(cp, where) 436 register char *cp; 437 char *where; 438{ 439 char *slash; 440 time_t t; 441 char db[100]; |
442#ifdef __FreeBSD__ 443 static struct utsname kerninfo; 444 445 if (!*kerninfo.sysname) 446 uname(&kerninfo); 447#endif 448 449 putlocation = where; --- 658 unchanged lines hidden --- |