Home
last modified time | relevance | path

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

/bionic/libc/stdlib/
Dsetenv.c62 size_t cnt; in setenv() local
67 cnt = P - environ; in setenv()
68 P = (char **)realloc(lastenv, sizeof(char *) * (cnt + 2)); in setenv()
72 memcpy(P, environ, cnt * sizeof(char *)); in setenv()
74 offset = cnt; in setenv()
75 environ[cnt + 1] = NULL; in setenv()
/bionic/libc/arch-mips/string/
Dmips_strlen.c38 cnt += sizeof (unsigned);\
43 ++cnt;\
53 int cnt = 0; in strlen() local
62 return cnt; in strlen()
65 ++cnt; in strlen()
70 return cnt + 0; in strlen()
72 return cnt + 1; in strlen()
74 cnt += 2; in strlen()
128 return cnt; in strlen()
/bionic/libc/kernel/arch-arm/asm/
Dsemaphore.h35 #define __SEMAPHORE_INIT(name, cnt) { .count = ATOMIC_INIT(cnt), .wait = __WAIT_QUEUE_HEAD_INI… argument
/bionic/libc/unistd/
Dexec.c137 int cnt, lp, ln, len; in execvp() local
213 for (cnt = 0; argv[cnt]; ++cnt) in execvp()
215 memp = alloca((cnt + 2) * sizeof(char *)); in execvp()
220 memcpy(memp + 2, argv + 1, cnt * sizeof(char *)); in execvp()
Dsyslog.c108 int cnt; in vsyslog_r() local
226 cnt = p - tbuf; in vsyslog_r()
233 iov[0].iov_len = cnt - (stdp - tbuf); in vsyslog_r()
252 if ((error = send(data->log_file, tbuf, cnt, 0)) < 0) { in vsyslog_r()
259 if ((error = send(data->log_file, tbuf, cnt, 0)) >= 0) in vsyslog_r()
275 iov[0].iov_len = cnt - (p - tbuf); in vsyslog_r()
/bionic/libc/upstream-netbsd/libc/isc/
Dev_streams.c56 evConsIovec(void *buf, size_t cnt) { in evConsIovec() argument
61 ret.iov_len = cnt; in evConsIovec()
/bionic/libc/netbsd/resolv/
Dres_init.c697 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) { in res_setservers() argument
708 for (i = 0; i < cnt && nserv < MAXNS; i++) { in res_setservers()
750 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) { in res_getservers() argument
755 for (i = 0; i < statp->nscount && i < cnt; i++) { in res_getservers()
/bionic/libc/bionic/
Dmalloc_debug_check.cpp274 hdr_t **tail, hdr_t **head, unsigned *cnt, in del_and_check_locked() argument
278 (*cnt)--; in del_and_check_locked()
/bionic/libc/kernel/common/linux/
Dbio.h154 atomic_t cnt; member