Source-Changes-HG archive

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

[src/trunk]: src/tools/compat strto{i,u}



details:   https://anonhg.NetBSD.org/src/rev/7ddc5a06e852
branches:  trunk
changeset: 335595:7ddc5a06e852
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 16 18:44:06 2015 +0000

description:
strto{i,u}

diffstat:

 tools/compat/compat_defs.h |  12 +++++++++++-
 tools/compat/configure.ac  |   4 ++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r 5dce7a428599 -r 7ddc5a06e852 tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Fri Jan 16 18:41:33 2015 +0000
+++ b/tools/compat/compat_defs.h        Fri Jan 16 18:44:06 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.100 2014/12/24 16:18:46 christos Exp $       */
+/*     $NetBSD: compat_defs.h,v 1.101 2015/01/16 18:44:06 christos Exp $       */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -525,6 +525,16 @@
 long long strtoll(const char *, char **, int);
 #endif
 
+#if !HAVE_STRTOI
+intmax_t strtoi(const char * __restrict, char ** __restrict, int,
+    intmax_t, intmax_t, int *);
+#endif
+
+#if !HAVE_STRTOU
+uintmax_t strtou(const char * __restrict, char ** __restrict, int,
+    uintmax_t, uintmax_t, int *);
+#endif
+
 #if !HAVE_USER_FROM_UID
 const char *user_from_uid(uid_t, int);
 #endif
diff -r 5dce7a428599 -r 7ddc5a06e852 tools/compat/configure.ac
--- a/tools/compat/configure.ac Fri Jan 16 18:41:33 2015 +0000
+++ b/tools/compat/configure.ac Fri Jan 16 18:44:06 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: configure.ac,v 1.82 2014/06/06 01:40:40 christos Exp $
+#      $NetBSD: configure.ac,v 1.83 2015/01/16 18:44:06 christos Exp $
 #
 # Autoconf definition file for libnbcompat.
 #
@@ -160,7 +160,7 @@
        pwrite raise_default_signal random setenv \
        setgroupent setprogname setpassent \
        snprintb_m snprintf strlcat strlcpy strmode \
-       strndup strnlen strsep strsuftoll strtoll \
+       strndup strnlen strsep strsuftoll strtoi strtoll strtou \
        user_from_uid uid_from_user vasprintf vasnprintf vsnprintf)
 
 AC_CHECK_DECLS([user_from_uid, uid_from_user, pwcache_userdb],,,[



Home | Main Index | Thread Index | Old Index