diff --git a/Config.h b/Config.h index 5c67bbea..a1a44f1f 100644 --- a/Config.h +++ b/Config.h @@ -11,10 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - */ - #ifndef _Config_h #define _Config_h diff --git a/assert.h b/assert.h index e023d291..c34fb999 100644 --- a/assert.h +++ b/assert.h @@ -11,17 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * Revision 1.1 1997/03/28 06:56:22 mff - * Initial revision - * - */ #ifndef _assert_h #define _assert_h diff --git a/binkd.c b/binkd.c index 9afe20c5..938721ae 100644 --- a/binkd.c +++ b/binkd.c @@ -3,7 +3,7 @@ * * binkd.c is a part of binkd project * - * Copyright (C) 1996-2009 Dima Maloff 5047/13 and others + * Copyright (C) 1996-2015 Dima Maloff 5047/13 and others * * 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 @@ -11,435 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.121 2014/12/12 05:41:24 gul - * Compilation flag FSP1035 renamed to FTS5004 - * - * Revision 2.120 2014/09/21 11:59:36 gul - * Fixed broken iport/oport in config on win32 - * - * Revision 2.119 2014/09/21 08:44:51 gul - * Write configured remote hostname and port in log line "outgoing session with ..." - * - * Revision 2.118 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.117 2014/01/13 10:32:50 gul - * Unix multithread version - * - * Revision 2.116 2014/01/12 13:25:30 gul - * unix (linux) pthread version - * - * Revision 2.115 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.114 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.113 2012/09/20 12:16:52 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.112 2012/05/14 06:14:57 gul - * More safe signal handling - * - * Revision 2.111 2012/01/21 18:49:22 green - * Make environment usage ISO C compliant (no 3-args main()) - * - * Revision 2.110 2012/01/08 16:23:52 green - * Fixed compilation in Cygwin/MinGW - * - * Revision 2.109 2012/01/07 13:16:17 green - * Some more information in binkd -vv output - * - * Revision 2.108 2012/01/03 16:53:22 green - * Correct PID for servmgr in logs (i.e. PID after fork, not before) - * - * Revision 2.107 2010/05/24 14:38:03 gul - * Allow daemonize on client-only mode - * - * Revision 2.106 2010/05/24 14:24:32 gul - * Exit immediately after all jobs done in "-p" mode - * - * Revision 2.105 2010/03/30 06:13:01 gul - * Do not chdir to "/" on daemonize for use relative pathes on reload config - * - * Revision 2.104 2009/06/16 19:24:29 gul - * Cosmetics around mkargv() - * - * Revision 2.103 2009/06/15 19:56:38 stas - * Fix OS/2 Watcom build crash. Thanks to Alexey Korop 2:461/155 - * - * Revision 2.102 2009/06/02 17:09:34 gul - * Build binkd for OS/2 with perl support - * - * Revision 2.101 2009/05/31 07:16:16 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.100 2009/05/26 13:04:35 gul - * New perl hooks: - * need_reload() - is it needed to reload config - * config_loaded() - after successful reading config - * - * Revision 2.99 2009/01/31 16:57:59 gul - * Update year in copyright line - * - * Revision 2.98 2007/10/06 09:35:12 gul - * Retranslate SIGHUP from servermgr to clientmgr - * - * Revision 2.97 2007/10/04 17:30:28 gul - * SIGHUP handler (thx to Sergey Babitch) - * - * Revision 2.96 2006/07/24 21:00:32 gul - * use MSG_NOSIGNAL in send() - * - * Revision 2.95 2005/11/03 13:15:46 stas - * Option '-n' recognization - * - * Revision 2.94 2005/11/03 11:42:35 stas - * New option '-n', may be used to config check with option '-d' or to make poll with '-P' - * - * Revision 2.93 2005/10/10 16:31:43 stas - * Fix compiler warning 'string length is greater than the length 509 ISO C89 compilers are required to support' - * - * Revision 2.92 2004/11/12 14:40:06 gul - * Also one syntax error - * - * Revision 2.91 2004/11/09 07:04:22 gul - * Syntax error in previous patch - * - * Revision 2.90 2004/11/07 07:26:35 gul - * New config options zlib-dll and bzlib2-dll - * - * Revision 2.89 2004/08/04 19:51:40 gul - * Change SIGCHLD handling, make signal handler more clean, - * prevent occasional hanging (mutex deadlock) under linux kernel 2.6. - * - * Revision 2.88 2004/02/07 14:06:06 hbrew - * Macros: RTLDLL-->RTLSTATIC, BINKDW9X-->BINKD9X - * - * Revision 2.87 2004/01/08 12:48:16 val - * add missing 'break' for -d option case - * - * Revision 2.86 2004/01/07 21:40:46 stas - * Options -i and -u is marked deprecated for win32 - * - * Revision 2.85 2004/01/07 13:12:29 gul - * Update 2003->2004 in copyright notices - * - * Revision 2.84 2004/01/07 10:15:51 gul - * Remove redundant preprocessor directive - * - * Revision 2.83 2004/01/07 10:13:26 gul - * Fix usage output - * - * Revision 2.82 2004/01/03 19:33:42 stas - * Implement install and uninstall win* services using -t option - * - * Revision 2.81 2004/01/03 19:04:20 stas - * New functions: public w32Init() and hidden w32exitfunc() - * - * Revision 2.79 2004/01/03 15:38:50 stas - * Implement service control option for Windows NT/2k/XP - * - * Revision 2.78 2004/01/03 12:38:26 stas - * Small change (win32) - * - * Revision 2.77 2004/01/03 12:17:43 stas - * Implement full icon support (winNT/2k/XP) - * - * Revision 2.76 2004/01/03 11:16:57 stas - * Remove the obsoleted rerun variable - * - * Revision 2.75 2003/12/26 20:11:32 gul - * Add -d commandline switch - dump parsed config and exit; - * remove 'debugcfg' config token. - * - * Revision 2.74 2003/11/09 03:45:45 hbrew - * Add -vv to help message - * - * Revision 2.73 2003/11/04 00:46:20 hbrew - * confopt added. - * - * Revision 2.72 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.71 2003/10/20 20:27:06 gul - * format output - * - * Revision 2.70 2003/10/20 19:17:52 gul - * Print optional compiled-in extensions by -vv command-line switch - * - * Revision 2.69 2003/10/19 12:21:46 gul - * Stream compression - * - * Revision 2.68 2003/10/18 18:50:47 stas - * Move to new 'tray.c' file several functions when is related with 'minimize to tray' feature - * - * Revision 2.67 2003/10/18 15:59:07 stas - * Improve logging (report about loading dlls) - * - * Revision 2.66 2003/10/05 09:37:42 stas - * Optimize binkd/nt start: use hack to determine if we're running as a service without waiting for the service control manager to fail - * - * Revision 2.65 2003/09/24 07:32:16 val - * bzlib2 compression support, new compression keyword: zlevel - * - * Revision 2.64 2003/09/21 17:51:08 gul - * Fixed PID in logfile for perl stderr handled messages in fork version. - * - * Revision 2.63 2003/09/12 07:37:57 val - * compression support via zlib (preliminary) - * - * Revision 2.62 2003/09/05 06:49:06 val - * Perl support restored after config reloading patch - * - * Revision 2.61 2003/08/28 01:28:52 hbrew - * Fix typo - * - * Revision 2.60 2003/08/26 22:18:47 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.59 2003/08/26 21:01:09 gul - * Fix compilation under unix - * - * Revision 2.58 2003/08/26 18:18:51 gul - * Process "-?" commandline switch as "-h" - * - * Revision 2.57 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.56 2003/08/26 14:36:47 gul - * Perl hooks in os2-emx - * - * Revision 2.55 2003/08/24 16:55:07 hbrew - * Fix memory allocation for polls - * - * Revision 2.54 2003/08/21 15:40:34 gul - * Change building commandline for service under win32 - * (patch by Alexander Reznikov) - * - * Revision 2.53 2003/08/17 10:38:55 gul - * Return semaphoring for log and binlog - * - * Revision 2.52 2003/08/16 09:08:32 gul - * Binlog semaphoring removed - * - * Revision 2.51 2003/08/11 08:33:16 val - * better error handling in perl hooks - * - * Revision 2.50 2003/08/04 12:17:49 gul - * Remove extra error message - * - * Revision 2.49 2003/07/19 06:59:34 hbrew - * Complex patch: - * * nt/w32tools.c: Fix warnings - * * nt/w32tools.c: Fix typo in #ifdef - * * nt/win9x.c: Fix type in #include - * * Config.h, sys.h, branch.c, nt/service.c, - * nt/win9x.c, : _beginthread()-->BEGINTHREAD() - * * binkd.c, common.h, mkfls/nt95-msvc/Makefile.dep, - * nt/service.c, nt/w32tools.c,nt/win9x.c: cosmitic code cleanup - * - * Revision 2.48 2003/07/17 04:32:16 hbrew - * Fix "No prototype found for 'isdigit'" warning. - * - * Revision 2.47 2003/07/17 02:41:47 hbrew - * Compability with nt/service.c & nt/win9x.c. - * Usage "--service" options as win9x "run-as-service" flag. - * - * Revision 2.46 2003/07/16 15:50:44 stas - * Fix: restore "Minimise to tray" - * - * Revision 2.45 2003/07/16 15:42:53 stas - * Fix: restore -T option - * - * Revision 2.44 2003/07/16 15:08:49 stas - * Fix NT services to use getopt(). Improve logging for service - * - * Revision 2.43 2003/07/07 10:39:24 gul - * getopt() usage fix - * - * Revision 2.42 2003/07/07 10:13:49 gul - * Use getopt() for commandline parse - * - * Revision 2.41 2003/07/07 08:33:25 val - * `perl-hooks' config keyword to specify perl script - * - * Revision 2.40 2003/07/06 06:49:43 gul - * Code cleanup - * - * Revision 2.39 2003/06/30 22:42:27 hbrew - * Print only binkd name (without path) in error messages - * - * Revision 2.38 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.37 2003/06/13 03:10:07 hbrew - * Correct standalone/service logging for binkd9x. - * - * Revision 2.36 2003/06/12 12:04:10 gul - * Code cleanup - * - * Revision 2.35 2003/06/11 07:44:21 gul - * Cosmetics - * - * Revision 2.34 2003/06/10 19:15:25 gul - * Also one commandline parser fix - * - * Revision 2.32 2003/06/10 07:28:25 gul - * Fix patch about commandline parsing - * - * Revision 2.31 2003/06/09 13:27:28 stas - * New command line parser - * - * Revision 2.30 2003/05/10 00:30:36 hbrew - * binkd9x: -u option now support '--all' service name (uninstall all services). - * Unneeded spaces cleanup. - * - * Revision 2.29 2003/05/04 08:45:30 gul - * Lock semaphores more safely for resolve and IP-addr print - * - * Revision 2.28 2003/05/01 09:55:01 gul - * Remove -crypt option, add global -r option (disable crypt). - * - * Revision 2.27 2003/03/31 21:48:59 gul - * Avoid infinite recursion - * - * Revision 2.26 2003/03/31 19:53:08 gul - * Close socket before exit - * - * Revision 2.25 2003/03/31 19:35:16 gul - * Clean semaphores usage - * - * Revision 2.24 2003/03/11 11:42:23 gul - * Use event semaphores for exit threads - * - * Revision 2.23 2003/03/11 00:04:25 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.22 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.21 2003/03/10 08:38:07 gul - * Make n_servers/n_clients changes thread-safe - * - * Revision 2.20 2003/03/05 13:21:50 gul - * Fix warnings - * - * Revision 2.19 2003/03/04 07:27:11 gul - * Put OS to log on start - * - * Revision 2.18 2003/03/03 09:43:07 gul - * Cosmetics changes - * - * Revision 2.17 2003/03/01 17:42:32 gul - * Added tzset() call to main() start - * - * Revision 2.16 2003/03/01 17:33:25 gul - * Clean daemonize code - * - * Revision 2.15 2003/03/01 15:55:02 gul - * Current outgoing address is now attibute of session, but not node - * - * Revision 2.14 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.13 2003/02/22 20:19:54 gul - * Update copyrightes, 2002->2003 - * - * Revision 2.12 2003/02/22 14:30:18 gul - * Make nNod var static - * - * Revision 2.11 2003/02/21 16:47:57 gul - * Remove file and USE_SOCKS macro - * - * Revision 2.10 2002/12/10 22:05:29 gul - * binkd/win32 bugfix - * - * Revision 2.9 2002/11/13 07:49:27 gul - * Fix typo - * - * Revision 2.8 2002/11/12 16:55:58 gul - * Run as service under win9x - * - * Revision 2.7 2002/07/22 19:48:30 gul - * Update usage - * - * Revision 2.6 2001/11/07 13:46:20 gul - * bugfix (added saved_argc) - * - * Revision 2.5 2001/10/29 19:31:44 gul - * Added -h option (print usage) - * - * Revision 2.4 2001/10/28 14:52:58 gul - * Cyrillic filenames fix - * - * Revision 2.3 2001/08/24 13:23:28 da - * binkd/binkd.c - * binkd/readcfg.c - * binkd/readcfg.h - * binkd/server.c - * binkd/nt/service.c - * - * Revision 2.2 2001/05/23 15:44:09 gul - * help-message fixed (-C option) - * - * Revision 2.1 2001/01/16 03:53:23 gul - * Added -D switch (run as daemon) - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * - * nsoveiko@doe.carleton.ca 1998/12/14 - * creation of pid_file is now logged and warnings produced - * - * Revision 1.15 1998/05/08 03:35:47 mff - * Added -P switch, brushed up error msgs - * - * Revision 1.14 1997/11/03 06:10:39 mff - * +nodes_init() - * - * Revision 1.13 1997/10/23 04:20:53 mff - * pidfiles fixed, ... - * - * Revision 1.12 1997/06/16 05:52:07 mff - * Added -C, copyright note - * - * Revision 1.10 1997/05/17 08:44:42 mff - * Changed cmd line processing a bit - * - * Revision 1.9 1997/03/09 07:16:31 mff - * Added command line parsing, support for inetd - * - * Revision 1.8 1997/02/07 06:42:59 mff - * Under UNIXs SIGHUP forces binkd to restart - * - * Revision 1.7 1997/02/01 05:55:24 mff - * Changed SIGCHLD support - * - * Revision 1.5 1996/12/14 07:00:32 mff - * Now we use branch() and set_break_handlers() - * - * Revision 1.3 1996/12/07 12:26:37 mff - * SOCKS support by msh - * - * Revision 1.1.1 1996/12/02 18:26:00 ufm - * Port to NT - */ - #include #include #include diff --git a/binlog.c b/binlog.c index c5f39267..0fe0f085 100644 --- a/binlog.c +++ b/binlog.c @@ -17,71 +17,6 @@ /* the License, or (at your option) any later version. See COPYING. */ /*--------------------------------------------------------------------*/ -/*--------------------------------------------------------------------*/ -/* RCS Information */ -/*--------------------------------------------------------------------*/ - -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.14 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.13 2010/05/22 08:11:30 gul - * Call after_session() hook after removing bsy - * - * Revision 2.12 2004/10/08 08:30:30 gul - * binlog rev.2.11 bugfix - * - * Revision 2.11 2004/08/04 13:06:58 gul - * Binlogs writes correctly now independent on bytes order and alignment - * - * Revision 2.10 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.9 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.8 2003/08/17 19:07:10 gul - * Fix typo - * - * Revision 2.7 2003/08/17 10:38:55 gul - * Return semaphoring for log and binlog - * - * Revision 2.6 2003/08/16 09:47:25 gul - * Autodetect tzoff if not specified - * - * Revision 2.5 2003/08/16 09:08:33 gul - * Binlog semaphoring removed - * - * Revision 2.4 2003/04/02 13:12:57 gul - * Try to use workaround for buggy windows time functions (timezone) - * - * Revision 2.3 2003/03/31 19:35:16 gul - * Clean semaphores usage - * - * Revision 2.2 2003/03/11 09:21:29 gul - * Fixed OS/2 Watcom compilation - * - * Revision 2.1 2003/03/05 13:21:50 gul - * Fix warnings - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * Revision 0.02 1997/07/11 11:40:19 maxb - * Added FrontDoor aka Bink/+ statistics - * - * Revision 0.01 1997/05/25 18:36:00 ufm - * First revision - * - */ - /*--------------------------------------------------------------------*/ /* System include files */ /*--------------------------------------------------------------------*/ diff --git a/binlog.h b/binlog.h index 76c989b0..6b720353 100644 --- a/binlog.h +++ b/binlog.h @@ -6,27 +6,6 @@ /* */ /* Definition file. */ /*--------------------------------------------------------------------*/ -/* - * $Id$ - * - * $Log$ - * Revision 2.3 2010/05/22 08:11:30 gul - * Call after_session() hook after removing bsy - * - * Revision 2.2 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.1 2003/08/16 09:08:33 gul - * Binlog semaphoring removed - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * - */ #ifndef __BINLOG_H__ #define __BINLOG_H__ diff --git a/branch.c b/branch.c index eb1656d2..7244bf4d 100644 --- a/branch.c +++ b/branch.c @@ -11,81 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.16 2014/01/13 13:41:58 gul - * pthread creating error handling, detach created threads - * - * Revision 2.15 2014/01/13 12:33:10 gul - * configure and small changes for multithread unix version - * - * Revision 2.14 2014/01/13 10:32:50 gul - * Unix multithread version - * - * Revision 2.13 2014/01/12 13:25:30 gul - * unix (linux) pthread version - * - * Revision 2.12 2013/11/08 12:02:16 stream - * Fix order of dependent includes - * - * Revision 2.11 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.10 2003/10/04 20:46:56 gul - * New configure --with-debug=nofork option, DEBUGCHILD macro - * - * Revision 2.9 2003/09/21 17:51:08 gul - * Fixed PID in logfile for perl stderr handled messages in fork version. - * - * Revision 2.8 2003/09/05 08:15:24 gul - * Make DEBUG-version single-thread - * - * Revision 2.7 2003/08/26 21:01:09 gul - * Fix compilation under unix - * - * Revision 2.6 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.5 2003/07/19 06:59:34 hbrew - * Complex patch: - * * nt/w32tools.c: Fix warnings - * * nt/w32tools.c: Fix typo in #ifdef - * * nt/win9x.c: Fix type in #include - * * Config.h, sys.h, branch.c, nt/service.c, - * nt/win9x.c, : _beginthread()-->BEGINTHREAD() - * * binkd.c, common.h, mkfls/nt95-msvc/Makefile.dep, - * nt/service.c, nt/w32tools.c,nt/win9x.c: cosmitic code cleanup - * - * Revision 2.4 2003/03/11 00:04:25 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.3 2003/03/10 12:16:53 gul - * Use HAVE_DOS_H macro - * - * Revision 2.2 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.1 2001/09/24 10:31:39 gul - * Build under mingw32 - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * Revision 1.3 1997/10/23 04:19:38 mff - * Amiga port, argument copying (DUP() removed) - * - * Revision 1.2 1996/12/29 09:37:30 mff - * Misc changes - * - * Revision 1.1 1996/12/14 07:01:58 mff - * Initial revision - */ - #include #include #include diff --git a/breaksig.c b/breaksig.c index 3c601522..cf07f312 100644 --- a/breaksig.c +++ b/breaksig.c @@ -11,47 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2014/01/12 13:25:30 gul - * unix (linux) pthread version - * - * Revision 2.5 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.4 2003/08/26 21:01:09 gul - * Fix compilation under unix - * - * Revision 2.3 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.1 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * Revision 1.3 1997/10/23 04:18:08 mff - * exitfunc() moved to exitproc.c, minor changes - * - * Revision 1.2 1997/03/09 07:17:16 mff - * Support for pid_file - * - * Revision 1.1 1996/12/14 07:02:20 mff - * Initial revision - * - */ - #include #include #include diff --git a/bsy.c b/bsy.c index 71108b4b..978c4cb5 100644 --- a/bsy.c +++ b/bsy.c @@ -2,59 +2,6 @@ * You must be VERY CAREFUL with this module. Note, this * code is working in VERY diff. ways in forking vs. threading versions!! */ -/* - * $Id$ - * - * $Log$ - * Revision 2.13 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.12 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.11 2010/06/15 20:24:48 gul - * Improve diagnostics - * - * Revision 2.10 2003/11/20 17:56:53 gul - * Delete empty zone outbound directories with "deletedirs" - * - * Revision 2.9 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.8 2003/08/26 22:18:47 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.7 2003/08/26 21:01:09 gul - * Fix compilation under unix - * - * Revision 2.6 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.5 2003/06/11 13:10:34 gul - * Do not try to remove bsy for 0:0/0 at exitlist - * - * Revision 2.4 2003/03/11 09:21:29 gul - * Fixed OS/2 Watcom compilation - * - * Revision 2.3 2003/03/03 22:11:27 gul - * Fix compilation by msvc/2 - * - * Revision 2.2 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.1 2002/05/11 08:37:32 gul - * Added token deletedirs - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * - */ #include #include diff --git a/bsy.h b/bsy.h index 7ace699d..c6d369b8 100644 --- a/bsy.h +++ b/bsy.h @@ -1,23 +1,3 @@ -/* - * $Id$ - * - * $Log$ - * Revision 2.2 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.1 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * - */ #ifndef _bsy_h #define _bsy_h diff --git a/btypes.h b/btypes.h index 977eb1f2..146a9244 100644 --- a/btypes.h +++ b/btypes.h @@ -11,52 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.13 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.12 2013/02/03 21:37:44 gul - * New option "rename-style [postfix|extension]" - * - * Revision 2.11 2012/09/20 12:16:52 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.10 2012/06/20 22:41:46 green - * 1 hour timeout for defnode resolutions - * - * Revision 2.9 2012/01/22 13:54:12 green - * Allow limiting IPv4/6 usage per node using new flags -4/-6 - * - * Revision 2.8 2007/10/30 07:33:25 gul - * New config option dont-send-empty - * - * Revision 2.7 2005/09/28 20:40:45 gul - * Optional parameter root-domain for domain config option. - * - * Revision 2.6 2005/05/13 11:12:00 stas - * update coment for struct _FTNQ - * - * Revision 2.5 2004/09/06 10:47:04 val - * bandwidth limiting code advancements, `listed' session state fix - * - * Revision 2.4 2004/01/08 12:57:18 val - * * parse up to 3 comma-separated passwords (in,pkt,out) - * * use out password for outgoing sessions if it's set - * - * Revision 2.3 2003/12/26 21:12:06 gul - * Change unixtime and file length/offset to unsigned in protocol messages - * - * Revision 2.2 2003/11/21 19:39:59 stream - * Initial support for "-noproxy" node option - * - * Revision 2.1 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - */ #ifndef _btypes_h #define _btypes_h diff --git a/client.c b/client.c index a5bc3323..51b86f29 100644 --- a/client.c +++ b/client.c @@ -11,357 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.96 2014/12/14 17:48:18 gul - * Fixed outgoing connects via proxy - * - * Revision 2.95 2014/09/21 08:44:51 gul - * Write configured remote hostname and port in log line "outgoing session with ..." - * - * Revision 2.94 2014/08/14 07:37:20 gul - * Fix 100% cpu load when called with "-p" option - * - * Revision 2.93 2014/08/03 21:01:58 gul - * More clean sleep in some rare OS - * - * Revision 2.92 2014/08/03 20:58:57 gul - * Fix in previous patch (typo, clientmgr was broken) - * - * Revision 2.91 2014/08/02 09:54:04 gul - * Fix in signal handling - * - * Revision 2.90 2014/01/12 13:25:30 gul - * unix (linux) pthread version - * - * Revision 2.89 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.88 2012/09/24 09:09:34 gul - * Avoid compilation warning - * - * Revision 2.87 2012/09/24 00:26:41 gul - * Resolve logic changed - * - * Revision 2.86 2012/09/20 14:18:47 gul - * Minor fix in pipe processing - * - * Revision 2.85 2012/09/20 14:13:08 gul - * Minor memory leak - * - * Revision 2.84 2012/09/20 14:10:44 gul - * Bugfix in previous patch - * - * Revision 2.83 2012/09/20 12:16:52 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.82 2012/06/07 15:46:57 green - * Really try all addresses returned by getaddrinfo() - * - * Revision 2.81 2012/05/14 06:14:58 gul - * More safe signal handling - * - * Revision 2.80 2012/01/27 18:25:44 green - * Improved getpeername() error handling - * - * Revision 2.79 2012/01/22 13:54:12 green - * Allow limiting IPv4/6 usage per node using new flags -4/-6 - * - * Revision 2.78 2012/01/08 17:34:57 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.77 2012/01/08 14:09:04 green - * Corrected initialization of getaddrinfo hints - * - * Revision 2.76 2012/01/07 16:56:28 green - * Improved getnameinfo error handling - * - * Revision 2.75 2012/01/07 16:34:00 green - * Add error id where gai_strerror() is used - * - * Revision 2.74 2012/01/07 11:54:04 green - * Fix MSVC6 compilation errors - * - * Revision 2.73 2012/01/06 09:44:08 gul - * Error in log message format - * - * Revision 2.72 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.71 2012/01/03 17:25:31 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.70 2010/05/24 14:36:57 gul - * Fix previous patch - * - * Revision 2.69 2010/05/24 14:24:32 gul - * Exit immediately after all jobs done in "-p" mode - * - * Revision 2.68 2010/01/24 16:12:43 stas - * Log message changed: "unable to connect" -> "connection to smth. failed". Patch from Alexey Vissarionov 2:5020/545 - * - * Revision 2.67 2009/06/02 17:09:35 gul - * Build binkd for OS/2 with perl support - * - * Revision 2.66 2009/05/31 07:16:16 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.65 2007/10/13 05:35:15 gul - * play around checkcfg() - * - * Revision 2.64 2007/10/06 10:20:04 gul - * more accurate checkcfg() - * - * Revision 2.63 2007/10/04 17:30:28 gul - * SIGHUP handler (thx to Sergey Babitch) - * - * Revision 2.62 2005/09/23 13:32:46 gul - * Bugfix in work via proxy with authorization - * - * Revision 2.61 2005/09/23 12:24:33 gul - * define $hosts variable for on_call() perl hook (can be changed). - * Changes for $proxy and $socks are now local for the single outgoing call. - * - * Revision 2.60 2005/03/30 17:35:28 stream - * Finally implemented '-noproxy' node option. - * - * Revision 2.59 2005/03/28 10:15:13 val - * manage proxy/socks via perl-hook on_call() - * - * Revision 2.58 2004/11/07 13:52:40 stream - * Automatically rescan outbound after reload of configuration - * - * Revision 2.57 2004/11/05 12:44:24 gul - * Client manager did not reload config on change - * in fork versions (unix, os2-emx) - * - * Revision 2.56 2004/11/01 13:05:31 gul - * Bugfix in connect-timeout - * - * Revision 2.55 2004/10/18 15:22:19 gul - * Change handle perl errors method - * - * Revision 2.54 2004/08/04 19:51:40 gul - * Change SIGCHLD handling, make signal handler more clean, - * prevent occasional hanging (mutex deadlock) under linux kernel 2.6. - * - * Revision 2.53 2004/08/03 20:06:08 gul - * Remove unneeded longjump from signal handler - * - * Revision 2.52 2003/12/06 00:27:23 gul - * Coredump on exit cmgr with DEBUGCHILD - * - * Revision 2.51 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.50 2003/10/07 20:54:47 gul - * End clientmgr by _endthread() on break - * (patch by Alexander Reznikov). - * - * Revision 2.49 2003/10/07 20:50:07 gul - * Wait for servmanager exit from exitproc() - * (Patch from Alexander Reznikov) - * - * Revision 2.48 2003/10/07 17:57:09 gul - * Some small changes in close threads function. - * Inhibit errors "socket operation on non-socket" on break. - * - * Revision 2.47 2003/09/22 09:54:41 gul - * Screen output semaphoring, prevent mixing output from threads - * - * Revision 2.46 2003/09/21 17:51:08 gul - * Fixed PID in logfile for perl stderr handled messages in fork version. - * - * Revision 2.45 2003/09/21 17:34:26 gul - * Change perl stderr handling for thread vertions, - * some small changes. - * - * Revision 2.44 2003/09/05 06:49:06 val - * Perl support restored after config reloading patch - * - * Revision 2.43 2003/08/26 21:01:09 gul - * Fix compilation under unix - * - * Revision 2.42 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.41 2003/07/28 10:23:33 val - * Perl DLL dynamic load for Win32, config keyword perl-dll, nmake PERLDL=1 - * - * Revision 2.40 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.39 2003/06/02 14:10:17 gul - * write domain and IP to logfile on outgoing connections - * - * Revision 2.38 2003/04/30 13:38:17 gul - * Avoid warnings - * - * Revision 2.37 2003/04/28 07:30:16 gul - * Bugfix: Log() changes TCPERRNO - * - * Revision 2.36 2003/04/25 12:51:18 gul - * Fix diagnostics on exit - * - * Revision 2.35 2003/04/22 22:26:17 gul - * Fix previous patch - * - * Revision 2.34 2003/04/22 20:13:49 gul - * Fixed possible premature exit in -p mode - * - * Revision 2.33 2003/04/18 08:30:33 hbrew - * Fix memory fault when use proxy. Path from Stas Degteff 2:5080/102 - * - * Revision 2.32 2003/04/06 13:50:11 gul - * dos sleep() realization - * - * Revision 2.31 2003/04/06 08:38:47 gul - * Log port number for outgoing connections to non-standard port - * - * Revision 2.30 2003/03/31 16:28:09 gul - * Fix previous patch - * - * Revision 2.29 2003/03/28 14:01:10 gul - * Do not call _endthread() without _beginthread() in client only mode - * - * Revision 2.28 2003/03/26 10:44:40 gul - * Code cleanup - * - * Revision 2.27 2003/03/25 20:37:46 gul - * free_hostent() function - * - * Revision 2.26 2003/03/19 14:36:03 gul - * Fix typo - * - * Revision 2.25 2003/03/14 21:58:33 gul - * Changed function SLEEP() to define for multithread version - * - * Revision 2.24 2003/03/11 14:11:01 gul - * Bugfix - * - * Revision 2.23 2003/03/11 11:42:23 gul - * Use event semaphores for exit threads - * - * Revision 2.22 2003/03/11 00:04:25 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.21 2003/03/10 15:57:52 gul - * Fixed segfault on unresolvable host - * - * Revision 2.20 2003/03/10 12:16:53 gul - * Use HAVE_DOS_H macro - * - * Revision 2.19 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.18 2003/03/10 08:38:07 gul - * Make n_servers/n_clients changes thread-safe - * - * Revision 2.17 2003/03/06 18:24:00 gul - * Fix exitfunc with threads - * - * Revision 2.16 2003/03/05 13:21:50 gul - * Fix warnings - * - * Revision 2.15 2003/03/05 11:40:12 gul - * Fix win32 compilation - * - * Revision 2.14 2003/03/04 09:56:00 gul - * Fix threads compilation - * - * Revision 2.13 2003/03/03 23:41:20 gul - * Try to resolve problem with active threads while exitproc running - * - * Revision 2.12 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.11 2003/03/01 15:55:02 gul - * Current outgoing address is now attibute of session, but not node - * - * Revision 2.10 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.9 2003/02/28 08:53:38 gul - * Fixed proxy usage - * - * Revision 2.8 2003/02/27 20:34:37 gul - * Fix proxy usage - * - * Revision 2.7 2003/02/27 18:52:37 gul - * bugfix in proxy using - * - * Revision 2.6 2003/02/23 07:20:11 gul - * Restore lost comment - * - * Revision 2.5 2003/02/22 19:30:22 gul - * Fix compiler warning - * - * Revision 2.4 2003/02/22 12:12:33 gul - * Cleanup sources - * - * Revision 2.3 2003/02/22 11:45:41 gul - * Do not resolve hosts if proxy or socks5 using - * - * Revision 2.2 2002/04/02 13:10:32 gul - * Put real remote addr to log "session with ..." if connect via socks or proxy - * - * Revision 2.1 2001/09/14 07:24:20 gul - * bindaddr works on outgoing connections now - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * Revision 1.12 1998/06/19 05:21:12 mff - * Oport was broken - * - * Revision 1.11 1997/11/04 23:33:55 mff - * Fixed a minor bug in walking through hostlists - * - * Revision 1.10 1997/10/23 04:16:36 mff - * host lists, more? - * - * Revision 1.9 1997/03/09 07:17:59 mff - * Support for -p key - * - * Revision 1.8 1997/02/07 07:11:53 mff - * We now restart sleep() after signals - * - * Revision 1.7 1997/02/01 05:55:24 mff - * Changed SIGCHLD support - * - * Revision 1.6 1997/02/01 05:37:22 mff - * Support for new queue scanning - * - * Revision 1.4 1996/12/14 07:03:26 mff - * Now we use branch() - * - * Revision 1.3 1996/12/09 03:37:21 mff - * Changed call-out logic - * - * Revision 1.2 1996/12/07 12:03:02 mff - * Now fork()'s or _beginthread()'s - */ - #include #include #include diff --git a/client.h b/client.h index 3fe09cfb..12d88935 100644 --- a/client.h +++ b/client.h @@ -1,12 +1,3 @@ -/* - * $Id$ - * - * $Log$ - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * - */ #ifndef _client_h #define _client_h diff --git a/common.h b/common.h index 40c38e04..ef9d6d31 100644 --- a/common.h +++ b/common.h @@ -9,74 +9,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.17 2014/08/02 09:54:04 gul - * Fix in signal handling - * - * Revision 2.16 2012/05/14 06:14:58 gul - * More safe signal handling - * - * Revision 2.15 2009/06/02 17:09:35 gul - * Build binkd for OS/2 with perl support - * - * Revision 2.14 2007/10/04 17:30:28 gul - * SIGHUP handler (thx to Sergey Babitch) - * - * Revision 2.13 2004/10/18 15:22:19 gul - * Change handle perl errors method - * - * Revision 2.12 2004/02/07 14:06:06 hbrew - * Macros: RTLDLL-->RTLSTATIC, BINKDW9X-->BINKD9X - * - * Revision 2.11 2003/10/05 09:37:42 stas - * Optimize binkd/nt start: use hack to determine if we're running as a service without waiting for the service control manager to fail - * - * Revision 2.10 2003/09/21 17:34:26 gul - * Change perl stderr handling for thread vertions, - * some small changes. - * - * Revision 2.9 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.8 2003/07/19 06:59:34 hbrew - * Complex patch: - * * nt/w32tools.c: Fix warnings - * * nt/w32tools.c: Fix typo in #ifdef - * * nt/win9x.c: Fix type in #include - * * Config.h, sys.h, branch.c, nt/service.c, - * nt/win9x.c, : _beginthread()-->BEGINTHREAD() - * * binkd.c, common.h, mkfls/nt95-msvc/Makefile.dep, - * nt/service.c, nt/w32tools.c,nt/win9x.c: cosmitic code cleanup - * - * Revision 2.7 2003/07/18 10:30:33 stas - * New functions: IsNT(), Is9x(); small code cleanup - * - * Revision 2.6 2003/07/16 15:08:49 stas - * Fix NT services to use getopt(). Improve logging for service - * - * Revision 2.5 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.4 2003/06/09 13:27:28 stas - * New command line parser - * - * Revision 2.3 2003/05/01 09:55:01 gul - * Remove -crypt option, add global -r option (disable crypt). - * - * Revision 2.2 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.1 2003/03/10 10:34:52 gul - * *** empty log message *** - * - * - */ #ifndef _common_h #define _common_h diff --git a/compress.c b/compress.c index 649d5a09..131095e7 100644 --- a/compress.c +++ b/compress.c @@ -10,43 +10,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.5 2013/11/18 06:49:29 stream - * Add required include - * - * Revision 2.4 2004/01/08 12:46:01 val - * correct macrodef for msvc (_msc_ver instead of __msc__) - * - * Revision 2.3 2003/12/10 11:12:10 gul - * Minor fix in decompression deinit - * - * Revision 2.2 2003/12/09 21:58:20 gul - * Bugfix in resend file in compression mode, - * new functions compress_abort() and decompress_abort(). - * - * Revision 2.1 2003/10/19 12:21:46 gul - * Stream compression - * - * Revision 2.8 2003/10/06 08:25:28 val - * turn off optimization for zlibdl.c - * - * Revision 2.7 2003/10/06 06:30:36 val - * zlib code fix - * - * Revision 2.6 2003/09/25 06:41:43 val - * fix compilation under win32 - * - * Revision 2.5 2003/09/24 09:53:16 val - * fix warnings - * - * Revision 2.4 2003/09/24 07:32:17 val - * bzlib2 compression support, new compression keyword: zlevel - * - * - */ #if defined(ZLIBDL) && defined(_MSC_VER) #pragma optimize("", off) diff --git a/compress.h b/compress.h index 23a00d14..36345158 100644 --- a/compress.h +++ b/compress.h @@ -10,22 +10,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.3 2003/12/09 21:58:20 gul - * Bugfix in resend file in compression mode, - * new functions compress_abort() and decompress_abort(). - * - * Revision 2.2 2003/10/27 23:22:54 gul - * Fix OS/2 compilation - * - * Revision 2.1 2003/10/19 12:21:46 gul - * Stream compression - * - * - */ #ifndef _COMPRESS_H_ #define _COMPRESS_H_ diff --git a/confopt.h b/confopt.h index df19487c..076eba57 100644 --- a/confopt.h +++ b/confopt.h @@ -11,46 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.11 2012/02/02 08:42:42 gul - * Fixed gcc version for emx/klibc (by Max Vasilyev) - * - * Revision 2.10 2012/01/25 21:02:43 green - * Some changes to enable compilation on OS/2 with GCC/kLIBC - * - * Revision 2.9 2012/01/08 16:23:52 green - * Fixed compilation in Cygwin/MinGW - * - * Revision 2.8 2012/01/07 17:00:21 green - * Added detection for PCC compiler - * - * Revision 2.7 2012/01/07 13:24:44 green - * Fixed small typo - * - * Revision 2.6 2012/01/07 13:16:18 green - * Some more information in binkd -vv output - * - * Revision 2.5 2008/01/15 11:19:01 gul - * Show bwlim setting on "binkd -vv" output - * - * Revision 2.4 2004/02/07 14:06:06 hbrew - * Macros: RTLDLL-->RTLSTATIC, BINKDW9X-->BINKD9X - * - * Revision 2.3 2003/11/17 01:03:27 hbrew - * Fix BINKDW9X macro - * - * Revision 2.2 2003/11/04 00:47:52 hbrew - * Cosmetic - * - * Revision 2.1 2003/11/04 00:46:20 hbrew - * confopt added. - * - */ - /* Optional and compilation options */ /* Compiler: */ #if defined(__MINGW32__) diff --git a/crypt.c b/crypt.c index a3c6dfc5..a497d5ca 100644 --- a/crypt.c +++ b/crypt.c @@ -14,27 +14,6 @@ * This encryption code is a direct transcription of the algorithm from * Roger Schlafly. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.4 2005/10/10 15:44:24 stas - * Move CRC32's define into crypt.h - * - * Revision 2.3 2001/02/21 06:25:21 gul - * changed crlf to cr in the source file - * - * Revision 2.2 2001/02/20 12:01:50 gul - * rename encrypt to encrypt_buf to avoid conflict with unistd.h - * - * Revision 2.1 2001/02/15 16:05:59 gul - * crypt bugfix - * - * Revision 2.0 2001/02/15 11:02:16 gul - * Added crypt traffic possibility - * - * - */ #include "crypt.h" diff --git a/crypt.h b/crypt.h index fe5e28ce..5061abca 100644 --- a/crypt.h +++ b/crypt.h @@ -1,28 +1,3 @@ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.5 2005/10/10 16:24:22 stas - * Change method for generate 8+3 bundle name from ASO bundle name - * - * Revision 2.4 2005/10/10 15:44:24 stas - * Move CRC32's define into crypt.h - * - * Revision 2.3 2005/10/10 15:43:12 stas - * Prevent double include crypt.h - * - * Revision 2.2 2001/02/21 06:25:21 gul - * changed crlf to cr in the source file - * - * Revision 2.1 2001/02/20 12:01:50 gul - * rename encrypt to encrypt_buf to avoid conflict with unistd.h - * - * Revision 2.0 2001/02/15 11:02:16 gul - * Added crypt traffic possibility - * - * - */ #ifndef _BINKD_CRYPT_H_ #define _BINKD_CRYPT_H_ diff --git a/doc/Makefile b/doc/Makefile index ac9ce860..ffe1b962 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,5 +1,3 @@ -# $Id$ -# # makefile to build documentation MAKEHTML = makeinfo --html --no-split diff --git a/exitproc.c b/exitproc.c index 7252aab0..cc478d01 100644 --- a/exitproc.c +++ b/exitproc.c @@ -11,173 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.46 2014/01/12 13:25:30 gul - * unix (linux) pthread version - * - * Revision 2.45 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.44 2012/01/03 17:25:31 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.43 2010/05/24 14:24:32 gul - * Exit immediately after all jobs done in "-p" mode - * - * Revision 2.42 2009/06/02 17:09:35 gul - * Build binkd for OS/2 with perl support - * - * Revision 2.41 2009/05/31 07:16:16 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.40 2004/10/18 15:22:19 gul - * Change handle perl errors method - * - * Revision 2.39 2004/02/07 14:06:06 hbrew - * Macros: RTLDLL-->RTLSTATIC, BINKDW9X-->BINKD9X - * - * Revision 2.38 2004/01/03 19:04:20 stas - * New functions: public w32Init() and hidden w32exitfunc() - * - * Revision 2.37 2004/01/03 12:17:43 stas - * Implement full icon support (winNT/2k/XP) - * - * Revision 2.36 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.35 2003/10/28 13:09:53 gul - * Fix NT service semaphore usage in exitfunc() - * - * Revision 2.34 2003/10/18 06:45:23 stas - * Fix a semaphore usage in exitfunc() - * - * Revision 2.33 2003/10/17 18:49:36 stas - * Use a semaphore to prevent double run exitfunc() - * - * Revision 2.32 2003/10/13 08:48:09 stas - * Implement true NT service stop sequence - * - * Revision 2.31 2003/10/08 10:30:34 gul - * Fixed debug logging (thx to Alexander Reznikov) - * - * Revision 2.30 2003/10/07 20:50:07 gul - * Wait for servmanager exit from exitproc() - * (Patch from Alexander Reznikov) - * - * Revision 2.29 2003/10/07 17:57:09 gul - * Some small changes in close threads function. - * Inhibit errors "socket operation on non-socket" on break. - * - * Revision 2.28 2003/09/11 13:04:13 hbrew - * Undo 'move binkd9x deinit to exitfunc()' patch - * - * Revision 2.27 2003/09/09 17:57:43 stream - * Do not unload config on exit (considered useless and potentially unstable) - * - * Revision 2.26 2003/09/08 08:21:20 stream - * Cleanup config semaphore, free memory of base config on exit. - * - * Revision 2.25 2003/09/08 06:36:51 val - * (a) don't call exitfunc for perlhook fork'ed process - * (b) many compilation warnings in perlhooks.c fixed - * - * Revision 2.24 2003/09/07 04:49:41 hbrew - * Remove binkd9x restart-on-config-change code; move binkd9x deinit to exitfunc() - * - * Revision 2.23 2003/08/26 22:18:47 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.22 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.21 2003/08/17 10:38:55 gul - * Return semaphoring for log and binlog - * - * Revision 2.20 2003/08/16 09:08:33 gul - * Binlog semaphoring removed - * - * Revision 2.19 2003/08/16 06:21:12 gul - * Log() semaphoring removed - * - * Revision 2.18 2003/08/14 12:56:29 gul - * Make Log() thread-safe - * - * Revision 2.17 2003/08/14 11:43:19 val - * free allocated log buffer in exitfunc() - * - * Revision 2.16 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.15 2003/06/04 10:36:58 stas - * Thread-safety tcperr() implementation on Win32 - * - * Revision 2.14 2003/06/02 08:26:00 gul - * Fix hang on exit with big loglevel - * - * Revision 2.13 2003/05/04 08:45:30 gul - * Lock semaphores more safely for resolve and IP-addr print - * - * Revision 2.12 2003/03/31 19:53:08 gul - * Close socket before exit - * - * Revision 2.11 2003/03/31 19:35:16 gul - * Clean semaphores usage - * - * Revision 2.10 2003/03/11 11:42:23 gul - * Use event semaphores for exit threads - * - * Revision 2.9 2003/03/11 09:21:30 gul - * Fixed OS/2 Watcom compilation - * - * Revision 2.8 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.7 2003/03/10 08:38:07 gul - * Make n_servers/n_clients changes thread-safe - * - * Revision 2.6 2003/03/09 18:19:32 gul - * Bugfix - * - * Revision 2.5 2003/03/06 18:30:28 gul - * A bit optimize - * - * Revision 2.4 2003/03/05 11:43:56 gul - * Fix win32 compilation - * - * Revision 2.3 2003/03/05 11:40:12 gul - * Fix win32 compilation - * - * Revision 2.2 2003/03/05 09:00:45 gul - * Fix win32 compilation - * - * Revision 2.1 2003/03/03 23:41:20 gul - * Try to resolve problem with active threads while exitproc running - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * Revision 1.2 1997/10/23 04:13:35 mff - * pidfiles are now killed only by servmgrs, misc - * - * Revision 1.1 1997/08/12 21:42:54 mff - * Initial revision - */ - #include #include "sys.h" diff --git a/ftnaddr.c b/ftnaddr.c index 9af924b3..8cf4d45f 100644 --- a/ftnaddr.c +++ b/ftnaddr.c @@ -11,61 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.12 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.11 2012/01/08 17:34:57 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.10 2011/08/17 09:02:56 gul - * Default root-domain fidonet.net changed to binkp.net - * - * Revision 2.9 2005/09/28 20:40:45 gul - * Optional parameter root-domain for domain config option. - * - * Revision 2.8 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.7 2003/08/26 21:01:09 gul - * Fix compilation under unix - * - * Revision 2.6 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.5 2003/08/24 19:42:08 gul - * Get FTN-domain from matched zone in exp_ftnaddress() - * - * Revision 2.4 2003/08/18 07:35:08 val - * multiple changes: - * - hide-aka/present-aka logic - * - address mask matching via pmatch - * - delay_ADR in STATE (define DELAY_ADR removed) - * - ftnaddress_to_str changed to xftnaddress_to_str (old version #define'd) - * - parse_ftnaddress now sets zone to domain default if it's omitted - * - * Revision 2.3 2003/08/14 08:29:22 gul - * Use snprintf() from sprintf.c if no such libc function - * - * Revision 2.2 2003/02/22 21:32:46 gul - * Amiga Style Outbound support - * - * Revision 2.1 2003/01/29 19:32:03 gul - * Code cleanup, prevent segfault on bad config - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * Revision 1.4 1997/10/23 04:11:58 mff - * +ftnaddress_to_domain() - */ - #include #include diff --git a/ftnaddr.h b/ftnaddr.h index b8956724..c39bc19d 100644 --- a/ftnaddr.h +++ b/ftnaddr.h @@ -1,41 +1,3 @@ -/* - * $Id$ - * - * $Log$ - * Revision 2.7 2012/01/08 17:34:57 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.6 2011/08/17 09:02:56 gul - * Default root-domain fidonet.net changed to binkp.net - * - * Revision 2.5 2005/09/28 20:40:45 gul - * Optional parameter root-domain for domain config option. - * - * Revision 2.4 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.3 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/08/18 07:35:08 val - * multiple changes: - * - hide-aka/present-aka logic - * - address mask matching via pmatch - * - delay_ADR in STATE (define DELAY_ADR removed) - * - ftnaddress_to_str changed to xftnaddress_to_str (old version #define'd) - * - parse_ftnaddress now sets zone to domain default if it's omitted - * - * Revision 2.1 2003/06/07 08:46:25 gul - * New feature added: shared aka - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * - */ #ifndef _ftnaddr_h #define _ftnaddr_h diff --git a/ftndom.c b/ftndom.c index cda8358d..c08e2a9f 100644 --- a/ftndom.c +++ b/ftndom.c @@ -11,52 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.8 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.7 2004/11/05 05:30:55 stas - * Checks for NULL pointer in get_matched_domain() - * - * Revision 2.6 2004/11/04 08:55:10 stream - * Bugfix to previous bugfix. - * Also log warning if we have to guess default domain name from main AKA - * or first domain. - * - * Revision 2.5 2004/11/04 06:21:58 stas - * BUGFIX: segfault if 1st address is 4D - * - * Revision 2.4 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.3 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/08/24 19:42:08 gul - * Get FTN-domain from matched zone in exp_ftnaddress() - * - * Revision 2.1 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.0 2001/01/10 12:12:37 gul - * Binkd is under CVS again - * - * Revision 1.2 1997/10/23 04:08:50 mff - * stricmp() -> STRICMP() - * - * Revision 1.1 1996/12/29 09:41:15 mff - * Initial revision - * - */ - #include #include "sys.h" #include "ftndom.h" diff --git a/ftndom.h b/ftndom.h index 778639ff..fd11d4de 100644 --- a/ftndom.h +++ b/ftndom.h @@ -11,40 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.5 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.4 2003/08/24 19:42:08 gul - * Get FTN-domain from matched zone in exp_ftnaddress() - * - * Revision 2.3 2003/08/18 17:19:13 stream - * Partially implemented new configuration parser logic (required for config reload) - * - * Revision 2.2 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.1 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.1 1996/12/29 09:41:28 mff - * Initial revision - * - */ #ifndef _ftndomain_h #define _ftndomain_h diff --git a/ftnnode.c b/ftnnode.c index 58492723..2b8d2b89 100644 --- a/ftnnode.c +++ b/ftnnode.c @@ -11,187 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.48 2014/01/12 13:25:30 gul - * unix (linux) pthread version - * - * Revision 2.47 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.46 2012/09/24 00:26:41 gul - * Resolve logic changed - * - * Revision 2.45 2012/09/20 12:16:52 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.44 2012/06/20 22:41:46 green - * 1 hour timeout for defnode resolutions - * - * Revision 2.43 2012/06/20 21:48:10 green - * Reduce number of DNS resolutions during outbound scan - * - * Revision 2.42 2012/01/22 13:54:12 green - * Allow limiting IPv4/6 usage per node using new flags -4/-6 - * - * Revision 2.41 2012/01/08 17:34:57 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.40 2012/01/08 14:09:04 green - * Corrected initialization of getaddrinfo hints - * - * Revision 2.39 2012/01/07 11:54:04 green - * Fix MSVC6 compilation errors - * - * Revision 2.38 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.37 2012/01/03 17:25:31 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.36 2010/12/02 11:04:14 stas - * if any of passwords for the node is presents, then don't change all passwords. The FIRST token "Node" with any not-empty password in the config file is set all passwords, the passwords from password-file is used for node if password don't set in main config file - * - * Revision 2.35 2004/10/25 17:04:54 gul - * Process passwords file after all, independent of its place in config. - * Use first password for node if several specified. - * - * Revision 2.34 2004/09/21 08:27:49 val - * distinguish nodes, listed in binkd config and passwords file - overwrite defnode parameters (e.g. host) for the later - * (hope, it'll fix reported bug with not calling defnode) - * - * Revision 2.33 2004/09/11 13:57:12 gul - * Remove duplicate line - * - * Revision 2.32 2004/09/06 10:50:06 val - * node data could be over-written by defnode data if hosts were set to `-', fixed - * - * Revision 2.31 2004/09/06 10:47:04 val - * bandwidth limiting code advancements, `listed' session state fix - * - * Revision 2.30 2004/01/18 20:39:31 gul - * Undo previous patch - * - * Revision 2.29 2004/01/15 14:49:12 gul - * If only two passwords for a node specified in passwd-file, use its as - * in,out+pkt but not in+out,pkt. - * - * Revision 2.28 2004/01/08 12:57:18 val - * * parse up to 3 comma-separated passwords (in,pkt,out) - * * use out password for outgoing sessions if it's set - * - * Revision 2.27 2004/01/07 12:07:47 gul - * New function free_nodes() - * - * Revision 2.26 2003/11/21 19:39:59 stream - * Initial support for "-noproxy" node option - * - * Revision 2.25 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.24 2003/09/19 13:37:14 val - * old get_defnode_info() logic returned for a while - * - * Revision 2.23 2003/09/16 06:38:44 val - * correct IP checking algorithms (gul's one is buggy), correct get_defnode_info() - * - * Revision 2.22 2003/09/14 12:29:32 gul - * Optimize a bit - * - * Revision 2.21 2003/09/08 16:39:39 stream - * Fixed race conditions when accessing array of nodes in threaded environment - * ("jumpimg node structures") - * - * Revision 2.20 2003/09/08 08:21:20 stream - * Cleanup config semaphore, free memory of base config on exit. - * - * Revision 2.19 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.18 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.17 2003/08/18 17:19:13 stream - * Partially implemented new configuration parser logic (required for config reload) - * - * Revision 2.16 2003/07/12 18:06:40 gul - * Fixed node output on debugcfg - * - * Revision 2.15 2003/06/30 22:48:36 hbrew - * Allow to override -ip, -sip, -md, -nomd in add_node() - * - * Revision 2.14 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.13 2003/06/12 08:30:57 val - * check pkt header feature, see keyword 'check-pkthdr' - * - * Revision 2.12 2003/05/04 08:49:05 gul - * Fix previous patch - * - * Revision 2.11 2003/05/04 08:45:30 gul - * Lock semaphores more safely for resolve and IP-addr print - * - * Revision 2.10 2003/05/01 09:55:01 gul - * Remove -crypt option, add global -r option (disable crypt). - * - * Revision 2.9 2003/04/23 04:35:34 gul - * Fix semaphores usage - * - * Revision 2.8 2003/03/31 19:51:29 gul - * Fix prev patch - * - * Revision 2.7 2003/03/31 19:35:16 gul - * Clean semaphores usage - * - * Revision 2.6 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.5 2003/02/22 15:53:45 gul - * Bugfix with locking array of nodes in multithread version - * - * Revision 2.4 2003/02/22 14:30:18 gul - * Make nNod var static - * - * Revision 2.3 2003/02/22 12:12:33 gul - * Cleanup sources - * - * Revision 2.2 2002/05/10 17:46:06 gul - * passwords file usage bugfix - * - * Revision 2.1 2001/02/15 11:03:18 gul - * Added crypt traffic possibility - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.3 1997/11/03 06:10:39 mff - * +nodes_init() - * - * Revision 1.2 1997/10/23 04:07:55 mff - * many changes to hide pNod int ftnnode.c - * - * Revision 1.1 1996/12/29 09:41:37 mff - * Initial revision - */ - #include #include diff --git a/ftnnode.h b/ftnnode.h index b1c7dd3e..d3ba0973 100644 --- a/ftnnode.h +++ b/ftnnode.h @@ -11,113 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.24 2012/09/20 12:16:52 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.23 2012/06/20 22:41:46 green - * 1 hour timeout for defnode resolutions - * - * Revision 2.22 2012/01/22 13:54:12 green - * Allow limiting IPv4/6 usage per node using new flags -4/-6 - * - * Revision 2.21 2005/10/28 07:13:28 stas - * Change poll flavour to 'direct' and allow specify poll flavour char at compile time using macro POLL_NODE_FLAVOUR - * - * Revision 2.20 2004/09/21 08:27:49 val - * distinguish nodes, listed in binkd config and passwords file - overwrite defnode parameters (e.g. host) for the later - * (hope, it'll fix reported bug with not calling defnode) - * - * Revision 2.19 2004/09/06 10:47:04 val - * bandwidth limiting code advancements, `listed' session state fix - * - * Revision 2.18 2004/01/08 12:57:18 val - * * parse up to 3 comma-separated passwords (in,pkt,out) - * * use out password for outgoing sessions if it's set - * - * Revision 2.17 2004/01/07 12:09:45 gul - * New function free_nodes() - * - * Revision 2.16 2003/11/21 19:39:59 stream - * Initial support for "-noproxy" node option - * - * Revision 2.15 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.14 2003/09/08 16:39:39 stream - * Fixed race conditions when accessing array of nodes in threaded environment - * ("jumpimg node structures") - * - * Revision 2.13 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.12 2003/08/18 17:19:13 stream - * Partially implemented new configuration parser logic (required for config reload) - * - * Revision 2.11 2003/06/30 22:48:36 hbrew - * Allow to override -ip, -sip, -md, -nomd in add_node() - * - * Revision 2.10 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.9 2003/06/12 08:30:57 val - * check pkt header feature, see keyword 'check-pkthdr' - * - * Revision 2.8 2003/05/01 09:55:01 gul - * Remove -crypt option, add global -r option (disable crypt). - * - * Revision 2.7 2003/03/31 19:35:16 gul - * Clean semaphores usage - * - * Revision 2.6 2003/03/11 00:04:25 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.5 2003/03/01 15:55:02 gul - * Current outgoing address is now attibute of session, but not node - * - * Revision 2.4 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.3 2003/02/22 15:53:46 gul - * Bugfix with locking array of nodes in multithread version - * - * Revision 2.2 2003/02/22 11:45:41 gul - * Do not resolve hosts if proxy or socks5 using - * - * Revision 2.1 2001/02/15 11:03:18 gul - * Added crypt traffic possibility - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.6 1997/11/03 06:10:39 mff - * +nodes_init() - * - * Revision 1.5 1997/10/23 04:06:48 mff - * many changes to hide pNod int ftnnode.c - * - * Revision 1.4 1997/08/19 21:32:09 mff - * host/port replaced with hosts -- ASCIIz in "host1,host2,..,hostN" form - * - * Revision 1.3 1997/06/16 05:49:13 mff - * Removed bitmapped flavours. - * - * Revision 1.2 1997/02/07 07:07:00 mff - * busy, flvrs, hold_until, ibox, obox, obox_flvr - * - * Revision 1.1 1996/12/29 09:41:45 mff - * Initial revision - * - */ #ifndef _ftnnode_h #define _ftnnode_h diff --git a/ftnq.c b/ftnq.c index 431437a6..b2c7eb4f 100644 --- a/ftnq.c +++ b/ftnq.c @@ -11,185 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.42 2013/11/25 19:49:52 stream - * Fix possibly uninitialized variable: A node could be held to random time if it was an error during processing of .hld file - * - * Revision 2.41 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.40 2013/10/23 19:25:56 stream - * EWOULDBLOCK, O_BINARY, O_NOINHERIT could be defined to wrong value - * - * Revision 2.39 2011/05/06 15:44:04 gul - * Fixed sorting files in filebox by time - * - * Revision 2.38 2009/05/31 07:16:16 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.37 2005/11/03 11:39:23 stas - * Fix warning about signed-unsigned incompatibility - * - * Revision 2.36 2005/10/02 20:48:39 gul - * - add $traf_mail and $traf_files vars for on_call() and on_handshake() hooks; - * - optimize queue scan in perl hooks; - * - documentation for $rc var in after_session() hook. - * - * Revision 2.35 2005/10/02 15:03:11 gul - * Fileboxes did not works for unlisted nodes - * - * Revision 2.34 2004/08/04 11:32:29 gul - * Attemp to support large files (>4G) - * - * Revision 2.33 2004/08/04 06:40:27 gul - * Use uintmax_t and PRIuMAX for printing file size (off_t) - * - * Revision 2.32 2004/02/08 21:13:24 gul - * Inhibit redundrant error message in log about filebox under unix - * - * Revision 2.31 2004/01/08 13:27:46 val - * * extend struct dirent for dos and win32 in order to get file attribute - * * ignore hidden files in boxes for dos/win32/os2 - * * if we can differ files from directories w/o stat(), don't call stat() - * when scanning boxes (unix: freebsd) - * * if we can't unlink file, don't send it again in the same session - * * for dos/win32/os2 try to clear read/only attribute if can't unlink file - * - * Revision 2.30 2003/12/26 21:12:06 gul - * Change unixtime and file length/offset to unsigned in protocol messages - * - * Revision 2.29 2003/12/02 19:32:24 gul - * Prevent several clients calls to the same node - * - * Revision 2.28 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.27 2003/09/08 16:39:39 stream - * Fixed race conditions when accessing array of nodes in threaded environment - * ("jumpimg node structures") - * - * Revision 2.26 2003/09/05 10:17:20 gul - * Send argus-compatible freqs. - * Warning: works only with prescan! - * - * Revision 2.25 2003/08/26 22:18:48 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.24 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.23 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.22 2003/08/14 08:29:22 gul - * Use snprintf() from sprintf.c if no such libc function - * - * Revision 2.21 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.20 2003/06/07 08:46:25 gul - * New feature added: shared aka - * - * Revision 2.19 2003/05/28 14:32:57 gul - * new function q_add_last_file() - add file to the end of queue - * - * Revision 2.18 2003/04/24 20:07:38 gul - * Send freq first - * - * Revision 2.17 2003/04/22 22:30:18 gul - * rtl workaround, incorrect diagnostics if poll already exists - * - * Revision 2.16 2003/04/02 13:12:57 gul - * Try to use workaround for buggy windows time functions (timezone) - * - * Revision 2.15 2003/03/31 20:28:24 gul - * safe_localtime() and safe_gmtime() functions - * - * Revision 2.14 2003/03/25 13:45:16 gul - * Case-insencitive t-mail "hold" long filebox search - * - * Revision 2.13 2003/03/25 09:18:54 gul - * Case-insencitive t-mail "hold" long filebox search - * - * Revision 2.12 2003/03/10 12:16:53 gul - * Use HAVE_DOS_H macro - * - * Revision 2.11 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.10 2003/03/05 13:21:50 gul - * Fix warnings - * - * Revision 2.9 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.8 2003/03/01 15:26:50 gul - * *** empty log message *** - * - * Revision 2.7 2003/03/01 15:17:48 gul - * *** empty log message *** - * - * Revision 2.6 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.5 2003/02/28 19:40:47 gul - * Outbound scan bugfix if defnode used - * - * Revision 2.4 2003/02/22 21:32:46 gul - * Amiga Style Outbound support - * - * Revision 2.3 2003/02/22 15:53:46 gul - * Bugfix with locking array of nodes in multithread version - * - * Revision 2.2 2003/02/22 12:56:00 gul - * Do not give unsecure mail to secuse link when send-if-pwd - * - * Revision 2.1 2002/03/15 15:49:30 gul - * Do not check/create *.try if "try" is not defined in config - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.14 1998/05/05 04:23:52 mff - * create_poll() now makes all the required intermediate - * directories in the outbound. - * - * Revision 1.13 1997/11/03 06:12:08 mff - * an #ifdef for amiga added - * - * Revision 1.12 1997/10/23 04:05:55 mff - * many changes, mostly to hide pNod into ftnnode.c - * - * Revision 1.11 1997/08/19 21:49:59 mff - * Changes to support multiple hosts per node, more?.. - * - * Revision 1.10 1997/06/16 05:47:13 mff - * Remove old .bsy/.csy files, queue handling changed again. - * - * Revision 1.9 1997/03/15 05:08:53 mff - * `.Olo' bug fixed - * - * Revision 1.7 1997/02/13 07:08:39 mff - * Support for fileboxes - * - * Revision 1.6 1997/02/07 07:05:20 mff - * .hld support, added .bsy handling, more - * - * Revision 1.4 1996/12/14 07:04:21 mff - * Addedd q_scan_addrs() - */ - #include #include #include diff --git a/ftnq.h b/ftnq.h index 34502d09..e399d91a 100644 --- a/ftnq.h +++ b/ftnq.h @@ -11,69 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* $Id$ - * - * $Log$ - * Revision 2.11 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.10 2005/10/02 15:03:11 gul - * Fileboxes did not works for unlisted nodes - * - * Revision 2.9 2004/08/04 11:32:29 gul - * Attemp to support large files (>4G) - * - * Revision 2.8 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.7 2003/09/05 10:17:21 gul - * Send argus-compatible freqs. - * Warning: works only with prescan! - * - * Revision 2.6 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.5 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.4 2003/05/28 14:32:57 gul - * new function q_add_last_file() - add file to the end of queue - * - * Revision 2.3 2003/03/01 18:04:30 gul - * Remove redundrant include - * - * Revision 2.2 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.1 2003/02/22 12:56:00 gul - * Do not give unsecure mail to secuse link when send-if-pwd - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.8 1998/05/05 23:59:33 mff - * Added comment about FTNQ.time. - * - * Revision 1.7 1997/10/23 04:04:45 mff - * q_not_empty() returns FTN_NODE now - * - * Revision 1.6 1997/06/16 05:47:13 mff - * Remove old .bsy/.csy files, queue handling changed again. - * - * Revision 1.5 1997/02/13 07:08:39 mff - * Support for fileboxes - * - * Revision 1.2 1996/12/14 07:04:39 mff - * Addedd q_scan_addrs() - */ #ifndef _ftnq_h #define _ftnq_h diff --git a/getw.c b/getw.c index b8c998ce..8ec618f6 100644 --- a/getw.c +++ b/getw.c @@ -2,45 +2,6 @@ * getwordx public domain library v.2.0 * (c) 1995,1996,1997 */ -/* - * $Id$ - * - * $Log$ - * Revision 2.10 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.9 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.8 2003/12/29 10:49:37 gul - * Comments in config now starts by "#" only if prev char is space - * - * Revision 2.7 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.6 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.5 2003/05/27 18:58:42 gul - * Minor fix in parsing quoted words - * - * Revision 2.4 2003/04/07 18:24:54 gul - * Move functions declaration to header-file - * - * Revision 2.3 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.2 2003/03/01 18:06:45 gul - * Add include - * - * Revision 2.1 2003/01/29 19:32:03 gul - * Code cleanup, prevent segfault on bad config - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * - */ #include #include #include diff --git a/getw.h b/getw.h index 5122f86e..805c46d0 100644 --- a/getw.h +++ b/getw.h @@ -2,21 +2,6 @@ * getwordx public domain library v.2.0 * (c) 1995,1996,1997 */ -/* - * $Id$ - * - * $Log$ - * Revision 2.2 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.1 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * - */ /* * Supported flags: diff --git a/https.c b/https.c index 378c3d55..05f98b06 100644 --- a/https.c +++ b/https.c @@ -11,114 +11,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.29 2014/12/14 17:48:18 gul - * Fixed outgoing connects via proxy - * - * Revision 2.28 2014/08/09 17:08:09 gul - * Fixed outbount port number when using socks4 - * - * Revision 2.27 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.26 2012/01/08 14:09:04 green - * Corrected initialization of getaddrinfo hints - * - * Revision 2.25 2012/01/07 16:34:00 green - * Add error id where gai_strerror() is used - * - * Revision 2.24 2012/01/07 11:54:04 green - * Fix MSVC6 compilation errors - * - * Revision 2.23 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.22 2012/01/03 17:25:31 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.21 2005/09/23 14:08:50 gul - * Change sprintf() to snprintf() in https and ntlm code. - * - * Revision 2.20 2005/09/23 13:32:46 gul - * Bugfix in work via proxy with authorization - * - * Revision 2.19 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.18 2003/09/05 08:33:58 gul - * Fix work with proxy under OS/2 - * - * Revision 2.17 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.16 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.15 2003/04/28 09:46:58 gul - * Bugfix: free() changes TCPERRNO - * - * Revision 2.14 2003/04/28 07:30:16 gul - * Bugfix: Log() changes TCPERRNO - * - * Revision 2.13 2003/03/26 10:44:40 gul - * Code cleanup - * - * Revision 2.12 2003/03/25 21:09:04 gul - * Memory leak - * - * Revision 2.11 2003/03/10 17:24:28 gul - * Fixed signed/unsigned char conversions - * - * Revision 2.10 2003/03/05 13:21:50 gul - * Fix warnings - * - * Revision 2.9 2003/03/01 18:16:04 gul - * Use HAVE_SYS_TIME_H macro - * - * Revision 2.8 2003/02/28 08:53:38 gul - * Fixed proxy usage - * - * Revision 2.7 2003/02/22 19:29:40 gul - * Fix typo - * - * Revision 2.6 2003/02/22 17:49:16 gul - * Fix compilation error - * - * Revision 2.5 2003/02/22 12:12:33 gul - * Cleanup sources - * - * Revision 2.4 2003/02/22 11:45:41 gul - * Do not resolve hosts if proxy or socks5 using - * - * Revision 2.3 2001/09/14 07:24:20 gul - * bindaddr works on outgoing connections now - * - * Revision 2.2 2001/07/28 17:26:26 gul - * Avoid compiler warnings - * - * Revision 2.1 2001/06/19 15:49:13 da - * *** empty log message *** - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * - */ #include #include diff --git a/https.h b/https.h index 6558d72e..2edb5723 100644 --- a/https.h +++ b/https.h @@ -11,33 +11,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.5 2014/12/14 17:48:19 gul - * Fixed outgoing connects via proxy - * - * Revision 2.4 2005/09/23 13:32:46 gul - * Bugfix in work via proxy with authorization - * - * Revision 2.3 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/03/01 18:16:04 gul - * Use HAVE_SYS_TIME_H macro - * - * Revision 2.1 2003/02/22 11:45:41 gul - * Do not resolve hosts if proxy or socks5 using - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * - */ int h_connect(int socket, const char *host, const char *port, BINKD_CONFIG *config, const char *proxy, const char *socks); diff --git a/inbound.c b/inbound.c index 1c9ebfbb..3e65613c 100644 --- a/inbound.c +++ b/inbound.c @@ -11,203 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.52 2014/02/02 07:12:32 gul - * Fix generate unique name for inbound file (broken in 1.1a-24) - * - * Revision 2.51 2014/01/06 13:53:17 gul - * Change inbound file mode 0755 to 0666 - * - * Revision 2.50 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.49 2013/02/04 11:36:21 gul - * Fix in prev patch - * - * Revision 2.48 2013/02/03 21:37:44 gul - * New option "rename-style [postfix|extension]" - * - * Revision 2.47 2013/01/24 17:36:53 gul - * Compilation on unix - * - * Revision 2.46 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.45 2009/06/12 17:42:56 gul - * close .hr - * - * Revision 2.44 2008/11/25 09:35:26 gul - * Segfault if garbage in *.hr - * - * Revision 2.43 2008/08/05 06:05:16 gul - * Optimize srif functions params - * - * Revision 2.42 2008/01/14 20:45:43 gul - * Workaroud bug of earlyer binkd versions with partial files and not NR-mode - * - * Revision 2.41 2006/05/22 19:04:30 stas - * Fix deletion fault .hr/.dt pair. Bugreport from Alexey Fayans 2:5030/1997 - * - * Revision 2.40 2005/11/09 14:13:57 stas - * Remove empty old .hr files - * - * Revision 2.39 2005/11/08 13:58:26 gul - * Fixed logic in condition in previous patch - * - * Revision 2.38 2005/11/08 13:35:23 gul - * Remove old .hr files without .dt from temp-inbound - * - * Revision 2.37 2005/11/06 18:42:58 stas - * Fix warning about signed/unsigned compare - * - * Revision 2.36 2005/08/08 10:12:04 val - * fix segfault when a remote doesn't provide an address but sends a file - * (bug reported by andrew clarke) - * - * Revision 2.35 2005/07/04 18:24:43 gul - * Move events checking and running to inb_test() for reducing repeated code; - * do not run immediate events twice; - * fixed argus-style freqs (not tested). - * - * Revision 2.34 2004/10/29 11:16:33 gul - * Fixed bug with check required free space if off_t is signed long - * and getfree() returns ULONG_MAX. - * - * Revision 2.33 2004/10/19 16:28:18 gul - * Do not remove complete received but not renamed partial files - * for prevent data loss in ND-mode. - * Remove all partial files for node after successfull session. - * - * Revision 2.32 2004/08/04 11:32:29 gul - * Attemp to support large files (>4G) - * - * Revision 2.31 2004/01/08 13:07:40 val - * use new pkt header parsing function in check-pkthdr, remove older function - * - * Revision 2.30 2004/01/08 13:03:51 val - * * new functions for parsing and updating addresses in pkt header (raw, char*) - * * use these functions in shared aka logic - * * set password in pkt to the pkt password for the main aka of sharing node - * * config file description updated - * - * Revision 2.29 2004/01/08 12:57:18 val - * * parse up to 3 comma-separated passwords (in,pkt,out) - * * use out password for outgoing sessions if it's set - * - * Revision 2.28 2004/01/02 15:31:30 stas - * Fix the minfree token usage and fix getfree() on Win >w95 - * - * Revision 2.27 2003/12/26 21:12:06 gul - * Change unixtime and file length/offset to unsigned in protocol messages - * - * Revision 2.26 2003/12/05 23:39:36 gul - * Bugfix on inb_done() with ND-mode - * - * Revision 2.25 2003/10/30 10:57:46 gul - * Change inb_done arguments, optimize a bit - * - * Revision 2.24 2003/10/30 10:36:59 gul - * Do not append file partially received from busy remote aka, - * non-destructive skip it. - * - * Revision 2.23 2003/10/29 21:08:38 gul - * Change include-files structure, relax dependences - * - * Revision 2.22 2003/08/28 07:35:54 gul - * Cosmetics in log - * - * Revision 2.21 2003/08/26 22:18:48 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.20 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.19 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.18 2003/08/25 18:25:34 gul - * Remove partial if received part more then total size - * - * Revision 2.17 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.16 2003/07/07 08:38:18 val - * safe pkthdr-reading function (to byte order and struct alignment) - * - * Revision 2.15 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.14 2003/06/12 08:30:57 val - * check pkt header feature, see keyword 'check-pkthdr' - * - * Revision 2.13 2003/06/10 07:43:35 gul - * sdelete() - reliable delete file (wait for lock) - * - * Revision 2.12 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.11 2003/03/05 13:21:50 gul - * Fix warnings - * - * Revision 2.10 2003/03/01 18:29:52 gul - * Change size_t to off_t for file sizes and offsets - * - * Revision 2.9 2003/03/01 15:00:16 gul - * Join skipmask and overwrite into common maskchain - * - * Revision 2.8 2003/02/27 15:37:19 gul - * Bugfix in disk free space check - * - * Revision 2.7 2002/11/22 14:40:42 gul - * Check free space on inbox if defined - * - * Revision 2.6 2002/10/03 10:23:26 gul - * Check fprintf() & fclose() retcodes - * - * Revision 2.5 2002/07/22 19:38:23 gul - * overwrite minor fix - * - * Revision 2.4 2002/07/21 10:35:44 gul - * overwrite option - * - * Revision 2.3 2002/05/06 19:25:39 gul - * new keyword inboundCase in config - * - * Revision 2.2 2001/10/23 08:33:44 gul - * Change filename (not ext) in incoming *.req if already exists - * - * Revision 2.1 2001/04/23 07:58:57 gul - * getfree() on large drives fixed - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.10 1997/10/23 04:03:07 mff - * minor fixes - * - * Revision 1.9 1997/05/17 08:42:35 mff - * Added realname param to inb_test() - * - * Revision 1.8 1997/03/15 05:08:17 mff - * utime() replaced with touch() - * - * Revision 1.7 1997/03/09 07:19:37 mff - * Fixed bugs with `#' in filenames and incorrect killing of - * partial packets - * - * Revision 1.6 1997/02/13 07:08:39 mff - * Support for fileboxes - * - * Revision 1.5 1997/02/07 07:03:16 mff - * Added more paranoia - */ - #include #include #include diff --git a/inbound.h b/inbound.h index 22f73507..082bb6e6 100644 --- a/inbound.h +++ b/inbound.h @@ -1,50 +1,3 @@ -/* - * $Id$ - * - * $Log$ - * Revision 2.10 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.9 2013/02/03 21:37:44 gul - * New option "rename-style [postfix|extension]" - * - * Revision 2.8 2005/07/04 18:24:43 gul - * Move events checking and running to inb_test() for reducing repeated code; - * do not run immediate events twice; - * fixed argus-style freqs (not tested). - * - * Revision 2.7 2004/10/19 16:28:19 gul - * Do not remove complete received but not renamed partial files - * for prevent data loss in ND-mode. - * Remove all partial files for node after successfull session. - * - * Revision 2.6 2003/10/30 10:57:46 gul - * Change inb_done arguments, optimize a bit - * - * Revision 2.5 2003/10/30 10:36:59 gul - * Do not append file partially received from busy remote aka, - * non-destructive skip it. - * - * Revision 2.4 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.3 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.2 2003/03/01 18:29:52 gul - * Change size_t to off_t for file sizes and offsets - * - * Revision 2.1 2002/11/22 14:40:42 gul - * Check free space on inbox if defined - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * - */ #ifndef _inbound_h #define _inbound_h diff --git a/iphdr.h b/iphdr.h index b40de68a..5617b45e 100644 --- a/iphdr.h +++ b/iphdr.h @@ -11,114 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.27 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.26 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.25 2012/09/20 12:16:53 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.24 2012/01/25 21:02:43 green - * Some changes to enable compilation on OS/2 with GCC/kLIBC - * - * Revision 2.23 2012/01/08 17:34:57 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.22 2012/01/08 16:23:52 green - * Fixed compilation in Cygwin/MinGW - * - * Revision 2.21 2012/01/08 13:21:19 green - * Ensure sufficiently long MAXHOSTNAMELEN - * - * Revision 2.20 2012/01/07 23:38:45 green - * Improved getnameinfo handling, retry without name resolution - * - * Revision 2.19 2012/01/06 07:23:47 gul - * Fix resolv.h check under FreeBSD; cosmetics - * - * Revision 2.18 2012/01/03 17:25:31 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.17 2004/07/12 08:21:20 stas - * Fix the file name case. Bugreport from Andrey Slusar 2:467/126 - * - * Revision 2.16 2003/10/06 17:16:47 stas - * (Cosmetics) Rename tcperr() to w32err() for win32/win9x versions - * - * Revision 2.15 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.14 2003/08/24 18:54:30 gul - * Bugfix in timeout check on win32 - * - * Revision 2.13 2003/08/24 00:45:44 hbrew - * win9x-select-workaround fix, thanks to Pavel Gulchouck - * - * Revision 2.12 2003/07/18 10:30:33 stas - * New functions: IsNT(), Is9x(); small code cleanup - * - * Revision 2.11 2003/06/11 09:00:43 stas - * Don't try to install/uninstall/control service on incompatible OS. Thanks to Alexander Reznikov - * - * Revision 2.10 2003/06/04 10:36:58 stas - * Thread-safety tcperr() implementation on Win32 - * - * Revision 2.9 2003/03/30 10:14:40 gul - * Use HAVE_SOCKLEN_T macro - * - * Revision 2.8 2003/03/26 13:53:28 gul - * Fix OS/2 compilation - * - * Revision 2.7 2003/03/11 09:21:30 gul - * Fixed OS/2 Watcom compilation - * - * Revision 2.6 2003/03/11 00:04:25 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.5 2003/03/10 18:16:10 gul - * Define socklen_t for win32 - * - * Revision 2.4 2003/03/10 12:16:53 gul - * Use HAVE_DOS_H macro - * - * Revision 2.3 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.2 2003/03/01 18:37:08 gul - * Use HAVE_SYS_PARAM_H macro - * - * Revision 2.1 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.4 1997/10/23 04:02:31 mff - * many, many changes (forget to ci a version or two) - * - * Revision 1.2 1996/12/07 11:42:18 mff - * soclose() for NT was defined as close(). Fixed. - * - * - */ #ifndef _iphdrs_h #define _iphdrs_h diff --git a/iptools.c b/iptools.c index e4354b87..be1def9e 100644 --- a/iptools.c +++ b/iptools.c @@ -11,99 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.21 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.20 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.19 2012/01/22 00:19:47 green - * Post lookup without host requires AI_PASSIVE - * - * Revision 2.18 2012/01/08 14:09:04 green - * Corrected initialization of getaddrinfo hints - * - * Revision 2.17 2012/01/07 11:54:04 green - * Fix MSVC6 compilation errors - * - * Revision 2.16 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.15 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.14 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.13 2003/10/07 17:57:09 gul - * Some small changes in close threads function. - * Inhibit errors "socket operation on non-socket" on break. - * - * Revision 2.12 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.11 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.10 2003/05/26 20:37:59 gul - * typo in previous patch - * - * Revision 2.9 2003/05/26 20:34:38 gul - * Bugfix on resolving raw IP when HAVE_FORK - * - * Revision 2.8 2003/05/04 08:45:30 gul - * Lock semaphores more safely for resolve and IP-addr print - * - * Revision 2.7 2003/03/26 12:59:16 gul - * Fix previous patch - * - * Revision 2.6 2003/03/26 10:44:40 gul - * Code cleanup - * - * Revision 2.5 2003/03/25 20:37:46 gul - * free_hostent() function - * - * Revision 2.4 2003/03/01 18:46:05 gul - * Use HAVE_SYS_IOCTL_H macro - * - * Revision 2.3 2003/02/28 08:53:38 gul - * Fixed proxy usage - * - * Revision 2.2 2003/02/22 12:12:33 gul - * Cleanup sources - * - * Revision 2.1 2003/02/22 11:45:41 gul - * Do not resolve hosts if proxy or socks5 using - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.3 1998/06/19 05:19:33 mff - * changes in get_hostname() - * - * Revision 1.2 1997/10/23 04:01:29 mff - * +find_port(), minor changes for Amiga port - * - * Revision 1.1 1997/03/28 06:52:14 mff - * Initial revision - */ - #include #include #include diff --git a/iptools.h b/iptools.h index 6d5fb948..c8eaedf2 100644 --- a/iptools.h +++ b/iptools.h @@ -11,60 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.9 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.8 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.7 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.6 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.5 2003/03/26 10:44:40 gul - * Code cleanup - * - * Revision 2.4 2003/03/25 21:09:04 gul - * Memory leak - * - * Revision 2.3 2003/03/25 20:37:46 gul - * free_hostent() function - * - * Revision 2.2 2003/02/28 08:53:38 gul - * Fixed proxy usage - * - * Revision 2.1 2003/02/22 11:45:41 gul - * Do not resolve hosts if proxy or socks5 using - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.2 1997/10/23 04:00:57 mff - * +find_port() - * - * Revision 1.1 1997/03/28 06:52:14 mff - * Initial revision - * - */ - /* * Sets non-blocking mode for a given socket */ diff --git a/md5b.c b/md5b.c index 81ded49d..d33906b1 100644 --- a/md5b.c +++ b/md5b.c @@ -23,51 +23,6 @@ These notices must be retained in any copies of any part of this documentation and/or software. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.12 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.11 2012/01/07 16:22:26 green - * Fix some compiler warnings - * - * Revision 2.10 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.9 2004/10/18 10:29:29 gul - * Bugfix in MD_getChallenge(), thanks to Victor Levenets - * - * Revision 2.8 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.7 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.6 2003/03/11 09:21:30 gul - * Fixed OS/2 Watcom compilation - * - * Revision 2.5 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.4 2003/03/05 13:21:50 gul - * Fix warnings - * - * Revision 2.3 2003/03/02 08:08:49 gul - * Added CVS ID and Revision - * - */ - #include #include #include diff --git a/md5b.h b/md5b.h index 9cc31e87..0c1de6ab 100644 --- a/md5b.h +++ b/md5b.h @@ -23,30 +23,6 @@ These notices must be retained in any copies of any part of this documentation and/or software. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.5 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.4 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.3 2003/03/05 13:21:50 gul - * Fix warnings - * - * Revision 2.2 2003/03/02 08:08:49 gul - * Added CVS ID and Revision - * - */ - /* ------------------------------------------------------------------ */ /* GLOBAL.H - RSAREF types and constants */ diff --git a/nt/TCPErr.c b/nt/TCPErr.c index f29f1457..3ca091a1 100644 --- a/nt/TCPErr.c +++ b/nt/TCPErr.c @@ -15,87 +15,6 @@ /* the License, or (at your option) any later version. See COPYING. */ /*--------------------------------------------------------------------*/ -/*--------------------------------------------------------------------*/ -/* RCS Information */ -/*--------------------------------------------------------------------*/ - -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.17 2014/08/13 20:50:55 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.16 2012/01/03 17:25:35 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.15 2004/10/15 10:24:07 stas - * binkd/win32/win95: Add "W32 API error" string into system error messages - * - * Revision 2.14 2003/10/06 17:16:47 stas - * (Cosmetics) Rename tcperr() to w32err() for win32/win9x versions - * - * Revision 2.13 2003/08/05 05:36:14 hbrew - * 'static const char rcsid[]' removed - * - * Revision 2.12 2003/07/18 10:30:34 stas - * New functions: IsNT(), Is9x(); small code cleanup - * - * Revision 2.11 2003/06/21 07:58:01 gul - * Fix typo in error report string - * - * Revision 2.10 2003/06/11 09:00:44 stas - * Don't try to install/uninstall/control service on incompatible OS. Thanks to Alexander Reznikov - * - * Revision 2.9 2003/06/05 11:40:19 stas - * Cosmetics - * - * Revision 2.8 2003/06/05 11:16:56 stas - * Fix warning; More accuracy errors strings list maintnance - * - * Revision 2.7 2003/06/04 10:36:59 stas - * Thread-safety tcperr() implementation on Win32 - * - * Revision 2.6 2003/05/25 12:52:35 stas - * Replace CR and LF with spaces in system error messages - * - * Revision 2.5 2003/05/23 17:54:08 stas - * Display default text at unknown win32 error - * - * Revision 2.4 2003/05/23 09:11:13 stas - * Improve diagnostic: print Win32API error message on unknown error - * - * Revision 2.3 2003/05/23 07:55:23 stas - * Update error messages, add comments with messages published in MSDN - * - * Revision 2.2 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.1 2003/02/13 19:44:44 gul - * Change \r\n -> \n - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * Revision 0.02 1996/12/15 18:58:09 ufm - * Fixed bug with wrong IP Errors numeration. - * For sample, Error "Connection refused" (61) says as - * "Too many levels of symbolic links" (62) - * - * Revision 0.01 1996/12/03 12:15:15 ufm - * First revision - * - */ - /*--------------------------------------------------------------------*/ /* System include files */ /*--------------------------------------------------------------------*/ diff --git a/nt/WSock.c b/nt/WSock.c index d0930849..b9b8ab7d 100644 --- a/nt/WSock.c +++ b/nt/WSock.c @@ -15,44 +15,6 @@ /* the License, or (at your option) any later version. See COPYING. */ /*--------------------------------------------------------------------*/ -/*--------------------------------------------------------------------*/ -/* RCS Information */ -/*--------------------------------------------------------------------*/ - -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.5 2014/08/13 20:50:55 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.4 2012/01/03 17:25:35 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.3 2003/08/26 22:18:49 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.2 2003/08/05 05:36:14 hbrew - * 'static const char rcsid[]' removed - * - * Revision 2.1 2003/02/13 19:44:45 gul - * Change \r\n -> \n - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * Revision 0.01 1996/12/03 10:57:05 ufm - * First revision - * - */ - /*--------------------------------------------------------------------*/ /* System include files */ /*--------------------------------------------------------------------*/ diff --git a/nt/WSock.h b/nt/WSock.h index cc721c1c..b4ad00b6 100644 --- a/nt/WSock.h +++ b/nt/WSock.h @@ -7,18 +7,6 @@ /* */ /* Definition file. */ /*--------------------------------------------------------------------*/ -/* - * $Id$ - * - * $Log$ - * Revision 2.1 2003/02/13 19:44:45 gul - * Change \r\n -> \n - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #ifndef __WSOCK_H__ #define __WSOCK_H__ diff --git a/nt/binkdres.rc b/nt/binkdres.rc index a90e7ac0..bbb8902a 100644 --- a/nt/binkdres.rc +++ b/nt/binkdres.rc @@ -11,44 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 1.10 2006/10/19 09:55:47 stas - * Update copyrigth year - * - * Revision 1.9 2005/01/30 10:24:34 hbrew - * Update copyright - * - * Revision 1.8 2004/03/29 16:26:00 stas - * use different icons for window and for systray - * - * Revision 1.7 2004/01/19 08:51:35 hbrew - * Change icon ID to 1 - * - * Revision 1.6 2004/01/02 04:22:53 stas - * Add icon (16x16 and 32x32) - * - * Revision 1.5 2003/11/04 02:36:42 hbrew - * Fix copyright sign - * - * Revision 1.4 2003/11/04 00:46:22 hbrew - * confopt added. - * - * Revision 1.3 2003/10/24 18:18:40 stas - * use macro instead number; remove unused comparision - * - * Revision 1.2 2003/10/21 08:35:06 hbrew - * Cosmetics - * - * Revision 1.1 2003/10/21 08:14:32 hbrew - * Win32 version/icon support - * - * - */ - #include #include "../Config.h" #include "../confopt.h" diff --git a/nt/breaksig.c b/nt/breaksig.c index 5553b32e..2e851f83 100644 --- a/nt/breaksig.c +++ b/nt/breaksig.c @@ -15,109 +15,6 @@ /* the License, or (at your option) any later version. See COPYING. */ /*--------------------------------------------------------------------*/ -/*--------------------------------------------------------------------*/ -/* RCS Information */ -/*--------------------------------------------------------------------*/ - -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.25 2014/08/13 20:50:55 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.24 2012/01/03 17:25:35 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.23 2004/02/07 14:06:06 hbrew - * Macros: RTLDLL-->RTLSTATIC, BINKDW9X-->BINKD9X - * - * Revision 2.22 2003/10/23 21:38:52 gul - * Remove C++ style comments - * - * Revision 2.21 2003/10/17 04:20:29 hbrew - * Fix binkd9x atexit() - * - * Revision 2.20 2003/10/13 08:48:10 stas - * Implement true NT service stop sequence - * - * Revision 2.19 2003/10/11 17:31:27 stas - * cosmetics (indent nt/breaksig.c) - * - * Revision 2.18 2003/10/09 09:41:07 stas - * Change service stop sequence - * - * Revision 2.17 2003/10/08 11:10:49 stas - * remove illegal call - * - * Revision 2.16 2003/10/08 05:48:57 stas - * Fix w9x compilation - * - * Revision 2.15 2003/10/07 14:41:04 stas - * Fix NT service shutdown - * - * Revision 2.14 2003/10/06 18:59:58 stas - * Prevent double calls of ReportStatusToSCMgr(SERVICE_STOPPED,...) and double restart service - * - * Revision 2.13 2003/10/06 17:53:15 stas - * (Prevent compiler warning.) Remove type convertion at CreateWin9xThread() call - * - * Revision 2.11 2003/10/05 07:37:47 stas - * Fix NT service exit (don't hang service on receive CTRL_SERVICESTOP_EVENT) - * - * Revision 2.10 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.9 2003/08/24 18:05:59 hbrew - * Update for previous patch - * - * Revision 2.8 2003/08/24 17:28:31 hbrew - * Fix work with sighandler on win32 - * - * Revision 2.7 2003/08/19 18:08:08 gul - * Avoid double exitfunc() call - * - * Revision 2.6 2003/08/05 05:36:14 hbrew - * 'static const char rcsid[]' removed - * - * Revision 2.5 2003/07/16 15:08:49 stas - * Fix NT services to use getopt(). Improve logging for service - * - * Revision 2.4 2003/03/10 18:19:51 gul - * Use common.h - * - * Revision 2.3 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.2 2002/11/12 16:55:59 gul - * Run as service under win9x - * - * Revision 2.1 2001/09/24 10:31:39 gul - * Build under mingw32 - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * Revision 1.02 1997/05/25 19:15:45 ufm - * Add binary log support - * - * Revision 1.01 1996/12/11 22:40:05 ufm - * First revision - * - */ - /*--------------------------------------------------------------------*/ /* System include files */ /*--------------------------------------------------------------------*/ diff --git a/nt/dirwin32.c b/nt/dirwin32.c index 4b50ce6e..b1389ec0 100644 --- a/nt/dirwin32.c +++ b/nt/dirwin32.c @@ -10,32 +10,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.4 2013/11/07 16:21:34 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.3 2013/10/23 19:21:58 stream - * Fix incorrect type and crash on Win64 - * - * Revision 2.2 2004/01/08 13:27:49 val - * * extend struct dirent for dos and win32 in order to get file attribute - * * ignore hidden files in boxes for dos/win32/os2 - * * if we can differ files from directories w/o stat(), don't call stat() - * when scanning boxes (unix: freebsd) - * * if we can't unlink file, don't send it again in the same session - * * for dos/win32/os2 try to clear read/only attribute if can't unlink file - * - * Revision 2.1 2003/03/22 08:59:58 gul - * opendir() return NULL if directori does not exist - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #include #include diff --git a/nt/dirwin32.h b/nt/dirwin32.h index 579a5fee..7f39b843 100644 --- a/nt/dirwin32.h +++ b/nt/dirwin32.h @@ -10,37 +10,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.5 2013/10/23 19:21:58 stream - * Fix incorrect type and crash on Win64 - * - * Revision 2.4 2004/01/08 13:27:49 val - * * extend struct dirent for dos and win32 in order to get file attribute - * * ignore hidden files in boxes for dos/win32/os2 - * * if we can differ files from directories w/o stat(), don't call stat() - * when scanning boxes (unix: freebsd) - * * if we can't unlink file, don't send it again in the same session - * * for dos/win32/os2 try to clear read/only attribute if can't unlink file - * - * Revision 2.3 2003/03/22 08:59:58 gul - * opendir() return NULL if directori does not exist - * - * Revision 2.2 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.1 2003/02/13 19:44:45 gul - * Change \r\n -> \n - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #ifdef VISUALCPP diff --git a/nt/getfree.c b/nt/getfree.c index 0dd39b25..fe8aba02 100644 --- a/nt/getfree.c +++ b/nt/getfree.c @@ -15,70 +15,6 @@ /* the License, or (at your option) any later version. See COPYING. */ /*--------------------------------------------------------------------*/ -/*--------------------------------------------------------------------*/ -/* RCS Information */ -/*--------------------------------------------------------------------*/ - -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.13 2014/08/13 20:50:55 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.12 2012/01/03 17:25:35 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.11 2004/11/02 13:23:18 stas - * More fix getfree() (win32) - * - * Revision 2.10 2004/10/29 13:05:05 stas - * Add diagnostic about free space great 4Tb (win32 only) - * - * Revision 2.9 2004/01/02 15:31:30 stas - * Fix the minfree token usage and fix getfree() on Win >w95 - * - * Revision 2.8 2004/01/02 04:05:30 stas - * Fix warning (type convertion) - * - * Revision 2.7 2003/12/31 10:06:05 stas - * Fix getfree for very large disks and for mounted partitions - * - * Revision 2.6 2003/08/26 22:18:49 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.5 2003/08/05 05:36:14 hbrew - * 'static const char rcsid[]' removed - * - * Revision 2.4 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.3 2001/09/24 10:31:39 gul - * Build under mingw32 - * - * Revision 2.2 2001/04/25 20:07:36 gul - * bugfix - * - * Revision 2.1 2001/04/23 07:58:57 gul - * getfree() on large drives fixed - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * Revision 0.01 1997/01/08 09:00:25 ufm - * First revision - * - */ - /*--------------------------------------------------------------------*/ /* System include files */ /*--------------------------------------------------------------------*/ diff --git a/nt/sem.c b/nt/sem.c index da3d089b..64d60829 100644 --- a/nt/sem.c +++ b/nt/sem.c @@ -15,65 +15,6 @@ /* the License, or (at your option) any later version. See COPYING. */ /*--------------------------------------------------------------------*/ -/*--------------------------------------------------------------------*/ -/* RCS Information */ -/*--------------------------------------------------------------------*/ - -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.10 2014/08/13 20:50:55 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.9 2012/01/03 17:25:35 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.8 2003/08/26 22:18:49 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.7 2003/08/05 05:36:14 hbrew - * 'static const char rcsid[]' removed - * - * Revision 2.6 2003/03/31 22:11:34 gul - * Fixed semaphores usage - * - * Revision 2.5 2003/03/31 21:49:01 gul - * Avoid infinite recursion - * - * Revision 2.4 2003/03/31 19:56:11 gul - * minor fix in close semaphores functions - * - * Revision 2.3 2003/03/31 19:35:17 gul - * Clean semaphores usage - * - * Revision 2.2 2003/03/11 11:42:23 gul - * Use event semaphores for exit threads - * - * Revision 2.1 2003/02/13 19:44:45 gul - * Change \r\n -> \n - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * Revision 1.2 1996/12/06 19:24:37 ufm - * Revriting from "Semaphore" to "Mutex" object - * - * Revision 1.1 1996/12/05 03:37:50 mff - * Support for multiple semaphores - * - * Revision 0.01 1996/12/04 14:52:58 ufm - * First revision - * - */ - /*--------------------------------------------------------------------*/ /* System include files */ /*--------------------------------------------------------------------*/ diff --git a/nt/service.c b/nt/service.c index 03267a22..f7646216 100644 --- a/nt/service.c +++ b/nt/service.c @@ -14,210 +14,6 @@ Jeffrey Richter. "Manipulate Windows NT Services by Writing a Service Control Program" */ -/* - * $Id$ - * - * $Log$ - * Revision 2.59 2014/08/13 20:50:55 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.58 2013/11/08 12:02:16 stream - * Fix order of dependent includes - * - * Revision 2.57 2012/01/24 17:06:05 gul - * Remove third arg in binkd_main() call - * - * Revision 2.56 2012/01/03 17:25:35 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.55 2006/12/19 14:11:02 stas - * Minimize required access rights to operate with Windows NT/2000/XP/2003 services - * - * Revision 2.54 2006/10/25 09:49:03 stas - * Minimize required rigths for Windows NT/2000/XP/2003 service process. - * - * Revision 2.53 2006/10/25 09:04:53 stas - * Change requirements of access rigths for service in Windows 2000. - * - * Revision 2.52 2004/01/24 01:07:01 hbrew - * Fix warning - * - * Revision 2.51 2004/01/04 16:55:00 stas - * Move declarations of the 'binkd_main' into one place (nt/w32tools.h) - * - * Revision 2.50 2004/01/04 15:19:36 stas - * Use Service Display Name to display (log, windows title) - * - * Revision 2.49 2004/01/03 19:26:12 stas - * Decrease delay for service operations - * - * Revision 2.48 2004/01/03 18:39:28 stas - * Improve service identification - * - * Revision 2.47 2004/01/03 15:46:09 stas - * Fix: do not load icon into service control window at binkd service starts - * - * Revision 2.46 2004/01/03 15:38:50 stas - * Implement service control option for Windows NT/2k/XP - * - * Revision 2.45 2004/01/02 18:02:39 stas - * Small code change to simplification - * - * Revision 2.44 2003/10/29 06:44:34 stas - * Remove unused header file - * - * Revision 2.43 2003/10/29 06:41:24 stas - * Remove unused types; small optimizes code - * - * Revision 2.42 2003/10/28 20:20:10 stas - * Rewrite NT service code, remove obsoleted code and add some checks. Found a thread-not-safety problem. - * - * Revision 2.41 2003/10/24 18:18:40 stas - * use macro instead number; remove unused comparision - * - * Revision 2.40 2003/10/18 18:53:50 stas - * remove unused variable - * - * Revision 2.39 2003/10/18 18:50:48 stas - * Move to new 'tray.c' file several functions when is related with 'minimize to tray' feature - * - * Revision 2.38 2003/10/18 06:45:23 stas - * Fix a semaphore usage in exitfunc() - * - * Revision 2.37 2003/10/14 15:34:40 stas - * Fix MS Visual C build - * - * Revision 2.36 2003/10/13 08:48:10 stas - * Implement true NT service stop sequence - * - * Revision 2.35 2003/10/10 05:30:17 stas - * Initialize variable (fix) - * - * Revision 2.34 2003/10/09 17:26:15 stas - * Unload icon after use (if loaded from file) - * - * Revision 2.33 2003/10/09 17:14:01 stas - * Load tray icon from file "binkd.ico" - * - * Revision 2.32 2003/10/09 09:41:07 stas - * Change service stop sequence - * - * Revision 2.31 2003/10/07 18:03:18 stas - * Fix error with MS VC. Thanks to Serguei Trouchelle - * - * Revision 2.30 2003/10/07 14:41:04 stas - * Fix NT service shutdown - * - * Revision 2.29 2003/10/06 18:59:58 stas - * Prevent double calls of ReportStatusToSCMgr(SERVICE_STOPPED,...) and double restart service - * - * Revision 2.28 2003/10/06 17:42:27 stas - * (Prevent compiler warning.) Remove type convertion at SetConsoleCtrlHandler() call - * - * Revision 2.27 2003/10/06 17:16:47 stas - * (Cosmetics) Rename tcperr() to w32err() for win32/win9x versions - * - * Revision 2.26 2003/10/06 17:03:38 stas - * Fix logic of checkservice() - * - * Revision 2.24 2003/10/06 16:54:51 stas - * (Prevent warnings.) Prepare to implement full service control - * - * Revision 2.23 2003/10/06 16:47:28 stas - * Use enumeration in parameter and return values of service_main() - * - * Revision 2.22 2003/10/05 10:01:15 stas - * Remove unused code - * - * Revision 2.21 2003/10/05 09:37:43 stas - * Optimize binkd/nt start: use hack to determine if we're running as a service without waiting for the service control manager to fail - * - * Revision 2.20 2003/10/05 07:37:47 stas - * Fix NT service exit (don't hang service on receive CTRL_SERVICESTOP_EVENT) - * - * Revision 2.19 2003/10/05 04:59:11 stas - * Fix service handler function definition; get service name from OS - * - * Revision 2.18 2003/08/26 22:18:49 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.17 2003/08/21 15:40:34 gul - * Change building commandline for service under win32 - * (patch by Alexander Reznikov) - * - * Revision 2.16 2003/07/19 06:59:35 hbrew - * Complex patch: - * * nt/w32tools.c: Fix warnings - * * nt/w32tools.c: Fix typo in #ifdef - * * nt/win9x.c: Fix type in #include - * * Config.h, sys.h, branch.c, nt/service.c, - * nt/win9x.c, : _beginthread()-->BEGINTHREAD() - * * binkd.c, common.h, mkfls/nt95-msvc/Makefile.dep, - * nt/service.c, nt/w32tools.c,nt/win9x.c: cosmitic code cleanup - * - * Revision 2.15 2003/07/18 14:56:34 stas - * Use description of win2000/XP services - * - * Revision 2.14 2003/07/18 13:44:32 stas - * Difference NT service internal name and display name - * - * Revision 2.13 2003/07/18 12:35:59 stas - * Remove old code; add some checks; use new option '--service' for win9x - * - * Revision 2.12 2003/07/18 10:30:34 stas - * New functions: IsNT(), Is9x(); small code cleanup - * - * Revision 2.11 2003/07/18 04:15:03 hbrew - * Fix 'tell_start_ntservice(): {120} ...' error on Win9x - * - * Revision 2.10 2003/07/17 02:53:04 hbrew - * Fix MSVC warnings & errors - * - * Revision 2.9 2003/07/16 15:50:44 stas - * Fix: restore "Minimise to tray" - * - * Revision 2.8 2003/07/16 15:42:53 stas - * Fix: restore -T option - * - * Revision 2.7 2003/07/16 15:08:49 stas - * Fix NT services to use getopt(). Improve logging for service - * - * Revision 2.6 2003/06/11 09:00:44 stas - * Don't try to install/uninstall/control service on incompatible OS. Thanks to Alexander Reznikov - * - * Revision 2.5 2003/06/09 18:00:19 stas - * New command line parser (continue) - * - * Revision 2.4 2003/05/15 06:51:58 gul - * Do not get 'i' and 'u' options from FTN-domain in -P option - * (patch from Stanislav Degteff). - * - * Revision 2.3 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.2 2001/09/24 10:31:39 gul - * Build under mingw32 - * - * Revision 2.1 2001/08/24 13:23:28 da - * binkd/binkd.c - * binkd/readcfg.c - * binkd/readcfg.h - * binkd/server.c - * binkd/nt/service.c - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #include #include diff --git a/nt/service.h b/nt/service.h index 19660f58..041a2a0a 100644 --- a/nt/service.h +++ b/nt/service.h @@ -10,62 +10,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.15 2006/12/19 14:11:02 stas - * Minimize required access rights to operate with Windows NT/2000/XP/2003 services - * - * Revision 2.14 2003/10/29 06:41:24 stas - * Remove unused types; small optimizes code - * - * Revision 2.13 2003/10/28 20:20:10 stas - * Rewrite NT service code, remove obsoleted code and add some checks. Found a thread-not-safety problem. - * - * Revision 2.12 2003/10/18 18:50:48 stas - * Move to new 'tray.c' file several functions when is related with 'minimize to tray' feature - * - * Revision 2.11 2003/10/18 06:45:23 stas - * Fix a semaphore usage in exitfunc() - * - * Revision 2.10 2003/10/09 09:41:07 stas - * Change service stop sequence - * - * Revision 2.9 2003/10/07 14:41:04 stas - * Fix NT service shutdown - * - * Revision 2.8 2003/10/06 16:50:22 stas - * Drop excessive numeric values of enumeration in parameter and return values of service_main() - * - * Revision 2.7 2003/10/06 16:47:28 stas - * Use enumeration in parameter and return values of service_main() - * - * Revision 2.6 2003/10/05 09:37:43 stas - * Optimize binkd/nt start: use hack to determine if we're running as a service without waiting for the service control manager to fail - * - * Revision 2.5 2003/07/18 10:30:34 stas - * New functions: IsNT(), Is9x(); small code cleanup - * - * Revision 2.4 2003/07/16 15:50:44 stas - * Fix: restore "Minimise to tray" - * - * Revision 2.3 2003/07/16 15:08:49 stas - * Fix NT services to use getopt(). Improve logging for service - * - * Revision 2.2 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.1 2003/02/13 19:44:45 gul - * Change \r\n -> \n - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #include "../sem.h" diff --git a/nt/w32tools.c b/nt/w32tools.c index f82107fc..2cde730f 100644 --- a/nt/w32tools.c +++ b/nt/w32tools.c @@ -15,68 +15,6 @@ /* the License, or (at your option) any later version. See COPYING. */ /*--------------------------------------------------------------------*/ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.21 2014/08/13 20:50:55 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.20 2012/01/03 17:25:35 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.19 2004/03/29 16:26:00 stas - * use different icons for window and for systray - * - * Revision 2.18 2004/01/19 08:51:35 hbrew - * Change icon ID to 1 - * - * Revision 2.17 2004/01/07 21:42:24 stas - * Don't export w32exitfunc() - * - * Revision 2.16 2004/01/04 16:01:10 stas - * Fix service name convertion: now Service Display Name may be content a comma - * - * Revision 2.15 2004/01/04 15:51:06 stas - * Fix service name convertion: now Service Display Name (parameter of the '-S' command line option) may be content a '\' and '/' characters - * - * Revision 2.14 2004/01/03 19:04:20 stas - * New functions: public w32Init() and hidden w32exitfunc() - * - * Revision 2.12 2004/01/03 12:17:44 stas - * Implement full icon support (winNT/2k/XP) - * - * Revision 2.11 2004/01/02 21:20:17 stas - * GetMainWindow(): function retrieves the window handle used by the main window of application - * - * Revision 2.10 2003/10/18 18:50:48 stas - * Move to new 'tray.c' file several functions when is related with 'minimize to tray' feature - * - * Revision 2.9 2003/10/18 17:02:29 stas - * Don't set '-S name' option to NT service parameters list in registry - * - * Revision 2.8 2003/10/06 17:16:47 stas - * (Cosmetics) Rename tcperr() to w32err() for win32/win9x versions - * - * Revision 2.7 2003/08/26 22:18:49 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.6 2003/08/21 15:40:34 gul - * Change building commandline for service under win32 - * (patch by Alexander Reznikov) - * - * Revision 2.5 2003/08/04 12:23:40 gul - * Add CVS tags - * - */ - #include #include "../sys.h" #include "../iphdr.h" diff --git a/nt/w32tools.h b/nt/w32tools.h index 94f8930d..296c4960 100644 --- a/nt/w32tools.h +++ b/nt/w32tools.h @@ -11,44 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.12 2012/01/23 18:10:57 gul - * Fixed declaration of binkd_main() (no 3rd param) - * - * Revision 2.11 2004/01/04 16:55:00 stas - * Move declarations of the 'binkd_main' into one place (nt/w32tools.h) - * - * Revision 2.10 2004/01/03 19:04:20 stas - * New functions: public w32Init() and hidden w32exitfunc() - * - * Revision 2.9 2004/01/03 18:14:41 stas - * Two macroses: IsNTService and Is9xService - * - * Revision 2.8 2004/01/03 12:17:44 stas - * Implement full icon support (winNT/2k/XP) - * - * Revision 2.7 2004/01/02 21:20:17 stas - * GetMainWindow(): function retrieves the window handle used by the main window of application - * - * Revision 2.6 2003/10/28 20:20:10 stas - * Rewrite NT service code, remove obsoleted code and add some checks. Found a thread-not-safety problem. - * - * Revision 2.5 2003/10/18 18:50:48 stas - * Move to new 'tray.c' file several functions when is related with 'minimize to tray' feature - * - * Revision 2.4 2003/08/21 15:40:35 gul - * Change building commandline for service under win32 - * (patch by Alexander Reznikov) - * - * Revision 2.3 2003/08/04 12:23:40 gul - * Add CVS tags - * - */ - #ifndef __W32TOOLS_H #define __W32TOOLS_H diff --git a/nt/win9x.c b/nt/win9x.c index d1b537a0..0c67563f 100644 --- a/nt/win9x.c +++ b/nt/win9x.c @@ -11,116 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.30 2014/08/18 04:32:18 gul - * Fixed binkd9x compilation - * - * Revision 2.29 2014/08/13 20:50:55 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.28 2006/02/02 18:44:06 stas - * fix mingw warnings (binkd/9x) - * - * Revision 2.27 2004/02/07 14:06:06 hbrew - * Macros: RTLDLL-->RTLSTATIC, BINKDW9X-->BINKD9X - * - * Revision 2.26 2004/01/04 16:55:00 stas - * Move declarations of the 'binkd_main' into one place (nt/w32tools.h) - * - * Revision 2.25 2003/10/06 17:53:15 stas - * (Prevent compiler warning.) Remove type convertion at CreateWin9xThread() call - * - * Revision 2.24 2003/09/11 13:04:14 hbrew - * Undo 'move binkd9x deinit to exitfunc()' patch - * - * Revision 2.23 2003/09/11 12:23:25 hbrew - * Fix 'suggest parentheses around assignment used as truth value'. - * - * Revision 2.22 2003/09/07 04:49:42 hbrew - * Remove binkd9x restart-on-config-change code; move binkd9x deinit to exitfunc() - * - * Revision 2.21 2003/09/07 04:39:16 hbrew - * Memory leak (binkd9x service startup) - * - * Revision 2.20 2003/09/07 04:37:02 hbrew - * Close process and thread handles after CreateProcess() - * - * Revision 2.19 2003/09/07 04:35:15 hbrew - * Fix old noncritical bug in binkd9x (STD_OUTPUT_HANDLE --> STD_INPUT_HANDLE) - * - * Revision 2.18 2003/08/30 16:38:55 gul - * Fix compilation warnings - * - * Revision 2.17 2003/08/21 15:40:35 gul - * Change building commandline for service under win32 - * (patch by Alexander Reznikov) - * - * Revision 2.16 2003/08/20 07:33:38 hbrew - * Addon for 'Avoid double exitfunc() call' patch - * - * Revision 2.15 2003/07/19 06:59:35 hbrew - * Complex patch: - * * nt/w32tools.c: Fix warnings - * * nt/w32tools.c: Fix typo in #ifdef - * * nt/win9x.c: Fix type in #include - * * Config.h, sys.h, branch.c, nt/service.c, - * nt/win9x.c, : _beginthread()-->BEGINTHREAD() - * * binkd.c, common.h, mkfls/nt95-msvc/Makefile.dep, - * nt/service.c, nt/w32tools.c,nt/win9x.c: cosmitic code cleanup - * - * Revision 2.14 2003/07/18 10:30:34 stas - * New functions: IsNT(), Is9x(); small code cleanup - * - * Revision 2.13 2003/07/18 07:48:57 hbrew - * binkd9x: Store current dir in registry - * - * Revision 2.12 2003/07/17 03:08:21 hbrew - * Fix uninstall of binkd9x service - * - * Revision 2.11 2003/07/17 02:41:48 hbrew - * Compability with nt/service.c & nt/win9x.c. - * Usage "--service" options as win9x "run-as-service" flag. - * - * Revision 2.10 2003/07/07 18:38:25 hbrew - * Fix gcc(mingw) warnings: - * - * getopt.c: suggest explicit braces to avoid ambiguous `else' - * nt/win9x.c: Avoid gcc warnings about non-handled enumeration values - * - * Revision 2.9 2003/07/07 10:13:54 gul - * Use getopt() for commandline parse - * - * Revision 2.8 2003/06/14 00:44:53 hbrew - * Fix binkd9x -t(--all) and -u(--all) crashes - * - * Revision 2.7 2003/06/13 03:07:16 hbrew - * Fix win9x-service crash (add NULL to new argv array) - * - * Revision 2.6 2003/06/12 00:50:09 hbrew - * Fix MSVC compilation and logging. - * - * Revision 2.5 2003/06/11 09:00:44 stas - * Don't try to install/uninstall/control service on incompatible OS. Thanks to Alexander Reznikov - * - * Revision 2.4 2003/05/10 00:30:37 hbrew - * binkd9x: -u option now support '--all' service name (uninstall all services). - * Unneeded spaces cleanup. - * - * Revision 2.3 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.2 2002/11/13 07:58:19 gul - * Add CVS macros - * - * - */ - #ifdef BINKD9X #include diff --git a/nt/win9x.h b/nt/win9x.h index 58f46c26..933a9d41 100644 --- a/nt/win9x.h +++ b/nt/win9x.h @@ -11,34 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.7 2004/02/07 14:06:07 hbrew - * Macros: RTLDLL-->RTLSTATIC, BINKDW9X-->BINKD9X - * - * Revision 2.6 2003/09/11 13:04:14 hbrew - * Undo 'move binkd9x deinit to exitfunc()' patch - * - * Revision 2.5 2003/09/07 04:49:42 hbrew - * Remove binkd9x restart-on-config-change code; move binkd9x deinit to exitfunc() - * - * Revision 2.4 2003/07/07 10:13:54 gul - * Use getopt() for commandline parse - * - * Revision 2.3 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.2 2002/11/13 07:58:19 gul - * Add CVS macros - * - * - */ - #ifndef _win9x_h #define _win9x_h #ifdef BINKD9X diff --git a/os2/dirent.c b/os2/dirent.c index 39ae6fb4..ba53d088 100644 --- a/os2/dirent.c +++ b/os2/dirent.c @@ -11,23 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.3 2003/03/26 13:53:28 gul - * Fix OS/2 compilation - * - * Revision 2.2 2003/03/11 09:21:30 gul - * Fixed OS/2 Watcom compilation - * - * Revision 2.1 2003/03/01 20:26:36 gul - * *** empty log message *** - * - * - */ - #include #include #include diff --git a/os2/dirent.h b/os2/dirent.h index e52fc148..15771987 100644 --- a/os2/dirent.h +++ b/os2/dirent.h @@ -11,25 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.4 2003/03/26 13:53:28 gul - * Fix OS/2 compilation - * - * Revision 2.3 2003/03/10 11:40:10 gul - * Use self opendir/readdir/closedir functions for watcom - * - * Revision 2.2 2003/03/01 20:31:59 gul - * dos2unix EOL - * - * Revision 2.1 2003/03/01 20:26:36 gul - * *** empty log message *** - * - */ - #ifndef __DIRENT_H__ #define __DIRENT_H__ diff --git a/os2/getfree.c b/os2/getfree.c index c9c2ad3e..45bf4925 100644 --- a/os2/getfree.c +++ b/os2/getfree.c @@ -1,19 +1,3 @@ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.2 2001/04/25 20:07:36 gul - * bugfix - * - * Revision 2.1 2001/04/23 07:58:57 gul - * getfree() on large drives fixed - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #ifdef __WATCOMC__ #define __IBMC__ 0 #define __IBMCPP__ 0 diff --git a/os2/gettid.c b/os2/gettid.c index 675bcb5f..8aaf1cbf 100644 --- a/os2/gettid.c +++ b/os2/gettid.c @@ -1,18 +1,3 @@ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.1 2003/02/28 20:39:09 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #ifdef __WATCOMC__ #define __IBMC__ 0 #define __IBMCPP__ 0 diff --git a/os2/ns_parse.h b/os2/ns_parse.h index 662f096d..a2bbd76d 100644 --- a/os2/ns_parse.h +++ b/os2/ns_parse.h @@ -21,24 +21,6 @@ * */ -/* - * $Id$ - * - * $Log$ - * Revision 1.4 2014/08/19 06:41:36 gul - * OS/2 compilation - * - * Revision 1.3 2014/08/18 16:57:55 gul - * Fixed OS/2 compilation - * - * Revision 1.2 2012/01/23 21:01:59 green - * Add FSP1035 support for EMX (using own import library) - * - * Revision 1.1 2012/01/22 01:27:20 green - * Implement FSP1035 support for OS/2/Watcom - * - */ - #ifndef __NS_PARSE_H__ #define __NS_PARSE_H__ diff --git a/os2/sem.c b/os2/sem.c index 06458306..a01d8103 100644 --- a/os2/sem.c +++ b/os2/sem.c @@ -15,44 +15,6 @@ /* the License, or (at your option) any later version. See COPYING. */ /*--------------------------------------------------------------------*/ -/*--------------------------------------------------------------------*/ -/* RCS Information */ -/*--------------------------------------------------------------------*/ - -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.6 2013/11/08 12:02:17 stream - * Fix order of dependent includes - * - * Revision 2.5 2003/08/26 22:18:49 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.4 2003/03/31 22:11:34 gul - * Fixed semaphores usage - * - * Revision 2.3 2003/03/31 19:56:12 gul - * minor fix in close semaphores functions - * - * Revision 2.2 2003/03/31 19:35:17 gul - * Clean semaphores usage - * - * Revision 2.1 2003/03/11 11:42:23 gul - * Use event semaphores for exit threads - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * Revision 1.2 1996/11/05 04:06:06 mff - * Added support for multiple semaphores - * - * Revision 0.01 1996/12/04 14:52:58 ufm - * First revision - * - */ - #include "../sys.h" #include "../readcfg.h" #include "../tools.h" diff --git a/os2/tcperr.c b/os2/tcperr.c index 2a583275..8f726c59 100644 --- a/os2/tcperr.c +++ b/os2/tcperr.c @@ -1,18 +1,3 @@ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.1 2003/02/28 20:39:09 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #include static const char *sockerrors[] = diff --git a/perlhooks.c b/perlhooks.c index 1b1148c4..64956a63 100644 --- a/perlhooks.c +++ b/perlhooks.c @@ -10,298 +10,7 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.86 2014/01/12 13:25:30 gul - * unix (linux) pthread version - * - * Revision 2.85 2013/11/08 12:02:16 stream - * Fix order of dependent includes - * - * Revision 2.84 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.83 2013/02/24 07:50:58 gul - * Fixed $ip var in perlhooks - * - * Revision 2.82 2013/02/04 12:47:12 gul - * New config option "listen" - * - * Revision 2.81 2012/09/20 12:16:53 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.80 2012/06/26 11:42:03 gul - * Leave expected password unchanged if unmodified in on_handhsake hook - * - * Revision 2.79 2012/05/13 17:26:40 gul - * Possibility to specify $passwd for session in on_handshake() perl hook - * - * Revision 2.78 2012/02/18 16:39:58 green - * perl_parse() may alter environment, though not used - * - * Revision 2.77 2012/01/26 09:47:30 gul - * Avoid usage SvPV_nolen missing in perl 5.00553 - * - * Revision 2.76 2012/01/08 17:34:57 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.75 2012/01/06 09:08:50 gul - * Fix warnings on 64-bit systems - * - * Revision 2.74 2012/01/06 07:50:34 gul - * Fix warnings - * - * Revision 2.73 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.72 2010/08/26 06:26:26 gul - * Segfault on nested on_log() perl hook, reported by The Infidel numenorbbs at gmail.com - * - * Revision 2.71 2010/05/22 08:11:30 gul - * Call after_session() hook after removing bsy - * - * Revision 2.70 2010/03/30 06:11:32 gul - * Improve logging - * - * Revision 2.69 2009/06/23 10:53:10 gul - * Perl <5.10 win32 PERLDL compatibility (no sv_free2 call) - * - * Revision 2.68 2009/06/23 06:20:29 gul - * Compilation error on win32, fixed - * - * Revision 2.67 2009/06/03 13:25:46 gul - * Fixed updating $hosts by on_hook() (broken in 1.0a-529) - * - * Revision 2.66 2009/06/03 07:50:49 gul - * $_ mistakenly set as read-only in need_reload() perl hook, fixed. - * - * Revision 2.65 2009/06/02 17:09:35 gul - * Build binkd for OS/2 with perl support - * - * Revision 2.64 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.63 2009/05/27 09:33:52 gul - * perl-var config keyword - * update $hosts by on_call() perl hook not only if it returns 2 - * - * Revision 2.62 2009/05/26 13:04:35 gul - * New perl hooks: - * need_reload() - is it needed to reload config - * config_loaded() - after successful reading config - * - * Revision 2.61 2009/05/25 17:02:07 gul - * Perl 5.10 compatibility, - * avoid warnings. - * - * Revision 2.60 2009/05/25 16:24:08 gul - * Add forgotten vars in perl hooks, - * inhibit warnings - * - * Revision 2.59 2008/01/15 12:39:03 gul - * Perl_sv_2iv_flags() - * - * Revision 2.58 2008/01/15 11:53:58 gul - * typo in perlhooks.c rev. 2.57 - * - * Revision 2.57 2008/01/15 11:10:22 gul - * Compatibility with new perl versions (Perl_sv_2uv_flags()), not tested - * - * Revision 2.56 2007/09/04 06:07:03 gul - * Memory leak - * - * Revision 2.55 2005/10/03 06:49:04 gul - * Fixed typos in previous patch - * - * Revision 2.54 2005/10/02 21:47:34 gul - * set_rlimit() perl hook - * - * Revision 2.53 2005/10/02 20:48:39 gul - * - add $traf_mail and $traf_files vars for on_call() and on_handshake() hooks; - * - optimize queue scan in perl hooks; - * - documentation for $rc var in after_session() hook. - * - * Revision 2.52 2005/09/23 12:24:33 gul - * define $hosts variable for on_call() perl hook (can be changed). - * Changes for $proxy and $socks are now local for the single outgoing call. - * - * Revision 2.51 2005/03/28 10:15:13 val - * manage proxy/socks via perl-hook on_call() - * - * Revision 2.50 2004/11/19 15:58:45 gul - * Add dynamic load function used by new errors handler - * - * Revision 2.49 2004/11/19 14:59:38 gul - * Typo in new perl errors handler - * - * Revision 2.48 2004/11/15 10:32:11 gul - * Fixed compilation multithread version with perl - * - * Revision 2.47 2004/10/18 15:22:20 gul - * Change handle perl errors method - * - * Revision 2.46 2004/08/04 13:28:59 gul - * Fix compiler warning - * - * Revision 2.45 2004/07/23 11:40:06 gul - * Fix compilation warning - * - * Revision 2.44 2004/01/08 12:57:18 val - * * parse up to 3 comma-separated passwords (in,pkt,out) - * * use out password for outgoing sessions if it's set - * - * Revision 2.43 2004/01/07 12:23:39 gul - * Remove zaccept keyword, receiving compressed files possibility - * is always on now if binkd was compiled with zlib/bzip2 support. - * - * Revision 2.42 2003/12/24 00:37:26 gul - * Fixed mingw with PERLDL compilation - * - * Revision 2.41 2003/11/19 18:07:20 gul - * Use foreach_node() for fill %node hash - * - * Revision 2.40 2003/10/30 10:57:46 gul - * Change inb_done arguments, optimize a bit - * - * Revision 2.39 2003/10/30 10:36:59 gul - * Do not append file partially received from busy remote aka, - * non-destructive skip it. - * - * Revision 2.38 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.37 2003/10/27 23:22:54 gul - * Fix OS/2 compilation - * - * Revision 2.36 2003/10/27 21:31:26 gul - * Autodetect perl version, fix warning - * - * Revision 2.35 2003/10/27 16:16:22 gul - * Fix warnings with perl58 - * - * Revision 2.34 2003/10/24 14:19:28 val - * missing OS/2 code for PERLDL improvements added - * - * Revision 2.33 2003/10/24 06:40:13 val - * PERLDL support for both Perl 5.6 and 5.8 versions - * - * Revision 2.32 2003/10/22 14:24:51 stas - * Remove obsolete defines - * - * Revision 2.31 2003/10/20 12:08:07 gul - * Minor bugfix in perl error handling under win32 - * - * Revision 2.30 2003/10/19 12:21:46 gul - * Stream compression - * - * Revision 2.29 2003/10/07 15:30:09 gul - * Fix warnings - * - * Revision 2.28 2003/10/04 00:46:53 hbrew - * Avoid warning in perl.h - * - * Revision 2.27 2003/09/24 07:32:16 val - * bzlib2 compression support, new compression keyword: zlevel - * - * Revision 2.26 2003/09/21 17:51:08 gul - * Fixed PID in logfile for perl stderr handled messages in fork version. - * - * Revision 2.25 2003/09/21 17:34:27 gul - * Change perl stderr handling for thread vertions, - * some small changes. - * - * Revision 2.24 2003/09/18 07:18:21 val - * fix to assure dll has been loaded before calling perl funcs - * - * Revision 2.23 2003/09/15 06:57:09 val - * compression support via zlib: config keywords, improvements, OS/2 code - * - * Revision 2.22 2003/09/11 08:26:11 val - * fix for Perl hooks code after steam's patch for pNodArray - * - * Revision 2.21 2003/09/08 06:36:51 val - * (a) don't call exitfunc for perlhook fork'ed process - * (b) many compilation warnings in perlhooks.c fixed - * - * Revision 2.20 2003/09/05 06:49:06 val - * Perl support restored after config reloading patch - * - * Revision 2.19 2003/08/26 17:01:26 gul - * Correct previous patch - * - * Revision 2.18 2003/08/26 16:45:52 gul - * binkd/2 perl dynamic DLL load - * - * Revision 2.16 2003/08/26 07:43:54 stream - * Use generic lists - * - * Revision 2.15 2003/08/25 14:09:03 gul - * Added exp_ftnaddress() to refresh_queue() - * - * Revision 2.14 2003/08/22 09:41:36 val - * add check perl!=NULL in perl_on_handshake - * - * Revision 2.13 2003/08/22 09:37:39 val - * missing function import for PERLDL: sv_setpvn() - * - * Revision 2.12 2003/08/18 09:41:00 gul - * Little cleanup in handle perl errors - * - * Revision 2.11 2003/08/18 09:15:39 gul - * Cosmetics - * - * Revision 2.10 2003/08/18 07:35:08 val - * multiple changes: - * - hide-aka/present-aka logic - * - address mask matching via pmatch - * - delay_ADR in STATE (define DELAY_ADR removed) - * - ftnaddress_to_str changed to xftnaddress_to_str (old version #define'd) - * - parse_ftnaddress now sets zone to domain default if it's omitted - * - * Revision 2.9 2003/08/18 07:29:09 val - * multiple changes: - * - perl error handling made via fork/thread - * - on_log() perl hook - * - perl: msg_send(), on_send(), on_recv() - * - unless using threads define log buffer via xalloc() - * - * Revision 2.8 2003/08/13 08:20:45 val - * try to avoid mixing Log() output and Perl errors in stderr - * - * Revision 2.7 2003/08/11 08:33:16 val - * better error handling in perl hooks - * - * Revision 2.6 2003/07/28 10:23:33 val - * Perl DLL dynamic load for Win32, config keyword perl-dll, nmake PERLDL=1 - * - * Revision 2.5 2003/07/07 08:42:02 val - * check real length of SvPV() when importing queue element from perl - * - * Revision 2.4 2003/07/04 08:13:17 val - * core dump in perl_clone() fixed, works with 5.6.0+ - * - * Revision 2.3 2003/06/27 07:45:36 val - * fix to make with perl 5.6.0 - * - * Revision 2.2 2003/06/26 10:34:02 val - * some tips from mod_perl, maybe prevent perl from crashing in client mgr (win32) - * - * Revision 2.1 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * -*/ + #include #include #include diff --git a/perlhooks.h b/perlhooks.h index f7c51c02..5d3a3ccc 100644 --- a/perlhooks.h +++ b/perlhooks.h @@ -10,73 +10,7 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.17 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.16 2010/05/22 08:11:30 gul - * Call after_session() hook after removing bsy - * - * Revision 2.15 2009/06/02 17:09:35 gul - * Build binkd for OS/2 with perl support - * - * Revision 2.14 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.13 2009/05/26 13:04:35 gul - * New perl hooks: - * need_reload() - is it needed to reload config - * config_loaded() - after successful reading config - * - * Revision 2.12 2005/10/03 06:49:04 gul - * Fixed typos in previous patch - * - * Revision 2.11 2005/10/02 21:47:35 gul - * setup_rlimit() perl hook - * - * Revision 2.10 2005/09/23 12:24:33 gul - * define $hosts variable for on_call() perl hook (can be changed). - * Changes for $proxy and $socks are now local for the single outgoing call. - * - * Revision 2.9 2005/03/28 10:15:13 val - * manage proxy/socks via perl-hook on_call() - * - * Revision 2.8 2003/10/30 10:57:46 gul - * Change inb_done arguments, optimize a bit - * - * Revision 2.7 2003/10/30 10:37:00 gul - * Do not append file partially received from busy remote aka, - * non-destructive skip it. - * - * Revision 2.6 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.5 2003/09/05 06:49:06 val - * Perl support restored after config reloading patch - * - * Revision 2.4 2003/08/18 09:41:00 gul - * Little cleanup in handle perl errors - * - * Revision 2.3 2003/08/18 07:29:09 val - * multiple changes: - * - perl error handling made via fork/thread - * - on_log() perl hook - * - perl: msg_send(), on_send(), on_recv() - * - unless using threads define log buffer via xalloc() - * - * Revision 2.2 2003/08/13 08:20:45 val - * try to avoid mixing Log() output and Perl errors in stderr - * - * Revision 2.1 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * -*/ + #ifndef _PERLHOOKS_H_ #define _PERLHOOKS_H_ diff --git a/prothlp.c b/prothlp.c index edd23fbc..34471808 100644 --- a/prothlp.c +++ b/prothlp.c @@ -11,60 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.11 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.10 2008/04/17 15:19:44 gul - * Fixed sending files with space or control chars in name - * - * Revision 2.9 2006/01/23 07:03:45 stas - * Fix (null) suffix after ASO->BSO bundle name conversion - * - * Revision 2.8 2005/10/10 16:24:22 stas - * Change method for generate 8+3 bundle name from ASO bundle name - * - * Revision 2.7 2005/09/22 12:11:13 gul - * Dequote filenames for compare in M_GET processing - * - * Revision 2.6 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.5 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.4 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.3 2003/06/30 22:42:27 hbrew - * Print only binkd name (without path) in error messages - * - * Revision 2.2 2003/03/01 18:29:52 gul - * Change size_t to off_t for file sizes and offsets - * - * Revision 2.1 2003/02/22 21:32:46 gul - * Amiga Style Outbound support - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.3 1997/11/05 01:11:29 mff - * bt+ arcshield - * - * Revision 1.2 1997/10/23 04:00:17 mff - * minor changes - * - * Revision 1.1 1997/03/28 06:49:13 mff - * Initial revision - * - */ - #include #include #include diff --git a/prothlp.h b/prothlp.h index b5ee06e7..a0ba8189 100644 --- a/prothlp.h +++ b/prothlp.h @@ -11,38 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.5 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.4 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.3 2003/06/26 13:21:32 gul - * More clean status process in no-NR mode - * - * Revision 2.2 2003/03/01 18:29:52 gul - * Change size_t to off_t for file sizes and offsets - * - * Revision 2.1 2002/02/22 00:18:34 gul - * Run by-file events with the same command-line once after session - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.1 1997/03/28 06:49:13 mff - * Initial revision - * - */ #ifndef _prothlp_h #define _prothlp_h diff --git a/protoco2.h b/protoco2.h index ec5cbe4e..1bcaaa50 100644 --- a/protoco2.h +++ b/protoco2.h @@ -1,132 +1,3 @@ -/* - * $Id$ - * - * $Log$ - * Revision 2.33 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.32 2013/02/04 12:47:12 gul - * New config option "listen" - * - * Revision 2.31 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.30 2012/09/20 12:16:53 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.29 2012/05/13 17:26:40 gul - * Possibility to specify $passwd for session in on_handshake() perl hook - * - * Revision 2.28 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.27 2011/01/24 10:44:53 gul - * Possible segfault on session start - * - * Revision 2.26 2010/05/22 08:11:30 gul - * Call after_session() hook after removing bsy - * - * Revision 2.25 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.24 2007/09/04 06:04:50 gul - * Use workaround of NR-mode bug only for binkd/0.9.4 - * - * Revision 2.23 2005/09/26 19:01:03 gul - * bw limits code partially rewrited (not tested) - * - * Revision 2.22 2004/11/21 12:18:05 val - * bandwidth limiting code is now implemented for receiving too - * - * Revision 2.21 2004/09/02 08:56:19 val - * bandwidth limiting config parameter 'limit-rate' - * - * Revision 2.20 2004/08/30 08:05:13 val - * bandwidth limiting code [experimental] - * - * Revision 2.19 2004/08/21 17:13:33 gul - * Fix total bytes logging - * - * Revision 2.18 2004/01/08 13:27:47 val - * * extend struct dirent for dos and win32 in order to get file attribute - * * ignore hidden files in boxes for dos/win32/os2 - * * if we can differ files from directories w/o stat(), don't call stat() - * when scanning boxes (unix: freebsd) - * * if we can't unlink file, don't send it again in the same session - * * for dos/win32/os2 try to clear read/only attribute if can't unlink file - * - * Revision 2.17 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.16 2003/10/19 12:21:47 gul - * Stream compression - * - * Revision 2.15 2003/09/25 06:41:43 val - * fix compilation under win32 - * - * Revision 2.14 2003/09/24 07:32:16 val - * bzlib2 compression support, new compression keyword: zlevel - * - * Revision 2.13 2003/09/15 06:57:09 val - * compression support via zlib: config keywords, improvements, OS/2 code - * - * Revision 2.12 2003/09/12 09:09:38 val - * zlib compression support and configure for unix (my first try to write - * autoconf script, i hope it works on your system ;-) - * - * Revision 2.10 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.9 2003/08/18 07:35:08 val - * multiple changes: - * - hide-aka/present-aka logic - * - address mask matching via pmatch - * - delay_ADR in STATE (define DELAY_ADR removed) - * - ftnaddress_to_str changed to xftnaddress_to_str (old version #define'd) - * - parse_ftnaddress now sets zone to domain default if it's omitted - * - * Revision 2.8 2003/07/02 18:16:43 gul - * Bugfix fot patch about send status without NR-mode - * - * Revision 2.7 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.6 2003/05/30 17:15:22 gul - * Asymmetric ND-mode, new protocol option NDA - * - * Revision 2.5 2003/05/30 16:03:10 gul - * Asymmetric NR-mode - * - * Revision 2.4 2003/03/05 13:21:51 gul - * Fix warnings - * - * Revision 2.3 2002/02/22 00:18:34 gul - * Run by-file events with the same command-line once after session - * - * Revision 2.2 2001/02/15 16:05:59 gul - * crypt bugfix - * - * Revision 2.1 2001/02/15 11:03:18 gul - * Added crypt traffic possibility - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * - */ /* binkp's frames: diff --git a/protocol.c b/protocol.c index 46297ca9..09c60c1e 100644 --- a/protocol.c +++ b/protocol.c @@ -11,818 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.235 2015/01/14 07:42:26 gul - * Improve logging - * - * Revision 2.234 2014/09/21 08:44:51 gul - * Write configured remote hostname and port in log line "outgoing session with ..." - * - * Revision 2.233 2014/01/14 08:20:10 gul - * Possible segfault on some systems in rare case - * - * Revision 2.232 2014/01/12 13:25:30 gul - * unix (linux) pthread version - * - * Revision 2.231 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.230 2013/10/23 19:25:56 stream - * EWOULDBLOCK, O_BINARY, O_NOINHERIT could be defined to wrong value - * - * Revision 2.229 2013/06/29 07:20:49 gul - * Fix warning on windows - * - * Revision 2.228 2013/02/04 12:47:12 gul - * New config option "listen" - * - * Revision 2.227 2013/02/03 21:37:45 gul - * New option "rename-style [postfix|extension]" - * - * Revision 2.226 2013/02/03 07:28:50 gul - * Possible segfault on after_session perl hook - * - * Revision 2.225 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.224 2012/09/24 00:26:42 gul - * Resolve logic changed - * - * Revision 2.223 2012/09/22 05:17:17 gul - * Fix compilation under Windows - * - * Revision 2.222 2012/09/20 12:16:53 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.221 2012/06/26 09:55:46 gul - * MD5 password is not mandatory on incoming - * - * Revision 2.220 2012/06/26 09:44:27 gul - * Code style - * - * Revision 2.219 2012/05/13 17:26:40 gul - * Possibility to specify $passwd for session in on_handshake() perl hook - * - * Revision 2.218 2012/03/10 06:56:59 gul - * Improved error reporting on seek error - * - * Revision 2.217 2012/01/30 23:02:14 green - * Corrected FTS-1027 support, allow list of hash algos - * - * Revision 2.216 2012/01/27 18:25:45 green - * Improved getpeername() error handling - * - * Revision 2.215 2012/01/26 22:58:35 green - * Workaround for OS/2 kLIBC 0.6.4, getpeername() always returns -1 - * - * Revision 2.214 2012/01/26 18:50:06 green - * Ensure the host information is not invalid - * - * Revision 2.213 2012/01/08 19:18:03 green - * Improved hostname lookup and logging - * - * Revision 2.212 2012/01/08 17:34:57 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.211 2012/01/08 14:09:04 green - * Corrected initialization of getaddrinfo hints - * - * Revision 2.210 2012/01/07 23:38:45 green - * Improved getnameinfo handling, retry without name resolution - * - * Revision 2.209 2012/01/07 16:56:28 green - * Improved getnameinfo error handling - * - * Revision 2.208 2012/01/07 16:34:00 green - * Add error id where gai_strerror() is used - * - * Revision 2.207 2012/01/07 16:22:26 green - * Fix some compiler warnings - * - * Revision 2.206 2012/01/07 11:54:04 green - * Fix MSVC6 compilation errors - * - * Revision 2.205 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.204 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.203 2011/02/19 06:23:05 gul - * Cosmetics - * - * Revision 2.202 2011/02/19 06:08:27 gul - * Yet another possible segfault on session start - * - * Revision 2.201 2011/01/24 10:44:53 gul - * Possible segfault on session start - * - * Revision 2.200 2010/12/12 09:44:11 gul - * Use Sleep() instead of select(0,NULL,NUL,NULL,...) under WIN32 - * - * Revision 2.199 2010/05/22 08:11:30 gul - * Call after_session() hook after removing bsy - * - * Revision 2.198 2009/11/27 14:19:33 stas - * fix typo - * - * Revision 2.197 2009/11/22 07:52:53 gul - * Send M_ERR and increase undialable on error rename received file - * - * Revision 2.196 2009/06/15 22:41:46 stas - * Don't process second M_PWD - * - * Revision 2.195 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.194 2009/02/14 13:14:43 gul - * Bugfix: segfault on crafted input sequences, - * possible remote DoS for multithread versions (win32 and OS/2). - * Thanks to Dennis Yurichev. - * - * Revision 2.193 2008/08/05 06:05:16 gul - * Optimize srif functions params - * - * Revision 2.192 2008/02/25 10:38:10 gul - * Fixed incorrect byte counters in log message about compressed files - * - * Revision 2.191 2008/01/16 10:05:43 gul - * Fix for previous patch - * - * Revision 2.190 2008/01/15 23:08:16 stas - * Log message with recommendation about NR mode to workaround remote bug - * - * Revision 2.189 2008/01/14 20:45:44 gul - * Workaroud bug of earlyer binkd versions with partial files and not NR-mode - * - * Revision 2.188 2008/01/14 11:42:53 gul - * Fixed bug in protocol logic (partial files send without NR-mode) - * - * Revision 2.187 2007/10/30 07:43:11 gul - * Removed copy/pasted code from prev patch - * - * Revision 2.186 2007/10/30 07:33:25 gul - * New config option dont-send-empty - * - * Revision 2.185 2007/09/11 11:18:34 gul - * Use NR workaround for all binkd versions before 0.9.5 - * - * Revision 2.184 2007/09/04 06:04:50 gul - * Use workaround of NR-mode bug only for binkd/0.9.4 - * - * Revision 2.183 2007/09/03 22:46:34 gul - * Remove workaround for asymmentric NR-mode - * - * Revision 2.182 2006/07/24 21:00:32 gul - * use MSG_NOSIGNAL in send() - * - * Revision 2.181 2005/11/07 17:54:00 stas - * rtrim - * - * Revision 2.180 2005/10/03 07:52:23 gul - * Fixed memory leak from 1.0a-466 (thanks to Roman Trunov) - * - * Revision 2.179 2005/10/02 21:47:35 gul - * set_rlimit() perl hook - * - * Revision 2.178 2005/10/02 20:48:40 gul - * - add $traf_mail and $traf_files vars for on_call() and on_handshake() hooks; - * - optimize queue scan in perl hooks; - * - documentation for $rc var in after_session() hook. - * - * Revision 2.177 2005/10/02 18:03:26 gul - * Verbously report about mail/files for us when receive TRF from remote. - * - * Revision 2.176 2005/10/02 15:03:11 gul - * Fileboxes did not works for unlisted nodes - * - * Revision 2.175 2005/09/28 19:02:25 gul - * Fixed unsigned int arithmetics in rate-limits - * - * Revision 2.174 2005/09/27 20:15:43 gul - * Hopefully fixed compilation under windows - * - * Revision 2.173 2005/09/26 19:01:03 gul - * bw limits code partially rewrited (not tested) - * - * Revision 2.172 2005/09/23 13:04:15 gul - * Fix warning - * - * Revision 2.171 2005/09/12 17:07:35 gul - * Turn compression on if OPT EXTCMD GZIP received after login phase - * - * Revision 2.170 2005/07/04 18:24:43 gul - * Move events checking and running to inb_test() for reducing repeated code; - * do not run immediate events twice; - * fixed argus-style freqs (not tested). - * - * Revision 2.169 2005/06/06 17:13:56 stream - * Fuck this buggy CVS compression! - * - * Revision 2.167 2005/02/09 17:33:59 val - * config docs and makefile changes for the bandwidth limiting code - * - * Revision 2.166 2004/11/21 12:18:05 val - * bandwidth limiting code is now implemented for receiving too - * - * Revision 2.165 2004/11/05 12:24:58 gul - * hide-aka & present-aka did not work on outgoing sessions - * - * Revision 2.164 2004/11/03 08:22:21 stas - * Set 'unsigned char *' to prevent warnings - * - * Revision 2.163 2004/10/20 17:30:55 gul - * Fixed segfault on transmission compressed files - * when sizeof(off_t)!=sizeof(long) and loglevel>3. - * - * Revision 2.162 2004/10/19 16:28:19 gul - * Do not remove complete received but not renamed partial files - * for prevent data loss in ND-mode. - * Remove all partial files for node after successfull session. - * - * Revision 2.161 2004/10/18 15:16:32 gul - * Minor bugfix (patch from Victor Levenets ) - * - * Revision 2.160 2004/10/01 09:55:06 gul - * Fixed memory leak - * (Reported by Victor Levenets ) - * - * Revision 2.159 2004/09/21 08:32:11 val - * bandwidth limiting logic changed from "max for akas" to "min for akas" - * - * Revision 2.158 2004/09/06 10:47:04 val - * bandwidth limiting code advancements, `listed' session state fix - * - * Revision 2.157 2004/09/02 09:31:52 val - * release CPU when limiting bandwidth on Win32 - * - * Revision 2.156 2004/09/02 08:56:19 val - * bandwidth limiting config parameter 'limit-rate' - * - * Revision 2.155 2004/08/30 08:05:14 val - * bandwidth limiting code [experimental] - * - * Revision 2.154 2004/08/04 11:32:29 gul - * Attemp to support large files (>4G) - * - * Revision 2.153 2004/01/23 18:09:31 gul - * Fixed erroneous "Unknown option ... ignored" message - * - * Revision 2.152 2004/01/08 13:27:47 val - * * extend struct dirent for dos and win32 in order to get file attribute - * * ignore hidden files in boxes for dos/win32/os2 - * * if we can differ files from directories w/o stat(), don't call stat() - * when scanning boxes (unix: freebsd) - * * if we can't unlink file, don't send it again in the same session - * * for dos/win32/os2 try to clear read/only attribute if can't unlink file - * - * Revision 2.151 2004/01/08 13:03:51 val - * * new functions for parsing and updating addresses in pkt header (raw, char*) - * * use these functions in shared aka logic - * * set password in pkt to the pkt password for the main aka of sharing node - * * config file description updated - * - * Revision 2.150 2004/01/08 12:57:18 val - * * parse up to 3 comma-separated passwords (in,pkt,out) - * * use out password for outgoing sessions if it's set - * - * Revision 2.149 2004/01/08 11:36:06 gul - * Fix typo in previous patch - * - * Revision 2.148 2004/01/07 13:12:29 gul - * Update 2003->2004 in copyright notices - * - * Revision 2.147 2004/01/07 12:23:39 gul - * Remove zaccept keyword, receiving compressed files possibility - * is always on now if binkd was compiled with zlib/bzip2 support. - * - * Revision 2.146 2003/12/28 10:23:25 gul - * Print file offset on "receiving interrupted" log message - * - * Revision 2.145 2003/12/26 21:12:06 gul - * Change unixtime and file length/offset to unsigned in protocol messages - * - * Revision 2.144 2003/12/15 00:03:55 gul - * NZ option for M_GET command - request uncompressed file - * - * Revision 2.143 2003/12/10 11:12:10 gul - * Minor fix in decompression deinit - * - * Revision 2.142 2003/12/09 21:58:20 gul - * Bugfix in resend file in compression mode, - * new functions compress_abort() and decompress_abort(). - * - * Revision 2.141 2003/11/20 16:21:17 gul - * Bugfix in sending ND-status with compression - * - * Revision 2.140 2003/10/30 11:11:31 gul - * Drop incoming session if secure remote AKA is busy - * - * Revision 2.139 2003/10/30 10:57:46 gul - * Change inb_done arguments, optimize a bit - * - * Revision 2.138 2003/10/30 10:37:00 gul - * Do not append file partially received from busy remote aka, - * non-destructive skip it. - * - * Revision 2.137 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.136 2003/10/24 06:38:41 val - * fix warning - * - * Revision 2.135 2003/10/20 18:44:51 gul - * Inhibit incorrect error message - * - * Revision 2.134 2003/10/20 18:24:07 gul - * Compression bugfix - * - * Revision 2.133 2003/10/19 22:44:17 gul - * Add xstrcat(), use dynamic strings for OPT - * - * Revision 2.132 2003/10/19 12:21:47 gul - * Stream compression - * - * Revision 2.131 2003/10/14 11:37:47 gul - * Fix typo - * - * Revision 2.130 2003/10/14 07:34:28 gul - * Use getwordx() for parse optional M_FILE params - * - * Revision 2.129 2003/10/12 12:58:40 gul - * No changes ;) - * - * Revision 2.128 2003/10/07 17:57:09 gul - * Some small changes in close threads function. - * Inhibit errors "socket operation on non-socket" on break. - * - * Revision 2.127 2003/09/24 07:32:16 val - * bzlib2 compression support, new compression keyword: zlevel - * - * Revision 2.126 2003/09/22 11:38:47 val - * new ip checking modes in VAL_STYLE: ipNoUnknown, ipNoError; - * val's and gul's -ip modes can be used per node as ipRelaxed and ipResolved - * (lacks readcfg support still) - * - * Revision 2.125 2003/09/22 09:54:41 gul - * Screen output semaphoring, prevent mixing output from threads - * - * Revision 2.124 2003/09/19 13:54:30 gul - * undef VAL_STYLE ip check by default - * - * Revision 2.123 2003/09/19 12:52:57 val - * fix bug with not sending GZ parameter to M_FILE after M_GET - * - * Revision 2.122 2003/09/17 07:04:45 val - * Cosmetics and comment on #define VAL_STYLE - * - * Revision 2.121 2003/09/16 06:38:44 val - * correct IP checking algorithms (gul's one is buggy), correct get_defnode_info() - * - * Revision 2.120 2003/09/15 21:10:09 gul - * Fix remote IP check logic - * - * Revision 2.119 2003/09/15 06:57:09 val - * compression support via zlib: config keywords, improvements, OS/2 code - * - * Revision 2.118 2003/09/12 09:09:38 val - * zlib compression support and configure for unix (my first try to write - * autoconf script, i hope it works on your system ;-) - * - * Revision 2.116 2003/09/08 16:39:39 stream - * Fixed race conditions when accessing array of nodes in threaded environment - * ("jumpimg node structures") - * - * Revision 2.115 2003/09/05 10:17:21 gul - * Send argus-compatible freqs. - * Warning: works only with prescan! - * - * Revision 2.114 2003/09/05 09:57:16 gul - * Process multiply M_NUL FREQ messages - * - * Revision 2.113 2003/09/05 06:49:06 val - * Perl support restored after config reloading patch - * - * Revision 2.112 2003/09/05 06:44:05 val - * Argus-style freq's (M_NUL FREQ) support, not tested yet - * - * Revision 2.111 2003/08/29 13:27:34 gul - * Do not save zero-length .dt files - * - * Revision 2.110 2003/08/26 22:18:48 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.109 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.108 2003/08/26 16:06:26 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.107 2003/08/25 19:09:29 gul - * Flush file buffer after receive data frame, - * drop session if extra bytes received. - * - * Revision 2.106 2003/08/24 19:42:08 gul - * Get FTN-domain from matched zone in exp_ftnaddress() - * - * Revision 2.105 2003/08/24 18:54:30 gul - * Bugfix in timeout check on win32 - * - * Revision 2.104 2003/08/24 01:35:59 hbrew - * Update for previous patch - * - * Revision 2.103 2003/08/24 00:45:44 hbrew - * win9x-select-workaround fix, thanks to Pavel Gulchouck - * - * Revision 2.102 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.101 2003/08/19 10:16:12 gul - * Rename trunc() -> trunc_file() due to conflict under OS/2 EMX - * - * Revision 2.100 2003/08/18 07:35:08 val - * multiple changes: - * - hide-aka/present-aka logic - * - address mask matching via pmatch - * - delay_ADR in STATE (define DELAY_ADR removed) - * - ftnaddress_to_str changed to xftnaddress_to_str (old version #define'd) - * - parse_ftnaddress now sets zone to domain default if it's omitted - * - * Revision 2.99 2003/08/18 07:29:09 val - * multiple changes: - * - perl error handling made via fork/thread - * - on_log() perl hook - * - perl: msg_send(), on_send(), on_recv() - * - unless using threads define log buffer via xalloc() - * - * Revision 2.98 2003/08/17 08:12:05 gul - * Fix typo - * - * Revision 2.97 2003/08/16 09:47:25 gul - * Autodetect tzoff if not specified - * - * Revision 2.96 2003/08/15 08:48:50 gul - * Compilation error fixed - * - * Revision 2.95 2003/08/14 14:19:37 gul - * Drop remote AKA with another password on outgoing sessions - * - * Revision 2.94 2003/08/14 08:29:22 gul - * Use snprintf() from sprintf.c if no such libc function - * - * Revision 2.93 2003/08/13 11:59:21 gul - * Undo my prev patch, sorry ;) - * - * Revision 2.92 2003/08/13 11:49:05 gul - * correct previous fix - * - * Revision 2.91 2003/08/13 11:35:26 hbrew - * Fix warning. - * - * Revision 2.90 2003/08/13 08:02:51 val - * define DELAY_ADR ifdef WITH_PERL (todo: provide more flexible logic) - * - * Revision 2.89 2003/08/11 08:36:41 gul - * workaround winsock bug - * - * Revision 2.88 2003/07/06 10:34:27 gul - * Migrate workaround of 100% CPU load with winsock from stable branch - * - * Revision 2.87 2003/07/06 10:18:55 gul - * Increase loglevel for "Watinig for M_GOT" message - * - * Revision 2.86 2003/07/06 08:32:31 gul - * Decrease logging about link status changes - * - * Revision 2.85 2003/07/06 06:48:25 gul - * Using state->out.fa bugfix - * - * Revision 2.84 2003/07/03 05:43:41 gul - * Another fix for previous patch - * - * Revision 2.83 2003/07/02 18:16:43 gul - * Bugfix for patch about send status without NR-mode - * - * Revision 2.82 2003/06/26 13:22:24 gul - * *** empty log message *** - * - * Revision 2.81 2003/06/26 13:21:32 gul - * More clean status process in no-NR mode - * - * Revision 2.80 2003/06/26 12:53:31 gul - * Send status in no-NR mode to avoid file loosing - * - * Revision 2.79 2003/06/25 07:25:00 stas - * Simple code, continue bugfix to responce negative timestamp - * - * Revision 2.78 2003/06/24 13:46:32 stas - * Fix max value of type time_t - * - * Revision 2.77 2003/06/24 08:08:46 stas - * Bugfix: do not transmit negative value of file time in binkp command-frames and check file time in received frames - * - * Revision 2.76 2003/06/24 06:33:42 gul - * Fix for previous patch - * - * Revision 2.75 2003/06/24 06:28:21 gul - * Check IP for all remote AKAs on outgoing calls - * - * Revision 2.74 2003/06/21 19:35:45 gul - * Fixed remote ip check - * - * Revision 2.73 2003/06/21 15:31:48 hbrew - * Fix warning - * - * Revision 2.72 2003/06/21 08:41:29 gul - * "try" and "hold" did not work if connection closed by remote - * - * Revision 2.71 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.70 2003/06/12 08:21:43 val - * 'skipmask' is replaced with 'skip', which allows more skipping features - * - * Revision 2.69 2003/06/08 13:40:07 gul - * Avoid warning - * - * Revision 2.68 2003/06/07 08:46:25 gul - * New feature added: shared aka - * - * Revision 2.67 2003/06/04 20:59:43 gul - * bugfix: do not force NR-mode if remote uses binkp/1.0 - * - * Revision 2.66 2003/06/02 17:56:03 gul - * Workaround old binkd bug in asymmetric NR-mode - * - * Revision 2.65 2003/06/02 17:29:28 gul - * Bugfix in asymmetric ND-mode - * - * Revision 2.64 2003/05/30 17:15:22 gul - * Asymmetric ND-mode, new protocol option NDA - * - * Revision 2.63 2003/05/30 16:03:10 gul - * Asymmetric NR-mode - * - * Revision 2.62 2003/05/22 06:39:41 gul - * Send CRYPT option only in crypt-mode sessions on answer - * - * Revision 2.61 2003/05/17 15:37:48 gul - * Improve logging - * - * Revision 2.60 2003/05/17 15:33:51 gul - * Improve logging - * - * Revision 2.59 2003/05/15 06:08:46 gul - * Crypt bug with asymmetric secure settings - * - * Revision 2.58 2003/05/04 10:29:54 gul - * Say "OPT ND" on answer only if this option specified in config for this node - * - * Revision 2.57 2003/05/04 08:45:30 gul - * Lock semaphores more safely for resolve and IP-addr print - * - * Revision 2.56 2003/05/03 20:36:45 gul - * Print diagnostic message to log on failed session - * - * Revision 2.55 2003/05/03 11:04:58 gul - * Fix typo - * - * Revision 2.54 2003/05/03 10:56:00 gul - * Bugfix in protocol logic (when file already exists) - * - * Revision 2.53 2003/05/03 08:41:16 gul - * bugfix in protocol, when file already exists - * - * Revision 2.52 2003/05/01 09:55:01 gul - * Remove -crypt option, add global -r option (disable crypt). - * - * Revision 2.51 2003/04/30 13:38:17 gul - * Avoid warnings - * - * Revision 2.50 2003/04/28 07:30:16 gul - * Bugfix: Log() changes TCPERRNO - * - * Revision 2.49 2003/04/04 13:54:28 gul - * Bugfix in localtime detection - * - * Revision 2.48 2003/04/02 13:12:57 gul - * Try to use workaround for buggy windows time functions (timezone) - * - * Revision 2.47 2003/03/31 20:28:24 gul - * safe_localtime() and safe_gmtime() functions - * - * Revision 2.46 2003/03/31 14:25:36 gul - * Segfault under FreeBSD - * - * Revision 2.45 2003/03/25 14:08:30 gul - * Do not save empty partial files - * - * Revision 2.44 2003/03/11 00:04:25 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.43 2003/03/10 17:32:37 gul - * Use socklen_t - * - * Revision 2.42 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.41 2003/03/05 13:21:51 gul - * Fix warnings - * - * Revision 2.40 2003/03/04 13:46:27 gul - * Small bugfix in binkp protocol logic - * - * Revision 2.39 2003/03/04 13:10:39 gul - * Do not report errors when threads exits by exitfunc - * - * Revision 2.38 2003/03/04 09:50:58 gul - * Cosmetics changes - * - * Revision 2.37 2003/03/03 20:16:32 gul - * Fixed bug in previous patch - * - * Revision 2.36 2003/03/02 18:08:56 gul - * Do not scan outbound twice: on prescan (for TRF report) and at complete_login - * - * Revision 2.35 2003/03/02 17:51:37 gul - * Close received file before send M_GOT - * - * Revision 2.34 2003/03/02 14:30:02 gul - * Drop unsecure AKA with bad source IP address, no drop session - * - * Revision 2.33 2003/03/01 20:49:21 gul - * Fix spelling - * - * Revision 2.32 2003/03/01 18:29:52 gul - * Change size_t to off_t for file sizes and offsets - * - * Revision 2.31 2003/03/01 18:16:04 gul - * Use HAVE_SYS_TIME_H macro - * - * Revision 2.30 2003/03/01 15:55:02 gul - * Current outgoing address is now attibute of session, but not node - * - * Revision 2.29 2003/03/01 15:00:16 gul - * Join skipmask and overwrite into common maskchain - * - * Revision 2.28 2003/02/28 19:52:24 gul - * Small optimize - * - * Revision 2.27 2003/02/23 16:47:07 gul - * change restrictIP logic - * - * Revision 2.26 2003/02/23 16:31:21 gul - * Add "-sip" option in node string. - * Change "-ip" check logic. - * - * Revision 2.25 2003/02/22 20:19:54 gul - * Update copyrightes, 2002->2003 - * - * Revision 2.24 2003/02/22 15:53:46 gul - * Bugfix with locking array of nodes in multithread version - * - * Revision 2.23 2003/02/22 12:56:00 gul - * Do not give unsecure mail to secure link when send-if-pwd - * - * Revision 2.22 2003/02/22 12:12:34 gul - * Cleanup sources - * - * Revision 2.21 2003/02/22 11:45:41 gul - * Do not resolve hosts if proxy or socks5 using - * - * Revision 2.20 2003/02/13 19:31:56 gul - * Ignore non-MD5 challanges - * - * Revision 2.19 2003/01/29 20:53:34 gul - * Assume default domain for remote 4D address - * - * Revision 2.18 2003/01/28 16:14:05 gul - * Bugfix: binkd did not remove lo-files with empty lines - * - * Revision 2.17 2003/01/16 13:35:26 gul - * Fixed crash on bad incoming packets - * - * Revision 2.16 2002/11/22 14:40:42 gul - * Check free space on inbox if defined - * - * Revision 2.15 2002/10/22 20:29:46 gul - * Do not send zero-length data packet as EOF - * Prevent incorrect "remote already has ..." message - * - * Revision 2.14 2002/05/11 10:28:11 gul - * fix spelling - * - * Revision 2.13 2002/05/11 10:27:22 gul - * Do not send empty (60-bytes) pkt-files - * - * Revision 2.12 2002/02/22 08:57:23 gul - * Pring warning if remote says "OK non-secure" and we have password - * for the session - * - * Revision 2.11 2002/02/22 00:18:34 gul - * Run by-file events with the same command-line once after session - * - * Revision 2.10 2001/07/28 17:26:26 gul - * Avoid compiler warnings - * - * Revision 2.9 2001/07/28 09:56:39 gul - * NR-mode bugfix - * - * Revision 2.8 2001/07/28 09:10:04 gul - * minor fix in log messages - * - * Revision 2.7 2001/07/28 08:53:07 gul - * set ND-mode bugfix - * - * Revision 2.6 2001/05/23 16:48:03 gul - * msvc warnings fixed - * - * Revision 2.5 2001/04/13 20:16:10 gul - * "OPT CRYPT" was send only in NR-mode - * - * Revision 2.4 2001/02/20 12:01:50 gul - * rename encrypt to encrypt_buf to avoid conflict with unistd.h - * - * Revision 2.3 2001/02/16 09:13:25 gul - * Disable crypt with plaintext password - * - * Revision 2.2 2001/02/15 16:05:59 gul - * crypt bugfix - * - * Revision 2.1 2001/02/15 11:03:18 gul - * Added crypt traffic possibility - * - * Revision 2.0 2001/01/10 12:12:38 gul - * Binkd is under CVS again - * - * Revision 1.35 1997/11/04 23:37:11 mff - * send_block() changed to send as many msgs as possible with one send() - * - * Revision 1.34 1997/10/23 03:56:21 mff - * authentication fixes, new binary log, more? - * - * 1997/07/11 11:56:55 maxb - * Added more informative percents (I think mff won't kill me for this :) - * - * Revision 1.33 1997/06/27 01:05:09 mff - * Now we close link after M_ERR or M_BSY - * - * Revision 1.32 1997/06/16 05:45:21 mff - * Binkd could not correctly ACK receiving of files with some names. - * Binary log in T-Mail format. Binkd didn't strip disk labels. - * Session would never end if remote skips files being sent - * from our outbound filebox. New keyword: `send-if-pwd'. - * - * Revision 1.31 1997/05/17 08:42:49 mff - * Binkd could not ACK some filenames - * - * Revision 1.30 1997/05/08 05:30:29 mff - * End-of-session is now logged verbosely - * - * Revision 1.29 1997/03/28 06:47:39 mff - * SRIF support, prothlp.*, etc? - * - * Revision 1.28 1997/03/15 05:06:44 mff - * Binkp/1.1 finished(?): NR mode, multiple batches. *.bsy touching. - * - * Revision 1.26 1997/02/13 07:08:39 mff - * Support for fileboxes - * - * Revision 1.24 1997/01/09 05:31:29 mff - * minfree and minfree_nonsecure - * - * Revision 1.23 1997/01/08 03:59:54 mff - * Support for mail events flags - * - * Revision 1.22 1996/12/29 09:45:05 mff - * Fixed NONBIO bug - * - * Revision 1.18 1996/12/07 12:14:04 mff - * max_servers limits the number of server processes/threads running - * - * Revision 1.12 1996/12/03 11:27:33 mff - * NT port by ufm - */ - #include #include #include diff --git a/protocol.h b/protocol.h index 1caf97c9..67e2568a 100644 --- a/protocol.h +++ b/protocol.h @@ -1,31 +1,3 @@ -/* - * $Id$ - * - * $Log$ - * Revision 2.5 2014/09/21 08:44:51 gul - * Write configured remote hostname and port in log line "outgoing session with ..." - * - * Revision 2.4 2012/09/20 12:16:53 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.3 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.1 2003/03/01 15:55:02 gul - * Current outgoing address is now attibute of session, but not node - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * - */ #ifndef _protocol_h #define _protocol_h diff --git a/readcfg.c b/readcfg.c index ac8584b8..78eda85e 100644 --- a/readcfg.c +++ b/readcfg.c @@ -11,417 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.110 2014/12/12 06:27:39 gul - * Fixed iport/oport output in dumpcfg mode - * - * Revision 2.109 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.108 2013/02/04 12:47:12 gul - * New config option "listen" - * - * Revision 2.107 2013/02/03 21:37:45 gul - * New option "rename-style [postfix|extension]" - * - * Revision 2.106 2012/10/28 21:30:15 green - * Corrected Segfault in config error reporting on 64bit architectures - * - * Revision 2.105 2012/09/20 12:16:53 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.104 2012/06/17 00:21:40 green - * Segmentation violation in config dump - * - * Revision 2.103 2012/05/14 06:14:58 gul - * More safe signal handling - * - * Revision 2.102 2012/01/22 13:54:12 green - * Allow limiting IPv4/6 usage per node using new flags -4/-6 - * - * Revision 2.101 2012/01/08 17:34:57 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.100 2012/01/07 16:22:26 green - * Fix some compiler warnings - * - * Revision 2.99 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.98 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.97 2011/08/17 15:51:46 stas - * move declaration of default value of root_domain to Config.h - * - * Revision 2.96 2011/08/17 09:02:56 gul - * Default root-domain fidonet.net changed to binkp.net - * - * Revision 2.95 2011/01/25 15:33:49 stas - * Prevent segfault if length of passwords exceed 40 chars (addition for previous patch - * - * Revision 2.94 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.93 2009/05/27 09:49:52 gul - * Free perl-vars on unloading config - * - * Revision 2.92 2009/05/27 09:33:52 gul - * perl-var config keyword - * update $hosts by on_call() perl hook not only if it returns 2 - * - * Revision 2.91 2009/05/26 13:04:35 gul - * New perl hooks: - * need_reload() - is it needed to reload config - * config_loaded() - after successful reading config - * - * Revision 2.90 2008/12/09 09:04:09 gul - * Use binkp from /etc/services if exists as iport/oport by default - * - * Revision 2.89 2007/10/30 07:33:25 gul - * New config option dont-send-empty - * - * Revision 2.88 2007/10/06 10:20:04 gul - * more accurate checkcfg() - * - * Revision 2.87 2007/10/04 17:30:28 gul - * SIGHUP handler (thx to Sergey Babitch) - * - * Revision 2.86 2005/12/20 16:55:52 gul - * Added '\n' after diag message - * - * Revision 2.85 2005/09/28 20:40:45 gul - * Optional parameter root-domain for domain config option. - * - * Revision 2.84 2005/09/26 19:01:03 gul - * bw limits code partially rewrited (not tested) - * - * Revision 2.83 2005/04/18 16:46:41 stream - * Double free of pNodArray caused mysterious crashes on config reload - * - * Revision 2.82 2004/11/22 15:56:41 stream - * Errors in config were not logged to file (log file name was set only - * when config was completely loaded, checked and accepted). Now log - * settings are changed immediately after each log-related directive - * (only for first-time config load) - * - * Revision 2.81 2004/11/22 15:51:14 stas - * Change error level to -1 for the config file parameter error (binkd/w32 will display message box with error message) - * - * Revision 2.80 2004/11/21 11:55:24 val - * remove old commented code for limit-rate debug output - * - * Revision 2.79 2004/11/07 07:26:36 gul - * New config options zlib-dll and bzlib2-dll - * - * Revision 2.78 2004/11/05 07:45:12 gul - * Bugfix in passwords and defnode processing logic - * - * Revision 2.77 2004/10/26 17:36:59 gul - * Set time intervals in human-readable form (12h instead of 43200 etc.) - * - * Revision 2.76 2004/10/26 15:46:42 gul - * Process option skipmask for backward compatibility - * - * Revision 2.75 2004/10/25 17:04:54 gul - * Process passwords file after all, independent of its place in config. - * Use first password for node if several specified. - * - * Revision 2.74 2004/10/19 17:09:04 gul - * Remove duplicate addresses from config - * - * Revision 2.73 2004/09/21 08:27:49 val - * distinguish nodes, listed in binkd config and passwords file - overwrite defnode parameters (e.g. host) for the later - * (hope, it'll fix reported bug with not calling defnode) - * - * Revision 2.72 2004/09/11 14:37:08 gul - * Fix erroneously applied previous patch - * - * Revision 2.70 2004/09/06 10:47:05 val - * bandwidth limiting code advancements, `listed' session state fix - * - * Revision 2.69 2004/09/02 09:00:50 val - * fix warnings - * - * Revision 2.68 2004/09/02 08:56:20 val - * bandwidth limiting config parameter 'limit-rate' - * - * Revision 2.67 2004/02/29 08:51:52 gul - * Bugfix in print_node_info - * (patch from Victor Levenets). - * - * Revision 2.66 2004/01/08 12:57:18 val - * * parse up to 3 comma-separated passwords (in,pkt,out) - * * use out password for outgoing sessions if it's set - * - * Revision 2.65 2004/01/07 13:12:29 gul - * Update 2003->2004 in copyright notices - * - * Revision 2.64 2004/01/07 12:23:40 gul - * Remove zaccept keyword, receiving compressed files possibility - * is always on now if binkd was compiled with zlib/bzip2 support. - * - * Revision 2.63 2004/01/07 12:07:47 gul - * New function free_nodes() - * - * Revision 2.62 2003/12/26 20:11:32 gul - * Add -d commandline switch - dump parsed config and exit; - * remove 'debugcfg' config token. - * - * Revision 2.61 2003/12/26 07:51:11 val - * up to 3 comma-separated passwords in file are parsed - * - * Revision 2.60 2003/11/21 19:39:59 stream - * Initial support for "-noproxy" node option - * - * Revision 2.59 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.58 2003/10/23 21:38:51 gul - * Remove C++ style comments - * - * Revision 2.57 2003/10/19 12:21:47 gul - * Stream compression - * - * Revision 2.56 2003/10/11 08:41:46 gul - * stricmp() -> STRICMP() - * - * Revision 2.55 2003/10/11 06:54:55 stas - * ifcico/qico passwords file support - * - * Revision 2.54 2003/09/24 07:32:16 val - * bzlib2 compression support, new compression keyword: zlevel - * - * Revision 2.53 2003/09/15 06:57:09 val - * compression support via zlib: config keywords, improvements, OS/2 code - * - * Revision 2.52 2003/09/12 07:37:57 val - * compression support via zlib (preliminary) - * - * Revision 2.51 2003/09/08 16:39:39 stream - * Fixed race conditions when accessing array of nodes in threaded environment - * ("jumpimg node structures") - * - * Revision 2.50 2003/09/08 08:21:20 stream - * Cleanup config semaphore, free memory of base config on exit. - * - * Revision 2.49 2003/08/26 22:18:48 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.48 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.47 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.46 2003/08/25 06:11:06 gul - * Fix compilation with HAVE_FORK - * - * Revision 2.45 2003/08/25 05:39:26 stas - * Bugfix: "readcfg.c:938: `fa\' undeclared" compilation error - * - * Revision 2.44 2003/08/24 19:42:08 gul - * Get FTN-domain from matched zone in exp_ftnaddress() - * - * Revision 2.43 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.42 2003/08/19 19:41:39 gul - * Fix warnings - * - * Revision 2.41 2003/08/19 18:01:08 stream - * Fix unix compilation - * - * Revision 2.40 2003/08/18 17:19:13 stream - * Partially implemented new configuration parser logic (required for config reload) - * - * Revision 2.39 2003/08/18 07:35:08 val - * multiple changes: - * - hide-aka/present-aka logic - * - address mask matching via pmatch - * - delay_ADR in STATE (define DELAY_ADR removed) - * - ftnaddress_to_str changed to xftnaddress_to_str (old version #define'd) - * - parse_ftnaddress now sets zone to domain default if it's omitted - * - * Revision 2.38 2003/08/16 09:47:25 gul - * Autodetect tzoff if not specified - * - * Revision 2.37 2003/08/14 07:39:36 val - * migrate from vfprintf() to vsnprintf() in Log(), new keyword `nolog' - * - * Revision 2.36 2003/08/12 09:31:46 val - * don't strlower() mask in flag/exec since we now use pmatch_ncase() - * - * Revision 2.35 2003/08/12 09:23:00 val - * migrate from pmatch() to pmatch_ncase() - * - * Revision 2.34 2003/08/11 08:33:16 val - * better error handling in perl hooks - * - * Revision 2.33 2003/07/30 11:01:37 val - * perl-dll keyword can be used even when PERLDL is not defined (does nothing) - * - * Revision 2.32 2003/07/28 10:23:33 val - * Perl DLL dynamic load for Win32, config keyword perl-dll, nmake PERLDL=1 - * - * Revision 2.31 2003/07/07 08:33:25 val - * `perl-hooks' config keyword to specify perl script - * - * Revision 2.30 2003/06/30 22:48:36 hbrew - * Allow to override -ip, -sip, -md, -nomd in add_node() - * - * Revision 2.29 2003/06/12 08:30:57 val - * check pkt header feature, see keyword 'check-pkthdr' - * - * Revision 2.28 2003/06/12 08:21:43 val - * 'skipmask' is replaced with 'skip', which allows more skipping features - * - * Revision 2.27 2003/06/07 08:46:25 gul - * New feature added: shared aka - * - * Revision 2.26 2003/05/28 09:03:17 gul - * Typo in prev patch - * - * Revision 2.25 2003/05/28 08:56:33 gul - * Reread config if passwords file changed when -C switch specified - * - * Revision 2.24 2003/05/01 09:55:01 gul - * Remove -crypt option, add global -r option (disable crypt). - * - * Revision 2.23 2003/03/25 13:17:53 gul - * Check if inbound and temp-inbound are in the same partition - * - * Revision 2.22 2003/03/11 00:04:26 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.21 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.20 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.19 2003/03/01 15:00:17 gul - * Join skipmask and overwrite into common maskchain - * - * Revision 2.18 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.17 2003/02/23 16:31:21 gul - * Add "-sip" option in node string. - * Change "-ip" check logic. - * - * Revision 2.16 2003/02/22 21:32:46 gul - * Amiga Style Outbound support - * - * Revision 2.15 2003/02/22 20:19:54 gul - * Update copyrightes, 2002->2003 - * - * Revision 2.14 2003/02/13 19:18:11 gul - * minor fix - * - * Revision 2.13 2003/01/29 19:32:03 gul - * Code cleanup, prevent segfault on bad config - * - * Revision 2.12 2003/01/16 14:34:11 gul - * Fix segfault under unix - * - * Revision 2.11 2002/12/17 14:02:22 gul - * change strcasecmp -> STRICMP - * - * Revision 2.10 2002/12/17 13:00:44 gul - * Fix previous patch - * - * Revision 2.9 2002/12/10 21:31:30 gul - * Bugfix for check filebox and outbound - * - * Revision 2.8 2002/11/14 13:01:43 gul - * Bugfix for previous patch - * - * Revision 2.7 2002/11/12 17:41:02 gul - * Check for (personal) outbox pointed to (common) outbound - * - * Revision 2.6 2002/07/21 10:35:44 gul - * overwrite option - * - * Revision 2.5 2002/05/11 08:37:32 gul - * Added token deletedirs - * - * Revision 2.4 2002/05/06 19:25:39 gul - * new keyword inboundCase in config - * - * Revision 2.3 2002/02/22 00:18:34 gul - * Run by-file events with the same command-line once after session - * - * Revision 2.2 2001/08/24 13:23:28 da - * binkd/binkd.c - * binkd/readcfg.c - * binkd/readcfg.h - * binkd/server.c - * binkd/nt/service.c - * - * Revision 2.1 2001/02/15 11:03:18 gul - * Added crypt traffic possibility - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.14 1997/10/23 03:45:34 mff - * +fdinhist, +fdouthist, +root_domain, many fixes to hide pNod into - * ftnnode.c - * - * Revision 1.13 1997/09/04 02:53:01 mff - * Added fdinhist/fdouthist keywords to support FrontDoor-style history. - * Added support for multiple hosts per node. Find_port() moved to - * iptools.c - * - * Revision 1.12 1997/08/19 21:42:29 mff - * Changes to support multiple hosts per node: in FTN_NODE - * host/port pair replaced with asciiz string in ``hosts'' - * - * - * 1997/07/11 11:47:55 maxb - * Added fdinhist and fdouthist keyword - * - * Revision 1.11 1997/06/16 05:42:30 mff - * Added binlog and tzoff keywords. - * - * Revision 1.10 1997/05/17 08:43:23 mff - * Flavours for fileboxes were ignored - * - * Revision 1.9 1997/03/28 06:36:28 mff - * Added "exec" keyword - * - * Revision 1.8 1997/03/15 05:06:08 mff - * Added -nr key to node statement - * - * Revision 1.6 1997/03/09 07:13:30 mff - * getservbyname with iport/oport, added reading of syslog facility - * - * Revision 1.5 1997/02/07 06:55:11 mff - * `include', extened `node', more? - */ - #include #include #include diff --git a/readcfg.h b/readcfg.h index d9d5289b..50a0ba19 100644 --- a/readcfg.h +++ b/readcfg.h @@ -11,179 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.43 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.42 2013/02/04 12:47:12 gul - * New config option "listen" - * - * Revision 2.41 2013/02/03 21:37:45 gul - * New option "rename-style [postfix|extension]" - * - * Revision 2.40 2012/01/08 17:34:58 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.39 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.38 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.37 2009/05/27 09:33:52 gul - * perl-var config keyword - * update $hosts by on_call() perl hook not only if it returns 2 - * - * Revision 2.36 2009/05/26 13:04:35 gul - * New perl hooks: - * need_reload() - is it needed to reload config - * config_loaded() - after successful reading config - * - * Revision 2.35 2007/10/30 07:33:25 gul - * New config option dont-send-empty - * - * Revision 2.34 2004/11/07 13:52:40 stream - * Automatically rescan outbound after reload of configuration - * - * Revision 2.33 2004/11/07 07:26:36 gul - * New config options zlib-dll and bzlib2-dll - * - * Revision 2.32 2004/10/25 17:04:54 gul - * Process passwords file after all, independent of its place in config. - * Use first password for node if several specified. - * - * Revision 2.31 2004/09/06 10:47:06 val - * bandwidth limiting code advancements, `listed' session state fix - * - * Revision 2.30 2004/09/02 08:56:20 val - * bandwidth limiting config parameter 'limit-rate' - * - * Revision 2.29 2004/01/07 12:23:40 gul - * Remove zaccept keyword, receiving compressed files possibility - * is always on now if binkd was compiled with zlib/bzip2 support. - * - * Revision 2.28 2003/12/26 20:11:32 gul - * Add -d commandline switch - dump parsed config and exit; - * remove 'debugcfg' config token. - * - * Revision 2.27 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.26 2003/10/19 12:21:47 gul - * Stream compression - * - * Revision 2.25 2003/10/14 07:20:40 gul - * Fixed typo - * - * Revision 2.24 2003/09/24 07:32:17 val - * bzlib2 compression support, new compression keyword: zlevel - * - * Revision 2.23 2003/09/15 06:57:09 val - * compression support via zlib: config keywords, improvements, OS/2 code - * - * Revision 2.22 2003/09/12 07:37:58 val - * compression support via zlib (preliminary) - * - * Revision 2.21 2003/09/08 16:39:39 stream - * Fixed race conditions when accessing array of nodes in threaded environment - * ("jumpimg node structures") - * - * Revision 2.20 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.19 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.18 2003/08/18 07:35:09 val - * multiple changes: - * - hide-aka/present-aka logic - * - address mask matching via pmatch - * - delay_ADR in STATE (define DELAY_ADR removed) - * - ftnaddress_to_str changed to xftnaddress_to_str (old version #define'd) - * - parse_ftnaddress now sets zone to domain default if it's omitted - * - * Revision 2.17 2003/08/14 07:39:36 val - * migrate from vfprintf() to vsnprintf() in Log(), new keyword `nolog' - * - * Revision 2.16 2003/08/11 08:33:16 val - * better error handling in perl hooks - * - * Revision 2.15 2003/07/30 11:01:37 val - * perl-dll keyword can be used even when PERLDL is not defined (does nothing) - * - * Revision 2.14 2003/07/28 10:23:33 val - * Perl DLL dynamic load for Win32, config keyword perl-dll, nmake PERLDL=1 - * - * Revision 2.13 2003/07/07 08:33:25 val - * `perl-hooks' config keyword to specify perl script - * - * Revision 2.12 2003/06/12 08:30:57 val - * check pkt header feature, see keyword 'check-pkthdr' - * - * Revision 2.11 2003/06/12 08:21:43 val - * 'skipmask' is replaced with 'skip', which allows more skipping features - * - * Revision 2.10 2003/06/07 08:46:25 gul - * New feature added: shared aka - * - * Revision 2.9 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.8 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.7 2003/03/01 18:52:49 gul - * use time_t for mtime - * - * Revision 2.6 2003/03/01 15:00:17 gul - * Join skipmask and overwrite into common maskchain - * - * Revision 2.5 2003/02/22 21:32:46 gul - * Amiga Style Outbound support - * - * Revision 2.4 2003/02/22 14:30:18 gul - * Make nNod var static - * - * Revision 2.3 2002/05/11 08:37:32 gul - * Added token deletedirs - * - * Revision 2.2 2002/05/06 19:25:40 gul - * new keyword inboundCase in config - * - * Revision 2.1 2001/08/24 13:23:28 da - * binkd/binkd.c - * binkd/readcfg.c - * binkd/readcfg.h - * binkd/server.c - * binkd/nt/service.c - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.7 1997/10/23 03:44:03 mff - * +fdinhist, +fdouthist, +root_domain - * - * 1997/07/11 11:51:17 maxb - * Added fdinhist and fdouthist keywords. - * - * Revision 1.6 1997/06/16 05:42:30 mff - * Added binlog and tzoff keywords. - * - * Revision 1.5 1997/03/28 06:36:28 mff - * Added "exec" keyword - */ #ifndef _readcfg_h #define _readcfg_h diff --git a/readdir.h b/readdir.h index afcf585b..91a0ab75 100644 --- a/readdir.h +++ b/readdir.h @@ -12,35 +12,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2003/03/12 08:57:54 gul - * Fix for MSVC - * - * Revision 2.5 2003/03/11 00:04:26 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.4 2003/03/10 12:16:53 gul - * Use HAVE_DOS_H macro - * - * Revision 2.3 2003/03/10 11:40:09 gul - * Use self opendir/readdir/closedir functions for watcom - * - * Revision 2.2 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.1 2001/09/24 10:31:39 gul - * Build under mingw32 - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.1 1996/12/29 09:46:20 mff - * Initial revision - * - */ #ifndef _readdir_h #define _readdir_h diff --git a/readflo.c b/readflo.c index 635e0012..53d681a0 100644 --- a/readflo.c +++ b/readflo.c @@ -11,39 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.5 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.4 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.3 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.1 2002/11/12 17:27:46 gul - * Ignore empty (\r\n) line in lo-files - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.1 1997/03/28 06:20:30 mff - * Initial revision - * - */ - #include #include #include diff --git a/readflo.h b/readflo.h index ef4954c5..5d263701 100644 --- a/readflo.h +++ b/readflo.h @@ -11,33 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.4 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.3 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.1 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.1 1997/03/28 06:20:30 mff - * Initial revision - * - */ - #ifndef _readflo_h #define _readflo_h diff --git a/rfc2553.c b/rfc2553.c index e1d2071a..d70698d1 100644 --- a/rfc2553.c +++ b/rfc2553.c @@ -8,36 +8,6 @@ ##################################################################### */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2013/02/04 12:47:12 gul - * New config option "listen" - * - * Revision 2.5 2012/09/24 00:26:42 gul - * Resolve logic changed - * - * Revision 2.4 2012/07/06 21:42:16 green - * Corrected potential double-free - * - * Revision 2.3 2012/07/05 20:56:41 green - * Corrected mutex handling for multi-threaded environments - * - * Revision 2.2 2012/01/07 13:52:23 green - * Removed C++ comments (bad style, I know) - * - * Revision 2.1 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - */ - #include "rfc2553.h" #include #include diff --git a/rfc2553.h b/rfc2553.h index 596d59b8..3dbee8bd 100644 --- a/rfc2553.h +++ b/rfc2553.h @@ -16,27 +16,6 @@ ##################################################################### */ -/* - * $Id$ - * - * $Log$ - * Revision 2.3 2014/08/14 06:42:02 gul - * Fixed compilation on unix - * - * Revision 2.2 2012/01/07 13:52:23 green - * Removed C++ comments (bad style, I know) - * - * Revision 2.1 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - */ - #ifndef RFC2553EMU_H #define RFC2553EMU_H diff --git a/run.c b/run.c index 6b98db1c..1341206c 100644 --- a/run.c +++ b/run.c @@ -11,61 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.14 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.13 2013/12/11 13:06:12 stas - * Fix warning "missing sentinel in function call" - * - * Revision 2.12 2013/10/23 19:25:56 stream - * EWOULDBLOCK, O_BINARY, O_NOINHERIT could be defined to wrong value - * - * Revision 2.11 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.10 2012/11/06 05:05:19 stas - * more comprehensible diagnostic message - * - * Revision 2.9 2012/11/02 11:25:34 green - * Check return value of pipe() call - * - * Revision 2.8 2012/09/22 19:19:37 gul - * Compilation under mingw - * - * Revision 2.7 2012/09/20 12:16:53 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.6 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.5 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.4 2003/04/07 18:22:16 gul - * Wait for external process under win32 bugfix - * - * Revision 2.3 2003/04/06 08:01:32 gul - * Close handles after CreateProcess() - * - * Revision 2.2 2003/04/06 07:54:41 gul - * Change wait for child process function for win32 - * - * Revision 2.1 2001/10/27 08:07:17 gul - * run and run_args returns exit code of calling process - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.1 1997/03/28 06:16:56 mff - * Initial revision - * - */ - #include #include #include diff --git a/run.h b/run.h index cad9f2ba..4493d5c4 100644 --- a/run.h +++ b/run.h @@ -11,27 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.3 2012/09/22 19:19:37 gul - * Compilation under mingw - * - * Revision 2.2 2012/09/20 12:16:54 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.1 2001/10/27 08:07:18 gul - * run and run_args returns exit code of calling process - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.1 1997/03/28 06:16:56 mff - * Initial revision - * - */ #ifndef _run_h #define _run_h diff --git a/sem.h b/sem.h index e4e0f055..7bdd3b34 100644 --- a/sem.h +++ b/sem.h @@ -11,68 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.15 2014/01/12 13:25:31 gul - * unix (linux) pthread version - * - * Revision 2.14 2010/05/24 14:24:32 gul - * Exit immediately after all jobs done in "-p" mode - * - * Revision 2.13 2009/06/02 17:09:35 gul - * Build binkd for OS/2 with perl support - * - * Revision 2.12 2004/01/03 12:17:43 stas - * Implement full icon support (winNT/2k/XP) - * - * Revision 2.11 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.10 2003/08/17 10:38:55 gul - * Return semaphoring for log and binlog - * - * Revision 2.9 2003/08/16 06:21:12 gul - * Log() semaphoring removed - * - * Revision 2.8 2003/05/04 08:45:30 gul - * Lock semaphores more safely for resolve and IP-addr print - * - * Revision 2.7 2003/03/31 19:35:16 gul - * Clean semaphores usage - * - * Revision 2.6 2003/03/26 13:53:28 gul - * Fix OS/2 compilation - * - * Revision 2.5 2003/03/11 11:42:23 gul - * Use event semaphores for exit threads - * - * Revision 2.4 2003/03/10 12:16:54 gul - * Use HAVE_DOS_H macro - * - * Revision 2.3 2003/03/10 08:38:07 gul - * Make n_servers/n_clients changes thread-safe - * - * Revision 2.2 2003/02/22 19:20:25 gul - * Fix type in previous patch - * - * Revision 2.1 2003/02/22 12:12:34 gul - * Cleanup sources - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.5 1997/10/23 03:40:27 mff - * Amiga port - * - * Revision 1.3 1996/12/05 06:56:18 mff - * Changed to support multiple semaphores - */ - #ifndef _SEM_H_ #define _SEM_H_ diff --git a/server.c b/server.c index e5f9264e..8c0750fe 100644 --- a/server.c +++ b/server.c @@ -11,243 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.62 2014/09/21 08:44:51 gul - * Write configured remote hostname and port in log line "outgoing session with ..." - * - * Revision 2.61 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.60 2014/08/09 13:58:04 gul - * Fix servmgr exit after incoming session (broken in 1.1a-50) - * - * Revision 2.59 2014/08/02 09:54:04 gul - * Fix in signal handling - * - * Revision 2.58 2014/02/02 07:46:47 gul - * Set FD_CLOEXEC on listening socket - * - * Revision 2.57 2014/01/12 13:25:31 gul - * unix (linux) pthread version - * - * Revision 2.56 2013/02/04 12:47:12 gul - * New config option "listen" - * - * Revision 2.55 2012/09/20 12:16:54 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.54 2012/05/14 06:14:59 gul - * More safe signal handling - * - * Revision 2.53 2012/01/08 19:18:03 green - * Improved hostname lookup and logging - * - * Revision 2.52 2012/01/08 17:34:58 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.51 2012/01/08 14:09:04 green - * Corrected initialization of getaddrinfo hints - * - * Revision 2.50 2012/01/07 23:38:45 green - * Improved getnameinfo handling, retry without name resolution - * - * Revision 2.49 2012/01/07 16:56:28 green - * Improved getnameinfo error handling - * - * Revision 2.48 2012/01/07 16:34:00 green - * Add error id where gai_strerror() is used - * - * Revision 2.47 2012/01/07 11:54:04 green - * Fix MSVC6 compilation errors - * - * Revision 2.46 2012/01/06 11:33:31 gul - * Format error - * - * Revision 2.45 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - * Revision 2.44 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.43 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.42 2009/02/04 20:13:47 gul - * Possible remote DoS (thx to Konstantin Kuzov 2:5019/40) - * - * Revision 2.41 2007/10/06 10:20:05 gul - * more accurate checkcfg() - * - * Revision 2.40 2007/10/04 17:30:28 gul - * SIGHUP handler (thx to Sergey Babitch) - * - * Revision 2.39 2004/11/07 13:20:13 stream - * Lock config of server manager so it can be safely reloaded in SIGHUP - * - * Revision 2.38 2004/08/04 19:51:40 gul - * Change SIGCHLD handling, make signal handler more clean, - * prevent occasional hanging (mutex deadlock) under linux kernel 2.6. - * - * Revision 2.37 2003/10/29 21:08:39 gul - * Change include-files structure, relax dependences - * - * Revision 2.36 2003/10/19 10:28:10 gul - * Minor DEBUGCHILD fix - * - * Revision 2.35 2003/10/07 20:50:07 gul - * Wait for servmanager exit from exitproc() - * (Patch from Alexander Reznikov) - * - * Revision 2.34 2003/10/07 17:57:09 gul - * Some small changes in close threads function. - * Inhibit errors "socket operation on non-socket" on break. - * - * Revision 2.33 2003/09/21 17:51:08 gul - * Fixed PID in logfile for perl stderr handled messages in fork version. - * - * Revision 2.32 2003/09/05 06:49:07 val - * Perl support restored after config reloading patch - * - * Revision 2.31 2003/08/26 22:18:48 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.30 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.29 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.28 2003/08/25 06:11:06 gul - * Fix compilation with HAVE_FORK - * - * Revision 2.27 2003/08/24 13:30:33 stream - * Socket wasn't closed if branch() failed - * - * Revision 2.26 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.25 2003/08/18 09:41:00 gul - * Little cleanup in handle perl errors - * - * Revision 2.24 2003/06/20 10:37:02 val - * Perl hooks for binkd - initial revision - * - * Revision 2.23 2003/05/23 18:10:57 stas - * Do not report errors when threads exits by exitfunc - * - * Revision 2.22 2003/05/04 08:45:30 gul - * Lock semaphores more safely for resolve and IP-addr print - * - * Revision 2.21 2003/04/28 07:30:17 gul - * Bugfix: Log() changes TCPERRNO - * - * Revision 2.20 2003/03/31 19:53:08 gul - * Close socket before exit - * - * Revision 2.19 2003/03/26 13:53:28 gul - * Fix OS/2 compilation - * - * Revision 2.18 2003/03/11 11:42:23 gul - * Use event semaphores for exit threads - * - * Revision 2.17 2003/03/11 00:04:26 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.16 2003/03/10 17:32:37 gul - * Use socklen_t - * - * Revision 2.15 2003/03/10 12:16:54 gul - * Use HAVE_DOS_H macro - * - * Revision 2.14 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.13 2003/03/10 08:38:07 gul - * Make n_servers/n_clients changes thread-safe - * - * Revision 2.12 2003/03/05 19:47:11 gul - * Fix compilation warning - * - * Revision 2.11 2003/03/05 13:21:51 gul - * Fix warnings - * - * Revision 2.10 2003/03/03 23:41:20 gul - * Try to resolve problem with active threads while exitproc running - * - * Revision 2.9 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.8 2003/03/01 18:16:04 gul - * Use HAVE_SYS_TIME_H macro - * - * Revision 2.7 2003/03/01 15:55:02 gul - * Current outgoing address is now attibute of session, but not node - * - * Revision 2.6 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.5 2003/02/22 12:12:34 gul - * Cleanup sources - * - * Revision 2.4 2002/11/12 16:55:58 gul - * Run as service under win9x - * - * Revision 2.3 2001/09/14 07:23:06 gul - * bindaddr bugfix, did not work on freebsd - * - * Revision 2.2 2001/08/24 13:23:28 da - * binkd/binkd.c - * binkd/readcfg.c - * binkd/readcfg.h - * binkd/server.c - * binkd/nt/service.c - * - * Revision 2.1 2001/05/23 16:48:04 gul - * msvc warnings fixed - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.8 1997/10/23 03:39:42 mff - * DUP() removed - * - * Revision 1.7 1997/06/16 05:41:14 mff - * Added exit(3) on config change. - * - * Revision 1.6 1997/03/09 07:14:49 mff - * Now we use HOSTNAME() - * - * Revision 1.5 1997/02/07 06:42:59 mff - * Under UNIXs SIGHUP forces binkd to restart - * - * Revision 1.4 1997/02/01 05:55:24 mff - * Changed SIGCHLD support - * - * Revision 1.2 1996/12/14 07:10:52 mff - * We now use branch(). Listening changed. - */ - #include #include #ifdef HAVE_SYS_TIME_H diff --git a/server.h b/server.h index 875c34e2..2431f8c2 100644 --- a/server.h +++ b/server.h @@ -1,36 +1,3 @@ -/* - * $Id$ - * - * $Log$ - * Revision 2.5 2013/02/04 12:47:12 gul - * New config option "listen" - * - * Revision 2.4 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.3 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.1 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * - */ #ifndef _servmgr_h #define _servmgr_h diff --git a/setpttl.h b/setpttl.h index 3c0f38fe..c58300fc 100644 --- a/setpttl.h +++ b/setpttl.h @@ -10,15 +10,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * - */ #ifndef _setpttl_h #define _setpttl_h diff --git a/srif.c b/srif.c index 6e462624..ab5a0e9f 100644 --- a/srif.c +++ b/srif.c @@ -11,110 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.23 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.22 2012/09/20 12:16:54 gul - * Added "call via external pipe" (for example ssh) functionality. - * Added "-a", "-f" options, removed obsoleted "-u" and "-i" (for win32). - * - * Revision 2.21 2012/01/08 17:34:58 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.20 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.19 2008/08/05 06:05:17 gul - * Optimize srif functions params - * - * Revision 2.18 2005/07/04 18:24:43 gul - * Move events checking and running to inb_test() for reducing repeated code; - * do not run immediate events twice; - * fixed argus-style freqs (not tested). - * - * Revision 2.17 2004/06/07 10:47:12 gul - * Touch flag if its already exists - * - * Revision 2.16 2004/02/29 08:51:13 gul - * Fixed *A@ macro on event calls - * (patch from Victor Levenets). - * - * Revision 2.15 2003/10/29 21:08:40 gul - * Change include-files structure, relax dependences - * - * Revision 2.14 2003/09/08 17:05:42 stream - * Big memory leak in evt_queue() - * - * Revision 2.13 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.12 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.11 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.10 2003/08/12 09:23:00 val - * migrate from pmatch() to pmatch_ncase() - * - * Revision 2.9 2003/05/28 14:32:57 gul - * new function q_add_last_file() - add file to the end of queue - * - * Revision 2.8 2003/05/27 16:11:17 gul - * Improve logging - * - * Revision 2.7 2003/03/10 17:32:38 gul - * Use socklen_t - * - * Revision 2.6 2003/03/05 13:21:51 gul - * Fix warnings - * - * Revision 2.5 2003/02/23 12:49:00 gul - * Added *A* and *A@ macros - * - * Revision 2.4 2002/03/14 12:26:24 gul - * Creating flags bugfix - * - * Revision 2.3 2002/02/22 00:18:34 gul - * Run by-file events with the same command-line once after session - * - * Revision 2.2 2001/10/27 08:07:19 gul - * run and run_args returns exit code of calling process - * - * Revision 2.1 2001/10/27 07:53:46 gul - * Unlink req-file after run freq-processor - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.4 1997/06/16 05:40:33 mff - * Binkd will not complain about missing .rsp files when running - * programms with "exec" statement without using of *S macro. - * - * Revision 1.3 1997/03/28 06:12:48 mff - * Changes to support SRIF: + evt_run(), etc. - * - * Revision 1.2 1997/02/09 04:17:30 mff - * Removed error msgs - * - * Revision 1.1 1997/01/08 03:57:54 mff - * Initial revision - * - */ - #include #include #include diff --git a/srif.h b/srif.h index a39b3cd9..5614cd66 100644 --- a/srif.h +++ b/srif.h @@ -11,42 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2008/08/05 06:05:17 gul - * Optimize srif functions params - * - * Revision 2.5 2005/07/04 18:24:43 gul - * Move events checking and running to inb_test() for reducing repeated code; - * do not run immediate events twice; - * fixed argus-style freqs (not tested). - * - * Revision 2.4 2003/10/29 21:08:40 gul - * Change include-files structure, relax dependences - * - * Revision 2.3 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.2 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.1 2002/02/22 00:18:34 gul - * Run by-file events with the same command-line once after session - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.3 1997/10/23 03:37:25 mff - * *** empty log message *** - * - * Revision 1.2 1997/03/28 06:12:48 mff - * Changes to support SRIF: + evt_run(), etc. - */ #ifndef _srif_h #define _srif_h diff --git a/srv_gai.c b/srv_gai.c index 86c9ef25..9bdb9501 100644 --- a/srv_gai.c +++ b/srv_gai.c @@ -21,39 +21,6 @@ * */ -/* - * $Id$ - * - * $Log$ - * Revision 2.8 2014/08/14 06:42:02 gul - * Fixed compilation on unix - * - * Revision 2.7 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.6 2012/02/18 16:43:39 green - * Corrected linking issues on Win32 - * - * Revision 2.5 2012/01/22 20:40:56 green - * Replaces index (deprecated) with strchr - * - * Revision 2.4 2012/01/22 12:27:07 green - * No SRV lookup for IP addresses - * - * Revision 2.3 2012/01/08 17:34:58 green - * Avoid using MAXHOSTNAMELEN - * - * Revision 2.2 2012/01/08 02:03:46 green - * Implement fallback for system not exporting resolv/ns_initparse etc. - * - * Revision 2.1 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - */ - #include #include #include diff --git a/srv_gai.h b/srv_gai.h index 5709dc19..1f08d1a4 100644 --- a/srv_gai.h +++ b/srv_gai.h @@ -21,27 +21,6 @@ * */ -/* - * $Id$ - * - * $Log$ - * Revision 2.4 2014/12/12 05:41:24 gul - * Compilation flag FSP1035 renamed to FTS5004 - * - * Revision 2.3 2014/08/14 06:42:02 gul - * Fixed compilation on unix - * - * Revision 2.2 2012/01/22 01:27:19 green - * Implement FSP1035 support for OS/2/Watcom - * - * Revision 2.1 2012/01/03 17:52:32 green - * Implement FSP-1035 (SRV record usage) - * - add SRV enabled getaddrinfo() wrapper (srv_gai.[ch]) - * - Unix (libresolv, autodetected) and Win32 support implemented - * - Port information is stored as string now, i.e. may be service name - * - */ - #ifndef __SRV_GETADDRINFO_H__ #define __SRV_GETADDRINFO_H__ diff --git a/sys.h b/sys.h index c445fbdf..c7893561 100644 --- a/sys.h +++ b/sys.h @@ -13,176 +13,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.45 2014/08/18 04:49:03 gul - * Fix MSVC + IPV6 - * - * Revision 2.44 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.43 2014/01/13 12:33:10 gul - * configure and small changes for multithread unix version - * - * Revision 2.42 2014/01/13 10:32:50 gul - * Unix multithread version - * - * Revision 2.41 2014/01/12 13:25:31 gul - * unix (linux) pthread version - * - * Revision 2.40 2013/11/15 12:00:11 stream - * Fix EMX build - * - * Revision 2.39 2013/11/08 18:22:32 stream - * Build on MSVC 2000 - * - * Revision 2.38 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.37 2013/10/23 19:25:56 stream - * EWOULDBLOCK, O_BINARY, O_NOINHERIT could be defined to wrong value - * - * Revision 2.36 2013/01/24 17:36:53 gul - * Compilation on unix - * - * Revision 2.35 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.34 2012/05/14 06:14:59 gul - * More safe signal handling - * - * Revision 2.33 2012/01/03 17:25:32 green - * Implemented IPv6 support - * - replace (almost) all getXbyY function calls with getaddrinfo/getnameinfo (RFC2553) calls - * - Add compatibility layer for target systems not supporting RFC2553 calls in rfc2553.[ch] - * - Add support for multiple listen sockets -- one for IPv4 and one for IPv6 (use V6ONLY) - * - For WIN32 platform add configuration parameter IPV6 (mutually exclusive with BINKD9X) - * - On WIN32 platform use Winsock2 API if IPV6 support is requested - * - config: node IP address literal + port supported: []: - * - * Revision 2.32 2010/12/12 12:32:11 gul - * Fix previous patch - * - * Revision 2.31 2010/12/12 09:44:11 gul - * Use Sleep() instead of select(0,NULL,NUL,NULL,...) under WIN32 - * - * Revision 2.30 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.29 2006/10/19 11:12:54 stas - * Fix segmentation fault in mingw build (illegal fprintf format string) - * - * Revision 2.28 2006/07/24 21:00:32 gul - * use MSG_NOSIGNAL in send() - * - * Revision 2.27 2005/10/02 16:35:21 gul - * *** empty log message *** - * - * Revision 2.26 2005/09/28 07:18:49 gul - * gettvtime() (time of day with more then second exactitude) for win32. - * Thanks to Alexander Reznikov. - * - * Revision 2.25 2005/09/27 20:15:43 gul - * Hopefully fixed compilation under windows - * - * Revision 2.24 2005/09/26 19:01:03 gul - * bw limits code partially rewrited (not tested) - * - * Revision 2.23 2005/04/05 07:31:12 gul - * Fixed bug in have_intmax_t detection - * - * Revision 2.22 2004/08/24 11:31:22 gul - * Fix typo in prev patch - * - * Revision 2.21 2004/08/06 07:05:22 gul - * Fixed typo in prev patch - * - * Revision 2.20 2004/08/04 19:51:40 gul - * Change SIGCHLD handling, make signal handler more clean, - * prevent occasional hanging (mutex deadlock) under linux kernel 2.6. - * - * Revision 2.19 2004/08/04 13:15:36 gul - * Define u16 and u32 types more clean - * - * Revision 2.18 2004/08/04 11:32:29 gul - * Attemp to support large files (>4G) - * - * Revision 2.17 2004/08/04 06:40:27 gul - * Use uintmax_t and PRIuMAX for printing file size (off_t) - * - * Revision 2.16 2003/12/24 00:36:40 gul - * Move system-dependent macros from Config.h to sys.h, - * add pipe() wrapper for mingw32. - * - * Revision 2.15 2003/09/21 17:51:09 gul - * Fixed PID in logfile for perl stderr handled messages in fork version. - * - * Revision 2.14 2003/08/18 09:15:39 gul - * Cosmetics - * - * Revision 2.13 2003/08/14 08:29:22 gul - * Use snprintf() from sprintf.c if no such libc function - * - * Revision 2.12 2003/07/19 06:59:34 hbrew - * Complex patch: - * * nt/w32tools.c: Fix warnings - * * nt/w32tools.c: Fix typo in #ifdef - * * nt/win9x.c: Fix type in #include - * * Config.h, sys.h, branch.c, nt/service.c, - * nt/win9x.c, : _beginthread()-->BEGINTHREAD() - * * binkd.c, common.h, mkfls/nt95-msvc/Makefile.dep, - * nt/service.c, nt/w32tools.c,nt/win9x.c: cosmitic code cleanup - * - * Revision 2.11 2003/04/06 13:50:11 gul - * dos sleep() realization - * - * Revision 2.10 2003/03/26 13:53:28 gul - * Fix OS/2 compilation - * - * Revision 2.9 2003/03/11 09:21:30 gul - * Fixed OS/2 Watcom compilation - * - * Revision 2.8 2003/03/11 00:04:26 gul - * Use patches for compile under MSDOS by MSC 6.0 with IBMTCPIP - * - * Revision 2.7 2003/03/10 12:16:54 gul - * Use HAVE_DOS_H macro - * - * Revision 2.6 2003/03/10 10:39:23 gul - * New include file common.h - * - * Revision 2.5 2003/03/05 11:40:12 gul - * Fix win32 compilation - * - * Revision 2.4 2003/03/03 23:41:20 gul - * Try to resolve problem with active threads while exitproc running - * - * Revision 2.3 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.2 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.1 2003/02/22 12:12:34 gul - * Cleanup sources - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.3 1997/10/23 03:34:15 mff - * many, many changes (forget to ci a version or two) - * - * Revision 1.1 1996/12/14 07:13:04 mff - * Initial revision - * - */ #ifndef _sys_h #define _sys_h diff --git a/tools.c b/tools.c index ccf48663..b83e3411 100644 --- a/tools.c +++ b/tools.c @@ -11,331 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.81 2014/08/13 20:50:54 gul - * Fixed IPv6 support with MSVC build - * - * Revision 2.80 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.79 2013/01/24 17:33:40 gul - * Syntax error - * - * Revision 2.78 2013/01/24 17:25:35 gul - * Support "-pipe" option on Win32 - * - * Revision 2.77 2012/10/28 21:30:15 green - * Corrected Segfault in config error reporting on 64bit architectures - * - * Revision 2.76 2012/06/25 06:15:33 gul - * Cosmetics - * - * Revision 2.75 2009/06/16 19:24:29 gul - * Cosmetics around mkargv() - * - * Revision 2.74 2009/06/15 19:56:39 stas - * Fix OS/2 Watcom build crash. Thanks to Alexey Korop 2:461/155 - * - * Revision 2.73 2009/06/02 17:09:35 gul - * Build binkd for OS/2 with perl support - * - * Revision 2.72 2009/05/31 07:16:17 gul - * Warning: many changes, may be unstable. - * Perl interpreter is now part of config and rerun on config reload. - * Perl 5.10 compatibility. - * Changes in outbound queue managing and sorting. - * - * Revision 2.71 2006/08/09 07:09:11 gul - * cosmetic fix - * - * Revision 2.70 2005/11/09 14:15:57 stas - * Increase loglevel for low-level file operation 'remove file' to dont double log lines - * - * Revision 2.69 2005/09/28 07:18:49 gul - * gettvtime() (time of day with more then second exactitude) for win32. - * Thanks to Alexander Reznikov. - * - * Revision 2.68 2005/09/27 20:16:18 gul - * *** empty log message *** - * - * Revision 2.67 2005/09/27 20:15:43 gul - * Hopefully fixed compilation under windows - * - * Revision 2.66 2005/09/26 19:01:03 gul - * bw limits code partially rewrited (not tested) - * - * Revision 2.65 2004/11/22 15:56:42 stream - * Errors in config were not logged to file (log file name was set only - * when config was completely loaded, checked and accepted). Now log - * settings are changed immediately after each log-related directive - * (only for first-time config load) - * - * Revision 2.64 2004/10/18 15:22:20 gul - * Change handle perl errors method - * - * Revision 2.63 2004/08/03 20:46:46 gul - * Use localtime_r() and gmtime_r() if exists - * - * Revision 2.62 2004/02/07 14:06:06 hbrew - * Macros: RTLDLL-->RTLSTATIC, BINKDW9X-->BINKD9X - * - * Revision 2.61 2004/01/08 13:07:40 val - * use new pkt header parsing function in check-pkthdr, remove older function - * - * Revision 2.60 2004/01/08 13:03:51 val - * * new functions for parsing and updating addresses in pkt header (raw, char*) - * * use these functions in shared aka logic - * * set password in pkt to the pkt password for the main aka of sharing node - * * config file description updated - * - * Revision 2.59 2004/01/03 13:35:29 stas - * Fix log file name usage (from enviroment) - * - * Revision 2.58 2004/01/02 20:58:56 stas - * Log file may be defined in enviroment variable BINKD_LOG - * - * Revision 2.57 2003/11/17 01:03:27 hbrew - * Fix BINKDW9X macro - * - * Revision 2.56 2003/10/29 21:08:40 gul - * Change include-files structure, relax dependences - * - * Revision 2.55 2003/10/18 18:50:47 stas - * Move to new 'tray.c' file several functions when is related with 'minimize to tray' feature - * - * Revision 2.54 2003/10/14 07:34:28 gul - * Use getwordx() for parse optional M_FILE params - * - * Revision 2.53 2003/10/05 09:37:42 stas - * Optimize binkd/nt start: use hack to determine if we're running as a service without waiting for the service control manager to fail - * - * Revision 2.52 2003/09/22 09:54:41 gul - * Screen output semaphoring, prevent mixing output from threads - * - * Revision 2.51 2003/09/21 17:34:27 gul - * Change perl stderr handling for thread vertions, - * some small changes. - * - * Revision 2.50 2003/08/26 22:18:48 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.49 2003/08/26 21:01:10 gul - * Fix compilation under unix - * - * Revision 2.48 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.47 2003/08/23 15:51:51 stream - * Implemented common list routines for all linked records in configuration - * - * Revision 2.46 2003/08/21 07:24:40 gul - * Use local buffer in Log() with HAVE_FORK - * - * Revision 2.45 2003/08/19 10:16:11 gul - * Rename trunc() -> trunc_file() due to conflict under OS/2 EMX - * - * Revision 2.44 2003/08/19 10:13:15 gul - * Change Log() semaphoring - * - * Revision 2.43 2003/08/18 15:44:51 stream - * New function last_slash(): Return pointer to last directory separator - * in file name, or NULL if no path present. - * - * Revision 2.42 2003/08/18 08:23:02 gul - * Return log semaphoring - * - * Revision 2.41 2003/08/18 07:29:09 val - * multiple changes: - * - perl error handling made via fork/thread - * - on_log() perl hook - * - perl: msg_send(), on_send(), on_recv() - * - unless using threads define log buffer via xalloc() - * - * Revision 2.40 2003/08/17 10:38:55 gul - * Return semaphoring for log and binlog - * - * Revision 2.39 2003/08/16 09:47:25 gul - * Autodetect tzoff if not specified - * - * Revision 2.38 2003/08/16 06:21:13 gul - * Log() semaphoring removed - * - * Revision 2.37 2003/08/14 12:56:29 gul - * Make Log() thread-safe - * - * Revision 2.36 2003/08/14 11:43:19 val - * free allocated log buffer in exitfunc() - * - * Revision 2.35 2003/08/14 08:29:22 gul - * Use snprintf() from sprintf.c if no such libc function - * - * Revision 2.34 2003/08/14 07:39:36 val - * migrate from vfprintf() to vsnprintf() in Log(), new keyword `nolog' - * - * Revision 2.33 2003/08/13 08:20:45 val - * try to avoid mixing Log() output and Perl errors in stderr - * - * Revision 2.32 2003/08/12 09:35:48 gul - * Cosmetics - * - * Revision 2.31 2003/08/12 09:23:00 val - * migrate from pmatch() to pmatch_ncase() - * - * Revision 2.30 2003/07/16 15:08:49 stas - * Fix NT services to use getopt(). Improve logging for service - * - * Revision 2.29 2003/07/12 18:22:06 gul - * Fix typo in comment - * - * Revision 2.28 2003/07/07 08:38:18 val - * safe pkthdr-reading function (to byte order and struct alignment) - * - * Revision 2.27 2003/06/30 22:42:27 hbrew - * Print only binkd name (without path) in error messages - * - * Revision 2.26 2003/06/25 08:22:14 gul - * Change strftime() to printf() to avoid using locale - * - * Revision 2.25 2003/06/25 07:25:00 stas - * Simple code, continue bugfix to responce negative timestamp - * - * Revision 2.24 2003/06/10 07:43:35 gul - * sdelete() - reliable delete file (wait for lock) - * - * Revision 2.23 2003/06/10 07:28:25 gul - * Fix patch about commandline parsing - * - * Revision 2.22 2003/04/02 13:12:57 gul - * Try to use workaround for buggy windows time functions (timezone) - * - * Revision 2.21 2003/03/31 22:47:22 gul - * remove workaround for msvc localtime() bug - * - * Revision 2.20 2003/03/31 21:48:59 gul - * Avoid infinite recursion - * - * Revision 2.19 2003/03/31 21:27:12 gul - * Avoid infinite recursion - * - * Revision 2.18 2003/03/31 20:28:24 gul - * safe_localtime() and safe_gmtime() functions - * - * Revision 2.17 2003/03/31 19:35:16 gul - * Clean semaphores usage - * - * Revision 2.16 2003/03/31 18:22:12 gul - * Use snprintf() instead of sprintf() - * - * Revision 2.15 2003/03/10 10:57:45 gul - * Extern declarations moved to header files - * - * Revision 2.14 2003/03/05 13:21:51 gul - * Fix warnings - * - * Revision 2.13 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.12 2002/11/14 09:46:59 gul - * Minor BINKDW9X fix - * - * Revision 2.11 2002/11/12 16:55:58 gul - * Run as service under win9x - * - * Revision 2.10 2002/05/06 19:25:40 gul - * new keyword inboundCase in config - * - * Revision 2.9 2002/03/20 15:31:19 gul - * ftrans bugfix - * - * Revision 2.8 2002/03/20 14:32:14 gul - * Bugfix in ftrans - * - * Revision 2.7 2002/03/07 14:29:52 gul - * print PID as unsigned to bsy/csy - * - * Revision 2.6 2002/02/25 21:33:56 gul - * Dequote \hh in filenames as \xhh; both \20 and \x20 are space now (FSP-1011) - * - * Revision 2.5 2001/11/08 14:04:12 gul - * bugfix - * - * Revision 2.4 2001/11/07 17:01:12 gul - * Check size of buffer in strnzcpy() - * - * Revision 2.3 2001/10/23 08:33:44 gul - * Change filename (not ext) in incoming *.req if already exists - * - * Revision 2.2 2001/09/30 13:49:59 gul - * Do not put log to socket if run via inetd - * - * Revision 2.1 2001/09/24 10:31:39 gul - * Build under mingw32 - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.18 1998/05/05 04:37:54 mff - * Now we add trailing '\n' to pids in pidfiles, added 2nd arg to strquote(), - * added strdequote(), strwipe() does not touch ' ' and 0xff any more, - * added istic(), ispkt(), isarcmail(). - * - * Revision 1.17 1997/10/23 03:31:49 mff - * minor bug fixes in mkpath*() (again!), added mutex into Log(), - * stricmp() -> STRICMP(), getwordx() moved to getw.c, minor fixes. - * - * Revision 1.16 1997/06/16 05:38:21 mff - * Changed Log() -> syslog() loglevel mapping, fixed endless recursion - * in Log() when calling assert() from Log() - * - * Revision 1.15 1997/05/17 11:18:14 mff - * + get_os_string() - * - * Revision 1.14 1997/05/17 08:40:35 mff - * assert() in Log() changed a bit - * - * Revision 1.13 1997/05/08 05:23:20 mff - * Fixed syslog feature of Log() - * - * Revision 1.12 1997/03/28 06:10:12 mff - * + ed() - * - * Revision 1.11 1997/03/15 05:03:32 mff - * added touch() - * - * Revision 1.10 1997/03/09 07:15:30 mff - * GWX_*, syslog - * - * Revision 1.9 1997/02/07 06:45:52 mff - * getwordx now handles not only first `#' as comment. Though it can be - * quoted with "" or \. TODO: bitmapped arg to turn this and var substing off - * - * Revision 1.8 1997/01/09 05:33:35 mff - * Now we don't mkdir("") (Thanks to Mike Malakhov) - * - * Revision 1.7 1996/12/29 09:47:42 mff - * Added: create_empty_sem_file() - * - * Revision 1.6 1996/12/14 07:13:51 mff - * log() is now Log() - * - * Revision 1.5 1996/12/05 08:01:11 mff - * Changed parse_args(), removed free_args() - * - * Revision 1.4 1996/12/05 07:24:35 mff - * Format strings for Log() should have no "\n" at the end - * - * Revision 1.3 1996/12/05 04:30:14 mff - * Now we don't mkdir drives - */ - #include #include #include diff --git a/tools.h b/tools.h index 48b50607..c5b68404 100644 --- a/tools.h +++ b/tools.h @@ -11,124 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.30 2012/10/28 21:30:15 green - * Corrected Segfault in config error reporting on 64bit architectures - * - * Revision 2.29 2009/06/16 19:24:29 gul - * Cosmetics around mkargv() - * - * Revision 2.28 2009/06/15 19:56:39 stas - * Fix OS/2 Watcom build crash. Thanks to Alexey Korop 2:461/155 - * - * Revision 2.27 2004/08/03 20:46:46 gul - * Use localtime_r() and gmtime_r() if exists - * - * Revision 2.26 2004/01/08 13:07:40 val - * use new pkt header parsing function in check-pkthdr, remove older function - * - * Revision 2.25 2004/01/08 13:03:51 val - * * new functions for parsing and updating addresses in pkt header (raw, char*) - * * use these functions in shared aka logic - * * set password in pkt to the pkt password for the main aka of sharing node - * * config file description updated - * - * Revision 2.24 2003/10/29 21:08:40 gul - * Change include-files structure, relax dependences - * - * Revision 2.23 2003/10/19 22:44:17 gul - * Add xstrcat(), use dynamic strings for OPT - * - * Revision 2.22 2003/10/14 07:34:28 gul - * Use getwordx() for parse optional M_FILE params - * - * Revision 2.21 2003/09/24 07:39:49 val - * fix warning - * - * Revision 2.20 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.19 2003/08/19 10:16:12 gul - * Rename trunc() -> trunc_file() due to conflict under OS/2 EMX - * - * Revision 2.18 2003/08/18 15:44:51 stream - * New function last_slash(): Return pointer to last directory separator - * in file name, or NULL if no path present. - * - * Revision 2.17 2003/08/16 09:47:26 gul - * Autodetect tzoff if not specified - * - * Revision 2.16 2003/07/07 08:38:18 val - * safe pkthdr-reading function (to byte order and struct alignment) - * - * Revision 2.15 2003/07/07 08:34:26 val - * pmatch() replaced by define to xpmatch() - * - * Revision 2.14 2003/06/30 22:42:27 hbrew - * Print only binkd name (without path) in error messages - * - * Revision 2.13 2003/06/25 07:25:01 stas - * Simple code, continue bugfix to responce negative timestamp - * - * Revision 2.12 2003/06/12 08:21:44 val - * 'skipmask' is replaced with 'skip', which allows more skipping features - * - * Revision 2.11 2003/06/10 07:43:35 gul - * sdelete() - reliable delete file (wait for lock) - * - * Revision 2.10 2003/06/10 07:28:25 gul - * Fix patch about commandline parsing - * - * Revision 2.9 2003/04/04 07:33:11 gul - * Fix syntax error - * - * Revision 2.8 2003/04/02 13:12:58 gul - * Try to use workaround for buggy windows time functions (timezone) - * - * Revision 2.7 2003/03/31 22:47:22 gul - * remove workaround for msvc localtime() bug - * - * Revision 2.6 2003/03/31 20:28:24 gul - * safe_localtime() and safe_gmtime() functions - * - * Revision 2.5 2003/03/05 13:21:51 gul - * Fix warnings - * - * Revision 2.4 2003/03/01 20:16:27 gul - * OS/2 IBM C support - * - * Revision 2.3 2003/02/28 20:39:08 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.2 2002/05/06 19:25:40 gul - * new keyword inboundCase in config - * - * Revision 2.1 2001/10/23 08:33:44 gul - * Change filename (not ext) in incoming *.req if already exists - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.10 1997/10/23 03:26:47 mff - * getword*() is in getw.h now - * - * Revision 1.9 1997/08/12 20:53:08 mff - * - DUP(), stricmp() is now STRICMP(), etc. - * - * Revision 1.7 1997/05/17 11:18:14 mff - * + get_os_string() - * - * Revision 1.6 1997/03/28 06:10:12 mff - * + ed() - */ #ifndef _tools_h #define _tools_h diff --git a/unix/daemonize.c b/unix/daemonize.c index 89174e8f..d630642a 100644 --- a/unix/daemonize.c +++ b/unix/daemonize.c @@ -1,39 +1,3 @@ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.8 2013/11/25 19:46:03 stream - * Add include (last one, I hope)/Fix UNIX build - * - * Revision 2.7 2003/10/29 21:08:41 gul - * Change include-files structure, relax dependences - * - * Revision 2.6 2003/08/26 21:01:11 gul - * Fix compilation under unix - * - * Revision 2.5 2003/07/13 09:37:50 gul - * Fix daemonize with libc5 - * - * Revision 2.4 2003/07/11 15:06:43 gul - * Fix building with libc5 - * - * Revision 2.3 2003/03/01 17:33:25 gul - * Clean daemonize code - * - * Revision 2.2 2001/02/15 10:38:12 gul - * fix #include pathes - * - * Revision 2.1 2001/01/16 03:57:06 gul - * Added HAVE_SYS_IOCTL_H - * - * Revision 2.0 2001/01/16 03:49:26 gul - * *** empty log message *** - * - * Revision 1.1 2001/01/15 22:04:52 gul - * Added -D switch (run as daemon) - * - */ #include #include #include diff --git a/unix/daemonize.h b/unix/daemonize.h index 39d6b30b..911c719d 100644 --- a/unix/daemonize.h +++ b/unix/daemonize.h @@ -1,15 +1,3 @@ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.1 2003/03/01 17:33:25 gul - * Clean daemonize code - * - * Revision 2.1 2001/01/15 22:04:52 gul - * Added -D switch (run as daemon) - * - */ #if defined(HAVE_DAEMON) || defined(HAVE_SETSID) || defined(HAVE_TIOCNOTTY) #define BINKD_DAEMONIZE diff --git a/unix/getfree.c b/unix/getfree.c index 5e679675..05c9491f 100644 --- a/unix/getfree.c +++ b/unix/getfree.c @@ -1,16 +1,3 @@ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.1 2001/04/23 07:58:57 gul - * getfree() on large drives fixed - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ /* This was taken from ifmail, and modified a bit for binkd -- mff, 1997 diff --git a/unix/rename.c b/unix/rename.c index add80cc7..a6ee8941 100644 --- a/unix/rename.c +++ b/unix/rename.c @@ -1,13 +1,3 @@ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #include #include #include diff --git a/unix/sem.c b/unix/sem.c index b9e9a75c..5e8afab9 100644 --- a/unix/sem.c +++ b/unix/sem.c @@ -11,16 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 1.1 2014/01/13 12:33:11 gul - * configure and small changes for multithread unix version - * - * - */ - #include #include "../sys.h" #include "../readcfg.h" diff --git a/unix/setpttl.c b/unix/setpttl.c index 2fda6b91..569a11fc 100644 --- a/unix/setpttl.c +++ b/unix/setpttl.c @@ -3,27 +3,6 @@ * Sendmail 8.8.8 by Eric Allman . * Edited a bit by Dima Maloff for Binkd/0.9.3 */ -/* - * $Id$ - * - * Revision history: - * $Log$ - * Revision 2.3 2003/12/02 13:02:27 gul - * Use own snprintf() instead of sprintf() if no HAVE_SNPRINTF - * - * Revision 2.2 2003/02/28 20:39:09 gul - * Code cleanup: - * change "()" to "(void)" in function declarations; - * change C++-style comments to C-style - * - * Revision 2.1 2001/10/27 08:31:30 gul - * minor fix - * - * Revision 2.0 2001/01/10 12:12:40 gul - * Binkd is under CVS again - * - * - */ #include #include diff --git a/xalloc.c b/xalloc.c index eb3a5957..6069ddc3 100644 --- a/xalloc.c +++ b/xalloc.c @@ -11,39 +11,6 @@ * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.6 2013/11/07 16:21:33 stream - * Lot of fixes to support 2G+ files. Supports 2G+ on Windows/MSVC - * - * Revision 2.5 2003/10/29 21:08:40 gul - * Change include-files structure, relax dependences - * - * Revision 2.4 2003/10/19 22:44:17 gul - * Add xstrcat(), use dynamic strings for OPT - * - * Revision 2.3 2003/08/26 22:18:48 gul - * Fix compilation under w32-mingw and os2-emx - * - * Revision 2.2 2003/08/26 16:06:27 stream - * Reload configuration on-the fly. - * - * Warning! Lot of code can be broken (Perl for sure). - * Compilation checked only under OS/2-Watcom and NT-MSVC (without Perl) - * - * Revision 2.1 2003/04/06 20:28:43 gul - * minor bugfix - * - * Revision 2.0 2001/01/10 12:12:39 gul - * Binkd is under CVS again - * - * Revision 1.1 1998/05/08 03:37:28 mff - * Initial revision - * - */ - #include #include #include "sys.h" diff --git a/zlibdl.c b/zlibdl.c index d8a72b3d..44101b39 100644 --- a/zlibdl.c +++ b/zlibdl.c @@ -10,48 +10,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.15 2004/01/08 12:46:01 val - * correct macrodef for msvc (_msc_ver instead of __msc__) - * - * Revision 2.14 2003/10/29 21:08:40 gul - * Change include-files structure, relax dependences - * - * Revision 2.13 2003/10/27 23:22:54 gul - * Fix OS/2 compilation - * - * Revision 2.12 2003/10/20 18:04:46 gul - * Previous patch break OS/2 compilation. Fixed. - * - * Revision 2.11 2003/10/20 17:57:13 gul - * Dynamic load bzlib.dll built as C++ - * - * Revision 2.10 2003/10/19 22:02:38 gul - * OS/2 ZLIBDL fix - * - * Revision 2.9 2003/10/19 12:21:47 gul - * Stream compression - * - * Revision 2.8 2003/10/06 08:25:28 val - * turn off optimization for zlibdl.c - * - * Revision 2.7 2003/10/06 06:30:36 val - * zlib code fix - * - * Revision 2.6 2003/09/25 06:41:43 val - * fix compilation under win32 - * - * Revision 2.5 2003/09/24 09:53:16 val - * fix warnings - * - * Revision 2.4 2003/09/24 07:32:17 val - * bzlib2 compression support, new compression keyword: zlevel - * - * - */ #ifdef ZLIBDL diff --git a/zlibdl.h b/zlibdl.h index a6cdc098..559b3700 100644 --- a/zlibdl.h +++ b/zlibdl.h @@ -10,45 +10,6 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See COPYING. */ -/* - * $Id$ - * - * $Log$ - * Revision 2.19 2005/06/06 16:43:28 stream - * Updates for OS/2+Watcom+zlib compilation - * - * Revision 2.18 2004/08/11 18:31:15 hbrew - * zlibdl.h: include for compatibility with zlib 1.2.1 - * - * Revision 2.17 2003/10/27 23:23:51 gul - * Fix static ZLIB/BZLIB linking - * - * Revision 2.16 2003/10/24 06:41:11 val - * ZLIBDL fix to restore linking with MSVC (bzlib2 still crashes) - * - * Revision 2.15 2003/10/23 21:16:09 gul - * Fix MSVC bzlib2 ZLIBDL compilation - * - * Revision 2.14 2003/10/23 16:45:33 gul - * Fix win32 zlibdl compilation - * - * Revision 2.13 2003/10/23 16:36:24 gul - * Fix warning - * - * Revision 2.12 2003/10/20 15:44:29 gul - * Declare DLL functions as WINAPI - * - * Revision 2.11 2003/10/19 12:21:47 gul - * Stream compression - * - * Revision 2.10 2003/10/03 13:29:57 val - * fix for older bzlib2 error (uses FILE but doesn't include stdio.h) - * - * Revision 2.9 2003/09/25 09:01:28 gul - * Fix CVS macro again - * - * - */ #ifndef _ZLIBDL_H_ #define _ZLIBDL_H_