]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
libopts-27.4.3
authorHarlan Stenn <stenn@ntp.org>
Sat, 9 Sep 2006 22:21:20 +0000 (18:21 -0400)
committerHarlan Stenn <stenn@ntp.org>
Sat, 9 Sep 2006 22:21:20 +0000 (18:21 -0400)
bk: 45033e60YWdXYoh7Pv-Z-mg0UP8FQw

30 files changed:
libopts/COPYING.lgpl
libopts/Makefile.am
libopts/autoopts.c
libopts/autoopts/options.h
libopts/autoopts/usage-txt.h
libopts/boolean.c
libopts/compat/compat.h
libopts/compat/pathfind.c
libopts/compat/windows-config.h
libopts/configfile.c
libopts/cook.c
libopts/enumeration.c
libopts/environment.c
libopts/genshell.c
libopts/genshell.h
libopts/load.c
libopts/m4/libopts.m4
libopts/makeshell.c
libopts/nested.c
libopts/numeric.c
libopts/pgusage.c
libopts/proto.h
libopts/putshell.c
libopts/restore.c
libopts/save.c
libopts/sort.c
libopts/stack.c
libopts/streqvcmp.c
libopts/text_mmap.c
libopts/version.c

index 52f31fd549a26a67a43d53a24818c8766f3cd438..129c5de4fb4aa52cbd99aefdfdaf1e211f325013 100644 (file)
@@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
 on the Library (independent of the use of the Library in a tool for
 writing it).  Whether that is true depends on what the Library does
 and what the program that uses the Library does.
-  
+
   1. You may copy and distribute verbatim copies of the Library's
 complete source code as you receive it, in any medium, provided that
 you conspicuously and appropriately publish on each copy an
index 31b312ff8d5cb0fb5bbb55d0750196671fa9e087..9c1479cce3d4d16965646f9eb6a85c5f7c39d7f3 100644 (file)
@@ -3,7 +3,7 @@ MAINTAINERCLEANFILES  = Makefile.in
 lib_LTLIBRARIES       = libopts.la
 libopts_la_SOURCES    = libopts.c
 libopts_la_CPPFLAGS   = -I$(top_srcdir)
-libopts_la_LDFLAGS    = -version-info  27:4:2
+libopts_la_LDFLAGS    = -version-info  27:4:3
 EXTRA_DIST            = \
     COPYING.lgpl            COPYING.mbsd            MakeDefs.inc  \
     README                  autoopts/options.h      autoopts/usage-txt.h  \
index 7efe8245bff6f6d50aed9eee863b30915732bcf0..5c9b337aa84dc5bc3d4db23ef87c9433b82987fd 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: autoopts.c,v 4.22 2006/07/15 22:10:21 bkorb Exp $
+ *  $Id: autoopts.c,v 4.13 2006/07/15 22:17:36 bkorb Exp $
  *  Time-stamp:      "2006-07-15 13:54:08 bkorb"
  *
  *  This file contains all of the routines that must be linked into
index c6027ff57bb9eee6dc3533262f5bb6a5dcde6fc9..c55497ca34193c495ddea3a74a7b69b4e44f9eef 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (options.h)
  *  
- *  It has been AutoGen-ed  Saturday July 22, 2006 at 08:36:53 AM PDT
+ *  It has been AutoGen-ed  Saturday September  9, 2006 at 01:15:17 PM PDT
  *  From the definitions    funcs.def
  *  and the template file   options_h
  *
@@ -260,10 +260,10 @@ struct optSpecIndex {
     const tAoUS         default_opt;
 };
 
