home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / radi116c.zip / radius116c / src / radius / version.c < prev   
C/C++ Source or Header  |  1999-01-21  |  3KB  |  100 lines

  1. /*
  2.  *
  3.  *    RADIUS
  4.  *    Remote Authentication Dial In User Service
  5.  *
  6.  *
  7.  *    Livingston Enterprises, Inc.
  8.  *    6920 Koll Center Parkway
  9.  *    Pleasanton, CA   94566
  10.  *
  11.  *    Copyright 1992 Livingston Enterprises, Inc.
  12.  *
  13.  *    Permission to use, copy, modify, and distribute this software for any
  14.  *    purpose and without fee is hereby granted, provided that this
  15.  *    copyright and permission notice appear on all copies and supporting
  16.  *    documentation, the name of Livingston Enterprises, Inc. not be used
  17.  *    in advertising or publicity pertaining to distribution of the
  18.  *    program without specific prior permission, and notice be given
  19.  *    in supporting documentation that copying and distribution is by
  20.  *    permission of Livingston Enterprises, Inc.
  21.  *
  22.  *    Livingston Enterprises, Inc. makes no representations about
  23.  *    the suitability of this software for any purpose.  It is
  24.  *    provided "as is" without express or implied warranty.
  25.  *
  26.  */
  27.  
  28. static char sccsid[] =
  29. "@(#)version.c    1.2 Copyright 1992 Livingston Enterprises Inc";
  30.  
  31. #include        <sys/types.h>
  32. #include    <stdio.h>
  33. #include    <stdlib.h>
  34. #include    "radius.h"
  35.  
  36. extern char    *progname;
  37.  
  38. /*  If you make any changes to this software please update this
  39.  *  version number; contact support@livingston.com if you
  40.  *  would like a range of versions allocated for your use.
  41.  */
  42.  
  43. #define        VERSION        "Os/2 ver 1.16c 99/01/21"
  44.  
  45. /*************************************************************************
  46.  *
  47.  *    Function: version
  48.  *
  49.  *    Purpose: Display the revision number for this program
  50.  *
  51.  *************************************************************************/
  52. void
  53. version(void)
  54. {
  55.  
  56.     fprintf(stderr, "%s: RADIUS version %s\n", progname, VERSION);
  57.  
  58.     /* here are all the conditional feature flags */
  59. #if defined(DBM)
  60.     fprintf(stderr," DBM");
  61. #endif
  62. #if defined(NOSHADOW)
  63.     fprintf(stderr," NOSHADOW");
  64. #endif
  65.  
  66.     /* here are all the system definitions compilation uses */
  67. #if defined(__alpha)
  68.     fprintf(stderr," __alpha");
  69. #endif
  70. #if defined(__osf__)
  71.     fprintf(stderr," __osf__");
  72. #endif
  73. #if defined(aix)
  74.     fprintf(stderr," aix");
  75. #endif
  76. #if defined(bsdi)
  77.     fprintf(stderr," bsdi");
  78. #endif
  79. #if defined(sun)
  80.     fprintf(stderr," sun");
  81. #endif
  82. #if defined(sys5)
  83.     fprintf(stderr," sys5");
  84. #endif
  85. #if defined(unixware)
  86.     fprintf(stderr," unixware");
  87. #endif
  88. #if defined(M_UNIX)
  89.     fprintf(stderr," M_UNIX");
  90. #endif
  91. #if defined(WIN32)
  92.     fprintf(stderr," WIN32");
  93. #endif
  94. #if defined(OS2)
  95.     fprintf(stderr,"Os/2");
  96. #endif
  97.  
  98.     fprintf(stderr,"\n");
  99. }
  100.