Source-Changes-HG archive

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

[src/trunk]: src/include Add strtonum protected with _OPENBSD_SOURCE



details:   https://anonhg.NetBSD.org/src/rev/19f66fd9abfa
branches:  trunk
changeset: 805735:19f66fd9abfa
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 16 18:40:16 2015 +0000

description:
Add strtonum protected with _OPENBSD_SOURCE

diffstat:

 include/stdlib.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 9392b6907b80 -r 19f66fd9abfa include/stdlib.h
--- a/include/stdlib.h  Fri Jan 16 18:39:33 2015 +0000
+++ b/include/stdlib.h  Fri Jan 16 18:40:16 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdlib.h,v 1.110 2014/06/18 17:48:22 christos Exp $    */
+/*     $NetBSD: stdlib.h,v 1.111 2015/01/16 18:40:16 christos Exp $    */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -123,6 +123,10 @@
 long    strtol(const char * __restrict, char ** __restrict, int);
 unsigned long
         strtoul(const char * __restrict, char ** __restrict, int);
+#ifdef _OPENBSD_SOURCE
+long long strtonum(const char * __restrict, long long, long long,
+    const char ** __restrict);
+#endif
 int     system(const char *);
 
 /* These are currently just stubs. */



Home | Main Index | Thread Index | Old Index