/src/lib/libc/gen/ |
dirname.c | 50 const char *endp; local in function:__weak_alias 64 endp = path + strlen(path) - 1; 65 while (endp != path && *endp == '/') 66 endp--; 69 while (endp > path && *endp != '/') 70 endp--; 72 if (endp == path) { 73 path = *endp == '/' ? "/" : "." [all...] |
basename.c | 51 const char *startp, *endp; local in function:__weak_alias 65 endp = path + strlen(path) - 1; 66 while (endp != path && *endp == '/') 67 endp--; 70 if (endp == path && *endp == '/') { 77 for (startp = endp; startp > path && *(startp - 1) != '/'; startp--) 81 len = (endp - startp) + 1 /* last char */;
|
/src/tests/lib/libc/gen/posix_spawn/ |
h_spawn.c | 44 char *endp; local in function:main 58 ret = strtoul(argv[1], &endp, 10); 59 if (*endp != 0) { 62 "usage:\n\t%s (retcode)\n", endp, getprogname());
|
/src/sys/arch/sparc/stand/ofwboot/ |
bootinfo.c | 49 uint64_t *endp; local in function:bi_init 51 endp = (uint64_t *)ALIGN(addr); 56 sparc64_memset(endp, 0, BOOTINFO_SIZE); 62 endp[0] = (uint64_t)(u_long)((char *)endp + BOOTINFO_SIZE); 63 bootinfo = (char *)ALIGN(&endp[2]); 64 endp[1] = (uint64_t)(u_long)bootinfo; 72 return (u_long) endp;
|
/src/sys/arch/sparc/stand/boot/ |
bootinfo.c | 48 u_long *endp; local in function:bi_init 50 endp = (u_long *)ALIGN(addr); 55 endp[0] = (u_long)((char *)endp + BOOTINFO_SIZE); 56 bootinfo = (char *)ALIGN(&endp[2]); 57 endp[1] = (u_long)bootinfo; 65 return (u_long) endp;
|
/src/lib/csu/arch/ia64/ |
crti.S | 48 .endp _init 60 .endp _fini
|
/src/lib/libresolv/ |
res_mkupdate.c | 87 u_char *cp, *sp2, *startp, *endp; local in function:res_nmkupdate 210 endp = startp + rrecp->r_size - 1; 214 if (!getword_str(buf2, sizeof buf2, &startp, endp)) 229 if (!getword_str(buf2, sizeof buf2, &startp, endp)) 242 endp)) 262 soanum = getnum_str(&startp, endp); 278 n = getnum_str(&startp, endp); 283 if (!getword_str(buf2, sizeof buf2, &startp, endp)) 292 n = getnum_str(&startp, endp); 298 n = getnum_str(&startp, endp); [all...] |
/src/lib/libc/inet/ |
inet_pton.c | 227 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local in function:inet_pton6 236 endp = tp + NS_IN6ADDRSZ; 266 if (tp + NS_INT16SZ > endp) 274 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && 283 if (tp + NS_INT16SZ > endp) 296 if (tp == endp) 299 endp[- i] = colonp[n - i]; 302 tp = endp; 304 if (tp != endp)
|
inet_net_pton.c | 273 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local in function:inet_net_pton_ipv6 284 endp = tp + NS_IN6ADDRSZ; 318 if (tp + NS_INT16SZ > endp) 327 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && 339 if (tp + NS_INT16SZ > endp) 352 endp = tmp + 2 * words; 362 if (tp == endp) 365 endp[- i] = colonp[n - i]; 368 tp = endp; 370 if (tp != endp) [all...] |
inet_cidr_pton.c | 162 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local in function:inet_cidr_pton_ipv6 169 endp = tp + NS_IN6ADDRSZ; 202 if (tp + NS_INT16SZ > endp) 210 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && 225 if (tp + NS_INT16SZ > endp) 238 if (tp == endp) 241 endp[- i] = colonp[n - i]; 244 tp = endp;
|
/src/lib/libc/compat/sys/ |
compat_getdents.c | 53 struct dirent *ndp, *nndp, *endp; local in function:getdents 64 endp = (struct dirent *)(void *)&buf[rv]; 71 for (; ndp < endp; ndp = nndp) {
|
/src/sbin/mount_tmpfs/ |
mount_tmpfs.c | 98 char *endp; local in function:ram_fract 101 f = strtof(arg, &endp); 102 if (endp && *endp != 0) 104 " at %s", arg, endp); 118 char *endp; local in function:ram_percent 121 f = strtof(arg, &endp); 122 if (endp && *endp != 0) 124 " at %s", arg, endp); [all...] |
/src/sys/dev/usb/ |
uhcireg.h | 195 #define UHCI_TD_SETUP(len, endp, dev) \ 196 (UHCI_TD_SET_MAXLEN(len) | UHCI_TD_SET_ENDPT(endp) | \ 198 #define UHCI_TD_OUT(len, endp, dev, dt) \ 199 (UHCI_TD_SET_MAXLEN(len) | UHCI_TD_SET_ENDPT(endp) | \ 201 #define UHCI_TD_IN(len, endp, dev, dt) \ 202 (UHCI_TD_SET_MAXLEN(len) | UHCI_TD_SET_ENDPT(endp) | \
|
/src/games/cribbage/ |
cards.c | 132 CARD *cp, *endp; local in function:sorthand 135 for (endp = &h[n]; h < endp - 1; h++) 136 for (cp = h + 1; cp < endp; cp++)
|
/src/include/ |
regexp.h | 86 char *endp[NSUBEXP]; member in struct:regexp
|
/src/sys/arch/ia64/stand/ia64/ski/ |
start.S | 60 .endp _start
|
/src/usr.bin/calendar/ |
calendar.c | 270 isnow(char *endp) 281 if (!(v1 = getfield(endp, &endp, &flags))) 288 if ((month = getfield(endp, &endp, &flags)) == 0) { 295 if ((day = getfield(endp, &endp, &flags)) == 0) 298 v2 = getfield(endp, &endp, &flags); 347 getfield(char *p, char **endp, int *flags [all...] |
/src/lib/libcompat/regexp/ |
regsub.c | 76 } else if (prog->startp[no] != NULL && prog->endp[no] != NULL) { 77 len = prog->endp[no] - prog->startp[no];
|
/src/lib/libc/posix1e/ |
acl_from_text.c | 281 char *endp; local in function:_acl_name_to_id 287 l = strtoul(name, &endp, 0); 288 if (*endp != '\0' || l != (unsigned long)(uid_t)l) { 301 l = strtoul(name, &endp, 0); 302 if (*endp != '\0' || l != (unsigned long)(gid_t)l) {
|
/src/usr.bin/logger/ |
logger.c | 121 char *p, *endp; local in function:main 124 for (p = buf, endp = buf + sizeof(buf) - 2; *argv != NULL;) { 126 if (p + len > endp && p > buf) {
|
/src/games/caesar/ |
caesar.c | 113 char *endp; local in function:get_rotation 116 rot = strtol(arg, &endp, 10); 117 if (errno == 0 && (arg[0] == '\0' || *endp != '\0'))
|
/src/sys/external/bsd/gnu-efi/dist/lib/ia64/ |
palproc.h | 29 #define PROCEDURE_EXIT(name) .##endp name
|
/src/distrib/utils/ssh/ |
ssh.c | 537 char *dirp, *endp, *bufp; /* dir, end */ local in function:find_in_path 541 endp = dirp; 543 while (*endp && (*endp != ':')) 544 *bufp++ = *endp++; 549 if (*endp == ':') 550 endp++; 551 dirp = endp; /* next dir */
|
/src/lib/libc/regex/ |
engine.c | 96 const char *endp; /* end of string -- virtual NUL here */ member in struct:match 206 const char *endp; local in function:matcher 293 m->endp = stop; 315 endp = walk(m, start, stop, gf, gl, true); 316 if (endp == NULL) { /* a miss */ 327 endp = walk(m, m->coldp, stop, gf, gl, false); 328 if (endp != NULL) 330 assert(m->coldp < m->endp); 332 (size_t)(m->endp - m->coldp), &m->mbs, 0); 349 dp = dissect(m, m->coldp, endp, gf, gl) [all...] |
/src/usr.bin/tftp/ |
tftp.c | 93 char *opt, *endp, *nextopt, *valp; local in function:get_options 98 endp = opt + size - 1; 99 *endp = '\0'; 101 while (opt < endp) { 106 if (valp < endp) { 637 char *cp, *file, *endp, *opt = NULL; local in function:tpacket 656 endp = cp + n - 1; 657 if (*endp != '\0') { /* Shouldn't happen, but... */ 658 *endp = '\0'; 665 while (cp < endp) { [all...] |