/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | dirname.c | 33 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 D | basename.c | 31 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 D | bsd-closefrom.c | 73 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 D | dirname.c | 33 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 D | basename.c | 31 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 D | dirname.c | 59 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 D | h_spawn.c | 40 char *endp; local 46 ret = strtoul(argv[1], &endp, 10);
|
/freebsd-11-stable/usr.sbin/ypldap/ |
H A D | entries.c | 46 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 D | stdlib_ext.h | 46 * @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 D | strtounum.c | 41 char *endp; local 52 ret = strtoumax(np, &endp, 10); 53 if (endp == np || *endp != '\0') {
|
/freebsd-11-stable/usr.sbin/asf/ |
H A D | asf_prog.c | 52 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 D | inet_pton.c | 138 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 D | strtoaddr.c | 161 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 D | inet_pton.c | 138 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 D | lsearch.c | 40 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 D | inet_pton.c | 154 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 D | inet_pton.c | 163 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 D | fst_ctrl_iface.h | 33 int fst_read_next_int_param(const char *params, Boolean *valid, char **endp); 35 char **endp);
|
/freebsd-11-stable/contrib/unbound/compat/ |
H A D | inet_pton.c | 154 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 D | mknod.c | 116 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 D | chroot.c | 64 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 D | res_mkupdate.c | 97 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 D | inet_pton.c | 136 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 D | v_ch.c | 143 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 D | make-relative-prefix.c | 242 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...] |