1999-01-18 David Byers * src/.cvsignore: Added .bbg, .bb, .da and .gcov files. 1999-01-15 David Byers * configure.in: Added --with-checker, --with-gcov and --with-optimization. 1998-10-06 Per Cederqvist Port to glibc2. * src/isc_session.c: Include . 1998-07-10 Per Cederqvist 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 --enable-isc-printf was broken. * src/isc_wait.c: Include . 1998-07-06 Per Cederqvist * Version 0.99 released. Release preparations. * NEWS: Updated. * README: Updated. * RELEASING: New file. * README.DEVO: New file. Include isc_wait.o in the built library. * src/Makefile.am (libisc_a_SOURCES): Added isc_wait.c. Improved portability. * src/isc_wait.c: Check TIME_WITH_SYS_TIME. * src/isc_socket.c: Check TIME_WITH_SYS_TIME. * src/isc_event.c: Check TIME_WITH_SYS_TIME. Ported to Solaris 2.7 Beta/gcc 2.8.1. * src/isc_udp.c: Include . (isc_udp_read_fn): Now static. Flag unused arguments. (isc_udp_destroy_fn): Likewise. (isc_udp_write_fn): Now static. (isc_mkudpaddress): Likewise. Don't pass potentially negative characters to isdigit. * src/isc_tcp.c: Include . (isc_tcp_accept_fn): Now static. Flag unused arguments. (isc_tcp_destroy_fn): Likewise. (isc_mktcpaddress): Now static. Don't pass potentially negative characters to isdigit. * src/isc_session.c: Include . (isc_default_read_fn): Flag unused arguments. (isc_default_write_fn): Flag unused arguments. (isc_default_close_fn): Flag unused arguments. (isc_file_destroy_fn): Flag unused arguments. * src/isc_alloc.c (isc_realloc): Code simplified. (isc_free): Code simplified. * src/unused.h: New file (taken from cmod). Added automake/autoconf support. * AUTHORS: New file. * Makefile.am: New file. * NEWS: New file. * acinclude.m4: New file. * configure.in: New file. * demo/Makefile.am: New file. * demo/README: New file. * doc/Makefile.am: New file. * man/Makefile.am: New file. * src/Makefile.am: New file. * man/Makefile: This file is now generated by configure. Don't store it under version control. * src/Makefile: Likewise. * demo/Makefile: Likewise. * build/stddef.h: File removed. * build/gmkdep: File removed. 1998-06-21 Per Cederqvist Incorporated all relevant improvements made to ISC in the committed sources of lyskomd as of 1998-06-21. Edited details follows. Include file improvements. * src/isc_event.c: Include , and for increased portability. * src/printf.c: Check HAVE_STRING_H and HAVE_STDLIB_H before including those files. Don't forward-declare memchr. Ignore attempts to look up the NULL host name. * src/isc_socket.c (isc_gethostname): Return NULL if given a NULL IscAddress. 1998-05-07 Per Cederqvist Incorporated all relevant improvements made to ISC in kom++-0.7.post.2. Edited details follows. Avoid including more files than necessary. * src/isc.h: Don't include any include files. * src/isc_abort.c: Don't declare system functions. Fixed include statements. * src/isc_alloc.c: Likewise. * src/isc_event.c: Likewise. * src/isc_message.c: Likewise. * src/isc_output.c: Likewise. * src/isc_session.c: Likewise. * src/isc_socket.c: Likewise. * src/isc_stdout.c: Likewise. * src/isc_tcp.c: Likewise. * src/isc_udp.c: Likewise. * src/isc_handler.c: Fixed include statements. * src/isc_master: Likewise. * src/isc_queue.c: Likewise. Added the ability to wait until a connection attempt (initiated by this process) either fails or succeeds. * src/isc.h: (isc_wait): Prototype added. * src/isc_wait.c: New file, containing isc_wait. Only support isc_printf and isc_vprintf if ISC_PRINTF_SUPPORT if defined. These functions may lead to bad use of the buffers. * src/isc.h: (isc_vprintf, isc_printf): Only declare if ISC_PRINTF_SUPPORT is defined. Fail to compile if ISC_PRINTF_SUPPORT is defined but HAVE_STDARG_H isn't. * src/isc_stdout.c (send_scb, send_putc, isc_vprintf, isc_printf): Only defined if ISC_PRINTF_SUPPORT is defined. Make sure that isc_getnextevent only returns a single ISC_EVENT_LOGOUT message when a session logs out. * src/isc.h: (IscSessionState): New state: ISC_STATE_CLOSING2. * src/isc_event.c (isc_getnextevent): There is now only one ISC_EVENT_LOGOUT message per session. Set the state to ISC_STATE_CLOSING2 when generating an ISC_EVENT_LOGOUT message. * src/isc_output.c (isc_flush): Treat ISC_STATE_CLOSING2 as ISC_STATE_CLOSING. (isc_oflush): Likewise. Portability fixes. * src/isc_alloc.c (isc_mallocfn, isc_reallocfn, isc_freefn): Removed lame casts. Make sure that isc_malloc returns a block that is aligned on a "long" boundary. * src/isc_alloc.c (isc_malloc, isc_free, isc_realloc): Portablilty fix: Align data on a "long" boundary, not only an "int" boundary. Typo fix. * src/isc_event.c (isc_getnextevent): Fixed a spelling error in a comment. Make sure that errors are reported to the proper session. * src/isc_event.c (isc_getnextevent): event->session was sometimes set erronously if an error occured in select() or if a timeout occured. Use O_NONBLOCK instead of the now obsolete name FNDELAY. * src/isc_session.c (isc_openfd): Use O_NONBLOCK instead of FNDELAY. * src/isc_tcp.c (isc_createtcp): Use O_NONBLOCK instead of FNDELAY. * src/isc_udp.c (isc_createudp): Use O_NONBLOCK instead of FNDELAY. Avoid warnings by adding a dubious cast. * src/isc_socket.c (isc_gethostname): Cast argument to gethostbyaddr to a char* to avoid a warning. Portability fix: Renamed _printf to UCB_printf. * src/isc_stdout.c (isc_printf, isc_vprintf): Call UCB_printf instead of _printf. * src/printf.c (UCB_printf): Renamed _printf to UCB_printf (to avoid conflicts on HPUX). Don't use obsolete setsockopt interfaces. * src/isc_tcp.c (isc_createtcp): Fixed calls to setsockopt with SO_LINGER and SO_REUSEADDR arguments. The old-style style previously used should no longer be necessary on modern operating systems, and in fact it no longer works everywere. * src/isc_udp.c (isc_createudp): Fixed calls to setsockopt with SO_LINGER and SO_REUSEADDR arguments. The old-style style previously used should no longer be necessary on modern operating systems, and in fact it no longer works everywere. If an attempt to bind failed with EADDRINUSE all the retries would automatically fail. * src/isc_tcp.c (isc_listentcp): Clear errno on each loop in the retry loop. Include the licensing conditions used by this package. * COPYING: New file. 1998-04-03 Per Cederqvist Port to glibc 2, where errno is a macro. * isc.h (IscSession::isc_errno): New name for former struct member errno. All users updated. 1996-07-24 Per Cederqvist ISC_EVENT_LOGIN events now return the listening session in the event, so that it can be used to easily determine which kind of connection that was made. 66.7 % of the code was contributed by . * src/isc.h (IscEvent): New field: listen_session. * src/isc_event.c (isc_getnextevent): Fill in listen_session when an ISC_EVENT_LOGIN event is created. Set it to NULL in all other cases. 1996-07-23 Per Cederqvist * Imported ISC version 0.98.3.