Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat replace missing strsuftoll(3)



details:   https://anonhg.NetBSD.org/src/rev/ff5a4c3cbfbb
branches:  trunk
changeset: 539910:ff5a4c3cbfbb
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Nov 29 13:00:22 2002 +0000

description:
replace missing strsuftoll(3)

diffstat:

 tools/compat/Makefile      |    4 +-
 tools/compat/compat_defs.h |    8 +++-
 tools/compat/config.h.in   |    3 +-
 tools/compat/configure     |  105 ++++++++++++++++++++++----------------------
 tools/compat/configure.ac  |    5 +-
 5 files changed, 67 insertions(+), 58 deletions(-)

diffs (truncated from 448 to 300 lines):

diff -r ba8d7e006683 -r ff5a4c3cbfbb tools/compat/Makefile
--- a/tools/compat/Makefile     Fri Nov 29 12:58:14 2002 +0000
+++ b/tools/compat/Makefile     Fri Nov 29 13:00:22 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.17 2002/10/08 00:28:36 lukem Exp $
+#      $NetBSD: Makefile,v 1.18 2002/11/29 13:00:22 lukem Exp $
 
 HOSTLIB=       nbcompat
 
@@ -9,7 +9,7 @@
                mkstemp.c pread.c pwcache.c pwrite.c pw_scan.c rmd160.c \
                rmd160hl.c setenv.c setgroupent.c setpassent.c setprogname.c \
                sha1.c sha1hl.c snprintf.c strlcat.c strlcpy.c strmode.c \
-               strsep.c strtoll.c unvis.c vis.c \
+               strsep.c strsuftoll.c strtoll.c unvis.c vis.c \
                _err.c _errx.c _verr.c _verrx.c _vwarn.c _vwarnx.c \
                _warn.c _warnx.c __fts13.c __glob13.c
 
diff -r ba8d7e006683 -r ff5a4c3cbfbb tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Fri Nov 29 12:58:14 2002 +0000
+++ b/tools/compat/compat_defs.h        Fri Nov 29 13:00:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.22 2002/10/20 00:42:20 christos Exp $        */
+/*     $NetBSD: compat_defs.h,v 1.23 2002/11/29 13:00:22 lukem Exp $   */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -265,6 +265,12 @@
 char *strsep(char **, const char *);
 #endif
 
+#if !HAVE_STRSUFTOLL
+long long strsuftoll(const char *, const char *, long long, long long);
+long long strsuftollx(const char *, const char *,
+                       long long, long long, char *, size_t);
+#endif
+
 #if !HAVE_STRTOLL
 long long strtoll(const char *, char **, int);
 #endif
diff -r ba8d7e006683 -r ff5a4c3cbfbb tools/compat/config.h.in
--- a/tools/compat/config.h.in  Fri Nov 29 12:58:14 2002 +0000
+++ b/tools/compat/config.h.in  Fri Nov 29 13:00:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h.in,v 1.25 2002/10/06 12:09:34 lukem Exp $     */
+/*     $NetBSD: config.h.in,v 1.26 2002/11/29 13:00:23 lukem Exp $     */
 
 #ifndef        __NETBSD_COMPAT_CONFIG_H__
 #define        __NETBSD_COMPAT_CONFIG_H__
@@ -78,6 +78,7 @@
 #undef HAVE_STRLCAT
 #undef HAVE_STRLCPY
 #undef HAVE_STRSEP
+#undef HAVE_STRSUFTOULL
 #undef HAVE_STRTOLL
 #undef HAVE_USER_FROM_UID
 #undef HAVE_VASPRINTF
diff -r ba8d7e006683 -r ff5a4c3cbfbb tools/compat/configure
--- a/tools/compat/configure    Fri Nov 29 12:58:14 2002 +0000
+++ b/tools/compat/configure    Fri Nov 29 13:00:22 2002 +0000
@@ -4585,17 +4585,18 @@
        fgetln flock fparseln futimes getopt getopt_long \
        isblank issetugid lchflags lchmod lchown lutimes mkstemp mkdtemp \
        poll pread pwcache_userdb pwrite random setenv setgroupent \
