Searched refs:endp (Results 1 - 25 of 178) 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.c35 const char *endp; local
51 endp = path + strlen(path) - 1;
52 while (endp > path && *endp == '/')
53 endp--;
56 while (endp > path && *endp != '/')
57 endp--;
60 if (endp == path) {
61 dname[0] = *endp
[all...]
H A Dbasename_compat.c34 const char *endp, *startp; local
45 endp = path + strlen(path) - 1;
46 while (endp > path && *endp == '/')
47 endp--;
50 if (endp == path && *endp == '/') {
57 startp = endp;
61 len = endp - startp + 1;
/freebsd-head/contrib/bmake/
H A Ddirname.c63 const char *endp; local
77 endp = path + strlen(path) - 1;
78 while (endp != path && *endp == '/')
79 endp--;
82 while (endp > path && *endp != '/')
83 endp--;
85 if (endp == path) {
86 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->input != 0)
60 out = coresight_get_output_device(endp, &out_endp);
64 endp->cs_dev = cs_dev;
65 LIST_INSERT_HEAD(&event->endplist, endp,
100 struct endpoint *endp; local
120 LIST_FOREACH(endp, &event->endplist, endplink) {
121 cs_dev = endp->cs_dev;
132 struct endpoint *endp; local
144 struct endpoint *endp; local
155 struct endpoint *endp; local
[all...]
H A Dcoresight.c70 struct endpoint *endp; local
75 TAILQ_FOREACH(endp, &pdata->endpoints, link) {
76 if (endp->input == 0)
77 return (endp);
84 coresight_get_output_device(struct endpoint *endp, struct endpoint **out_endp) argument
96 if (endp->their_node == endp2->my_node) {
105 if (endp->their_handle == endp2->my_handle) {
H A Dcoresight_fdt.c59 struct endpoint *endp; local
86 endp = malloc(sizeof(struct endpoint),
88 endp->my_node = endpoint_child;
89 endp->their_node = OF_node_from_xref(xref);
90 endp->dev_node = dev_node;
91 endp->reg = port_reg;
95 endp->input = 1;
101 endp, link);
/freebsd-head/usr.sbin/pw/
H A Dstrtounum.c41 char *endp; local
51 ret = strtoumax(np, &endp, 10);
52 if (endp == np || *endp != '\0') {
/freebsd-head/contrib/lib9p/
H A Drfuncs.c66 const char *endp, *comp; local
84 endp = path + strlen(path) - 1;
85 while (*endp == '/' && endp > path)
86 endp--;
87 /* Invariant: *endp != '/' || endp == path */
88 if (*endp == '/') {
89 /* then endp==path and hence entire path is "/" */
95 * we just proved *endp !
161 const char *endp, *dirpart; local
[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/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')

Completed in 86 milliseconds

12345678