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)
This commit is contained in:
Warner Losh 2018-01-31 05:07:43 +00:00
parent 3a7d8294f0
commit 3a8a081b9d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328615

View File

@ -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 operation */
/* 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[];