Date: Wed, 31 Jan 2018 05:07:43 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328615 - head/stand/libsa Message-ID: <201801310507.w0V57hje050008@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Wed Jan 31 05:07:43 2018 New Revision: 328615 URL: https://svnweb.freebsd.org/changeset/base/328615 Log: Update stand.h for changes for strto*l Move prototypes to proper section now that we don't have modified versions of strtol and strtoul in libsa. Add prototypes for new strtoll and strtoull. Use prototypes copied from stdlib.h instead of the old hand-rolled ones. (I forgot to move this file form my lua branch in r328613) Modified: head/stand/libsa/stand.h Modified: head/stand/libsa/stand.h ============================================================================== --- head/stand/libsa/stand.h Wed Jan 31 04:29:05 2018 (r328614) +++ head/stand/libsa/stand.h Wed Jan 31 05:07:43 2018 (r328615) @@ -295,8 +295,6 @@ extern void srandom(unsigned int); extern long random(void); /* imports from stdlib, locally modified */ -extern long strtol(const char *, char **, int); -extern unsigned long strtoul(const char *, char **, int); extern char *optarg; /* getopt(3) external variables */ extern int optind, opterr, optopt, optreset; extern int getopt(int, char * const [], const char *); @@ -349,6 +347,10 @@ extern ev_unsethook_t env_nounset; /* refuse unset op /* stdlib.h routines */ extern int abs(int a); extern void abort(void) __dead2; +extern long strtol(const char * __restrict, char ** __restrict, int); +extern long long strtoll(const char * __restrict, char ** __restrict, int); +extern unsigned long strtoul(const char * __restrict, char ** __restrict, int); +extern unsigned long long strtoull(const char * __restrict, char ** __restrict, int); /* BCD conversions (undocumented) */ extern u_char const bcd2bin_data[];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801310507.w0V57hje050008>