Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 95) 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.c63 char *p, *q, *endp; in interpret_http() local
67 endp = line + fraglen; in interpret_http()
70 c = printable(line, endp - 1); in interpret_http()
86 c = printable(p, endp - 1); in interpret_http()
97 q = memchr(p, CR, (endp - p)); in interpret_http()
99 if (q < endp - 1 && q[1] == LF) in interpret_http()
102 q = memchr(p, LF, (endp - p)); in interpret_http()
105 q = endp - 1; in interpret_http()
114 if (p < endp) /* there was more data to be printed */ in interpret_http()
131 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.c74 uint8_t *endp = mp->b_wptr; local
90 if ((endp - startp) < 10) {
92 while ((endp - startp) >= 2) {
97 if ((endp - startp) >= 1) {
117 if ((uint32_t)endp & 0x1) {
120 endp--;
121 sum += NEXT_ONE(endp);
123 if ((uint32_t)endp & 0x2) {
125 endp -= 2;
126 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.c66 char *endp; in main() local
92 res = strtoul(optarg, &endp, 10); in main()
93 if (res == 0 || errno != 0 || *endp != '\0') in main()
201 char *endp; in setadmin() local
228 i = (int)strtol(value, &endp, 10); in setadmin()
229 if (errno != 0 || endp == value || in setadmin()
230 i < 0 || *endp != '\0') in setadmin()
238 i = (int)strtol(value, &endp, 10); in setadmin()
239 if (errno != 0 || endp == value || in setadmin()
240 i < 0 || *endp != '\0') in setadmin()
H A Dfxdispadmin.c69 char *endp; in main() local
95 res = strtoul(optarg, &endp, 10); in main()
96 if (res == 0 || errno != 0 || *endp != '\0') in main()
231 char *endp; in set_fxdptbl() local
276 i = (int)strtol(value, &endp, 10); in set_fxdptbl()
277 if (errno != 0 || endp == value || in set_fxdptbl()
278 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.c234 char *endp; /* Points to the NULL at the end */ in verify_and_output() local
258 if ((endp = strchr(value, '#')) == 0) /* Ignore # comments */ in verify_and_output()
259 endp = p + strlen(p); /* Or endp = EOL */ in verify_and_output()
266 while ((p < endp) && isspace((unsigned char)*p)) in verify_and_output()
269 if (p == endp) /* End of the string */ in verify_and_output()
284 while ((p < endp) && !isspace((unsigned char)*p)) in verify_and_output()
307 if (p < endp) in verify_and_output()
310 } 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.c512 char *endp = NULL; in dladm_str2interval() local
515 val = strtol(oarg, &endp, 10); in dladm_str2interval()
527 char *endp = NULL; in dladm_str2bw() local
533 sn = strtoull(oarg, &endp, 10); in dladm_str2bw()
535 if ((errno != 0) || (strlen(endp) > 1)) in dladm_str2bw()
542 switch (*endp) { in dladm_str2bw()
1126 char *endp; in dladm_strs2range() local
1148 if ((endp != NULL) && (*endp != '\0')) { in dladm_strs2range()
1154 if (*endp++ != '-') in dladm_strs2range()
1156 ur->mpur_max = strtol(endp, &endp, 10); in dladm_strs2range()
[all …]
/illumos-gate/usr/src/lib/fm/libdiagcode/common/
H A Ddiagcode_test.c199 char *endp; in do_key2code() local
216 if ((endp = strchr(beginp, ' ')) != NULL) { in do_key2code()
217 *endp++ = '\0'; in do_key2code()
218 beginp = endp; in do_key2code()
353 char *endp; in testdict() local
359 if ((endp = strchr(linebuf, '\n')) != NULL) in testdict()
360 *endp = '\0'; in testdict()
365 if ((endp = strchr(beginp, ':')) != NULL) { in testdict()
366 *endp++ = '\0'; in testdict()
367 beginp = endp; in testdict()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_ctxbuf.c61 ctx->endp = &buf[buflen]; in smb_ctxbuf_init()
79 ctx->curp == 0 || ctx->endp == 0) in smb_ctxbuf_len()
105 ctx->curp == 0 || ctx->endp == 0) in smb_ctxbuf_printf()
110 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.c1328 *newp = endp; in check_endpnt()
1365 cv_wait(&endp->e_cv, &endp->e_lock); in check_endpnt()
1376 endp->e_ref--; in check_endpnt()
1500 endp->e_ref++; in endpnt_get()
1501 endp->e_itime = 0; in endpnt_get()
1531 endp = np->e_pcurr; in endpnt_get()
1533 endp->e_ref++; in endpnt_get()
1536 ASSERT(endp != NULL); in endpnt_get()
1576 endp = np->e_pcurr; in endpnt_get()
1580 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.c188 const char *endp; in matcher() local
273 m->endp = stop; in matcher()
296 if (endp == NULL) { /* a miss */ in matcher()
312 if (endp != NULL) in matcher()
314 assert(m->coldp < m->endp); in matcher()
356 endp = walk(m, m->coldp, endp-1, gf, gl, false); in matcher()
357 if (endp == NULL) in matcher()
369 assert(dp == NULL || dp == endp); in matcher()
384 pmatch[0].rm_eo = endp - m->offp; in matcher()
654 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