Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 7 of 7) sorted by relevance

/bionic/libc/unistd/
Dpopen.c54 struct pid * volatile cur; in popen() local
64 if ((cur = malloc(sizeof(struct pid))) == NULL) in popen()
68 free(cur); in popen()
76 free(cur); in popen()
125 cur->fp = iop; in popen()
126 cur->pid = pid; in popen()
127 cur->next = pidlist; in popen()
128 pidlist = cur; in popen()
141 struct pid *cur, *last; in pclose() local
146 for (last = NULL, cur = pidlist; cur; last = cur, cur = cur->next) in pclose()
[all …]
Dexec.c139 char *bp, *cur, *path, buf[MAXPATHLEN]; in execvp() local
152 cur = path = NULL; in execvp()
161 cur = alloca(len); in execvp()
162 if (cur == NULL) { in execvp()
166 strlcpy(cur, path, len); in execvp()
167 path = cur; in execvp()
168 while ((p = strsep(&cur, ":"))) { in execvp()
/bionic/libc/inet/
Dinet_ntop.c105 struct { int base, len; } best, cur; in inet_ntop6() local
120 cur.base = -1; in inet_ntop6()
121 cur.len = 0; in inet_ntop6()
124 if (cur.base == -1) in inet_ntop6()
125 cur.base = i, cur.len = 1; in inet_ntop6()
127 cur.len++; in inet_ntop6()
129 if (cur.base != -1) { in inet_ntop6()
130 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
131 best = cur; in inet_ntop6()
132 cur.base = -1; in inet_ntop6()
[all …]
/bionic/libc/netbsd/net/
Dgetaddrinfo.c399 struct addrinfo *cur; in getaddrinfo() local
412 cur = &sentinel; in getaddrinfo()
515 error = explore_null(pai, servname, &cur->ai_next); in getaddrinfo()
518 &cur->ai_next); in getaddrinfo()
523 while (cur->ai_next) in getaddrinfo()
524 cur = cur->ai_next; in getaddrinfo()
567 &cur->ai_next); in getaddrinfo()
569 while (cur && cur->ai_next) in getaddrinfo()
570 cur = cur->ai_next; in getaddrinfo()
603 struct addrinfo *cur; in explore_fqdn() local
[all …]
/bionic/libc/netbsd/isc/
Dev_timers.c238 if (ctx->cur != NULL && in evClearTimer()
239 ctx->cur->type == Timer && in evClearTimer()
240 ctx->cur->u.timer.this == del) { in evClearTimer()
466 evTimer *cur = what; in print_timer() local
469 cur = what; in print_timer()
472 cur->func, cur->uap, in print_timer()
473 (long)cur->due.tv_sec, cur->due.tv_nsec, in print_timer()
474 (long)cur->inter.tv_sec, cur->inter.tv_nsec); in print_timer()
Deventlib_p.h186 const evEvent_p *cur; member
/bionic/libc/bionic/
Dfts.c547 FTSENT *cur, *tail; in fts_build() local
556 cur = sp->fts_cur; in fts_build()
562 if ((dirp = opendir(cur->fts_accpath)) == NULL) { in fts_build()
564 cur->fts_info = FTS_DNR; in fts_build()
565 cur->fts_errno = errno; in fts_build()
578 nlinks = cur->fts_nlink - (ISSET(FTS_SEEDOT) ? 0 : 2); in fts_build()
586 (void)printf("nlinks == %d (cur: %u)\n", nlinks, cur->fts_nlink); in fts_build()
607 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { in fts_build()
609 cur->fts_errno = errno; in fts_build()
610 cur->fts_flags |= FTS_DONTCHDIR; in fts_build()
[all …]