Module Name:    src
Committed By:   christos
Date:           Fri Jan 16 18:44:07 UTC 2015

Modified Files:
        src/tools/compat: compat_defs.h configure.ac

Log Message:
strto{i,u}


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/tools/compat/compat_defs.h
cvs rdiff -u -r1.82 -r1.83 src/tools/compat/configure.ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/compat/compat_defs.h
diff -u src/tools/compat/compat_defs.h:1.100 src/tools/compat/compat_defs.h:1.101
--- src/tools/compat/compat_defs.h:1.100	Wed Dec 24 11:18:46 2014
+++ src/tools/compat/compat_defs.h	Fri Jan 16 13:44:06 2015
@@ -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 strsuftollx(const char *, cons
 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

Index: src/tools/compat/configure.ac
diff -u src/tools/compat/configure.ac:1.82 src/tools/compat/configure.ac:1.83
--- src/tools/compat/configure.ac:1.82	Thu Jun  5 21:40:40 2014
+++ src/tools/compat/configure.ac	Fri Jan 16 13:44:06 2015
@@ -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 @@ AC_CHECK_FUNCS(atoll asprintf asnprintf 
 	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],,,[

Reply via email to