-#define  OPTIONS_STRUCT_VERSION  110594
-#define  OPTIONS_VERSION_STRING  "27:4:2"
-#define  OPTIONS_MINIMUM_VERSION 102400
-#define  OPTIONS_MIN_VER_STRING  "25:0:0"
+#define  OPTIONS_STRUCT_VERSION  110595
+#define  OPTIONS_VERSION_STRING  "27:4:3"
+#define  OPTIONS_MINIMUM_VERSION 98304
+#define  OPTIONS_MIN_VER_STRING  "24:0:0"
 
 /*
  *  The procedure generated for translating option text
index 93cbdeb089b77f1edebc470d61f7687b0ebd9a20..542a9599369f02bede85ec4889c6c4caeeb1e18e 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (usage-txt.h)
  *  
- *  It has been AutoGen-ed  Saturday July 22, 2006 at 08:36:51 AM PDT
+ *  It has been AutoGen-ed  Saturday September  9, 2006 at 01:15:15 PM PDT
  *  From the definitions    usage-txt.def
  *  and the template file   usage-txt.tpl
  *
index d09833003472e82eb61fdf865e6a2cb4f35a6dda..b0c40a7fa8791c35338a1a42015fcfba81a46ca8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: boolean.c,v 4.6 2006/03/25 19:23:28 bkorb Exp $
+ *  $Id: boolean.c,v 4.4 2006/03/31 19:52:10 bkorb Exp $
  * Time-stamp:      "2005-02-14 08:24:12 bkorb"
  *
  *   Automated Options Paged Usage module.
index 8c7f19e6a3c1afb756e0e7cc08fc710f19f1df98..cb58336fdb8a045f35a84dcc278e4763e0634c03 100644 (file)
@@ -2,12 +2,12 @@
 
 /* --- fake the preprocessor into handlng portability */
 /*
- *  Time-stamp:      "2006-07-15 08:27:23 bkorb"
+ *  Time-stamp:      "2006-09-07 06:49:09 bkorb"
  *
  * Author:           Gary V Vaughan <gvaughan@oranda.demon.co.uk>
  * Created:          Mon Jun 30 15:54:46 1997
  *
- * $Id: compat.h,v 4.10 2006/07/15 22:10:21 bkorb Exp $
+ * $Id: compat.h,v 4.11 2006/09/07 14:48:05 bkorb Exp $
  */
 #ifndef COMPAT_H_GUARD
 #define COMPAT_H_GUARD 1
@@ -37,7 +37,7 @@
  *  SYSTEM HEADERS:
  */
 #include <sys/types.h>
-#if HAVE_SYS_MMAN_H
+#ifdef HAVE_SYS_MMAN_H
 #  include <sys/mman.h>
 #endif
 #include <sys/param.h>
index 010bb2b274640cd56e12e40d4ec8837118a37b97..9cfbebb1d1f81bd9cc8fdcb346de7e8290d777e9 100644 (file)
@@ -5,10 +5,10 @@
 /*
  * Author:           Gary V Vaughan <gvaughan@oranda.demon.co.uk>
  * Created:          Tue Jun 24 15:07:31 1997
- * Last Modified:    $Date: 2006/07/15 22:10:21 $
+ * Last Modified:    $Date: 2006/08/22 16:09:02 $
  *            by: bkorb
  *
- * $Id: pathfind.c,v 4.6 2006/07/15 22:10:21 bkorb Exp $
+ * $Id: pathfind.c,v 4.7 2006/08/22 16:09:02 bkorb Exp $
  */
 
 /* Code: */
@@ -148,7 +148,7 @@ pathfind( const char*  path,
                 break;
             }
         }
-        
+
         closedir( dirP );
 
         if (pathName != NULL)
