Searched refs:endp (Results 1 - 25 of 96) sorted by relevance

1234

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_http.c60 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/smbsrv/libsmb/common/
H A Dsmb_ctxbuf.c63 ctx->endp = &buf[buflen];
81 ctx->curp == 0 || ctx->endp == 0)
107 ctx->curp == 0 || ctx->endp == 0)
112 n = vsnprintf((char *)ctx->curp, ctx->endp-ctx->curp, fmt, args);
H A Dsmb_syslog.c55 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/lib/libnsl/nss/
H A Dinet_pton.c141 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/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c84 u_char *cp, *sp2, *startp, *endp; local
207 endp = startp + rrecp->r_size - 1;
211 if (!getword_str(buf2, sizeof buf2, &startp, endp))
226 if (!getword_str(buf2, sizeof buf2, &startp, endp))
239 endp))
259 soanum = getnum_str(&startp, endp);
275 n = getnum_str(&startp, endp);
280 if (!getword_str(buf2, sizeof buf2, &startp, endp))
289 n = getnum_str(&startp, endp);
295 n = getnum_str(&startp, endp);
721 getword_str(char *buf, int size, u_char **startpp, u_char *endp) argument
751 getstr_str(char *buf, int size, u_char **startpp, u_char *endp) argument
829 gethexnum_str(u_char **startpp, u_char *endp) argument
877 getnum_str(u_char **startpp, u_char *endp) argument
[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/cmd/ypcmd/
H A Dstdhosts.c237 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/lib/libfakekernel/common/
H A Dkmisc.c59 ddi_strtoul(const char *str, char **endp, int base, unsigned long *res) argument
61 *res = strtoul(str, endp, base);
/illumos-gate/usr/src/lib/libgss/
H A Dg_initialize.c714 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/lib/fm/libdiagcode/common/
H A Ddiagcode_test.c201 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/libresolv2/common/inet/
H A Dinet_net_pton.c266 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...]
H A Dinet_cidr_pton.c155 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;
/illumos-gate/usr/src/cmd/dispadmin/
H A Dfssdispadmin.c68 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 Dfxdispadmin.c71 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/lib/libdladm/common/
H A Dflowattr.c82 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/libtnfctl/
H A Dkernel_int.h44 uintptr_t *rollbackp, uintptr_t *endp);
/illumos-gate/usr/src/uts/common/cpr/
H A Dcpr_stat.c274 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/cmd-inet/usr.bin/pppd/
H A Dmultilink.c202 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/ldmad/
H A Dmdesc_mutable.h56 _type *endp; \
75 (_chain).endp->nextp = (_nodep); \
77 (_chain).endp = (_nodep); \
/illumos-gate/usr/src/cmd/logger/
H A Dlogger.c133 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/lib/libc/port/locale/
H A Dengine.c84 const char *endp; /* end of string -- virtual NUL here */ member in struct:match
156 const char *endp; local
241 m->endp = stop;
258 endp = fast(m, start, stop, gf, gl);
259 if (endp == NULL) { /* a miss */
274 endp = slow(m, m->coldp, stop, gf, gl);
275 if (endp != NULL)
277 assert(m->coldp < m->endp);
279 m->endp - m->coldp, &m->mbs, 0);
297 dp = dissect(m, m->coldp, endp, g
[all...]
/illumos-gate/usr/src/uts/common/rpc/
H A Dclnt_clts.c1315 check_endpnt(struct endpnt *endp, struct endpnt **newp) argument
1317 *newp = endp;
1319 mutex_enter(&endp->e_lock);
1320 ASSERT(endp->e_ref >= 1);
1330 if ((endp->e_flags & ENDPNT_ESTABLISHED) &&
1331 (!(endp->e_flags & ENDPNT_BOUND) ||
1332 (endp->e_flags & ENDPNT_STALE))) {
1339 endp->e_flags &= ~(ENDPNT_ESTABLISHED |
1341 mutex_exit(&endp->e_lock);
1351 while (!(endp
1390 struct endpnt *endp = NULL; local
[all...]
/illumos-gate/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c95 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/boot/sys/boot/uboot/common/
H A Dmain.c203 char *endp; local
235 *unit = strtol(p, &endp, 10);
236 p = endp;
263 *slice = strtoul(p, &endp, 10);
266 if (p == endp) {
273 p = endp;
293 *partition = strtol(p, &endp, 10);
294 p = endp;
297 if (*endp == '\0')
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c180 char *endp; local
210 conf.vvc_adver_int = (uint32_t)strtol(optarg, &endp, 0);
211 if ((*endp) != '\0' ||
223 conf.vvc_pri = strtol(optarg, &endp, 0);
224 if ((*endp) != '\0' || conf.vvc_pri < VRRP_PRI_MIN ||
246 conf.vvc_vrid = strtol(optarg, &endp, 0);
247 if ((*endp) != '\0' || conf.vvc_vrid < VRRP_VRID_MIN ||
341 char *endp; local
351 conf.vvc_adver_int = (uint32_t)strtol(optarg, &endp, 0);
352 if ((*endp) !
[all...]

Completed in 114 milliseconds

1234