| /illumos-gate/usr/src/lib/libfakekernel/common/ |
| H A D | kmisc.c | 59 ddi_strtoul(const char *str, char **endp, int base, unsigned long *res) argument 61 *res = strtoul(str, endp, base);
|
| /illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
| H A D | smb_syslog.c | 55 const char *endp = buf + buflen - 1; local 57 while ((*bp = *sp) != '\0' && bp != endp) { 60 if (strerror_r(err, bp, endp - bp) == 0)
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
| H A D | snoop_http.c | 60 static int printable(const char *line, const char *endp); 65 char *p, *q, *endp; local 69 endp = line + fraglen; 72 c = printable(line, endp - 1); 87 for (p = line; p < endp && lineno < NLINES; p = q + 1) { 88 c = printable(p, endp - 1); 99 q = memchr(p, CR, (endp - p)); 101 if (q < endp - 1 && q[1] == LF) 104 q = memchr(p, LF, (endp - p)); 107 q = endp 133 printable(const char *startp, const char *endp) argument [all...] |
| /illumos-gate/usr/src/lib/libnsl/nss/ |
| H A D | inet_pton.c | 141 uchar_t tmp[IN6ADDRSZ], *tp, *endp, *colonp; local 147 endp = tp + IN6ADDRSZ; 179 if (tp + INT16SZ > endp) 187 if (ch == '.' && ((tp + INADDRSZ) <= endp) && 196 if (tp + INT16SZ > endp) 209 if (tp == endp) 212 endp[- i] = colonp[n - i]; 215 tp = endp; 217 if (tp != endp)
|
| /illumos-gate/usr/src/uts/common/inet/ip/ |
| H A D | ipcsum.c | 77 uint8_t *endp = mp->b_wptr; local 93 if ((endp - startp) < 10) { 95 while ((endp - startp) >= 2) { 100 if ((endp - startp) >= 1) { 120 if ((uint32_t)endp & 0x1) { 123 endp--; 124 sum += NEXT_ONE(endp); 126 if ((uint32_t)endp & 0x2) { 128 endp -= 2; 129 sum += NEXT_TWO(endp); [all...] |
| /illumos-gate/usr/src/lib/libresolv2/common/inet/ |
| H A D | inet_cidr_pton.c | 155 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local 162 endp = tp + NS_IN6ADDRSZ; 195 if (tp + NS_INT16SZ > endp) 203 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && 218 if (tp + NS_INT16SZ > endp) 231 if (tp == endp) 234 endp[- i] = colonp[n - i]; 237 tp = endp;
|
| H A D | inet_net_pton.c | 266 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local 277 endp = tp + NS_IN6ADDRSZ; 311 if (tp + NS_INT16SZ > endp) 320 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && 332 if (tp + NS_INT16SZ > endp) 345 endp = tmp + 2 * words; 355 if (tp == endp) 358 endp[- i] = colonp[n - i]; 361 tp = endp; 363 if (tp != endp) [all...] |
| /illumos-gate/usr/src/cmd/ypcmd/ |
| H A D | stdhosts.c | 237 char *endp; /* Points to the NULL at the end */ local 261 if ((endp = strchr(value, '#')) == 0) /* Ignore # comments */ 262 endp = p + strlen(p); /* Or endp = EOL */ 269 while ((p < endp) && isspace((unsigned char)*p)) 272 if (p == endp) /* End of the string */ 287 while ((p < endp) && !isspace((unsigned char)*p)) 310 if (p < endp) 313 } while (p < endp);
|
| /illumos-gate/usr/src/cmd/pools/poolbind/ |
| H A D | poolbind.c | 210 char *endp; local 214 id = (id_t)strtol(argv[i], &endp, 10); 216 (endp && endp != argv[i] + strlen(argv[i])) ||
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
| H A D | multilink.c | 202 char *p, *endp; local 208 i = strtol(p, &endp, 10); 209 if (endp != p && (*endp == 0 || *endp == ';')) { 337 char *p, *endp; local 348 i = strtol(str, &endp, 10); 349 if (endp == str) { 354 str = endp;
|
| /illumos-gate/usr/src/cmd/dispadmin/ |
| H A D | fssdispadmin.c | 68 char *endp; local 94 res = strtoul(optarg, &endp, 10); 95 if (res == 0 || errno != 0 || *endp != '\0') 203 char *endp; local 230 i = (int)strtol(value, &endp, 10); 231 if (errno != 0 || endp == value || 232 i < 0 || *endp != '\0') 240 i = (int)strtol(value, &endp, 10); 241 if (errno != 0 || endp == value || 242 i < 0 || *endp ! [all...] |
| H A D | fxdispadmin.c | 71 char *endp; local 97 res = strtoul(optarg, &endp, 10); 98 if (res == 0 || errno != 0 || *endp != '\0') 233 char *endp; local 278 i = (int)strtol(value, &endp, 10); 279 if (errno != 0 || endp == value || 280 i < 0 || *endp != '\0')
|
| /illumos-gate/usr/src/uts/common/cpr/ |
| H A D | cpr_stat.c | 274 cpr_time_t *startp, *shdnp, *endp; local 278 endp = &cpr_term.tm_cprboot_end; 280 cb_time = endp->tv_sec - startp->tv_sec; 282 cpr_tod_get(endp); 283 startp->tv_sec = endp->tv_sec - cb_time; 286 min_promtime > (endp->tv_sec - shdnp->tv_sec - cb_time)) 287 min_promtime = endp->tv_sec - shdnp->tv_sec - cb_time;
|
| /illumos-gate/usr/src/cmd/logger/ |
| H A D | logger.c | 133 char *p, *endp; local 231 endp = buf + buflen; 233 while (fgets(p, endp - p, stdin) != NULL) { 244 } else if (len < endp - p - 1) { 260 "Realloc endp-p=%d, len=%d, offset=%d, " 262 endp - p, len, offset, buflen); 269 endp = buf + buflen;
|
| /illumos-gate/usr/src/cmd/ptools/psecflags/ |
| H A D | psecflags.c | 92 char *endp; local 117 ret = (id_t)strtoul(value, &endp, 10); 119 if ((errno != 0) || (*endp != '\0'))
|
| /illumos-gate/usr/src/lib/pam_modules/unix_cred/ |
| H A D | unix_cred.c | 95 const char *q, *endp; local 96 tmp = priv_str_to_set(str, ",", &endp); 98 if (endp == NULL) 101 /* Now remove the bad privilege endp points to */ 102 q = strchr(endp, ','); 104 q = endp + strlen(endp); 110 (void) strncat(badp, endp, q - endp); 112 (void) memmove((void *)endp, [all...] |
| /illumos-gate/usr/src/lib/fm/libdiagcode/common/ |
| H A D | diagcode_test.c | 201 char *endp; local 218 if ((endp = strchr(beginp, ' ')) != NULL) { 219 *endp++ = '\0'; 220 beginp = endp; 355 char *endp; local 361 if ((endp = strchr(linebuf, '\n')) != NULL) 362 *endp = '\0'; 367 if ((endp = strchr(beginp, ':')) != NULL) { 368 *endp++ = '\0'; 369 beginp = endp; [all...] |
| /illumos-gate/usr/src/lib/libdladm/common/ |
| H A D | flowattr.c | 82 char *prefix_str, *endp = NULL; local 93 prefix_len = (int)strtol(prefix_str, &endp, 10); 94 if (errno != 0 || prefix_len == 0 || *endp != '\0') 172 char *endp = NULL; local 175 val = strtol(attr_val, &endp, 10); 176 if (val < 1 || val > MAX_PORT || *endp != '\0') 295 char *mask_str, *endp = NULL; local 301 mask = strtoul(mask_str, &endp, 16); 303 *endp != '\0') 307 endp [all...] |
| /illumos-gate/usr/src/lib/libsocket/inet/ |
| H A D | getaddrinfo.c | 765 char *endp; local 779 if ((ul_scope_id = strtoul(zone, &endp, 10)) != 0) { 781 if (*endp != '\0') {
|
| /illumos-gate/usr/src/lib/libtecla/common/ |
| H A D | keytab.c | 76 static char _kt_backslash_escape(const char *string, const char **endp); 831 * endp const char ** If endp!=NULL, on return *endp will be made to 837 static char _kt_backslash_escape(const char *string, const char **endp) argument 890 if(endp) 891 *endp = string;
|
| /illumos-gate/usr/src/lib/libtnfctl/ |
| H A D | kernel_int.c | 129 uintptr_t *rollbackp, uintptr_t *endp) 134 *endp = PRBK_DUMMY_END; 128 _tnfctl_prbk_get_other_funcs(uintptr_t *allocp, uintptr_t *commitp, uintptr_t *rollbackp, uintptr_t *endp) argument
|
| /illumos-gate/usr/src/lib/libgss/ |
| H A D | g_initialize.c | 714 char buffer[BUFSIZ], *oidStr, *oid, *sharedLib, *kernMod, *endp; local 757 for (endp = oid; *endp && !isspace(*endp); endp++) 760 if (*endp) { 761 *endp = '\0'; 786 for (sharedLib = endp+1; *sharedLib && isspace(*sharedLib); 803 for (endp = sharedLib; *endp [all...] |
| /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
| H A D | pppdump.c | 247 unsigned char *p, *r, *endp; local 301 endp = p + nb; 308 if (endp - r > mru) 310 endp - r, mru); 323 handle_ccp(pkt, r + 2, endp - r - 2); 330 endp - r, d, &dn); 353 pkt->comp->incomp(pkt->state, r, endp - r);
|
| /illumos-gate/usr/src/cmd/fm/schemes/mem/ |
| H A D | mem_unum.c | 325 unum_strip_one_jnum(const char *unum, uint_t *endp) argument 340 *endp = (uint_t)(c - unum);
|
| /illumos-gate/usr/src/cmd/rpcgen/ |
| H A D | rpc_parse.c | 250 decl_list **tailp, *endp; local 267 endp = *tailp = decls; 278 defp->def.st.self_pointer = is_self_reference(defp, &endp->decl); 280 defp->def.st.tail = endp;
|