@@ -168,7 +168,7 @@ make_absolute( const char *string, const char *dot_path )
 {
     char *result;
     int result_len;
-  
+
     if (!dot_path || *string == '/') {
         result = strdup( string );
     } else {
@@ -179,7 +179,7 @@ make_absolute( const char *string, const char *dot_path )
             if (result[result_len - 1] != '/') {
                 result[result_len++] = '/';
                 result[result_len] = '\0';
-            }    
+            }
         } else {
             result = malloc( 3 + strlen( string ) );
             result[0] = '.'; result[1] = '/'; result[2] = '\0';
index ebacf04191beebc11ecaeb10cc8f9ae7468ec9dd..a88ddbb867b8cfeeaa1f9ca052916b0303088c07 100644 (file)
@@ -71,7 +71,7 @@
 
 /* Prevent inclusion of winsock.h in windows.h */
 #ifndef _WINSOCKAPI_
-#define _WINSOCKAPI_  
+#define _WINSOCKAPI_
 #endif
 
 #ifndef __RPCASYNC_H__
@@ -83,7 +83,7 @@
 #include <winsock2.h>
 
 /*
- * Compatibility declarations for Windows, assuming SYS_WINNT 
+ * Compatibility declarations for Windows, assuming SYS_WINNT
  * has been defined.
  */
 #define strdup  _strdup
@@ -94,7 +94,7 @@
 
 #include <io.h>
 #define open    _open
-#define close   _close 
+#define close   _close
 #define read    _read
 #define write   _write
 #define lseek   _lseek
 #define dup2    _dup2
 
 #define O_RDWR     _O_RDWR
-#define O_RDONLY   _O_RDONLY 
+#define O_RDONLY   _O_RDONLY
 #define O_EXCL     _O_EXCL
 
 #ifndef        S_ISREG
index e8cd371ac972d1729e6541fe7058e76d9aba87b7..fa163acf6b6015baacafec921fca2be24f59dfe2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  $Id: configfile.c,v 4.23 2006/07/01 21:57:23 bkorb Exp $
+ *  $Id: configfile.c,v 1.10 2006/07/14 04:31:37 bkorb Exp $
  *  Time-stamp:      "2006-07-01 12:46:31 bkorb"
  *
  *  configuration/rc/ini file handling.
index aecd4ec483d1d5b1f2048517ebaa442eb883eb30..134be4cfd50d85591f75b07d95d50d571cd694ea 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: cook.c,v 4.6 2006/06/24 23:34:51 bkorb Exp $
+ *  $Id: cook.c,v 4.4 2006/06/24 23:36:07 bkorb Exp $
  *  Time-stamp:      "2006-06-24 11:29:58 bkorb"
  *
  *  This file contains the routines that deal with processing quoted strings
index 0dbe5661414c7e929aa259cc5f78edfa3565d609..cf5d6d1172c5187e945888c5083d18f7eddc6e62 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: enumeration.c,v 4.11 2006/06/24 23:34:51 bkorb Exp $
+ *  $Id: enumeration.c,v 4.9 2006/06/24 23:36:08 bkorb Exp $
  * Time-stamp:      "2006-06-24 10:46:02 bkorb"
  *
  *   Automated Options Paged Usage module.
index caaa712bac907f7167c805d222a4d62965f80beb..d7e9e8c74fad6ee05d271c13b0ff11ac4a181ca2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: environment.c,v 4.10 2006/03/25 19:23:28 bkorb Exp $
+ *  $Id: environment.c,v 4.7 2006/03/31 19:52:10 bkorb Exp $
  * Time-stamp:      "2005-10-29 13:23:59 bkorb"
  *
  *  This file contains all of the routines that must be linked into
index d32d55c88e4b14f2c583df9d872c23fddd551e26..430ff2b737745377694acf828390125da65603c5 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.c)
  *  
- *  It has been AutoGen-ed  Saturday July 22, 2006 at 08:36:53 AM PDT
+ *  It has been AutoGen-ed  Saturday September  9, 2006 at 01:15:18 PM PDT
  *  From the definitions    genshell.def
  *  and the template file   options
  */
index 657e49ea3092bb3d829c07c855be470d6c4df248..9694e0ffe4d73e2de4289679d985a259e8fc3481 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.h)
  *  
- *  It has been AutoGen-ed  Saturday July 22, 2006 at 08:36:53 AM PDT
+ *  It has been AutoGen-ed  Saturday September  9, 2006 at 01:15:18 PM PDT
  *  From the definitions    genshell.def
  *  and the template file   options
  */
