utility.c (80224) | utility.c (81965) |
---|---|
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[] = | 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 $"; | 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 | 40#endif /* not lint */ 41 42#ifdef __FreeBSD__ 43#include <locale.h> 44#include <sys/utsname.h> 45#endif |
46#include <string.h> |
|
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]; | 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]; |
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 --- | 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 --- |