From b1cf2ec0d399f8550b4da6a733c276eafcd54995 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Tue, 14 Apr 1992 19:20:27 +0000 Subject: [PATCH] Vax support. --- Config | 6 ++- INSTALL | 5 +- config/vax-config.h | 28 +++++++++++ config/vax-defs.make | 85 +++++++++++++++++++++++++++++++++ src/libraries/libansi/Makefile | 4 +- src/libraries/libansi/vprintf.c | 3 ++ src/server/missing-ansi.c | 6 +-- 7 files changed, 129 insertions(+), 8 deletions(-) create mode 100644 config/vax-config.h create mode 100644 config/vax-defs.make create mode 100644 src/libraries/libansi/vprintf.c diff --git a/Config b/Config index 9cd24efa2..0ed2b1b09 100755 --- a/Config +++ b/Config @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: Config,v 1.9 1992/02/10 02:33:45 linus Exp $ +# $Id: Config,v 1.10 1992/04/14 19:19:40 ceder Exp $ # Copyright (C) 1991 Lysator Academic Computer Association. # # This file is part of the LysKOM server. @@ -23,7 +23,7 @@ # # Please mail bug reports to bug-lyskom@lysator.liu.se. # -# $Id: Config,v 1.9 1992/02/10 02:33:45 linus Exp $ +# $Id: Config,v 1.10 1992/04/14 19:19:40 ceder Exp $ x= @@ -39,6 +39,8 @@ balance) x=balance;; sun3 | sun3os4 | sun4 | sun4os4 | sparc | sparcos4) x=sun4os4;; +vax) + x=vax;; *) echo Unsupported host type "$1". x=error;; esac diff --git a/INSTALL b/INSTALL index 2a98d1184..b730ef04b 100644 --- a/INSTALL +++ b/INSTALL @@ -1,5 +1,5 @@ # -# $Id: INSTALL,v 1.9 1992/01/08 13:28:51 ceder Exp $ +# $Id: INSTALL,v 1.10 1992/04/14 19:19:43 ceder Exp $ # Copyright (C) 1991 Lysator Academic Computer Association. # # This file is part of the LysKOM server. @@ -78,6 +78,9 @@ In the following, $T stands for the directory in which this file declare most functions with full prototypes. Set $H=balance + vax - A Vax 11/750 running bsd 4.3. + Set $H=vax + 2) Edit $T/config/$H-defs.make. diff --git a/config/vax-config.h b/config/vax-config.h new file mode 100644 index 000000000..5ee137aa9 --- /dev/null +++ b/config/vax-config.h @@ -0,0 +1,28 @@ +/* + * $Id: vax-config.h,v 1.1 1992/04/14 19:19:48 ceder Exp $ + * Copyright (C) 1991 Lysator Academic Computer Association. + * + * This file is part of the LysKOM server. + * + * LysKOM is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 1, or (at your option) + * any later version. + * + * LysKOM is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with LysKOM; see the file COPYING. If not, write to + * Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN, + * or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, + * MA 02139, USA. + * + * Please mail bug reports to bug-lyskom@lysator.liu.se. + */ + +#define RFC_931 +#define HAVE_GETDTABLESIZE +#define ENCRYPT_PASSWORDS diff --git a/config/vax-defs.make b/config/vax-defs.make new file mode 100644 index 000000000..a4c6d771a --- /dev/null +++ b/config/vax-defs.make @@ -0,0 +1,85 @@ +# +# $Id: vax-defs.make,v 1.1 1992/04/14 19:19:51 ceder Exp $ +# Copyright (C) 1991 Lysator Academic Computer Association. +# +# This file is part of the LysKOM server. +# +# LysKOM is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 1, or (at your option) +# any later version. +# +# LysKOM is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with LysKOM; see the file COPYING. If not, write to +# Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN, +# or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +# MA 02139, USA. +# +# Please mail bug reports to bug-lyskom@lysator.liu.se. +# +# $Id: vax-defs.make,v 1.1 1992/04/14 19:19:51 ceder Exp $ +# This file is included by all Makefiles in the LysKOM hierarchy. +# It gives default values for all variables that is normally used. +# TOPDIR and SCRIPTDIR must be set before this file is included. +# +# This version is tuned for a Sparc running SunOS 4.1.1 and a lot +# of Gnu utilities. + +SHELL=/bin/sh +AWK = gawk +SED = /usr/bin/sed +CC = gcc -ansi +RM = rm -f +RANLIB = ranlib +TOUCHLIB = ranlib -t +SYMLINK = ln -s +YACC = bison -d +LEX = flex +MKDIR=/bin/mkdir + +INCLUDEDIR = $(TOPDIR)/include +LIBDIR = $(TOPDIR)/lib +ANSIDIR = $(INCLUDEDIR)/ansi + +INCLUDES = -I$(ANSIDIR) -I$(INCLUDEDIR) +OPTIMIZE-FLAGS = -O +MISC-CFLAGS = -g -Wall -Wstrict-prototypes -Wmissing-prototypes +PIPE = -pipe + +# -h flag makes NULL pointer references generate runtime errors +LDFLAGS = -h -L$(LIBDIR) $(PROFILE-FLAGS) + +LIBRESOLV = -lresolv + +LIBIDENT = -lauthuser + +CFLAGS = $(INCLUDES) $(OPTIMIZE-FLAGS) $(MISC-CFLAGS) $(PIPE) $(TARGET) $(PROFILE-FLAGS) + +PROFILE-FLAGS = +PROFILE-LIB-SUFFIX = + +# LysKOM executables that the typical user doesn't use go here. +# (The server, dbck, et c) + +LYSKOMSYSBIN = /usr/lyskom/bin + +# User executables (such as lyskom, kompost et c) + +LYSKOMUSRBIN = /usr/local/bin + + + +GENERIC-CLEAN = *~ *.o lib*.a core temp-Makefile temp-?-Makefile + +GENERIC-DIST-CLEAN = TAGS Topdir.make dependencies + +EXPORTS = + +# The Makefiles also dependes on the variables +# AR, ARFLAGS +# that are automatically set by GNU Make. diff --git a/src/libraries/libansi/Makefile b/src/libraries/libansi/Makefile index 694f08a8d..b809cba6a 100644 --- a/src/libraries/libansi/Makefile +++ b/src/libraries/libansi/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 0.13 1992/04/14 15:43:11 ceder Exp $ +# $Id: Makefile,v 0.14 1992/04/14 19:20:21 ceder Exp $ # Copyright (C) 1991 Lysator Academic Computer Association. # # This file is part of the LysKOM server. @@ -29,7 +29,7 @@ include $(SCRIPTDIR)/import.make LIBNAME = libansi$(PROFILE-LIB-SUFFIX).a -LIBOBJS = strerror.o +LIBOBJS = strerror.o vprintf.o all: $(LIBNAME) diff --git a/src/libraries/libansi/vprintf.c b/src/libraries/libansi/vprintf.c new file mode 100644 index 000000000..00f910501 --- /dev/null +++ b/src/libraries/libansi/vprintf.c @@ -0,0 +1,3 @@ +#ifdef __vax__ +#error "No vfprinf supported yet. Tell bug-lyskom@lysator.liu.se to fix this." +#endif diff --git a/src/server/missing-ansi.c b/src/server/missing-ansi.c index 8b89faed5..2d6cd5907 100644 --- a/src/server/missing-ansi.c +++ b/src/server/missing-ansi.c @@ -1,5 +1,5 @@ /* - * $Id: missing-ansi.c,v 0.5 1992/02/26 18:45:05 ceder Exp $ + * $Id: missing-ansi.c,v 0.6 1992/04/14 19:20:27 ceder Exp $ * Copyright (C) 1991 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -28,7 +28,7 @@ * Written by ceder. */ -static char *rcsid = "$Id: missing-ansi.c,v 0.5 1992/02/26 18:45:05 ceder Exp $"; +static char *rcsid = "$Id: missing-ansi.c,v 0.6 1992/04/14 19:20:27 ceder Exp $"; #include <string.h> @@ -49,7 +49,7 @@ memcpy (void * s1, const void * s2, size_t n) #endif -#if defined(__sequent__) || defined(__sun__) +#if defined(__sequent__) || defined(__sun__) || defined(__vax__) extern double difftime(time_t t1, time_t t2) -- GitLab