/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | dirname.c | 46 register const char *endp; local 55 endp = path + strlen(path) - 1; 56 while (endp > path && *endp == '/') 57 endp--; 60 while (endp > path && *endp != '/') 61 endp--; 64 if (endp == path) { 65 (void)strlcpy(bname, *endp == '/' ? "/" : ".", sizeof bname); 69 endp--; 70 } while (endp > path && *endp == '/'); [all …]
|
/titanic_41/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; in interpret_http() local 69 endp = line + fraglen; in interpret_http() 72 c = printable(line, endp - 1); in interpret_http() 87 for (p = line; p < endp && lineno < NLINES; p = q + 1) { in interpret_http() 88 c = printable(p, endp - 1); in interpret_http() 99 q = memchr(p, CR, (endp - p)); in interpret_http() 101 if (q < endp - 1 && q[1] == LF) in interpret_http() 104 q = memchr(p, LF, (endp - p)); in interpret_http() 107 q = endp - 1; in interpret_http() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_mkupdate.c | 84 u_char *cp, *sp2, *startp, *endp; in res_nmkupdate() local 207 endp = startp + rrecp->r_size - 1; in res_nmkupdate() 211 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 226 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 239 endp)) in res_nmkupdate() 259 soanum = getnum_str(&startp, endp); in res_nmkupdate() 275 n = getnum_str(&startp, endp); in res_nmkupdate() 280 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 289 n = getnum_str(&startp, endp); in res_nmkupdate() 295 n = getnum_str(&startp, endp); in res_nmkupdate() [all …]
|
/titanic_41/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 && !isspace(*endp); endp++) 806 if (*endp) { 807 *endp = '\0'; 811 for (kernMod = endp+1; *kernMod && isspace(*kernMod); 825 for (endp = kernMod; *endp && !isspace(*endp); endp++) [all …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libnsl/nss/ |
H A D | inet_pton.c | 141 uchar_t tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 147 endp = tp + IN6ADDRSZ; in inet_pton6() 179 if (tp + INT16SZ > endp) in inet_pton6() 187 if (ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6() 196 if (tp + INT16SZ > endp) in inet_pton6() 209 if (tp == endp) in inet_pton6() 212 endp[- i] = colonp[n - i]; in inet_pton6() 215 tp = endp; in inet_pton6() 217 if (tp != endp) in inet_pton6()
|
/titanic_41/usr/src/cmd/dispadmin/ |
H A D | fssdispadmin.c | 68 char *endp; in main() local 94 res = strtoul(optarg, &endp, 10); in main() 95 if (res == 0 || errno != 0 || *endp != '\0') in main() 203 char *endp; in setadmin() local 230 i = (int)strtol(value, &endp, 10); in setadmin() 231 if (errno != 0 || endp == value || in setadmin() 232 i < 0 || *endp != '\0') in setadmin() 240 i = (int)strtol(value, &endp, 10); in setadmin() 241 if (errno != 0 || endp == value || in setadmin() 242 i < 0 || *endp != '\0') in setadmin()
|
H A D | fxdispadmin.c | 71 char *endp; in main() local 97 res = strtoul(optarg, &endp, 10); in main() 98 if (res == 0 || errno != 0 || *endp != '\0') in main() 233 char *endp; in set_fxdptbl() local 278 i = (int)strtol(value, &endp, 10); in set_fxdptbl() 279 if (errno != 0 || endp == value || in set_fxdptbl() 280 i < 0 || *endp != '\0') in set_fxdptbl()
|
/titanic_41/usr/src/cmd/ypcmd/ |
H A D | stdhosts.c | 237 char *endp; /* Points to the NULL at the end */ in verify_and_output() local 261 if ((endp = strchr(value, '#')) == 0) /* Ignore # comments */ in verify_and_output() 262 endp = p + strlen(p); /* Or endp = EOL */ in verify_and_output() 269 while ((p < endp) && isspace((unsigned char)*p)) in verify_and_output() 272 if (p == endp) /* End of the string */ in verify_and_output() 287 while ((p < endp) && !isspace((unsigned char)*p)) in verify_and_output() 310 if (p < endp) in verify_and_output() 313 } while (p < endp); in verify_and_output()
|
/titanic_41/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_cidr_pton.c | 155 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_cidr_pton_ipv6() local 162 endp = tp + NS_IN6ADDRSZ; in inet_cidr_pton_ipv6() 195 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6() 203 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_cidr_pton_ipv6() 218 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6() 231 if (tp == endp) in inet_cidr_pton_ipv6() 234 endp[- i] = colonp[n - i]; in inet_cidr_pton_ipv6() 237 tp = endp; in inet_cidr_pton_ipv6()
|
H A D | inet_net_pton.c | 266 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_net_pton_ipv6() local 277 endp = tp + NS_IN6ADDRSZ; in inet_net_pton_ipv6() 311 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6() 320 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_net_pton_ipv6() 332 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6() 345 endp = tmp + 2 * words; in inet_net_pton_ipv6() 355 if (tp == endp) in inet_net_pton_ipv6() 358 endp[- i] = colonp[n - i]; in inet_net_pton_ipv6() 361 tp = endp; in inet_net_pton_ipv6() 363 if (tp != endp) in inet_net_pton_ipv6()
|
/titanic_41/usr/src/lib/libdladm/common/ |
H A D | flowattr.c | 82 char *prefix_str, *endp = NULL; in do_check_ip_addr() local 93 prefix_len = (int)strtol(prefix_str, &endp, 10); in do_check_ip_addr() 94 if (errno != 0 || prefix_len == 0 || *endp != '\0') in do_check_ip_addr() 172 char *endp = NULL; in do_check_port() local 175 val = strtol(attr_val, &endp, 10); in do_check_port() 176 if (val < 1 || val > MAX_PORT || *endp != '\0') in do_check_port() 295 char *mask_str, *endp = NULL; in do_check_dsfield() local 301 mask = strtoul(mask_str, &endp, 16); in do_check_dsfield() 303 *endp != '\0') in do_check_dsfield() 307 endp = NULL; in do_check_dsfield() [all …]
|
H A D | libdladm.c | 480 char *endp = NULL; in dladm_str2interval() local 483 val = strtol(oarg, &endp, 10); in dladm_str2interval() 484 if (errno != 0 || val <= 0 || *endp != '\0') in dladm_str2interval() 495 char *endp = NULL; in dladm_str2bw() local 499 n = strtoull(oarg, &endp, 10); in dladm_str2bw() 501 if ((errno != 0) || (strlen(endp) > 1)) in dladm_str2bw() 507 switch (*endp) { in dladm_str2bw() 1082 char *endp; in dladm_strs2range() local 1103 strtol(prop_val[i], &endp, 10); in dladm_strs2range() 1104 if ((endp != NULL) && (*endp != '\0')) { in dladm_strs2range() [all …]
|
/titanic_41/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode_test.c | 201 char *endp; in do_key2code() local 218 if ((endp = strchr(beginp, ' ')) != NULL) { in do_key2code() 219 *endp++ = '\0'; in do_key2code() 220 beginp = endp; in do_key2code() 355 char *endp; in testdict() local 361 if ((endp = strchr(linebuf, '\n')) != NULL) in testdict() 362 *endp = '\0'; in testdict() 367 if ((endp = strchr(beginp, ':')) != NULL) { in testdict() 368 *endp++ = '\0'; in testdict() 369 beginp = endp; in testdict()
|
/titanic_41/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_ctxbuf.c | 63 ctx->endp = &buf[buflen]; in smb_ctxbuf_init() 81 ctx->curp == 0 || ctx->endp == 0) in smb_ctxbuf_len() 107 ctx->curp == 0 || ctx->endp == 0) in smb_ctxbuf_printf() 112 n = vsnprintf((char *)ctx->curp, ctx->endp-ctx->curp, fmt, args); in smb_ctxbuf_printf()
|
H A D | smb_syslog.c | 55 const char *endp = buf + buflen - 1; in smb_syslog_fmt_m() local 57 while ((*bp = *sp) != '\0' && bp != endp) { in smb_syslog_fmt_m() 60 if (strerror_r(err, bp, endp - bp) == 0) in smb_syslog_fmt_m()
|
/titanic_41/usr/src/uts/common/rpc/ |
H A D | clnt_clts.c | 1301 check_endpnt(struct endpnt *endp, struct endpnt **newp) in check_endpnt() argument 1303 *newp = endp; in check_endpnt() 1305 mutex_enter(&endp->e_lock); in check_endpnt() 1306 ASSERT(endp->e_ref >= 1); in check_endpnt() 1316 if ((endp->e_flags & ENDPNT_ESTABLISHED) && in check_endpnt() 1317 (!(endp->e_flags & ENDPNT_BOUND) || in check_endpnt() 1318 (endp->e_flags & ENDPNT_STALE))) { in check_endpnt() 1325 endp->e_flags &= ~(ENDPNT_ESTABLISHED | in check_endpnt() 1327 mutex_exit(&endp->e_lock); in check_endpnt() 1337 while (!(endp->e_flags & ENDPNT_BOUND) && in check_endpnt() [all …]
|
/titanic_41/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;
|
/titanic_41/usr/src/lib/libc/port/locale/ |
H A D | engine.c | 84 const char *endp; /* end of string -- virtual NUL here */ member 156 const char *endp; in matcher() local 241 m->endp = stop; in matcher() 258 endp = fast(m, start, stop, gf, gl); in matcher() 259 if (endp == NULL) { /* a miss */ in matcher() 274 endp = slow(m, m->coldp, stop, gf, gl); in matcher() 275 if (endp != NULL) in matcher() 277 assert(m->coldp < m->endp); in matcher() 279 m->endp - m->coldp, &m->mbs, 0); in matcher() 297 dp = dissect(m, m->coldp, endp, gf, gl); in matcher() [all …]
|
/titanic_41/usr/src/cmd/logger/ |
H A D | logger.c | 133 char *p, *endp; in main() local 231 endp = buf + buflen; in main() 233 while (fgets(p, endp - p, stdin) != NULL) { in main() 244 } else if (len < endp - p - 1) { in main() 262 endp - p, len, offset, buflen); in main() 269 endp = buf + buflen; in main()
|
/titanic_41/usr/src/uts/common/cpr/ |
H A D | cpr_stat.c | 274 cpr_time_t *startp, *shdnp, *endp; in cpr_convert_promtime() local 278 endp = &cpr_term.tm_cprboot_end; in cpr_convert_promtime() 280 cb_time = endp->tv_sec - startp->tv_sec; in cpr_convert_promtime() 282 cpr_tod_get(endp); in cpr_convert_promtime() 283 startp->tv_sec = endp->tv_sec - cb_time; in cpr_convert_promtime() 286 min_promtime > (endp->tv_sec - shdnp->tv_sec - cb_time)) in cpr_convert_promtime() 287 min_promtime = endp->tv_sec - shdnp->tv_sec - cb_time; in cpr_convert_promtime()
|
/titanic_41/usr/src/cmd/vrrpadm/ |
H A D | vrrpadm.c | 180 char *endp; in do_create() local 210 conf.vvc_adver_int = (uint32_t)strtol(optarg, &endp, 0); in do_create() 211 if ((*endp) != '\0' || in do_create() 223 conf.vvc_pri = strtol(optarg, &endp, 0); in do_create() 224 if ((*endp) != '\0' || conf.vvc_pri < VRRP_PRI_MIN || in do_create() 246 conf.vvc_vrid = strtol(optarg, &endp, 0); in do_create() 247 if ((*endp) != '\0' || conf.vvc_vrid < VRRP_VRID_MIN || in do_create() 341 char *endp; in do_modify() local 351 conf.vvc_adver_int = (uint32_t)strtol(optarg, &endp, 0); in do_modify() 352 if ((*endp) != '\0' || in do_modify() [all …]
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | misc.c | 212 char *endp; in a2port() local 215 port = strtol(s, &endp, 0); in a2port() 216 if (s == endp || *endp != '\0' || in a2port() 256 char *endp; in convtime() local 266 secs = strtol(p, &endp, 10); in convtime() 267 if (p == endp || in convtime() 272 switch (*endp++) { in convtime() 274 endp--; in convtime() 301 p = endp; in convtime()
|
/titanic_41/usr/src/lib/pam_modules/unix_cred/ |
H A D | unix_cred.c | 95 const char *q, *endp; in getset() local 96 tmp = priv_str_to_set(str, ",", &endp); in getset() 98 if (endp == NULL) in getset() 102 q = strchr(endp, ','); in getset() 104 q = endp + strlen(endp); in getset() 110 (void) strncat(badp, endp, q - endp); in getset() 112 (void) memmove((void *)endp, q, strlen(q) + 1); in getset()
|
/titanic_41/usr/src/uts/sun4u/starfire/os/ |
H A D | pda.c | 226 MemChunk_t *mp, *endp; in pda_mem_del_span() local 233 endp = &(p2o->p2o_mchunks[o_nchunks]); in pda_mem_del_span() 278 endp->Memc_StartAddress = d_pfn + d_npgs; in pda_mem_del_span() 279 endp->Memc_Size = (p_pfn + p_npgs) in pda_mem_del_span() 281 npages += endp->Memc_Size; in pda_mem_del_span() 282 endp++; in pda_mem_del_span() 304 for (mp = &(p2o->p2o_mchunks[0]); mp < endp; mp++) { in pda_mem_del_span() 310 for (mmp = mp; mmp < endp; mmp++) in pda_mem_del_span() 313 endp--; in pda_mem_del_span() 315 ASSERT(endp == &(p2o->p2o_mchunks[n_nchunks])); in pda_mem_del_span()
|