Home
last modified time | relevance | path

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

/bionic/libc/upstream-netbsd/lib/libc/gen/
Dpopen.c83 struct pid *cur, *old; in popen() local
107 if ((cur = malloc(sizeof(struct pid))) == NULL) { in popen()
121 free(cur); in popen()
164 cur->fd = pdes[0]; in popen()
170 cur->fd = pdes[1]; in popen()
176 cur->fp = iop; in popen()
177 cur->pid = pid; in popen()
178 cur->next = pidlist; in popen()
179 pidlist = cur; in popen()
193 struct pid *cur, *last; in pclose() local
[all …]
Dnftw.c45 FTSENT *cur; in nftw() local
67 while ((cur = fts_read(ftsp)) != NULL) { in nftw()
68 switch (cur->fts_info) { in nftw()
103 f.base = cur->fts_pathlen - cur->fts_namelen; in nftw()
104 f.level = cur->fts_level; in nftw()
105 error = fn(cur->fts_path, cur->fts_statp, fnflag, &f); in nftw()
Dftw.c43 FTSENT *cur; in ftw() local
57 while ((cur = fts_read(ftsp)) != NULL) { in ftw()
58 switch (cur->fts_info) { in ftw()
87 error = fn(cur->fts_path, cur->fts_statp, fnflag); in ftw()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_ntop.c105 struct { int base, len; } best, cur; in inet_ntop6() local
119 cur.base = -1; in inet_ntop6()
122 if (cur.base == -1) in inet_ntop6()
123 cur.base = i, cur.len = 1; in inet_ntop6()
125 cur.len++; in inet_ntop6()
127 if (cur.base != -1) { in inet_ntop6()
128 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
129 best = cur; in inet_ntop6()
130 cur.base = -1; in inet_ntop6()
134 if (cur.base != -1) { in inet_ntop6()
[all …]
/bionic/libc/dns/net/
Dgetaddrinfo.c596 struct addrinfo *cur; in android_getaddrinfofornet() local
609 cur = &sentinel; in android_getaddrinfofornet()
712 error = explore_null(pai, servname, &cur->ai_next); in android_getaddrinfofornet()
715 &cur->ai_next); in android_getaddrinfofornet()
720 while (cur->ai_next) in android_getaddrinfofornet()
721 cur = cur->ai_next; in android_getaddrinfofornet()
772 &cur->ai_next, netid, mark); in android_getaddrinfofornet()
774 while (cur && cur->ai_next) in android_getaddrinfofornet()
775 cur = cur->ai_next; in android_getaddrinfofornet()
808 struct addrinfo *cur; in explore_fqdn() local
[all …]
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dexec.c139 char *bp, *cur, *path, buf[PATH_MAX]; in execvpe() local
152 cur = path = NULL; in execvpe()
161 cur = alloca(len); in execvpe()
162 if (cur == NULL) { in execvpe()
166 strlcpy(cur, path, len); in execvpe()
167 path = cur; in execvpe()
168 while ((p = strsep(&cur, ":"))) { in execvpe()
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c250 if (ctx->cur != NULL && in evClearTimer()
251 ctx->cur->type == Timer && in evClearTimer()
252 ctx->cur->u.timer.this == del) { in evClearTimer()
478 evTimer *cur = what; in print_timer() local
481 cur = what; in print_timer()
484 cur->func, cur->uap, in print_timer()
485 (long)cur->due.tv_sec, cur->due.tv_nsec, in print_timer()
486 (long)cur->inter.tv_sec, cur->inter.tv_nsec); in print_timer()
Deventlib_p.h217 const evEvent_p *cur; member
/bionic/libc/bionic/
Dfts.c549 FTSENT *cur, *tail; in fts_build() local
558 cur = sp->fts_cur; in fts_build()
564 if ((dirp = opendir(cur->fts_accpath)) == NULL) { in fts_build()
566 cur->fts_info = FTS_DNR; in fts_build()
567 cur->fts_errno = errno; in fts_build()
580 nlinks = cur->fts_nlink - (ISSET(FTS_SEEDOT) ? 0 : 2); in fts_build()
588 (void)printf("nlinks == %d (cur: %u)\n", nlinks, cur->fts_nlink); in fts_build()
609 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { in fts_build()
611 cur->fts_errno = errno; in fts_build()
612 cur->fts_flags |= FTS_DONTCHDIR; in fts_build()
[all …]