1 /* Adapted from common/lib/libc/stdlib/strtoul.c */ 2 #include <sys/cdefs.h> 3 4 #include <sys/param.h> 5 #include <lib/libkern/libkern.h> 6 #include <lib/libsa/stand.h> 7 8 #define _FUNCNAME strtol 9 #define __INT long 10 #define __INT_MIN LONG_MIN 11 #define __INT_MAX LONG_MAX 12 13 long strtol(const char * __restrict, char ** __restrict, int); 14 15 #include "_strtol.h" 16