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

12345678

/freebsd-11-stable/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-11-stable/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-11-stable/contrib/bmake/
H A Ddirname.c59 const char *endp; local
73 endp = path + strlen(path) - 1;
74 while (endp != path && *endp == '/')
75 endp--;
78 while (endp > path && *endp != '/')
79 endp--;
81 if (endp == path) {
82 path = *endp
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dh_spawn.c40 char *endp; local
46 ret = strtoul(argv[1], &endp, 10);
/freebsd-11-stable/usr.sbin/ypldap/
H A Dentries.c46 char *endp; local
66 endp = linep;
76 memcpy(endp, ue->ue_line, len);
77 endp[strcspn(endp, ":")] = '\0';
79 ue->ue_line = endp;
80 endp += len;
104 endp = linep;
113 memcpy(endp, ge->ge_line, len);
114 endp[strcsp
[all...]
/freebsd-11-stable/sys/contrib/ncsw/inc/
H A Dstdlib_ext.h46 * @endp: A pointer to the end of the parsed string will be placed here
49 uint32_t strtoul(const char *cp,char **endp,uint32_t base);
54 * @endp: A pointer to the end of the parsed string will be placed here
57 long strtol(const char *cp,char **endp,uint32_t base);
62 * @endp: A pointer to the end of the parsed string will be placed here
65 uint64_t strtoull(const char *cp,char **endp,uint32_t base);
70 * @endp: A pointer to the end of the parsed string will be placed here
73 long long strtoll(const char *cp,char **endp,uint32_t base);
/freebsd-11-stable/usr.sbin/pw/
H A Dstrtounum.c41 char *endp; local
52 ret = strtoumax(np, &endp, 10);
53 if (endp == np || *endp != '\0') {
/freebsd-11-stable/usr.sbin/asf/
H A Dasf_prog.c52 char *endp; local
70 base = (caddr_t)(uintptr_t)strtoumax(token[2], &endp, 16);
71 if (endp == NULL || *endp != '\0')
/freebsd-11-stable/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-11-stable/contrib/tcpdump/
H A Dstrtoaddr.c161 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
167 endp = tp + NS_IN6ADDRSZ;
197 if (tp + NS_INT16SZ > endp)
205 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
214 if (tp + NS_INT16SZ > endp)
227 if (tp == endp)
230 endp[- i] = colonp[n - i];
233 tp = endp;
235 if (tp != endp)
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dinet_pton.c138 unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
144 endp = tp + NS_IN6ADDRSZ;
173 if (NS_INT16SZ > endp - tp)
181 if (ch == '.' && (NS_INADDRSZ <= endp - tp) &&
190 if (NS_INT16SZ > endp - tp)
203 if (tp == endp)
206 endp[- i] = colonp[n - i];
209 tp = endp;
211 if (tp != endp)
/freebsd-11-stable/lib/libc/stdlib/
H A Dlsearch.c40 uint8_t *ep, *endp; local
43 for (endp = (uint8_t *)(ep + width * *nelp); ep < endp; ep += width) {
56 memcpy(endp, key, width);
59 return (endp);
/freebsd-11-stable/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-11-stable/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-11-stable/contrib/wpa/src/fst/
H A Dfst_ctrl_iface.h33 int fst_read_next_int_param(const char *params, Boolean *valid, char **endp);
35 char **endp);
/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/lib/libc/resolv/
H A Dres_mkupdate.c97 u_char *cp, *sp2, *startp, *endp; local
223 endp = startp + rrecp->r_size - 1;
227 if (!getword_str(buf2, sizeof buf2, &startp, endp))
242 if (!getword_str(buf2, sizeof buf2, &startp, endp))
255 endp))
275 soanum = getnum_str(&startp, endp);
291 n = getnum_str(&startp, endp);
296 if (!getword_str(buf2, sizeof buf2, &startp, endp))
305 n = getnum_str(&startp, endp);
311 n = getnum_str(&startp, endp);
741 getword_str(char *buf, int size, u_char **startpp, u_char *endp) argument
771 getstr_str(char *buf, int size, u_char **startpp, u_char *endp) argument
849 gethexnum_str(u_char **startpp, u_char *endp) argument
897 getnum_str(u_char **startpp, u_char *endp) argument
[all...]
/freebsd-11-stable/lib/libc/inet/
H A Dinet_pton.c136 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
142 endp = tp + NS_IN6ADDRSZ;
173 if (tp + NS_INT16SZ > endp)
181 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
190 if (tp + NS_INT16SZ > endp)
203 if (tp == endp)
206 endp[- i] = colonp[n - i];
209 tp = endp;
211 if (tp != endp)
/freebsd-11-stable/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-11-stable/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...]

Completed in 161 milliseconds

12345678