Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 97) sorted by relevance

1234

/illumos-gate/usr/src/lib/lib9p/common/
H A Drfuncs.c85 while (*endp == '/' && endp > path) in r_basename()
86 endp--; in r_basename()
88 if (*endp == '/') { in r_basename()
117 comp = endp; in r_basename()
196 while (endp > path && *endp == '/') in r_dirname()
197 endp--; in r_dirname()
198 while (endp > path && *endp != '/') in r_dirname()
199 endp--; in r_dirname()
200 while (endp > path && *endp == '/') in r_dirname()
201 endp--; in r_dirname()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_http.c65 char *p, *q, *endp; in interpret_http() local
69 endp = line + fraglen; in interpret_http()
72 c = printable(line, endp - 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()
116 if (p < endp) /* there was more data to be printed */ in interpret_http()
133 printable(const char *startp, const char *endp) in printable() argument
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c235 endp)) in res_nmkupdate()
319 endp)) in res_nmkupdate()
371 &startp, endp)) < 0) in res_nmkupdate()
400 endp)) < 0) in res_nmkupdate()
412 endp)) < 0) in res_nmkupdate()
421 endp)) < 0) in res_nmkupdate()
493 endp)) in res_nmkupdate()
586 endp)) in res_nmkupdate()
657 &startp, endp)) < 0) { in res_nmkupdate()
668 &startp, endp)) < 0) { in res_nmkupdate()
[all …]
/illumos-gate/usr/src/lib/libgss/
H A Dg_initialize.c757 for (endp = oid; *endp && !isspace(*endp); endp++)
760 if (*endp) {
761 *endp = '\0';
803 for (endp = sharedLib; *endp && !isspace(*endp); endp++)
806 if (*endp) {
807 *endp = '\0';
825 for (endp = kernMod; *endp && !isspace(*endp); endp++)
828 if (*endp) {
829 *endp = '\0';
846 *endp && *endp != ']'; endp++);
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dipcsum.c77 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/libc/port/inet/
H A Dinet_pton.c140 uchar_t tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
146 endp = tp + IN6ADDRSZ; in inet_pton6()
178 if (tp + INT16SZ > endp) in inet_pton6()
186 if (ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
195 if (tp + INT16SZ > endp) in inet_pton6()
208 if (tp == endp) in inet_pton6()
211 endp[- i] = colonp[n - i]; in inet_pton6()
214 tp = endp; in inet_pton6()
216 if (tp != endp) in inet_pton6()
/illumos-gate/usr/src/cmd/dispadmin/
H A Dfssdispadmin.c68 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 Dfxdispadmin.c71 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()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_dsc.c59 Dwarf_Small *endp = blockpointer + blocklen; in get_dsc_leb_entries() local
77 while (p < endp) { in get_dsc_leb_entries()
88 leblen,dbg,error,endp); in get_dsc_leb_entries()
91 leblen, dbg,error,endp); in get_dsc_leb_entries()
94 leblen, dbg,error,endp); in get_dsc_leb_entries()
96 leblen, dbg,error,endp); in get_dsc_leb_entries()
111 while (p < endp) { in get_dsc_leb_entries()
122 leblen,dbg,error,endp); in get_dsc_leb_entries()
125 leblen,dbg,error,endp); in get_dsc_leb_entries()
128 leblen,dbg,error,endp); in get_dsc_leb_entries()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dstdhosts.c237 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()
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_cidr_pton.c155 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 Dinet_net_pton.c266 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()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dflowattr.c82 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 Dlibdladm.c511 char *endp = NULL; in dladm_str2interval() local
514 val = strtol(oarg, &endp, 10); in dladm_str2interval()
526 char *endp = NULL; in dladm_str2bw() local
530 n = strtoull(oarg, &endp, 10); in dladm_str2bw()
532 if ((errno != 0) || (strlen(endp) > 1)) in dladm_str2bw()
538 switch (*endp) { in dladm_str2bw()
1119 char *endp; in dladm_strs2range() local
1141 if ((endp != NULL) && (*endp != '\0')) { in dladm_strs2range()
1147 if (*endp++ != '-') in dladm_strs2range()
1149 ur->mpur_max = strtol(endp, &endp, 10); in dladm_strs2range()
[all …]
/illumos-gate/usr/src/lib/fm/libdiagcode/common/
H A Ddiagcode_test.c201 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()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_ctxbuf.c63 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 Dsmb_syslog.c55 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()
/illumos-gate/usr/src/uts/common/rpc/
H A Dclnt_clts.c1317 *newp = endp; in check_endpnt()
1354 cv_wait(&endp->e_cv, &endp->e_lock); in check_endpnt()
1365 endp->e_ref--; in check_endpnt()
1489 endp->e_ref++; in endpnt_get()
1490 endp->e_itime = 0; in endpnt_get()
1520 endp = np->e_pcurr; in endpnt_get()
1522 endp->e_ref++; in endpnt_get()
1525 ASSERT(endp != NULL); in endpnt_get()
1565 endp = np->e_pcurr; in endpnt_get()
1569 ASSERT(endp != NULL); in endpnt_get()
[all …]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dkmisc.c96 ddi_strtoul(const char *str, char **endp, int base, unsigned long *res) in ddi_strtoul() argument
99 *res = strtoul(str, endp, base); in ddi_strtoul()
106 ddi_strtoull(const char *str, char **endp, int base, u_longlong_t *res) in ddi_strtoull() argument
109 *res = strtoull(str, endp, base); in ddi_strtoull()
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dengine.c187 const char *endp; in matcher() local
272 m->endp = stop; in matcher()
295 if (endp == NULL) { /* a miss */ in matcher()
311 if (endp != NULL) in matcher()
313 assert(m->coldp < m->endp); in matcher()
355 endp = walk(m, m->coldp, endp-1, gf, gl, false); in matcher()
356 if (endp == NULL) in matcher()
368 assert(dp == NULL || dp == endp); in matcher()
383 pmatch[0].rm_eo = endp - m->offp; in matcher()
653 if (sp < m->endp && ISWORD(*sp) && in backref()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmultilink.c196 char *p, *endp; local
202 i = strtol(p, &endp, 10);
203 if (endp != p && (*endp == 0 || *endp == ';')) {
331 char *p, *endp; local
342 i = strtol(str, &endp, 10);
343 if (endp == str) {
348 str = endp;
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_stat.c274 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()
/illumos-gate/usr/src/cmd/logger/
H A Dlogger.c133 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()
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c180 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
352 if ((*endp) != '\0' || in do_modify()
376 conf.vvc_pri = strtol(optarg, &endp, 0); in do_modify()
[all …]
/illumos-gate/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c95 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()

1234