1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
/* This file is part of the Project Athena Zephyr Notification System.
* It contains the version identification of the Zephyr server
*
* Created by: John T. Kohl
*
* $Id: e572bbf3fdb37e130ca7e1012f327df546f7f7f6 $
*
* Copyright (c) 1989 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file
* "mit-copyright.h".
*/
#include <zephyr/mit-copyright.h>
#include <sys/utsname.h>
#include "zserver.h"
#include <zephyr_version.h>
const char zephyr_version[] = "Zephyr system version" ZEPHYR_VERSION_STRING;
#ifdef DEBUG
const char version[] = "Zephyr Server (DEBUG) " ZEPHYR_VERSION_STRING;
#else
const char version[] = "Zephyr Server " ZEPHYR_VERSION_STRING;
#endif
#if !defined (lint) && !defined (SABER)
static const char copyright[] =
"Copyright (c) 1987,1988,1989,1990 Massachusetts Institute of Technology.\n";
#endif
char *
get_version(void)
{
static char vers_buf[256];
struct utsname un;
if (vers_buf[0] == '\0') {
strcpy(vers_buf, version);
(void) strcat(vers_buf, "/");
uname(&un);
(void) strcat(vers_buf, un.machine);
(void) strcat(vers_buf, "-");
(void) strcat(vers_buf, un.sysname);
}
return(vers_buf);
}
|