Commit 7301c093 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Imported ISC 1.00.

parent 5d5be96e
1999-04-28 Per Cederqvist <ceder@lysator.liu.se>
1999-05-01 Per Cederqvist <ceder@lysator.liu.se>
The LysKOM server should not install isc thingies.
* src/Makefile.am (noinst_LIBRARIES, noinst_HEADERS): Use instead
of lib_LIBRARIES and include_HEADERS so that nothing from isc gets
installed by lyskomd.
* man/Makefile.am (noinst_MANS): Use noinst_MANS instead of
man_MANS so that nothing from isc gets installed by lyskomd.
1999-05-01 Per Cederqvist <ceder@lysator.liu.se>
* Version 1.00 released.
Release preparations.
* configure.in: Release 1.00.
* TODO: Updated.
* README: Updated.
* NEWS: Entry for 1.00 written.
"make maintainer-clean" shoudl remove everything that can be
recreated.
* Makefile.am (MAINTAINERCLEANFILES): Added Makefile.in,
aclocal.m4, configure, install-sh, mkinstalldirs, missing, INSTALL
and COPYING.
* src/Makefile.am (MAINTAINERCLEANFILES): Added Makefile.in.
* man/Makefile.am (MAINTAINERCLEANFILES): Added Makefile.in.
* doc/Makefile.am (MAINTAINERCLEANFILES): Added Makefile.in.
* demo/Makefile.am (MAINTAINERCLEANFILES): Added Makefile.in.
Removed support for isc_printf and isc_vprintf for license,
performance and portability reasons.
* configure.in: Removed --enable-isc-printf.
* src/isc_stdout.c (isc_printf): Removed.
(isc_vprintf): Removed.
(send_scb): Removed.
(send_putc): Removed.
* src/isc.h (isc_printf): Removed.
(isc_vprintf): Removed.
* src/Makefile.am (libisc_a_LIBADD): Removed.
(isc_stdout.o): No longer depend on ../config.status.
* src/printf.c: Removed.
Merged in all changes made to ISC in the lyskomd code from the
isc_merge_1999_04_21 tag to the isc_merge_1999_05_01 tag. Details
follows:
1999-04-28 Per Cederqvist <ceder@lysator.liu.se>
Added some output functions.
* src/isc_stdout.c (isc_puts): New function.
......@@ -6,7 +52,77 @@
* src/isc.h (isc_puts): New function.
(isc_putul): New function.
1999-04-17 Per Cederqvist <ceder@lysator.liu.se>
1999-04-24 Per Cederqvist <ceder@lysator.liu.se>
Make it easier to compile ISC out-of-the-repository.
* README.DEVO: Mention bootstrap.sh.
* bootstrap.sh: New file.
Fix file inclusions.
* src/isc_relocate.c: <time.h> and <stddef.h> must be included
before "isc.h".
* src/isc_alloc.c: <time.h> must be included before "isc.h".
* src/isc_master.c: Likewise.
* src/isc_output.c: Likewise.
* src/isc_tcp.c: Likewise.
* src/isc_udp.c: Likewise.
Update at least one of the man pages.
* man/isc_close.3x: Updated.
Distribute ISC under LGPL.
* README: Changed license to LGPL.
* COPYING.LIB: New file, containing LGPL, the license this
library is distributed under.
* COPYING: No longer under version control. This file is still
included in the distribution, even though ISC is licensed under
LGPL instead of GPL, for two reasons: LGPL allows you to change
the license to GPL, and automake requires the file COPYING.
* Makefile.am: Changed license to LGPL.
* configure.in: Changed license to LGPL.
* demo/Makefile.am: Changed license to LGPL.
* man/Makefile.am: Changed license to LGPL.
* man/TEMPLATE: Changed license to LGPL.
* man/isc.3x: Changed license to LGPL.
* man/isc_close.3x: Changed license to LGPL.
* man/isc_createtcp.3x: Changed license to LGPL.
* man/isc_destroy.3x: Changed license to LGPL.
* man/isc_initialize.3x: Changed license to LGPL.
* man/isc_listentcp.3x: Changed license to LGPL.
* man/isc_openfd.3x: Changed license to LGPL.
* man/isc_openfile.3x: Changed license to LGPL.
* man/isc_opentcp.3x: Changed license to LGPL.
* man/isc_shutdown.3x: Changed license to LGPL.
* man/isc_unlisten.3x: Changed license to LGPL.
* src/Makefile.am: Changed license to LGPL.
* src/intern.h: Changed license to LGPL.
* src/isc.h: Changed license to LGPL.
* src/isc_abort.c: Changed license to LGPL.
* src/isc_alloc.c: Changed license to LGPL.
* src/isc_event.c: Changed license to LGPL.
* src/isc_handler.c: Changed license to LGPL.
* src/isc_master.c: Changed license to LGPL.
* src/isc_message.c: Changed license to LGPL.
* src/isc_output.c: Changed license to LGPL.
* src/isc_queue.c: Changed license to LGPL.
* src/isc_relocate.c: Changed license to LGPL.
* src/isc_session.c: Changed license to LGPL.
* src/isc_socket.c: Changed license to LGPL.
* src/isc_stdout.c: Changed license to LGPL.
* src/isc_tcp.c: Changed license to LGPL.
* src/isc_udp.c: Changed license to LGPL.
* src/isc_wait.c: Changed license to LGPL.
* src/unused.h: Changed license to LGPL.
1999-04-22 Per Cederqvist <ceder@lysator.liu.se>
Distribute administrative files.
* Makefile.am (EXTRA_DIST): Added README.DEVO and RELEASING.
Merged in all changes made to ISC in the lyskomd code from ISC
0.99 to the isc_merge_1999_04_21 tag. Details follows:
1999-04-17 Per Cederqvist <ceder@lysator.liu.se>
Added full support for fd relocation.
* src/isc_relocate.c (isc_relocate_fd): Implemented for real.
......@@ -15,7 +131,7 @@
file descriptor relocation failed.
* src/isc.h (IscEventType): New event: ISC_EVENT_LOGIN_UNRELOCATED.
1999-04-17 Per Cederqvist <ceder@gratia>
1999-04-17 Per Cederqvist <ceder@gratia>
Added limited support for fd relocation. Error handling still
needed.
......@@ -34,12 +150,13 @@
* src/intern.h (isc_relocate_fd): New function.
* src/Makefile.am (libisc_a_SOURCES): Added isc_relocate.c.
1999-04-16 Per Cederqvist <ceder@gratia>
1999-04-16 Per Cederqvist <ceder@gratia>
Simplify the use of IscHandlerList. (This needs more
documentation.)
* src/isc.h (IscSession): Removed the "IscHandlerCache fun"
member.
(IscHandlerList): Renamed the "old" member to "current".
(ISC_HCALLFUN1): Adapted to IscHandlerList changes.
(ISC_HCALLFUN2): Adapted to IscHandlerList changes.
(ISC_HCALLFUN3): Adapted to IscHandlerList changes.
......@@ -59,7 +176,7 @@
* src/isc_event.c (isc_getnextevent): Use scb->handlers->current
instead of scb->fun.
1999-04-15 Per Cederqvist <ceder@lysator.liu.se>
1999-04-15 Per Cederqvist <ceder@lysator.liu.se>
Allow disabled sessions to emit data. It is input from the
sessions that is disabled.
......@@ -72,50 +189,50 @@
* src/isc_event.c (isc_getnextevent): Flush pending output even
when the session is in ISC_STATE_DISABLED.
1999-04-11 Per Cederqvist <ceder@gratia>
1999-04-11 Per Cederqvist <ceder@gratia>
Rebuild more often.
* src/Makefile.am (isc_stdout.o): Depend on ../config.status.
1999-04-05 Per Cederqvist <ceder@gratia>
1999-04-05 Per Cederqvist <ceder@gratia>
Get rid of useless compiler warnings.
* configure.in: Don't use -Wtraditional.
1999-02-05 Per Cederqvist <ceder@gratia>
1999-02-05 Per Cederqvist <ceder@gratia>
Get rid of a compiler warning.
* src/isc_alloc.c (ISC_MAGIC_ALLOC): This is an unsigned constant.
(ISC_MAGIC_FREE): Likewise.
1999-01-18 David Byers <davby@ida.liu.se>
1999-01-18 David Byers <davby@ida.liu.se>
* src/.cvsignore: Added .bbg, .bb, .da and .gcov files.
1999-01-15 David Byers <davby@ida.liu.se>
1999-01-15 David Byers <davby@ida.liu.se>
* configure.in: Added --with-checker, --with-gcov and
--with-optimization.
1998-10-06 Per Cederqvist <ceder@gratia>
1998-10-06 Per Cederqvist <ceder@gratia>
Port to glibc2.
* src/isc_session.c: Include <time.h>.
1998-07-10 Per Cederqvist <ceder@lysator.liu.se>
The LysKOM server should not install isc thingies.
* src/Makefile.am (noinst_LIBRARIES, noinst_HEADERS): Use instead
of lib_LIBRARIES and include_HEADERS so that nothing from isc gets
installed by lyskomd.
* man/Makefile.am (noinst_MANS): Use noinst_MANS instead of
man_MANS so that nothing from isc gets installed by lyskomd.
1998-07-09 Per Cederqvist <ceder@lysator.liu.se>
1998-07-09 Per Cederqvist <ceder@lysator.liu.se>
--enable-isc-printf was broken.
* src/isc_wait.c: Include <stdarg.h>.
1999-04-21 Per Cederqvist <ceder@lysator.liu.se>
* demo/Makefile.am: Insert copyright header.
Clean up the configure script.
* configure.in (AC_PROG_MAKE_SET, AC_PROG_INSTALL): Removed. This
is automatically done by AM_INIT_AUTOMAKE.
(AM_PROG_CC_STDC): Use it instead of AM_C_PROTOTYPES.
1998-07-06 Per Cederqvist <ceder@lysator.liu.se>
* Version 0.99 released.
......
dnl ISC - networking library
dnl Copyright (C) 1998 by Peter Eriksson and Per Cederqvist of the
dnl Lysator Academic Computer Association.
dnl ISC - networking library
dnl Copyright (C) 1998-1999 by Peter Eriksson and Per Cederqvist of the
dnl Lysator Academic Computer Association.
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2 of the License, or (at your option) any later version.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Library General Public License for more details.
dnl
dnl You should have received a copy of the GNU Library General Public
dnl License along with this library; if not, write to the Free
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl Process this file with autoconf to produce a configure script.
AC_REVISION($Revision: 1.3 $)dnl
AC_REVISION($Revision: 1.4 $)dnl
AC_INIT(src/isc_master.c)
AM_INIT_AUTOMAKE(isc, 0.99)
AC_ARG_ENABLE([isc-printf],
[ --enable-isc-printf include isc_printf support (non-portable)])
AM_INIT_AUTOMAKE(isc, 1.00)
AC_ARG_WITH([checker],
[ --with-checker compile with Gnu Checker],
[ --with-checker compile with Gnu Checker],
[use_checker=$withval],
[use_checker=no])
AC_ARG_WITH([gcov],
[ --with-gcov instrument for gcov (requires gcc)],
[ --with-gcov instrument for gcov (requires gcc)],
[use_gcov=$withval],
[use_gcov=no])
AC_ARG_WITH([optimization],
[ --with-optimization select level of optimization],
[ --without-optimization turn off optimization
--with-optimization[=N] select level of optimization (default on)],
[opt_level=$withval],
[opt_level=""])
[if test "$enable_isc_printf" = yes
then]
AC_DEFINE(ISC_PRINTF_SUPPORT)
[ LIBOBJS="printf.o $LIBOBJS"
fi]
AC_SUBST(LIBOBJS)
dnl Checks for programs.
AC_PROG_CC
AC_AIX
AC_ISC_POSIX
AC_MINIX
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_RANLIB
dnl Checks for libraries.
......@@ -66,7 +55,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(stdlib.h stdarg.h stddef.h string.h sys/select.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AM_C_PROTOTYPES
AM_PROG_CC_STDC
AC_HEADER_TIME
AC_C_CONST
AC_TYPE_SIZE_T
......
# ISC - networking library
# Copyright (C) 1998 by Peter Eriksson and Per Cederqvist of the
# Lysator Academic Computer Association.
# ISC - networking library
# Copyright (C) 1998-1999 by Peter Eriksson and Per Cederqvist of the
# Lysator Academic Computer Association.
#
#
# This program 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 2 of the License, or
# (at your option) any later version.
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This program 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.
# This library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
## Process this file with automake to produce Makefile.in
......@@ -24,3 +24,5 @@ noinst_MANS = isc.3x isc_initialize.3x isc_shutdown.3x isc_openfd.3x \
isc_unlisten.3x isc_createtcp.3x isc_destroy.3x
EXTRA_DIST = $(noinst_MANS) TEMPLATE FUNCTIONS .cvsignore
MAINTAINERCLEANFILES = Makefile.in
.deps
Makefile
Makefile.in
*.da
*.bb
*.bbg
*.da
*.gcov
.deps
Makefile
Makefile.in
# ISC - networking library
# Copyright (C) 1998 by Peter Eriksson and Per Cederqvist of the
# Lysator Academic Computer Association.
# ISC - networking library
# Copyright (C) 1998-1999 by Peter Eriksson and Per Cederqvist of the
# Lysator Academic Computer Association.
#
#
# This program 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 2 of the License, or
# (at your option) any later version.
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This program 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.
# This library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
## Process this file with automake to produce Makefile.in
......@@ -27,12 +27,8 @@ libisc_a_SOURCES = \
isc_stdout.c isc_socket.c isc_tcp.c isc_udp.c unused.h intern.h \
isc_wait.c isc_relocate.c
libisc_a_LIBADD = @LIBOBJS@
noinst_HEADERS = isc.h
EXTRA_DIST = .cvsignore
# This file depends on ISC_PRINTF_SUPPORT which can be changed when
# configure is run.
isc_stdout.o: ../config.status
MAINTAINERCLEANFILES = Makefile.in
/*
** intern.h Definitions and prototypes used internally
**
** Copyright (c) 1991 Peter Eriksson and Per Cederqvist of the
** Lysator Academic Computer Association.
** Copyright (C) 1991,1999 by Peter Eriksson and Per Cederqvist of the
** Lysator Academic Computer Association.
**
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This library 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
** Library General Public License for more details.
**
** You should have received a copy of the GNU Library General Public
** License along with this library; if not, write to the Free
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
**
** history:
** 910305 pen initial coding
** (See ChangeLog for recent history)
*/
#ifndef __ISC_INTERNALS_H__
......
/*
** isc.h structures and defines used in a ISC server
**
** Copyright (c) 1991 Peter Eriksson and Per Cederqvist of the
** Lysator Academic Computer Association.
** Copyright (C) 1991, 1996, 1998-1999 by Peter Eriksson and
** Per Cederqvist of the Lysator Academic Computer Association.
**
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This library 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
** Library General Public License for more details.
**
** You should have received a copy of the GNU Library General Public
** License along with this library; if not, write to the Free
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
**
** history:
** 910306 pen major overhaul
** 910307 pen type name changes, changes in structs..
** 920207 pen updated
** (See ChangeLog for recent history)
*/
#ifndef __ISC_H__
......@@ -526,28 +542,6 @@ extern int isc_putul(unsigned long nr, IscSession *scb);
#ifdef ISC_PRINTF_SUPPORT
# ifndef HAVE_STDARG_H
# error isc_printf is not available on systems that lack stdarg.h.
# else
/*
** Put a formatted string on the transmit queue
*/
extern int
isc_printf(IscSession * scb,
const char * format,
...);
extern int
isc_vprintf(IscSession * scb,
const char * format,
va_list AP);
# endif
#endif
/*
** Allocate a new IscMessage of specified size
*/
......
/*
** isc_abort.c Route to handle fatal errors
**
** Copyright (c) 1991 Peter Eriksson and Per Cederqvist of the
** Lysator Academic Computer Association.
** Copyright (C) 1991, 1998-1999 by Peter Eriksson and
** Per Cederqvist of the Lysator Academic Computer Association.
**
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This library 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
** Library General Public License for more details.
**
** You should have received a copy of the GNU Library General Public
** License along with this library; if not, write to the Free
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
**
** history:
** 910305 pen moved into separate file
** (See ChangeLog for recent history)
*/
#include <stdio.h>
......
/*
** isc_alloc.c ISC storage allocation routines
**
** Copyright (c) 1991 Peter Eriksson and Per Cederqvist of the
** Lysator Academic Computer Association.
** Copyright (C) 1991, 1998-1999 by Peter Eriksson and
** Per Cederqvist of the Lysator Academic Computer Association.
**
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This library 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
** Library General Public License for more details.
**
** You should have received a copy of the GNU Library General Public
** License along with this library; if not, write to the Free
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
**
** history:
** 910305 pen moved into separate file
** (See ChangeLog for recent history)
*/
#include <sys/types.h>
......@@ -27,6 +43,7 @@
#ifndef NULL
# include <stdio.h>
#endif
#include <time.h>
#include "isc.h"
#include "intern.h"
......
/*
** isc_event.c definitions of ISC subsystem routines
**
** Copyright (c) 1992 Peter Eriksson and Per Cederqvist of the
** Lysator Academic Computer Association.
** Copyright (C) 1990-1992, 1996, 1998-1999 by Peter Eriksson and
** Per Cederqvist of the Lysator Academic Computer Association.
**
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This library 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
** Library General Public License for more details.
**
** You should have received a copy of the GNU Library General Public
** License along with this library; if not, write to the Free
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
**
** history:
** 900403 pen initial coding.
......@@ -12,6 +27,7 @@
** 910304 pen really removed everything lyskom-specific.. :-)
** 920129 pen added support for "lazy" connect
** 920805 pen one unneccessary isc_pollqueue() removed.
** (See ChangeLog for recent history)
*/
#include <stdio.h>
......
/*
** isc_handler.c Routines to handle IscSession handlers
**
** Copyright (c) 1992 Peter Eriksson and Per Cederqvist of the
** Lysator Academic Computer Association.
** Copyright (C) 1992, 1998-1999 by Peter Eriksson and
** Per Cederqvist of the Lysator Academic Computer Association.
**
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Library General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This library 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
** Library General Public License for more details.
**