Home
last modified time | relevance | path

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

/bionic/libc/unistd/
Dpopen.c56 struct pid * volatile cur; in popen() local
67 if ((cur = malloc(sizeof(struct pid))) == NULL) in popen()
71 free(cur); in popen()
79 free(cur); in popen()
122 cur->fp = iop; in popen()
123 cur->pid = pid; in popen()
124 cur->next = pidlist; in popen()
125 pidlist = cur; in popen()
138 struct pid *cur, *last; in pclose() local
143 for (last = NULL, cur = pidlist; cur; last = cur, cur = cur->next) in pclose()
[all …]
Dexec.c140 char *bp, *cur, *path, buf[MAXPATHLEN]; in execvp() local
153 cur = path = NULL; in execvp()
162 cur = alloca(len); in execvp()
163 if (cur == NULL) { in execvp()
167 strlcpy(cur, path, len); in execvp()
168 path = cur; in execvp()
169 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.c592 struct addrinfo *cur; in getaddrinfo() local
605 cur = &sentinel; in getaddrinfo()
708 error = explore_null(pai, servname, &cur->ai_next); in getaddrinfo()
711 &cur->ai_next); in getaddrinfo()
716 while (cur->ai_next) in getaddrinfo()
717 cur = cur->ai_next; in getaddrinfo()
767 &cur->ai_next); in getaddrinfo()
769 while (cur && cur->ai_next) in getaddrinfo()
770 cur = cur->ai_next; in getaddrinfo()
803 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 …]