Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 69) sorted by relevance

123

/bionic/libc/string/
Dstrtotimeval.c43 int count; in strtotimeval() local
49 count = 0; in strtotimeval()
52 if ( ++count < 7 ) in strtotimeval()
57 for ( ; count < 6; count++ ) in strtotimeval()
/bionic/libc/bionic/
Dcpuacct.c36 int count; in cpuacct_add() local
40 count = snprintf(buf, sizeof(buf), "/acct/uid/%d/tasks", uid); in cpuacct_add()
44 buf[count - sizeof("tasks")] = 0; in cpuacct_add()
49 buf[count - sizeof("tasks")] = '/'; in cpuacct_add()
Dsched_cpucount.c34 int count = 0; in __sched_cpucount() local
37 count += __builtin_popcount(set->__bits[nn]); in __sched_cpucount()
39 return count; in __sched_cpucount()
Dlibc_init_common.c97 int count; in __libc_fini() local
110 for (count = 0; fini_array[count] != NULL; count++); in __libc_fini()
113 while (count > 0) { in __libc_fini()
114 void (*func)() = (void (*)) fini_array[--count]; in __libc_fini()
Dsemaphore.c87 #define SEM_GET_SHARED(sem) ((sem)->count & SEMCOUNT_SHARED_MASK)
103 sem->count = SEMCOUNT_FROM_VALUE(value); in sem_init()
105 sem->count |= SEMCOUNT_SHARED_MASK; in sem_init()
113 int count; in sem_destroy() local
119 count = SEMCOUNT_TO_VALUE(sem->count); in sem_destroy()
120 if (count < 0) { in sem_destroy()
124 sem->count = 0; in sem_destroy()
258 if (__sem_dec(&sem->count) > 0) in sem_wait()
261 __futex_wait_ex(&sem->count, shared, shared|SEMCOUNT_MINUS_ONE, NULL); in sem_wait()
281 if (__sem_trydec(&sem->count) > 0) { in sem_timedwait()
[all …]
Dsched_cpualloc.c32 cpu_set_t* __sched_cpualloc(size_t count) in __sched_cpualloc() argument
34 return (cpu_set_t*) malloc(CPU_ALLOC_SIZE(count)); in __sched_cpualloc()
Dssp.c71 int count; in __stack_chk_fail() local
80 if ((count = readlink("/proc/self/exe", path, sizeof(path) - 1)) == -1) { in __stack_chk_fail()
83 path[count] = '\0'; in __stack_chk_fail()
Datomics_x86.c49 int __futex_wake(volatile void *ftx, int count) in __futex_wake() argument
58 "d" (count) in __futex_wake()
/bionic/libc/kernel/arch-arm/asm/
Dsemaphore.h24 atomic_t count; member
29 #define __SEMAPHORE_INIT(name, cnt) { .count = ATOMIC_INIT(cnt), .wait = __WAIT_QUEUE_HEAD_INI…
31 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,cou… argument
/bionic/libc/kernel/arch-sh/asm/
Dmachvec.h40 void (*mv_insb)(unsigned long, void *dst, unsigned long count);
41 void (*mv_insw)(unsigned long, void *dst, unsigned long count);
42 void (*mv_insl)(unsigned long, void *dst, unsigned long count);
43 void (*mv_outsb)(unsigned long, const void *src, unsigned long count);
44 void (*mv_outsw)(unsigned long, const void *src, unsigned long count);
45 void (*mv_outsl)(unsigned long, const void *src, unsigned long count);
/bionic/libc/stdio/
Dfwrite.c43 fwrite(const void *buf, size_t size, size_t count, FILE *fp) in fwrite() argument
51 uio.uio_resid = iov.iov_len = n = count * size; in fwrite()
64 return (count); in fwrite()
Dfread.c48 fread(void *buf, size_t size, size_t count, FILE *fp) in fread() argument
60 if ((resid = count * size) == 0) in fread()
151 return (count); in fread()
174 return (count); in fread()
/bionic/libc/netbsd/net/
Dgetservent.c56 int nn,count; in getservent_r() local
71 count = q[0]; /* get aliascount */ in getservent_r()
74 total += (count+1)*sizeof(char*); in getservent_r()
75 for (nn = 0; nn < count; nn++) { in getservent_r()
88 p2 += (count+1)*sizeof(char*); in getservent_r()
106 for (nn = 0; nn < count; nn++) { in getservent_r()
/bionic/libc/kernel/common/linux/netfilter/
Dxt_multiport.h27 u_int8_t count; member
34 u_int8_t count; member
Dxt_connbytes.h32 } count; member
/bionic/libc/kernel/common/linux/nfsd/
Dxdr.h37 __u32 count; member
90 __u32 count; member
110 unsigned long count; member
115 int count; member
/bionic/libc/kernel/arch-x86/asm/
Dio_32.h26count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } stati…
/bionic/libc/kernel/common/linux/
Dproc_fs.h29 int count, int *eof, void *data);
31 unsigned long count, void *data);
51 atomic_t count; member
Dpercpu_counter.h22 s64 count; member
Dmutex.h24 atomic_t count; member
40 #define __MUTEX_INITIALIZER(lockname) { .count = ATOMIC_INIT(1) , .wait_lock = SPIN_LOCK_UNLOCK…
Dkeychord.h25 __u16 count; member
/bionic/libc/include/sys/
Dsendfile.h36 extern ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count);
Datomics.h42 int __futex_wake(volatile void *ftx, int count);
/bionic/libc/unistd/
Dsysconf.c368 int count = 0; in __get_nproc_conf() local
375 count += 1; in __get_nproc_conf()
377 return (count < 1) ? 1 : count; in __get_nproc_conf()
386 int count = 0; in __get_nproc_onln() local
393 count += 1; in __get_nproc_onln()
395 return (count < 1) ? 1 : count; in __get_nproc_onln()
/bionic/libc/include/
Dsha1.h20 uint32_t count[2]; member

123