Searched refs:nptr (Results 1 - 25 of 32) sorted by relevance

12

/barrelfish-2018-10-04/lib/libc/stdlib/
H A Dreallocf.c35 void *nptr; local
37 nptr = realloc(ptr, size);
45 if (!nptr && ptr && size != 0)
47 return (nptr);
H A Dstrtoq.c44 strtoq(const char *nptr, char **endptr, int base) argument
47 return strtoll(nptr, endptr, base);
H A Dstrtouq.c44 strtouq(const char *nptr, char **endptr, int base) argument
47 return strtoull(nptr, endptr, base);
H A Dstrtol.c55 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument
70 s = nptr;
146 *endptr = (char *)(any ? s - 1 : nptr);
150 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) argument
152 return strtol_l(nptr, endptr, base, __get_locale());
155 strtold(const char * __restrict nptr, char ** __restrict endptr) argument
157 return strtold_l(nptr, endptr, __get_locale());
H A Dstrtoimax.c54 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument
69 s = nptr;
146 *endptr = (char *)(any ? s - 1 : nptr);
150 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) argument
152 return strtoimax_l(nptr, endptr, base, __get_locale());
H A Dstrtoll.c54 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument
69 s = nptr;
146 *endptr = (char *)(any ? s - 1 : nptr);
150 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) argument
152 return strtoll_l(nptr, endptr, base, __get_locale());
H A Dstrtoul.c54 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base, locale_t locale) argument
66 s = nptr;
123 *endptr = (char *)(any ? s - 1 : nptr);
127 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) argument
129 return strtoul_l(nptr, endptr, base, __get_locale());
H A Dstrtoull.c54 strtoull_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument
67 s = nptr;
124 *endptr = (char *)(any ? s - 1 : nptr);
128 strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) argument
130 return strtoull_l(nptr, endptr, base, __get_locale());
H A Dstrtoumax.c54 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument
67 s = nptr;
124 *endptr = (char *)(any ? s - 1 : nptr);
128 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) argument
130 return strtoumax_l(nptr, endptr, base, __get_locale());
/barrelfish-2018-10-04/kernel/
H A Dstdlib.c71 long int strtol(const char *nptr, char **endptr, int base) argument
79 (base == 10 && isdigit((int)nptr[i])) || (base == 16 && isxdigit((int)nptr[i]));
82 retval = retval * base + ascii_to_int(nptr[i]);
86 *endptr = (char *) &nptr[i];
92 unsigned long int strtoul(const char *nptr, char **endptr, int base) argument
100 (base == 10 && isdigit((int)nptr[i])) || (base == 16 && isxdigit((int)nptr[i]));
103 retval = retval * base + ascii_to_int(nptr[i]);
107 *endptr = (char *) &nptr[
116 strtoull(const char *nptr, char **endptr, int base) argument
121 strtoll(const char *nptr, char **endptr, int base) argument
[all...]
/barrelfish-2018-10-04/lib/libc/locale/
H A Dwcstof.c44 wcstof_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
55 while (iswspace_l(*nptr, locale))
56 nptr++;
58 wcp = nptr;
62 *endptr = (wchar_t *)nptr;
73 *endptr = (wchar_t *)nptr + (end - buf);
80 wcstof(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) argument
82 return wcstof_l(nptr, endptr, __get_locale());
H A Dwcstold.c44 wcstold_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
51 const wchar_t *wcp = nptr;
61 wcp = nptr;
65 *endptr = (wchar_t *)nptr;
77 *endptr = (wchar_t *)nptr + (end - buf);
87 wcstold(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) argument
89 return wcstold_l(nptr, endptr, __get_locale());
H A Dwcstod.c50 wcstod_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
57 const wchar_t *wcp = nptr;
80 *endptr = (wchar_t *)nptr;
99 *endptr = (wchar_t *)nptr + (end - buf);
110 wcstod(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) argument
112 return wcstod_l(nptr, endptr, __get_locale());
H A Dwcstol.c49 wcstol_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int argument
62 s = nptr;
123 *endptr = (wchar_t *)(any ? s - 1 : nptr);
127 wcstol(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument
129 return wcstol_l(nptr, endptr, base, __get_locale());
H A Dwcstoll.c55 wcstoll_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
68 s = nptr;
129 *endptr = (wchar_t *)(any ? s - 1 : nptr);
133 wcstoll(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument
135 return wcstoll_l(nptr, endptr, base, __get_locale());
H A Dwcstoul.c49 wcstoul_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
62 s = nptr;
121 *endptr = (wchar_t *)(any ? s - 1 : nptr);
125 wcstoul(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument
127 return wcstoul_l(nptr, endptr, base, __get_locale());
H A Dwcstoull.c55 wcstoull_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
68 s = nptr;
127 *endptr = (wchar_t *)(any ? s - 1 : nptr);
131 wcstoull(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
134 return wcstoull_l(nptr, endptr, base, __get_locale());
H A Dwcstoumax.c55 wcstoumax_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
68 s = nptr;
127 *endptr = (wchar_t *)(any ? s - 1 : nptr);
131 wcstoumax(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
134 return wcstoumax_l(nptr, endptr, base, __get_locale());
H A Dlocaleconv.c100 struct lc_numeric_T * nptr; local
102 #define N_ASSIGN_STR(NAME) (ret->NAME = (char*)nptr->NAME)
104 nptr = __get_current_numeric_locale(loc);
H A Dwcstoimax.c55 wcstoimax_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
68 s = nptr;
129 *endptr = (wchar_t *)(any ? s - 1 : nptr);
133 wcstoimax(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
136 return wcstoimax_l(nptr, endptr, base, __get_locale());
/barrelfish-2018-10-04/lib/libc/iconv/
H A D_strtol.h47 _FUNCNAME(const char *nptr, char **endptr, int base) argument
60 *endptr = __DECONST(void *, nptr);
72 s = nptr;
165 *endptr = __DECONST(void *, any ? s - 1 : nptr);
H A D_strtoul.h46 _FUNCNAME(const char *nptr, char **endptr, int base) argument
68 s = nptr;
124 *endptr = __DECONST(void *, any ? s - 1 : nptr);
/barrelfish-2018-10-04/lib/libc/net/
H A Dgetnetbyht.c151 getnetent_r(struct netent *nptr, char *buffer, size_t buflen, argument
166 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) {
171 *result = nptr;
197 struct netent *nptr, ne; local
204 nptr = va_arg(ap, struct netent *);
232 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) {
238 *((struct netent **)rval) = nptr;
250 struct netent *nptr, ne; local
257 nptr = va_arg(ap, struct netent *);
280 if (__copy_netent(&ne, nptr, buffe
[all...]
H A Dgetnetbynis.c140 struct netent *nptr, ne; local
145 nptr = va_arg(ap, struct netent *);
162 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) {
168 *((struct netent **)rval) = nptr;
185 struct netent *nptr, ne; local
196 nptr = va_arg(ap, struct netent *);
248 if (__copy_netent(&ne, nptr, buffer, buflen) != 0) {
254 *((struct netent **)rval) = nptr;
/barrelfish-2018-10-04/lib/lwip/src/core/snmp/
H A Dmib_structs.c169 ln->nptr = NULL;
333 } else if (n->nptr == NULL) {
339 if (n->nptr->node_type == MIB_NODE_LR) {
340 r = (struct mib_list_rootnode *) n->nptr;
363 * @return the nptr to be freed by caller
374 next = (struct mib_list_rootnode *) (n->nptr);
440 if (an->nptr[i] == NULL) {
450 node = an->nptr[i];
482 if (ln->nptr == NULL) {
490 node = ln->nptr;
[all...]

Completed in 125 milliseconds

12