Home
last modified time | relevance | path

Searched refs:nptr (Results 1 – 25 of 85) sorted by relevance

1234

/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_interceptors.cpp262 INTERCEPTOR(int, atoi, const char *nptr) { in INTERCEPTOR() argument
271 int result = REAL(strtol)(nptr, &real_endptr, 10); in INTERCEPTOR()
272 FixRealStrtolEndptr(nptr, &real_endptr); in INTERCEPTOR()
273 MEMPROF_READ_STRING(nptr, (real_endptr - nptr) + 1); in INTERCEPTOR()
277 INTERCEPTOR(long, atol, const char *nptr) { in INTERCEPTOR() argument
282 long result = REAL(strtol)(nptr, &real_endptr, 10); in INTERCEPTOR()
283 FixRealStrtolEndptr(nptr, &real_endptr); in INTERCEPTOR()
284 MEMPROF_READ_STRING(nptr, (real_endptr - nptr) + 1); in INTERCEPTOR()
298 INTERCEPTOR(long long, atoll, const char *nptr) { in INTERCEPTOR() argument
304 FixRealStrtolEndptr(nptr, &real_endptr); in INTERCEPTOR()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_sunddi.c38 ddi_strtol(const char *str, char **nptr, int base, long *result) in ddi_strtol() argument
41 *result = strtol(str, nptr, base); in ddi_strtol()
46 ddi_strtoull(const char *str, char **nptr, int base, unsigned long long *result) in ddi_strtoull() argument
49 *result = (unsigned long long)strtouq(str, nptr, base); in ddi_strtoull()
54 ddi_strtoll(const char *str, char **nptr, int base, long long *result) in ddi_strtoll() argument
57 *result = (long long)strtoq(str, nptr, base); in ddi_strtoll()
/freebsd/crypto/openssl/crypto/bn/asm/
H A Dx86_64-mont5.pl1882 lea 8*8($nptr),$nptr
1974 lea 8*8($nptr),$nptr
2073 lea 8*4($nptr),$nptr
2370 lea 4*8($nptr),$nptr
2408 lea 4*8($nptr),$nptr
2467 lea ($nptr,$num),$nptr # rewind $nptr
2497 lea 4*8($nptr),$nptr
2535 lea 4*8($nptr),$nptr
3246 lea 8*8($nptr),$nptr
3309 lea 8*8($nptr),$nptr
[all …]
H A Dx86_64-mont.pl1153 lea 4*8($nptr),$nptr
1192 lea 4*8($nptr),$nptr
1213 sub $num,$nptr # rewind $nptr
1254 lea 4*8($nptr),$nptr
1300 lea 4*8($nptr),$nptr
1318 sub $num,$nptr # rewind $nptr
1332 sbb 8*0($nptr),%r11
1333 sbb 8*1($nptr),%r12
1334 sbb 8*2($nptr),%r13
1335 sbb 8*3($nptr),%r14
[all …]
/freebsd/usr.sbin/pw/
H A Dpw_utils.c39 pw_checkfd(char *nptr) in pw_checkfd() argument
44 if (strcmp(nptr, "-") == 0) in pw_checkfd()
46 fd = strtonum(nptr, 0, INT_MAX, &errstr); in pw_checkfd()
49 nptr, errstr); in pw_checkfd()
54 pw_checkid(char *nptr, uintmax_t maxval) in pw_checkid() argument
59 id = strtounum(nptr, 0, maxval, &errstr); in pw_checkid()
61 errx(EX_USAGE, "Bad id '%s': %s", nptr, errstr); in pw_checkid()
/freebsd/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()
63 _DIAGASSERT(nptr != NULL); in _FUNCNAME()
72 *endptr = __UNCONST(nptr); in _FUNCNAME()
84 s = nptr; 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/lib/libc/locale/
H A Dwcstold.c43 wcstold_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstold_l() argument
55 wcp = nptr; in wcstold_l()
65 *endptr = (wchar_t *)nptr; in wcstold_l()
70 *endptr = (wchar_t *)nptr; in wcstold_l()
79 *endptr = (wchar_t *)nptr + (end - buf); in wcstold_l()
89 wcstold(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstold() argument
91 return wcstold_l(nptr, endptr, __get_locale()); in wcstold()
H A Dwcstod.c49 wcstod_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstod_l() argument
61 wcp = nptr; in wcstod_l()
81 *endptr = (wchar_t *)nptr; in wcstod_l()
86 *endptr = (wchar_t *)nptr; in wcstod_l()
102 *endptr = (wchar_t *)nptr + (end - buf); in wcstod_l()
112 wcstod(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstod() argument
114 return wcstod_l(nptr, endptr, __get_locale()); in wcstod()
H A Dwcstof.c43 wcstof_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, in wcstof_l() argument
55 wcp = nptr; in wcstof_l()
65 *endptr = (wchar_t *)nptr; in wcstof_l()
70 *endptr = (wchar_t *)nptr; in wcstof_l()
79 *endptr = (wchar_t *)nptr + (end - buf); in wcstof_l()
89 wcstof(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) in wcstof() argument
91 return wcstof_l(nptr, endptr, __get_locale()); in wcstof()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.cpp22 s64 internal_atoll(const char *nptr) { in internal_atoll() argument
23 return internal_simple_strtoll(nptr, nullptr, 10); in internal_atoll()
257 while (IsSpace(*nptr)) nptr++; in internal_simple_strtoll()
261 char *old_nptr = const_cast<char *>(nptr); in internal_simple_strtoll()
262 if (*nptr == '+') { in internal_simple_strtoll()
264 nptr++; in internal_simple_strtoll()
265 } else if (*nptr == '-') { in internal_simple_strtoll()
267 nptr++; in internal_simple_strtoll()
269 while (IsDigit(*nptr)) { in internal_simple_strtoll()
271 int digit = ((*nptr) - '0'); in internal_simple_strtoll()
[all …]
/freebsd/bin/sh/
H A Darith_yylex.c54 strtoarith_t(const char *restrict nptr, char **restrict endptr) in strtoarith_t() argument
58 while (isspace((unsigned char)*nptr)) in strtoarith_t()
59 nptr++; in strtoarith_t()
60 switch (*nptr) { in strtoarith_t()
62 return strtoimax(nptr, endptr, 0); in strtoarith_t()
64 return (arith_t)strtoumax(nptr, endptr, 0); in strtoarith_t()
66 val = (arith_t)strtoumax(nptr, endptr, 0); in strtoarith_t()
/freebsd/contrib/sendmail/libsm/
H A Dstrto.c44 sm_strtoll(nptr, endptr, base)
45 const char *nptr;
61 s = nptr;
162 *endptr = (char *) (any ? s - 1 : nptr);
185 sm_strtoull(nptr, endptr, base) in sm_strtoull() argument
186 const char *nptr; in sm_strtoull()
197 s = nptr;
252 *endptr = (char *) (any ? s - 1 : nptr);
/freebsd/lib/libc/net/
H A Dgetnetbyht.c146 getnetent_r(struct netent *nptr, char *buffer, size_t buflen, in getnetent_r() argument
161 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) { in getnetent_r()
166 *result = nptr; in getnetent_r()
192 struct netent *nptr, ne; in _ht_getnetbyname() local
199 nptr = va_arg(ap, struct netent *); in _ht_getnetbyname()
227 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) { in _ht_getnetbyname()
233 *((struct netent **)rval) = nptr; in _ht_getnetbyname()
245 struct netent *nptr, ne; in _ht_getnetbyaddr() local
252 nptr = va_arg(ap, struct netent *); in _ht_getnetbyaddr()
275 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) { in _ht_getnetbyaddr()
[all …]
H A Dgetnetbynis.c140 struct netent *nptr, ne; in _nis_getnetbyname() local
145 nptr = va_arg(ap, struct netent *); in _nis_getnetbyname()
162 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) { in _nis_getnetbyname()
168 *((struct netent **)rval) = nptr; in _nis_getnetbyname()
185 struct netent *nptr, ne; in _nis_getnetbyaddr() local
196 nptr = va_arg(ap, struct netent *); in _nis_getnetbyaddr()
248 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) { in _nis_getnetbyaddr()
254 *((struct netent **)rval) = nptr; in _nis_getnetbyaddr()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_interceptors.cpp615 return real(nptr, endptr, base); in StrtolImpl()
638 INTERCEPTOR(int, atoi, const char *nptr) { in INTERCEPTOR_STRTO_BASE()
642 return REAL(atoi)(nptr); in INTERCEPTOR_STRTO_BASE()
645 return REAL(atoi)(nptr); in INTERCEPTOR_STRTO_BASE()
653 FixRealStrtolEndptr(nptr, &real_endptr); in INTERCEPTOR_STRTO_BASE()
654 ASAN_READ_STRING(ctx, nptr, (real_endptr - nptr) + 1); in INTERCEPTOR_STRTO_BASE()
662 return REAL(atol)(nptr); in INTERCEPTOR()
665 return REAL(atol)(nptr); in INTERCEPTOR()
670 ASAN_READ_STRING(ctx, nptr, (real_endptr - nptr) + 1); in INTERCEPTOR()
679 return REAL(atoll)(nptr); in INTERCEPTOR()
[all …]
/freebsd/lib/libc/stdlib/
H A Dreallocf.c33 void *nptr; in reallocf() local
35 nptr = realloc(ptr, size); in reallocf()
43 if (!nptr && ptr && size != 0) in reallocf()
45 return (nptr); in reallocf()
H A Dstrtol.c50 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtol_l() argument
65 s = nptr; in strtol_l()
148 *endptr = (char *)(any ? s - 1 : nptr); in strtol_l()
152 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) in strtol() argument
154 return strtol_l(nptr, endptr, base, __get_locale()); in strtol()
H A Dstrtoll.c50 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoll_l() argument
66 s = nptr; in strtoll_l()
150 *endptr = (char *)(any ? s - 1 : nptr); in strtoll_l()
154 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoll() argument
156 return strtoll_l(nptr, endptr, base, __get_locale()); in strtoll()
H A Dstrtoul.c50 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base, locale_t locale) in strtoul_l() argument
62 s = nptr; in strtoul_l()
126 *endptr = (char *)(any ? s - 1 : nptr); in strtoul_l()
130 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoul() argument
132 return strtoul_l(nptr, endptr, base, __get_locale()); in strtoul()
H A Dstrtoull.c50 strtoull_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoull_l() argument
63 s = nptr; in strtoull_l()
127 *endptr = (char *)(any ? s - 1 : nptr); in strtoull_l()
131 strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoull() argument
133 return strtoull_l(nptr, endptr, base, __get_locale()); in strtoull()
H A Dstrtoumax.c50 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoumax_l() argument
63 s = nptr; in strtoumax_l()
127 *endptr = (char *)(any ? s - 1 : nptr); in strtoumax_l()
131 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoumax() argument
133 return strtoumax_l(nptr, endptr, base, __get_locale()); in strtoumax()
H A Dstrtoimax.c50 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoimax_l() argument
65 s = nptr; in strtoimax_l()
149 *endptr = (char *)(any ? s - 1 : nptr); in strtoimax_l()
153 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoimax() argument
155 return strtoimax_l(nptr, endptr, base, __get_locale()); in strtoimax()
/freebsd/contrib/dma/
H A Ddfcompat.c96 void *nptr; in reallocf() local
98 nptr = realloc(ptr, size); in reallocf()
99 if (!nptr && ptr && size != 0) in reallocf()
101 return (nptr); in reallocf()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dcstdlib34 double atof (const char* nptr);
35 int atoi (const char* nptr);
36 long atol (const char* nptr);
37 long long atoll(const char* nptr); // C99
38 double strtod (const char* restrict nptr, char** restrict endptr);
39 float strtof (const char* restrict nptr, char** restrict endptr); // C99
40 long double strtold (const char* restrict nptr, char** restrict endptr); // C99
41 long strtol (const char* restrict nptr, char** restrict endptr, int base);
42 long long strtoll (const char* restrict nptr, char** restrict endptr, int base); // C99
43 unsigned long strtoul (const char* restrict nptr, char** restrict endptr, int base);
[all …]
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dsunddi.h41 int ddi_strtol(const char *str, char **nptr, int base, long *result);
42 int ddi_strtoul(const char *str, char **nptr, int base, unsigned long *result);
43 int ddi_strtoll(const char *str, char **nptr, int base, long long *result);
44 int ddi_strtoull(const char *str, char **nptr, int base,

1234