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

1234567

/freebsd-10.0-release/crypto/openssh/openbsd-compat/
H A Ddirname.c33 const char *endp; local
43 endp = path + strlen(path) - 1;
44 while (endp > path && *endp == '/')
45 endp--;
48 while (endp > path && *endp != '/')
49 endp--;
52 if (endp == path) {
53 dname[0] = *endp
[all...]
H A Dbasename.c31 const char *endp, *startp; local
41 endp = path + strlen(path) - 1;
42 while (endp > path && *endp == '/')
43 endp--;
46 if (endp == path && *endp == '/') {
53 startp = endp;
57 len = endp - startp + 1;
H A Dbsd-closefrom.c73 char fdpath[PATH_MAX], *endp; local
82 fd = strtol(dent->d_name, &endp, 10);
83 if (dent->d_name != endp && *endp == '\0' &&
/freebsd-10.0-release/lib/libc/gen/
H A Ddirname.c33 const char *endp; local
49 endp = path + strlen(path) - 1;
50 while (endp > path && *endp == '/')
51 endp--;
54 while (endp > path && *endp != '/')
55 endp--;
58 if (endp == path) {
59 dname[0] = *endp
[all...]
H A Dbasename.c31 const char *endp, *startp; local
42 endp = path + strlen(path) - 1;
43 while (endp > path && *endp == '/')
44 endp--;
47 if (endp == path && *endp == '/') {
54 startp = endp;
58 len = endp - startp + 1;
/freebsd-10.0-release/usr.sbin/asf/
H A Dasf_prog.c50 char *endp; local
68 base = (caddr_t)(uintptr_t)strtoumax(token[2], &endp, 16);
69 if (endp == NULL || *endp != '\0')
/freebsd-10.0-release/contrib/ntp/libisc/
H A Dinet_pton.c133 unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
139 endp = tp + NS_IN6ADDRSZ;
169 if (tp + NS_INT16SZ > endp)
177 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
186 if (tp + NS_INT16SZ > endp)
199 if (tp == endp)
202 endp[- i] = colonp[n - i];
205 tp = endp;
207 if (tp != endp)
/freebsd-10.0-release/sys/libkern/
H A Dinet_pton.c138 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
144 endp = tp + NS_IN6ADDRSZ;
175 if (tp + NS_INT16SZ > endp)
183 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
192 if (tp + NS_INT16SZ > endp)
205 if (tp == endp)
208 endp[- i] = colonp[n - i];
211 tp = endp;
213 if (tp != endp)
/freebsd-10.0-release/lib/libc/stdlib/
H A Dlsearch.c40 uint8_t *ep, *endp; local
47 for (endp = (uint8_t *)(ep + width * *nelp); ep < endp; ep += width) {
60 memcpy(endp, key, width);
63 return (endp);
/freebsd-10.0-release/contrib/apr/network_io/unix/
H A Dinet_pton.c163 unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; local
169 endp = tp + IN6ADDRSZ;
199 if (tp + INT16SZ > endp)
207 if (ch == '.' && ((tp + INADDRSZ) <= endp) &&
216 if (tp + INT16SZ > endp)
230 endp[- i] = colonp[n - i];
233 tp = endp;
235 if (tp != endp)
/freebsd-10.0-release/contrib/ldns/compat/
H A Dinet_pton.c154 uint8_t tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
160 endp = tp + NS_IN6ADDRSZ;
190 if (tp + NS_INT16SZ > endp)
198 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
207 if (tp + NS_INT16SZ > endp)
221 endp[- i] = colonp[n - i];
224 tp = endp;
226 if (tp != endp)
/freebsd-10.0-release/contrib/unbound/compat/
H A Dinet_pton.c154 uint8_t tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
160 endp = tp + NS_IN6ADDRSZ;
190 if (tp + NS_INT16SZ > endp)
198 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
207 if (tp + NS_INT16SZ > endp)
221 endp[- i] = colonp[n - i];
224 tp = endp;
226 if (tp != endp)
/freebsd-10.0-release/lib/csu/ia64/
H A Dcrti.S48 .endp _init#
60 .endp _fini#
/freebsd-10.0-release/contrib/ntp/include/isc/
H A Dstring.h32 isc_string_touint64(char *source, char **endp, int base);
36 * On successful conversion 'endp' points to the first character
43 * On error 'endp' points to 'source'.
/freebsd-10.0-release/sbin/mknod/
H A Dmknod.c116 char *cp, *endp; local
132 mymajor = (long)strtoul(argv[3], &endp, 0);
133 if (endp == argv[3] || *endp != '\0')
137 myminor = (long)strtoul(argv[4], &endp, 0);
138 if (endp == argv[4] || *endp != '\0')
/freebsd-10.0-release/usr.sbin/chroot/
H A Dchroot.c64 char *endp, *p, *user, *group, *grouplist; local
104 gid = (gid_t)strtoul(group, &endp, 0);
105 if (*endp != '\0')
125 gidlist[gids] = (gid_t)strtoul(p, &endp, 0);
126 if (*endp != '\0')
142 uid = (uid_t)strtoul(user, &endp, 0);
143 if (*endp != '\0')
/freebsd-10.0-release/lib/libc/resolv/
H A Dres_mkupdate.c96 u_char *cp, *sp2, *startp, *endp; local
221 endp = startp + rrecp->r_size - 1;
225 if (!getword_str(buf2, sizeof buf2, &startp, endp))
240 if (!getword_str(buf2, sizeof buf2, &startp, endp))
253 endp))
273 soanum = getnum_str(&startp, endp);
289 n = getnum_str(&startp, endp);
294 if (!getword_str(buf2, sizeof buf2, &startp, endp))
303 n = getnum_str(&startp, endp);
309 n = getnum_str(&startp, endp);
739 getword_str(char *buf, int size, u_char **startpp, u_char *endp) argument
769 getstr_str(char *buf, int size, u_char **startpp, u_char *endp) argument
847 gethexnum_str(u_char **startpp, u_char *endp) argument
895 getnum_str(u_char **startpp, u_char *endp) argument
[all...]
/freebsd-10.0-release/contrib/nvi/vi/
H A Dv_ch.c143 CHAR_T *endp, *p, *startp; local
166 endp = (startp = p) + len;
169 while (++p < endp && *p != key);
170 if (p == endp) {
225 CHAR_T *endp, *p; local
249 endp = p - 1;
252 while (--p > endp && *p != key);
253 if (p == endp) {
259 vp->m_stop.cno = (p - endp) - 1;
/freebsd-10.0-release/lib/libc/inet/
H A Dinet_pton.c137 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
143 endp = tp + NS_IN6ADDRSZ;
174 if (tp + NS_INT16SZ > endp)
182 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
191 if (tp + NS_INT16SZ > endp)
204 if (tp == endp)
207 endp[- i] = colonp[n - i];
210 tp = endp;
212 if (tp != endp)
H A Dinet_net_pton.c268 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
279 endp = tp + NS_IN6ADDRSZ;
313 if (tp + NS_INT16SZ > endp)
322 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
334 if (tp + NS_INT16SZ > endp)
347 endp = tmp + 2 * words;
357 if (tp == endp)
360 endp[- i] = colonp[n - i];
363 tp = endp;
365 if (tp != endp)
[all...]
/freebsd-10.0-release/contrib/binutils/libiberty/
H A Dmake-relative-prefix.c242 char *startp, *endp, *nstore; local
249 startp = endp = temp;
252 if (*endp == PATH_SEPARATOR || *endp == 0)
254 if (endp == startp)
262 strncpy (nstore, startp, endp - startp);
263 if (! IS_DIR_SEPARATOR (endp[-1]))
265 nstore[endp - startp] = DIR_SEPARATOR;
266 nstore[endp - startp + 1] = 0;
269 nstore[endp
[all...]
/freebsd-10.0-release/contrib/gcclibs/libiberty/
H A Dmake-relative-prefix.c242 char *startp, *endp, *nstore; local
249 startp = endp = temp;
252 if (*endp == PATH_SEPARATOR || *endp == 0)
254 if (endp == startp)
262 strncpy (nstore, startp, endp - startp);
263 if (! IS_DIR_SEPARATOR (endp[-1]))
265 nstore[endp - startp] = DIR_SEPARATOR;
266 nstore[endp - startp + 1] = 0;
269 nstore[endp
[all...]
/freebsd-10.0-release/lib/libc/stdio/
H A Dgetdelim.c112 u_char *endp; local
136 while ((endp = memchr(fp->_p, delim, fp->_r)) == NULL) {
145 endp++; /* snarf the delimiter, too */
146 if (sappend(linep, &linelen, linecapp, fp->_p, endp - fp->_p))
148 fp->_r -= endp - fp->_p;
149 fp->_p = endp;
/freebsd-10.0-release/usr.sbin/rtprio/
H A Drtprio.c129 char *endp; local
133 res = strtol(str, &endp, 10);
134 if (errno != 0 || endp == str || *endp != '\0')
/freebsd-10.0-release/tools/regression/lib/libc/stdio/
H A Dtest-scanfloat.c53 char *endp; local
276 assert(strtod("0xy", &endp) == 0);
277 assert(strcmp("xy", endp) == 0);
281 assert(strtof("3.5e38", &endp) == FLT_MAX);
282 assert(strtod("2e308", &endp) == DBL_MAX);
284 assert(strtof("3.5e38", &endp) == INFINITY);
285 assert(strtod("2e308", &endp) == INFINITY);
287 assert(strtof("3.5e38", &endp) == FLT_MAX);
288 assert(strtod("2e308", &endp) == DBL_MAX);
290 assert(strtof("3.5e38", &endp)
[all...]

Completed in 722 milliseconds

1234567