Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern strtoi and strtou for the kernel



details:   https://anonhg.NetBSD.org/src/rev/517ae92a320a
branches:  trunk
changeset: 805732:517ae92a320a
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 16 18:36:31 2015 +0000

description:
strtoi and strtou for the kernel

diffstat:

 sys/lib/libkern/Makefile.libkern |  3 ++-
 sys/lib/libkern/libkern.h        |  7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 76df566a49ec -r 517ae92a320a sys/lib/libkern/Makefile.libkern
--- a/sys/lib/libkern/Makefile.libkern  Fri Jan 16 18:35:59 2015 +0000
+++ b/sys/lib/libkern/Makefile.libkern  Fri Jan 16 18:36:31 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.libkern,v 1.36 2014/11/20 16:25:16 christos Exp $
+#      $NetBSD: Makefile.libkern,v 1.37 2015/01/16 18:36:31 christos Exp $
 
 # 
 # Variable definitions for libkern.  
@@ -73,6 +73,7 @@
 
 SRCS+= popcount32.c popcount64.c
 SRCS+= strtoul.c strtoll.c strtoull.c strtoimax.c strtoumax.c
+SRCS+= strtoi.c strtou.c
 
 SRCS+= scanc.c skpc.c
 SRCS+= random.c
diff -r 76df566a49ec -r 517ae92a320a sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Fri Jan 16 18:35:59 2015 +0000
+++ b/sys/lib/libkern/libkern.h Fri Jan 16 18:36:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libkern.h,v 1.116 2014/11/20 16:25:16 christos Exp $   */
+/*     $NetBSD: libkern.h,v 1.117 2015/01/16 18:36:31 christos Exp $   */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -399,6 +399,11 @@
 unsigned long long strtoull(const char *, char **, int);
 intmax_t  strtoimax(const char *, char **, int);
 uintmax_t strtoumax(const char *, char **, int);
+intmax_t strtoi(const char * __restrict, char ** __restrict, int, intmax_t,
+    intmax_t, int *);
+uintmax_t strtou(const char * __restrict, char ** __restrict, int, uintmax_t,
+    uintmax_t, int *);
+
 int     snprintb(char *, size_t, const char *, uint64_t);
 int     snprintb_m(char *, size_t, const char *, uint64_t, size_t);
 int     kheapsort(void *, size_t, size_t, int (*)(const void *, const void *),



Home | Main Index | Thread Index | Old Index