Searched refs:endptr (Results 1 - 25 of 78) sorted by relevance

1234

/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwcstoimax.c54 wcstoimax(const wchar_t *nptr, wchar_t **endptr, int base) argument
56 return ((intmax_t)wcstoll(nptr, endptr, base));
61 wcstoumax(const wchar_t *nptr, wchar_t **endptr, int base) argument
63 return ((uintmax_t)wcstoull(nptr, endptr, base));
69 _wcstoimax_c89(const wchar_t *nptr, wchar_t **endptr, int base) argument
71 return ((int32_t)wcstol(nptr, endptr, base));
76 _wcstoumax_c89(const wchar_t *nptr, wchar_t **endptr, int base) argument
78 return ((uint32_t)wcstoul(nptr, endptr, base));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrtoimax.c39 strtoimax(const char *nptr, char **endptr, int base) argument
41 return ((intmax_t)strtoll(nptr, endptr, base));
55 _strtoimax_c89(const char *nptr, char **endptr, int base) argument
57 return ((int32_t)strtol(nptr, endptr, base));
H A Dstrtoumax.c39 strtoumax(const char *nptr, char **endptr, int base) argument
41 return ((uintmax_t)strtoull(nptr, endptr, base));
55 _strtoumax_c89(const char *nptr, char **endptr, int base) argument
57 return ((uint32_t)strtoul(nptr, endptr, base));
H A Dpriv_str_xlate.c70 * *endptr == NULL and errno set: resource error.
71 * *endptr != NULL: parse error.
76 const char **endptr)
86 if (endptr != NULL)
87 *endptr = NULL;
126 if (endptr != NULL)
127 *endptr = priv_names + slen;
74 priv_str_to_set(const char *priv_names, const char *separators, const char **endptr) argument
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dgenmask.c16 char *endptr = 0L; local
34 bits = (int)strtol(msk, &endptr, 0);
36 if ((*endptr != '\0') ||
40 if (*endptr != '\0' || bits > 32 || bits < 0)
/illumos-gate/usr/src/boot/lib/libstand/
H A Dstrtol.c47 strtol(nptr, endptr, base)
49 char **endptr;
129 if (endptr != NULL)
130 *endptr = (char *)(any ? s - 1 : nptr);
H A Dstrtoul.c51 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) argument
118 if (endptr != NULL)
119 *endptr = (char *)(any ? s - 1 : nptr);
/illumos-gate/usr/src/cmd/prctl/
H A Dutils.c114 char *endptr; local
138 *uint64out = strtoull(scaledin, &endptr, 16);
145 if (*endptr != '\0')
159 value = strtod(scaledin, &endptr);
167 if (endptr == scaledin)
179 *widthout = (int)(endptr - scaledin);
182 if (*endptr != '\0') {
186 cmp = strncasecmp(modifiers[index], endptr,
189 cmp = strncmp(modifiers[index], endptr,
195 endptr
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstrto.c34 ** endptr -- location of first invalid character
40 ** When 'endptr' == '\0' then the entire string 'nptr'
46 sm_strtoll(nptr, endptr, base)
48 char **endptr;
163 if (endptr != 0)
164 *endptr = (char *) (any ? s - 1 : nptr);
176 ** endptr -- location of first invalid character
181 ** When 'endptr' == '\0' then the entire string 'nptr'
187 sm_strtoull(nptr, endptr, base)
189 char **endptr;
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dstrtoul.c62 strtoul(const char *nptr, char **endptr, int base) { argument
112 if (endptr != 0)
113 DE_CONST((any ? s - 1 : nptr), *endptr);
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Drdn_parser.c104 skipSpace(char **pbp, char *endptr) argument
107 while (bp < endptr && OPTIONAL_SPACE(*bp)) {
114 scanTag(char **pbp, char *endptr, char *tagBuf, int tagBufSize) argument
123 skipSpace(pbp, endptr);
124 if (*pbp == endptr) {
133 while (bp < endptr && !OPTIONAL_SPACE(*bp) && (*bp != C_EQUAL)) {
148 skipSpace(pbp, endptr);
149 if (*pbp == endptr) {
164 scanVal(char **pbp, char *endptr, char *valBuf, int valBufSize) argument
174 skipSpace(pbp, endptr);
322 ParseRdnAttribute(char **pbp, char *endptr, boolean_t singleAVA, KMF_X509_TYPE_VALUE_PAIR **a) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dipcsum.c135 #define INC_ENDPTR(cnt) endptr += cnt
137 uint32_t *endptr = (uint32_t *)endp; local
142 #define endptr ((uint32_t *)endp) macro
193 if (ptr <= endptr) {
205 } while (ptr <= endptr);
208 switch ((endptr + 8) - ptr) {
220 if (ptr <= endptr) {
229 if (ptr < endptr) {
234 } while (ptr < endptr);
265 #undef endptr macro
[all...]
/illumos-gate/usr/src/lib/libgen/common/
H A Dmkdirp.c54 char *endptr, *ptr, *slash, *str; local
73 endptr = strrchr(str, '\0');
107 while ((ptr = strchr(str, '\0')) != endptr) {
/illumos-gate/usr/src/uts/common/io/mac/plugins/
H A Dmac_ipv6.c180 uint8_t *whereptr, *endptr; local
197 endptr = mp->b_wptr;
201 if (whereptr + sizeof (ip6_dest_t) >= endptr)
207 if (whereptr > endptr)
231 uint8_t *whereptr, *endptr; local
257 endptr = (uint8_t *)pdata + pdata_size;
259 while (nexthdr != IPPROTO_NONE && whereptr < endptr) {
263 if (whereptr + sizeof (ip6_dest_t) > endptr)
269 return (nexthdr == IPPROTO_NONE && whereptr == endptr);
/illumos-gate/usr/src/cmd/hal/hald/
H A Dutil_helper.c139 char **new_environ, *endptr; local
148 endptr = i ? environ[i-1] + strlen (environ[i-1]) : argv[argc-1] + strlen (argv[argc-1]);
151 argv_size = endptr - argv_buffer[0];
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil.c218 char *endptr; local
230 cmds->version_no = (float)strtod(vertok, &endptr);
231 if (endptr != (vertok + strlen(vertok)))
415 char *endptr; local
423 llval = strtoll(val, &endptr, 0);
424 if (endptr != (val + strlen(val)))
429 intval = strtol(val, &endptr, 0);
430 if (endptr != (val + strlen(val)))
435 sval = (int16_t)strtol(val, &endptr, 0);
436 if (endptr !
602 char *endptr; local
1088 char *endptr; local
1318 char *endptr; local
[all...]
/illumos-gate/usr/src/cmd/ndmpstat/
H A Dndmpstat_main.c87 char *endptr; local
90 interval = strtol(argv[0], &endptr, 10);
92 if (errno > 0 || *endptr != '\0' || interval <= 0 ||
105 if (errno > 0 || *endptr != '\0' || iter <= 0) {
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_profile.c206 char *endptr; local
208 l = strtol(string, &endptr, 0);
209 if (endptr == string)
369 char *endptr; local
371 l = strtol(string, &endptr, 0);
372 if (endptr == string)
/illumos-gate/usr/src/cmd/mandoc/
H A Dout.c49 char *endptr; local
52 dst->scale = strtod(src, &endptr);
53 if (endptr == src)
56 switch (*endptr++) {
88 endptr--;
97 return *endptr == '\0' ? 2 : 1;
/illumos-gate/usr/src/cmd/powertop/common/
H A Dpowertop.c99 char *endptr, key; local
148 dump_count = (int)strtod(optarg, &endptr);
150 if (dump_count <= 0 || *endptr != NULL) {
164 &endptr);
166 if (*endptr != NULL || interval < 1 ||
188 g_observed_cpu = (uint_t)strtod(optarg, &endptr);
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dmain.c256 char *endptr; local
258 rec->value.ndx.start = strtol(str, &endptr, 10);
260 if ((str == endptr) || (rec->value.ndx.start < 0))
262 str = endptr;
274 rec->value.ndx.end = strtol(str, &endptr, 10);
275 if ((str == endptr) || (rec->value.ndx.end < 0))
277 str = endptr;
316 char *endptr; local
349 *v = strtoull(str, &endptr, 0);
352 for (; *endptr; endpt
[all...]
/illumos-gate/usr/src/cmd/ptools/pmadvise/
H A Dpmadvise.c368 atosz(char *optarg, char **endptr) argument
375 sz = strtoll(optarg, endptr, 0);
377 switch (**endptr) {
404 (*endptr)++;
494 char *endptr; local
501 strtoull(value, &endptr, 16);
509 if ((psaddr->addr == 0) || (*endptr != ':' && *endptr != '=')) {
522 value = endptr;
528 psaddr->length = atosz(value, &endptr);
[all...]
/illumos-gate/usr/src/lib/libumem/common/
H A Denvvar.c304 char *endptr = ""; local
314 result = strtoul(item_arg, &endptr, 10);
322 if (*endptr != '\0')
344 char *endptr = ""; local
353 result_arg = strtoul(item_arg, &endptr, 10);
363 switch (*endptr) {
387 endptr++; /* skip over the size character */
393 if (*endptr != '\0')
/illumos-gate/usr/src/cmd/stat/mpstat/
H A Dmpstat.c74 char *endptr; local
112 (optarg, &endptr, 10);
113 if (*endptr != NULL)
145 interval = (int)strtol(argv[optind], &endptr, 10);
146 if (*endptr != NULL)
151 (argv[optind + 1], &endptr, 10);
152 if (*endptr != NULL || iter < 0)
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Dutil.c240 char *endptr; local
245 *v = strtoll(str, &endptr, 0);
248 for (; *endptr; endptr++)
249 if (!isspace(*endptr))
266 char *endptr; local
271 *v = strtoull(str, &endptr, 0);
274 for (; *endptr; endptr++)
275 if (!isspace(*endptr))
[all...]

Completed in 119 milliseconds

1234