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

12345678

/freebsd-head/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-head/lib/libc/gen/
H A Ddirname_compat.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_compat.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-head/contrib/bmake/
H A Ddirname.c64 const char *endp; local
78 endp = path + strlen(path) - 1;
79 while (endp != path && *endp == '/')
80 endp--;
83 while (endp > path && *endp != '/')
84 endp--;
86 if (endp == path) {
87 path = *endp
[all...]
/freebsd-head/sys/arm64/coresight/
H A Dcoresight-cmd.c54 struct endpoint *endp; local
56 TAILQ_FOREACH(endp, &cs_dev->pdata->endpoints, link) {
57 if (endp->slave != 0)
60 out = coresight_get_output_device(endp, &out_endp);
64 endp->cs_dev = cs_dev;
65 LIST_INSERT_HEAD(&event->endplist, endp,
97 struct endpoint *endp; local
117 LIST_FOREACH(endp, &event->endplist, endplink) {
118 cs_dev = endp->cs_dev;
129 struct endpoint *endp; local
141 struct endpoint *endp; local
152 struct endpoint *endp; local
[all...]
H A Dcoresight.c64 struct endpoint *endp; local
90 endp = malloc(sizeof(struct endpoint), M_CORESIGHT,
92 endp->my_node = endpoint_child;
93 endp->their_node = OF_node_from_xref(xref);
94 endp->dev_node = dev_node;
95 endp->reg = port_reg;
98 endp->slave = 1;
104 TAILQ_INSERT_TAIL(&pdata->endpoints, endp, link);
135 struct endpoint *endp; local
140 TAILQ_FOREACH(endp,
149 coresight_get_output_device(struct endpoint *endp, struct endpoint **out_endp) argument
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dh_spawn.c40 char *endp; local
46 ret = strtoul(argv[1], &endp, 10);
/freebsd-head/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-head/usr.sbin/pw/
H A Dstrtounum.c41 char *endp; local
52 ret = strtoumax(np, &endp, 10);
53 if (endp == np || *endp != '\0') {
/freebsd-head/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-head/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-head/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-head/sys/libkern/
H A Dinet_pton.c134 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
140 endp = tp + NS_IN6ADDRSZ;
171 if (tp + NS_INT16SZ > endp)
179 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
188 if (tp + NS_INT16SZ > endp)
201 if (tp == endp)
204 endp[- i] = colonp[n - i];
207 tp = endp;
209 if (tp != endp)
/freebsd-head/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-head/lib/libpathconv/
H A Dabs2rel.c47 * endp points the last position which is safe in the result buffer.
49 const char *endp = result + size - 1; local
75 if (rp > endp)
88 if (rp + 3 > endp)
94 if (rp > endp)
101 if (rp + strlen(branch + 1) > endp)
/freebsd-head/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-head/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-head/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-head/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-head/sbin/mknod/
H A Dmknod.c118 char *cp, *endp; local
134 mymajor = (long)strtoul(argv[3], &endp, 0);
135 if (endp == argv[3] || *endp != '\0')
139 myminor = (long)strtoul(argv[4], &endp, 0);
140 if (endp == argv[4] || *endp != '\0')
/freebsd-head/usr.sbin/chroot/
H A Dchroot.c66 char *endp, *p, *user, *group, *grouplist; local
106 gid = (gid_t)strtoul(group, &endp, 0);
107 if (*endp != '\0')
127 gidlist[gids] = (gid_t)strtoul(p, &endp, 0);
128 if (*endp != '\0')
144 uid = (uid_t)strtoul(user, &endp, 0);
145 if (*endp != '\0')
/freebsd-head/lib/libc/resolv/
H A Dres_mkupdate.c99 u_char *cp, *sp2, *startp, *endp; local
225 endp = startp + rrecp->r_size - 1;
229 if (!getword_str(buf2, sizeof buf2, &startp, endp))
244 if (!getword_str(buf2, sizeof buf2, &startp, endp))
257 endp))
277 soanum = getnum_str(&startp, endp);
293 n = getnum_str(&startp, endp);
298 if (!getword_str(buf2, sizeof buf2, &startp, endp))
307 n = getnum_str(&startp, endp);
313 n = getnum_str(&startp, endp);
743 getword_str(char *buf, int size, u_char **startpp, u_char *endp) argument
773 getstr_str(char *buf, int size, u_char **startpp, u_char *endp) argument
851 gethexnum_str(u_char **startpp, u_char *endp) argument
899 getnum_str(u_char **startpp, u_char *endp) argument
[all...]
/freebsd-head/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;

Completed in 473 milliseconds

12345678