2003-07-12 17:47:42 +04:00
|
|
|
/* $NetBSD: version.c,v 1.6 2003/07/12 13:47:44 itojun Exp $ */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1988, Larry Wall
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following condition
|
|
|
|
* is met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this condition and the following disclaimer.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
1998-02-22 15:55:44 +03:00
|
|
|
#include <sys/cdefs.h>
|
1993-08-02 21:48:44 +04:00
|
|
|
#ifndef lint
|
2003-07-12 17:47:42 +04:00
|
|
|
__RCSID("$NetBSD: version.c,v 1.6 2003/07/12 13:47:44 itojun Exp $");
|
1993-08-02 21:48:44 +04:00
|
|
|
#endif /* not lint */
|
1993-04-09 15:33:50 +04:00
|
|
|
|
|
|
|
#include "EXTERN.h"
|
|
|
|
#include "common.h"
|
|
|
|
#include "util.h"
|
|
|
|
#include "INTERN.h"
|
|
|
|
#include "patchlevel.h"
|
|
|
|
#include "version.h"
|
|
|
|
|
|
|
|
/* Print out the version number and die. */
|
|
|
|
|
|
|
|
void
|
2002-03-11 21:47:51 +03:00
|
|
|
version(void)
|
1993-04-09 15:33:50 +04:00
|
|
|
{
|
|
|
|
fprintf(stderr, "Patch version 2.0, patch level %s\n", PATCHLEVEL);
|
|
|
|
my_exit(0);
|
|
|
|
}
|