@@ -76,11 +76,11 @@ typedef enum {
 #define GENSHELLOPT_FULL_VERSION  "genshellopt - Generate Shell Option Processing Script - Ver. 1"
 
 /*
- *  Interface defines for all options.  Replace "n" with
- *  the UPPER_CASED option name (as in the teOptIndex
- *  enumeration above).  e.g. HAVE_OPT( SCRIPT )
+ *  Interface defines for all options.  Replace "n" with the UPPER_CASED
+ *  option name (as in the teOptIndex enumeration above).
+ *  e.g. HAVE_OPT( SCRIPT )
  */
-#define        DESC(n) genshelloptOptions.pOptDesc[INDEX_OPT_ ## n]
+#define         DESC(n) genshelloptOptions.pOptDesc[INDEX_OPT_ ## n]
 #define     HAVE_OPT(n) (! UNUSED_OPT(& DESC(n)))
 #define      OPT_ARG(n) (DESC(n).pzLastArg)
 #define    STATE_OPT(n) (DESC(n).fOptState & OPTST_SET_MASK)
@@ -115,7 +115,7 @@ typedef enum {
                 genshelloptOptions.pzCurOpt  = NULL )
 #define START_OPT       RESTART_OPT(1)
 #define USAGE(c)        (*genshelloptOptions.pUsageProc)( &genshelloptOptions, c )
-/* extracted from opthead near line 288 */
+/* extracted from opthead near line 311 */
 
 /* * * * * *
  *
index 19edbcd34c23f28a7ed61a7c5e6a652c9674381c..350f8208edca77f4e685cc50f16d724fc051b896 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: load.c,v 4.23 2006/07/01 21:57:23 bkorb Exp $
+ *  $Id: load.c,v 4.11 2006/07/14 04:31:37 bkorb Exp $
  *  Time-stamp:      "2006-07-01 12:43:03 bkorb"
  *
  *  This file contains the routines that deal with processing text strings
index a044564edd9579853a3d6e867b61038be4186558..4edf4ad4aee63749dce2bd3c51b045aa4ade27ff 100644 (file)
@@ -2,7 +2,7 @@ dnl  -*- buffer-read-only: t -*- vi: set ro:
 dnl 
 dnl DO NOT EDIT THIS FILE   (libopts.m4)
 dnl 
-dnl It has been AutoGen-ed  Saturday August 12, 2006 at 10:36:56 AM PDT
+dnl It has been AutoGen-ed  Saturday September  9, 2006 at 01:15:14 PM PDT
 dnl From the definitions    libopts.def
 dnl and the template file   conftest.tpl
 dnl
index dbb4ff590d9aa18ca33db4533f64ecd7f3016acb..171cb23b812505348033821ef481d0145d4dd015 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: makeshell.c,v 4.14 2006/07/27 02:51:47 bkorb Exp $
+ *  $Id: makeshell.c,v 4.10 2006/07/27 02:59:08 bkorb Exp $
  * Time-stamp:      "2006-07-24 21:30:51 bkorb"
  *
  *  This module will interpret the options set in the tOptions
index 00b88691afb4c87cdca25334427af11723b84d86..f8b6125198a1aef81049d6984d8d42f215b3a4c1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: nested.c,v 4.9 2006/03/25 19:23:28 bkorb Exp $
+ *  $Id: nested.c,v 4.4 2006/03/31 19:52:10 bkorb Exp $
  *  Time-stamp:      "2005-07-27 10:10:28 bkorb"
  *
  *   Automated Options Nested Values module.
index 26790df3c78b167b47b64cc6ac2ff662d271f9ff..08c520be1def15ea9e5246b8d1957725d2fce008 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: numeric.c,v 4.7 2006/03/25 19:23:28 bkorb Exp $
+ *  $Id: numeric.c,v 4.5 2006/03/31 19:52:10 bkorb Exp $
  *  Time-stamp:      "2005-02-14 08:22:56 bkorb"
  */
 
index 61684555d7f8fa9edff4b9b68b924110777d3f73..4dc7075413bebece687e59498bf2112c7fd92b76 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: pgusage.c,v 4.12 2006/07/16 15:27:50 bkorb Exp $
+ *  $Id: pgusage.c,v 4.10 2006/07/16 15:29:31 bkorb Exp $
  * Time-stamp:      "2006-07-16 08:13:26 bkorb"
  *
  *   Automated Options Paged Usage module.
index fc05366370a1d981cb7e2448abc8fc5922714d62..ea67c63db80501a15387adfe825893a9838205c8 100644 (file)
@@ -1,7 +1,7 @@
 /* -*- buffer-read-only: t -*- vi: set ro:
  *
  * Prototypes for autoopts
- * Generated Thu Jul 27 21:15:11 PDT 2006
+ * Generated Sat Sep  9 13:16:02 PDT 2006
  */
 #ifndef AUTOOPTS_PROTO_H_GUARD
 #define AUTOOPTS_PROTO_H_GUARD 1
index f98f75260bd797e72bee7c88285f2dd35b0613d6..1f7a611ce804c662613bd3f2194a29eeadfdc05b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: putshell.c,v 4.12 2006/07/16 15:27:50 bkorb Exp $
+ *  $Id: putshell.c,v 4.9 2006/07/16 15:29:31 bkorb Exp $
  * Time-stamp:      "2006-07-16 08:13:24 bkorb"
  *
  *  This module will interpret the options set in the tOptions
index ce788b3303c62cf41d5fef44a5280831b3f73aa6..798614cee90a616de93e0ab28522a82eff6453d4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  restore.c  $Id: restore.c,v 4.7 2006/03/25 19:23:28 bkorb Exp $
+ *  restore.c  $Id: restore.c,v 4.5 2006/03/31 19:52:11 bkorb Exp $
  * Time-stamp:      "2005-02-23 15:10:20 bkorb"
  *
  *  This module's routines will save the current option state to memory
index d225c27b4e73de274ca63eed094095773faacc4c..9c73057e431cc7c7c641675ba09869014a2116ed 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  save.c  $Id: save.c,v 4.16 2006/07/16 15:27:50 bkorb Exp $
+ *  save.c  $Id: save.c,v 4.8 2006/07/16 15:29:31 bkorb Exp $
  * Time-stamp:      "2006-07-16 08:13:22 bkorb"
  *
  *  This module's routines will take the currently set options and
index de0bd5634d1bfa997d7f71a81f343d0cacca5de8..90c81a8c93c059b276fce3a53daa6e5bb14bd96f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  sort.c  $Id: sort.c,v 4.10 2006/06/24 23:34:51 bkorb Exp $
+ *  sort.c  $Id: sort.c,v 4.7 2006/06/24 23:36:08 bkorb Exp $
  * Time-stamp:      "2006-06-24 10:53:35 bkorb"
  *
  *  This module implements argument sorting.
index 5f51f37db7515ca29da417095cdf1800b0ecb9ec..65db828eb59ae7b310d3478393cdd8177559bddf 100644 (file)
@@ -1,7 +1,7 @@
 
 /*
  *  stack.c
- *  $Id: stack.c,v 4.10 2006/07/14 04:20:17 bkorb Exp $
+ *  $Id: stack.c,v 4.7 2006/07/14 04:31:38 bkorb Exp $
  *  Time-stamp:      "2006-07-13 21:11:29 bkorb"
  *
  *  This is a special option processing routine that will save the
index 42336dc97c40d532f33e0935981cbea1529bf987..f66ddd804fbf965bdca6c59f93b26055c13dfb33 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: streqvcmp.c,v 4.10 2006/07/27 02:51:47 bkorb Exp $
+ *  $Id: streqvcmp.c,v 4.7 2006/07/27 02:59:08 bkorb Exp $
  * Time-stamp:      "2006-07-26 18:25:53 bkorb"
  *
  *  String Equivalence Comparison
index a8d06b3a637ad96891571af1968ba7b0571f9908..643989f2c94f29afc752862d19ea536d135dbd34 100644 (file)
@@ -1,14 +1,14 @@
 /*
- * $Id: text_mmap.c,v 4.11 2006/06/24 23:34:51 bkorb Exp $
+ * $Id: text_mmap.c,v 4.10 2006/08/22 16:09:02 bkorb Exp $
  *
- * Time-stamp:      "2006-06-24 10:54:43 bkorb"
+ * Time-stamp:      "2006-08-22 07:17:49 bkorb"
  */
 
-#ifndef MAP_ANONYMOUS 
-#  ifdef   MAP_ANON 
-#  define  MAP_ANONYMOUS   MAP_ANON 
-#  endif 
-#endif 
+#ifndef MAP_ANONYMOUS
+#  ifdef   MAP_ANON
+#  define  MAP_ANONYMOUS   MAP_ANON
+#  endif
+#endif
 
 /*
  *  Some weird systems require that a specifically invalid FD number
index e01809a8053439e2d6f44cc189c7792501a1650b..dd50ec4d893c702b022d8bb6a29e5df2e03010f0 100644 (file)
@@ -1,5 +1,5 @@
 
-/*  $Id: version.c,v 4.9 2006/07/27 02:51:47 bkorb Exp $
+/*  $Id: version.c,v 4.7 2006/07/27 02:59:08 bkorb Exp $
  * Time-stamp:      "2006-07-26 18:38:16 bkorb"
  *
  *  This module implements the default usage procedure for