-       setprogname setpassent snprintf strlcat strlcpy strsep strtoll \
+       setprogname setpassent snprintf strlcat strlcpy strsep \
+       strsuftoll strtoll \
        user_from_uid vasprintf vasnprintf vsnprintf
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-echo "$as_me:4592: checking for $ac_func" >&5
+echo "$as_me:4593: checking for $ac_func" >&5
 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 if eval "test \"\${$as_ac_var+set}\" = set"; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   cat >conftest.$ac_ext <<_ACEOF
-#line 4598 "configure"
+#line 4599 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func (); below.  */
@@ -4626,16 +4627,16 @@
 }
 _ACEOF
 rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:4629: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4630: \"$ac_link\"") >&5
   (eval $ac_link) 2>&5
   ac_status=$?
-  echo "$as_me:4632: \$? = $ac_status" >&5
+  echo "$as_me:4633: \$? = $ac_status" >&5
   (exit $ac_status); } &&
          { ac_try='test -s conftest$ac_exeext'
-  { (eval echo "$as_me:4635: \"$ac_try\"") >&5
+  { (eval echo "$as_me:4636: \"$ac_try\"") >&5
   (eval $ac_try) 2>&5
   ac_status=$?
-  echo "$as_me:4638: \$? = $ac_status" >&5
+  echo "$as_me:4639: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
   eval "$as_ac_var=yes"
 else
@@ -4645,7 +4646,7 @@
 fi
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi
-echo "$as_me:4648: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "$as_me:4649: result: `eval echo '${'$as_ac_var'}'`" >&5
 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 if test `eval echo '${'$as_ac_var'}'` = yes; then
   cat >>confdefs.h <<EOF
@@ -4655,13 +4656,13 @@
 fi
 done
 
-echo "$as_me:4658: checking whether setgroupent is declared" >&5
+echo "$as_me:4659: checking whether setgroupent is declared" >&5
 echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
 if test "${ac_cv_have_decl_setgroupent+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   cat >conftest.$ac_ext <<_ACEOF
-#line 4664 "configure"
+#line 4665 "configure"
 #include "confdefs.h"
 
 #include <grp.h>
@@ -4679,16 +4680,16 @@
 }
 _ACEOF
 rm -f conftest.$ac_objext
-if { (eval echo "$as_me:4682: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:4683: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
-  echo "$as_me:4685: \$? = $ac_status" >&5
+  echo "$as_me:4686: \$? = $ac_status" >&5
   (exit $ac_status); } &&
          { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:4688: \"$ac_try\"") >&5
+  { (eval echo "$as_me:4689: \"$ac_try\"") >&5
   (eval $ac_try) 2>&5
   ac_status=$?
-  echo "$as_me:4691: \$? = $ac_status" >&5
+  echo "$as_me:4692: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
   ac_cv_have_decl_setgroupent=yes
 else
@@ -4698,7 +4699,7 @@
 fi
 rm -f conftest.$ac_objext conftest.$ac_ext
 fi
-echo "$as_me:4701: result: $ac_cv_have_decl_setgroupent" >&5
+echo "$as_me:4702: result: $ac_cv_have_decl_setgroupent" >&5
 echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
 if test $ac_cv_have_decl_setgroupent = yes; then
 
@@ -4712,13 +4713,13 @@
 EOF
 
 fi
-echo "$as_me:4715: checking whether setpassent is declared" >&5
+echo "$as_me:4716: checking whether setpassent is declared" >&5
 echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
 if test "${ac_cv_have_decl_setpassent+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   cat >conftest.$ac_ext <<_ACEOF
-#line 4721 "configure"
+#line 4722 "configure"
 #include "confdefs.h"
 
 #include <grp.h>
@@ -4736,16 +4737,16 @@
 }
 _ACEOF
 rm -f conftest.$ac_objext
-if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:4740: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
-  echo "$as_me:4742: \$? = $ac_status" >&5
+  echo "$as_me:4743: \$? = $ac_status" >&5
   (exit $ac_status); } &&
          { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:4745: \"$ac_try\"") >&5
+  { (eval echo "$as_me:4746: \"$ac_try\"") >&5
   (eval $ac_try) 2>&5
   ac_status=$?
-  echo "$as_me:4748: \$? = $ac_status" >&5
+  echo "$as_me:4749: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
   ac_cv_have_decl_setpassent=yes
 else
@@ -4755,7 +4756,7 @@
 fi
 rm -f conftest.$ac_objext conftest.$ac_ext
 fi
-echo "$as_me:4758: result: $ac_cv_have_decl_setpassent" >&5
+echo "$as_me:4759: result: $ac_cv_have_decl_setpassent" >&5
 echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
 if test $ac_cv_have_decl_setpassent = yes; then
 
@@ -4773,7 +4774,7 @@
 # regcomp() and regexec() are also names of functions in the old V8
 # regexp package.  To avoid them, we need to find out who has regfree().
 
-echo "$as_me:4776: checking for regfree in -lregex" >&5
+echo "$as_me:4777: checking for regfree in -lregex" >&5
 echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
 if test "${ac_cv_lib_regex_regfree+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -4781,7 +4782,7 @@
   ac_check_lib_save_LIBS=$LIBS
 LIBS="-lregex  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
-#line 4784 "configure"
+#line 4785 "configure"
 #include "confdefs.h"
 
 /* Override any gcc2 internal prototype to avoid an error.  */
@@ -4800,16 +4801,16 @@
 }
 _ACEOF
 rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:4803: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4804: \"$ac_link\"") >&5
   (eval $ac_link) 2>&5
   ac_status=$?
-  echo "$as_me:4806: \$? = $ac_status" >&5
+  echo "$as_me:4807: \$? = $ac_status" >&5
   (exit $ac_status); } &&
          { ac_try='test -s conftest$ac_exeext'
-  { (eval echo "$as_me:4809: \"$ac_try\"") >&5
+  { (eval echo "$as_me:4810: \"$ac_try\"") >&5
   (eval $ac_try) 2>&5
   ac_status=$?
-  echo "$as_me:4812: \$? = $ac_status" >&5
+  echo "$as_me:4813: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
   ac_cv_lib_regex_regfree=yes
 else
@@ -4820,7 +4821,7 @@
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 LIBS=$ac_check_lib_save_LIBS
 fi
-echo "$as_me:4823: result: $ac_cv_lib_regex_regfree" >&5
+echo "$as_me:4824: result: $ac_cv_lib_regex_regfree" >&5
 echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
 if test $ac_cv_lib_regex_regfree = yes; then
   cat >>confdefs.h <<EOF
@@ -4831,7 +4832,7 @@
 
 fi
 
-echo "$as_me:4834: checking for library containing regfree" >&5
+echo "$as_me:4835: checking for library containing regfree" >&5
 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
 if test "${ac_cv_search_regfree+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -4839,7 +4840,7 @@
   ac_func_search_save_LIBS=$LIBS
 ac_cv_search_regfree=no
 cat >conftest.$ac_ext <<_ACEOF
-#line 4842 "configure"
+#line 4843 "configure"
 #include "confdefs.h"
 
 /* Override any gcc2 internal prototype to avoid an error.  */
@@ -4858,16 +4859,16 @@
 }
 _ACEOF
 rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:4861: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4862: \"$ac_link\"") >&5
   (eval $ac_link) 2>&5
   ac_status=$?
-  echo "$as_me:4864: \$? = $ac_status" >&5
+  echo "$as_me:4865: \$? = $ac_status" >&5
   (exit $ac_status); } &&
          { ac_try='test -s conftest$ac_exeext'
-  { (eval echo "$as_me:4867: \"$ac_try\"") >&5
+  { (eval echo "$as_me:4868: \"$ac_try\"") >&5
   (eval $ac_try) 2>&5
   ac_status=$?
-  echo "$as_me:4870: \$? = $ac_status" >&5
+  echo "$as_me:4871: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
   ac_cv_search_regfree="none required"
 else
@@ -4879,7 +4880,7 @@
   for ac_lib in rx posix; do
     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     cat >conftest.$ac_ext <<_ACEOF
-#line 4882 "configure"
+#line 4883 "configure"
 #include "confdefs.h"
 
 /* Override any gcc2 internal prototype to avoid an error.  */



Home | Main Index | Thread Index | Old Index