Home
last modified time | relevance | path

Searched refs:endptr (Results 1 – 25 of 164) sorted by relevance

1234567

/freebsd-13.1/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptc.c365 ptr = endptr + 1; in snmp_date2asn_oid()
486 return (endptr); in snmp_date2asn_oid()
499 char *endptr; in parse_dateandtime() local
648 return (endptr); in snmp_addr2asn_oid()
654 char *endptr; in parse_physaddress() local
777 return (endptr); in snmp_ntp_ts2asn_oid()
783 char *endptr; in parse_ntp_ts() local
946 char *endptr; in parse_bridge_id() local
1073 char *endptr; in parse_bport_id() local
1224 char *endptr; in snmp_bits2oct() local
[all …]
/freebsd-13.1/contrib/processor-trace/libipt/src/
H A Dpt_cpu.c95 char *endptr; in pt_cpu_parse() local
101 family = strtol(s, &endptr, 0); in pt_cpu_parse()
102 if (s == endptr || *endptr == '\0' || *endptr != sep) in pt_cpu_parse()
109 s = endptr + 1; in pt_cpu_parse()
111 model = strtol(s, &endptr, 0); in pt_cpu_parse()
112 if (s == endptr || (*endptr != '\0' && *endptr != sep)) in pt_cpu_parse()
118 if (*endptr == '\0') in pt_cpu_parse()
123 s = endptr + 1; in pt_cpu_parse()
125 stepping = strtol(s, &endptr, 0); in pt_cpu_parse()
126 if (*endptr != '\0') in pt_cpu_parse()
/freebsd-13.1/sys/dev/vt/colors/
H A Dvt_termcolors.c70 char *endptr; in vt_parse_rgb_triplet() local
79 if (*endptr != '\0') in vt_parse_rgb_triplet()
90 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
91 if (ptr == endptr) in vt_parse_rgb_triplet()
96 ptr = endptr; in vt_parse_rgb_triplet()
102 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
103 if (ptr == endptr) in vt_parse_rgb_triplet()
108 ptr = endptr; in vt_parse_rgb_triplet()
114 v = strtoul(ptr, &endptr, 10); in vt_parse_rgb_triplet()
115 if (ptr == endptr) in vt_parse_rgb_triplet()
[all …]
/freebsd-13.1/lib/libc/locale/
H A Dwcstod.c52 wcstod_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstod_l() argument
83 if (endptr != NULL) in wcstod_l()
84 *endptr = (wchar_t *)nptr; in wcstod_l()
88 if (endptr != NULL) in wcstod_l()
89 *endptr = (wchar_t *)nptr; in wcstod_l()
104 if (endptr != NULL) { in wcstod_l()
105 *endptr = (wchar_t *)nptr + (end - buf); in wcstod_l()
107 *endptr += spaces; in wcstod_l()
115 wcstod(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstod() argument
117 return wcstod_l(nptr, endptr, __get_locale()); in wcstod()
H A Dwcstof.c46 wcstof_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstof_l() argument
67 if (endptr != NULL) in wcstof_l()
68 *endptr = (wchar_t *)nptr; in wcstof_l()
72 if (endptr != NULL) in wcstof_l()
73 *endptr = (wchar_t *)nptr; in wcstof_l()
81 if (endptr != NULL) { in wcstof_l()
82 *endptr = (wchar_t *)nptr + (end - buf); in wcstof_l()
84 *endptr += spaces; in wcstof_l()
92 wcstof(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstof() argument
94 return wcstof_l(nptr, endptr, __get_locale()); in wcstof()
H A Dwcstold.c46 wcstold_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstold_l() argument
67 if (endptr != NULL) in wcstold_l()
68 *endptr = (wchar_t *)nptr; in wcstold_l()
72 if (endptr != NULL) in wcstold_l()
73 *endptr = (wchar_t *)nptr; in wcstold_l()
81 if (endptr != NULL) { in wcstold_l()
82 *endptr = (wchar_t *)nptr + (end - buf); in wcstold_l()
84 *endptr += spaces; in wcstold_l()
92 wcstold(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstold() argument
94 return wcstold_l(nptr, endptr, __get_locale()); in wcstold()
H A Dwcstoul.c51 wcstoul_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstoul_l() argument
122 if (endptr != NULL) in wcstoul_l()
123 *endptr = (wchar_t *)(any ? s - 1 : nptr); in wcstoul_l()
127 wcstoul(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) in wcstoul() argument
129 return wcstoul_l(nptr, endptr, base, __get_locale()); in wcstoul()
H A Dwcstol.c51 wcstol_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int in wcstol_l() argument
124 if (endptr != NULL) in wcstol_l()
125 *endptr = (wchar_t *)(any ? s - 1 : nptr); in wcstol_l()
129 wcstol(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) in wcstol() argument
131 return wcstol_l(nptr, endptr, base, __get_locale()); in wcstol()
/freebsd-13.1/contrib/bmake/
H A D_strtol.h46 _FUNCNAME(const char *nptr, char **endptr, int base) in _FUNCNAME() argument
54 INT_FUNCNAME(_int_, _FUNCNAME, _l)(const char *nptr, char **endptr, in _FUNCNAME()
70 if (endptr != NULL) in _FUNCNAME()
72 *endptr = __UNCONST(nptr); in _FUNCNAME()
194 if (endptr != NULL) in _FUNCNAME()
196 *endptr = __UNCONST(any ? s - 1 : nptr); in _FUNCNAME()
203 _FUNCNAME(const char *nptr, char **endptr, int base) in _FUNCNAME() argument
205 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, _current_locale()); in _FUNCNAME()
209 INT_FUNCNAME(, _FUNCNAME, _l)(const char *nptr, char **endptr, int base, locale_t loc)
211 return INT_FUNCNAME(_int_, _FUNCNAME, _l)(nptr, endptr, base, loc);
/freebsd-13.1/usr.sbin/mpsutil/
H A Dmps_slot.c52 char *endptr; in slot_set() local
73 x = strtol(argv[2], &endptr, 0); in slot_set()
74 if (*endptr != '\0' || errno != 0 || x < 0 || x > UINT16_MAX) { in slot_set()
81 x = strtol(argv[3], &endptr, 0); in slot_set()
82 if (*endptr != '\0' || errno != 0 || x < 0 || x > UINT16_MAX) { in slot_set()
89 ux = strtoul(argv[4], &endptr, 0); in slot_set()
90 if (*endptr != '\0' || errno != 0 || ux > UINT32_MAX) { in slot_set()
/freebsd-13.1/contrib/blacklist/port/
H A D_strtoi.h48 _FUNCNAME(const char * __restrict nptr, char ** __restrict endptr, int base, in _FUNCNAME() argument
58 if (endptr == NULL) in _FUNCNAME()
59 endptr = &ep; in _FUNCNAME()
67 im = __WRAPPED(nptr, endptr, base); in _FUNCNAME()
74 if (nptr == *endptr) in _FUNCNAME()
77 else if (**endptr != '\0') in _FUNCNAME()
/freebsd-13.1/usr.sbin/cpucontrol/
H A Dcpucontrol.c123 char *endptr; in do_cpuid() local
159 char *cmdarg1, *endptr, *endptr1; in do_cpuid_count() local
174 cmdarg1 = strstr(endptr, ","); in do_cpuid_count()
218 char *endptr; in do_msr() local
233 msr = strtoul(cmdarg, &endptr, 16); in do_msr()
234 switch (*endptr) { in do_msr()
243 endptr++; in do_msr()
247 endptr++; in do_msr()
253 if (*endptr != '=') in do_msr()
256 p = ++endptr; in do_msr()
[all …]
/freebsd-13.1/contrib/sendmail/libsm/
H A Dstrto.c44 sm_strtoll(nptr, endptr, base)
46 char **endptr; variable
161 if (endptr != NULL)
162 *endptr = (char *) (any ? s - 1 : nptr);
185 sm_strtoull(nptr, endptr, base) in sm_strtoull() argument
187 char **endptr;
251 if (endptr != NULL)
252 *endptr = (char *) (any ? s - 1 : nptr);
/freebsd-13.1/sbin/camcontrol/
H A Dattrib.c125 char *endptr; in scsiattrib() local
168 attr_num = strtol(optarg, &endptr, 0); in scsiattrib()
169 if (*endptr != '\0') { in scsiattrib()
182 if (*endptr != '\0') { in scsiattrib()
197 if (*endptr != '\0') { in scsiattrib()
230 partition = strtol(optarg, &endptr, 0); in scsiattrib()
231 if (*endptr != '\0') { in scsiattrib()
259 start_attr = strtol(optarg, &endptr, 0); in scsiattrib()
260 if (*endptr != '\0') { in scsiattrib()
293 logical_volume = strtol(optarg, &endptr, 0); in scsiattrib()
[all …]
/freebsd-13.1/contrib/lua/src/
H A Dlobject.c173 *endptr = cast_charp(s); /* nothing is valid yet */ in lua_strx2number()
195 *endptr = cast_charp(s); /* valid up to here */ in lua_strx2number()
208 *endptr = cast_charp(s); /* valid up to here */ in lua_strx2number()
229 char *endptr; in l_str2dloc() local
231 : lua_str2number(s, &endptr); in l_str2dloc()
233 while (lisspace(cast_uchar(*endptr))) endptr++; /* skip trailing spaces */ in l_str2dloc()
234 return (*endptr == '\0') ? endptr : NULL; /* OK iff no trailing chars */ in l_str2dloc()
252 const char *endptr; in l_str2d() local
266 if (endptr != NULL) in l_str2d()
267 endptr = s + (endptr - buff); /* make relative to 's' */ in l_str2d()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/lua/
H A Dlobject.c113 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument
117 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number()
131 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
144 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
154 char *endptr; in luaO_str2d() local
158 *result = lua_strx2number(s, &endptr); in luaO_str2d()
160 *result = lua_str2number(s, &endptr); in luaO_str2d()
161 if (endptr == s) return 0; /* nothing recognized */ in luaO_str2d()
162 while (lisspace(cast_uchar(*endptr))) endptr++; in luaO_str2d()
163 return (endptr == s + len); /* OK if no trailing characters */ in luaO_str2d()
/freebsd-13.1/sys/libkern/
H A Dinet_aton.c45 char *endptr; in inet_aton() local
59 l = strtoul(c, &endptr, 0); in inet_aton()
61 if (l == ULONG_MAX || (l == 0 && endptr == c)) in inet_aton()
72 if (endptr == c) in inet_aton()
75 c = endptr; in inet_aton()
/freebsd-13.1/lib/libc/stdlib/
H A Dstrtoumax.c56 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoumax_l() argument
125 if (endptr != NULL) in strtoumax_l()
126 *endptr = (char *)(any ? s - 1 : nptr); in strtoumax_l()
130 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoumax() argument
132 return strtoumax_l(nptr, endptr, base, __get_locale()); in strtoumax()
H A Dstrtoull.c56 strtoull_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoull_l() argument
125 if (endptr != NULL) in strtoull_l()
126 *endptr = (char *)(any ? s - 1 : nptr); in strtoull_l()
130 strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoull() argument
132 return strtoull_l(nptr, endptr, base, __get_locale()); in strtoull()
H A Dstrtoul.c56 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base, locale_t locale) in strtoul_l() argument
124 if (endptr != NULL) in strtoul_l()
125 *endptr = (char *)(any ? s - 1 : nptr); in strtoul_l()
129 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoul() argument
131 return strtoul_l(nptr, endptr, base, __get_locale()); in strtoul()
H A Dstrtol.c56 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtol_l() argument
146 if (endptr != NULL) in strtol_l()
147 *endptr = (char *)(any ? s - 1 : nptr); in strtol_l()
151 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) in strtol() argument
153 return strtol_l(nptr, endptr, base, __get_locale()); in strtol()
H A Dstrtoll.c56 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoll_l() argument
147 if (endptr != NULL) in strtoll_l()
148 *endptr = (char *)(any ? s - 1 : nptr); in strtoll_l()
152 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoll() argument
154 return strtoll_l(nptr, endptr, base, __get_locale()); in strtoll()
H A Dstrtoimax.c56 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoimax_l() argument
147 if (endptr != NULL) in strtoimax_l()
148 *endptr = (char *)(any ? s - 1 : nptr); in strtoimax_l()
152 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoimax() argument
154 return strtoimax_l(nptr, endptr, base, __get_locale()); in strtoimax()
/freebsd-13.1/lib/libc/iconv/
H A D_strtol.h49 _FUNCNAME(const char *nptr, char **endptr, int base) in _FUNCNAME() argument
60 if (endptr != NULL) in _FUNCNAME()
62 *endptr = __DECONST(void *, nptr); in _FUNCNAME()
165 if (endptr != NULL) in _FUNCNAME()
167 *endptr = __DECONST(void *, any ? s - 1 : nptr); in _FUNCNAME()
/freebsd-13.1/sbin/ipf/common/
H A Dgenmask.c17 char *endptr = 0L; local
44 bits = (int)strtol(msk, &endptr, 0);
49 if ((*endptr != '\0') || (bits < 0) || (bits > 128))
54 if (*endptr != '\0' || bits > 32 || bits < 0)

1234567