Module Name: src Committed By: christos Date: Fri Jan 16 18:40:16 UTC 2015
Modified Files: src/include: stdlib.h Log Message: Add strtonum protected with _OPENBSD_SOURCE To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/include/stdlib.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/stdlib.h diff -u src/include/stdlib.h:1.110 src/include/stdlib.h:1.111 --- src/include/stdlib.h:1.110 Wed Jun 18 13:48:22 2014 +++ src/include/stdlib.h Fri Jan 16 13:40:16 2015 @@ -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 @@ double strtod(const char * __restrict, 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. */