Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 8 of 8) 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 …]
/bionic/libc/bionic/
Dftw.cpp57 FTSENT* cur; in do_nftw() local
58 while (error == 0 && (cur = fts_read(fts)) != nullptr) { in do_nftw()
60 switch (cur->fts_info) { in do_nftw()
64 if (postorder || access(cur->fts_path, R_OK) == -1) continue; in do_nftw()
100 ftw.base = cur->fts_pathlen - cur->fts_namelen; in do_nftw()
101 ftw.level = cur->fts_level; in do_nftw()
102 error = nftw_fn(cur->fts_path, cur->fts_statp, fn_flag, &ftw); in do_nftw()
104 error = ftw_fn(cur->fts_path, cur->fts_statp, fn_flag); in do_nftw()
Dfts.c551 FTSENT *cur, *tail; in fts_build() local
560 cur = sp->fts_cur; in fts_build()
566 if ((dirp = opendir(cur->fts_accpath)) == NULL) { in fts_build()
568 cur->fts_info = FTS_DNR; in fts_build()
569 cur->fts_errno = errno; in fts_build()
582 nlinks = cur->fts_nlink - (ISSET(FTS_SEEDOT) ? 0 : 2); in fts_build()
590 (void)printf("nlinks == %d (cur: %u)\n", nlinks, cur->fts_nlink); in fts_build()
611 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { in fts_build()
613 cur->fts_errno = errno; in fts_build()
614 cur->fts_flags |= FTS_DONTCHDIR; in fts_build()
[all …]
/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/malloc_debug/
DConfig.cpp383 const char* cur = *options_str; in GetOption() local
385 while (isspace(*cur)) in GetOption()
386 ++cur; in GetOption()
388 if (*cur == '\0') { in GetOption()
389 *options_str = cur; in GetOption()
393 const char* start = cur; in GetOption()
394 while (!isspace(*cur) && *cur != '=' && *cur != '\0') in GetOption()
395 ++cur; in GetOption()
397 *option = std::string(start, cur - start); in GetOption()
400 while (isspace(*cur)) in GetOption()
[all …]
/bionic/libc/dns/net/
Dgetaddrinfo.c586 struct addrinfo *cur; in android_getaddrinfofornetcontext() local
599 cur = &sentinel; in android_getaddrinfofornetcontext()
702 error = explore_null(pai, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
705 &cur->ai_next); in android_getaddrinfofornetcontext()
710 while (cur->ai_next) in android_getaddrinfofornetcontext()
711 cur = cur->ai_next; in android_getaddrinfofornetcontext()
762 pai, hostname, servname, &cur->ai_next, netcontext); in android_getaddrinfofornetcontext()
764 while (cur && cur->ai_next) in android_getaddrinfofornetcontext()
765 cur = cur->ai_next; in android_getaddrinfofornetcontext()
799 struct addrinfo *cur; in explore_fqdn() local
[all …]
/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