/bionic/libc/bionic/ |
D | fdprintf.c | 37 int ret; in vfdprintf() local 38 ret = vasprintf(&buf, format, ap); in vfdprintf() 39 if (ret < 0) in vfdprintf() 42 ret = write(fd, buf, ret); in vfdprintf() 45 return ret; in vfdprintf() 51 int ret; in fdprintf() local 54 ret = vfdprintf(fd, format, ap); in fdprintf() 57 return ret; in fdprintf()
|
D | sched_getaffinity.c | 33 int ret = __sched_getaffinity(pid, setsize, set); in sched_getaffinity() local 34 if (ret >= 0) { in sched_getaffinity() 35 if ((size_t)ret < setsize) { in sched_getaffinity() 36 memset((char*)set + ret, '\0', setsize - (size_t)ret); in sched_getaffinity() 38 ret = 0; in sched_getaffinity() 40 return ret; in sched_getaffinity()
|
D | pthread-rwlocks.c | 118 int ret; in pthread_rwlock_init() local 133 ret = pthread_mutex_init(&rwlock->lock, lock_attr); in pthread_rwlock_init() 134 if (ret != 0) in pthread_rwlock_init() 135 return ret; in pthread_rwlock_init() 137 ret = pthread_cond_init(&rwlock->cond, cond_attr); in pthread_rwlock_init() 138 if (ret != 0) { in pthread_rwlock_init() 140 return ret; in pthread_rwlock_init() 153 int ret; in pthread_rwlock_destroy() local 217 int ret = 0; in pthread_rwlock_tryrdlock() local 224 ret = EBUSY; in pthread_rwlock_tryrdlock() [all …]
|
D | fork.c | 37 int ret; in fork() local 47 ret = __fork(); in fork() 48 if (ret != 0) { /* not a child process */ in fork() 64 return ret; in fork()
|
D | semaphore.c | 167 int ret; in __sem_dec() local 171 ret = SEMCOUNT_TO_VALUE(old); in __sem_dec() 172 if (ret < 0) in __sem_dec() 180 return ret; in __sem_dec() 191 int ret; in __sem_trydec() local 195 ret = SEMCOUNT_TO_VALUE(old); in __sem_trydec() 196 if (ret <= 0) in __sem_trydec() 205 return ret; in __sem_trydec() 221 int ret; in __sem_inc() local 225 ret = SEMCOUNT_TO_VALUE(old); in __sem_inc() [all …]
|
D | bionic_clone.c | 50 int ret = (*fn)(arg); in __bionic_clone_entry() local 51 _exit_thread(ret); in __bionic_clone_entry() 61 int ret; in clone() local 76 ret = __bionic_clone(flags, child_stack, parent_tidptr, new_tls, child_tidptr, fn, arg); in clone() 77 return ret; in clone()
|
D | dirname.c | 40 int ret; in dirname() local 48 ret = dirname_r(path, bname, MAXPATHLEN); in dirname() 49 return (ret < 0) ? NULL : bname; in dirname()
|
D | basename.c | 40 int ret; in basename() local 47 ret = basename_r(path, bname, MAXPATHLEN); in basename() 48 return (ret < 0) ? NULL : bname; in basename()
|
/bionic/libc/stdio/ |
D | stdio.c | 47 int ret; in __sread() local 49 ret = read(fp->_file, buf, n); in __sread() 51 if (ret >= 0) in __sread() 52 fp->_offset += ret; in __sread() 55 return (ret); in __sread() 73 off_t ret; in __sseek() local 75 ret = lseek(fp->_file, (off_t)offset, whence); in __sseek() 76 if (ret == (off_t)-1) in __sseek() 80 fp->_offset = ret; in __sseek() 82 return (ret); in __sseek()
|
D | flags.c | 48 int ret, m, o; in __sflags() local 53 ret = __SRD; in __sflags() 59 ret = __SWR; in __sflags() 65 ret = __SWR; in __sflags() 77 ret = __SRW; in __sflags() 81 return (ret); in __sflags()
|
D | feof.c | 45 int ret; in feof() local 48 ret = __sfeof(fp); in feof() 50 return (ret); in feof()
|
D | fileno.c | 45 int ret; in fileno() local 48 ret = __sfileno(fp); in fileno() 50 return (ret); in fileno()
|
D | fwalk.c | 43 int n, ret; in _fwalk() local 46 ret = 0; in _fwalk() 50 ret |= (*function)(fp); in _fwalk() 52 return (ret); in _fwalk()
|
D | printf.c | 40 int ret; in printf() local 44 ret = vfprintf(stdout, fmt, ap); in printf() 46 return (ret); in printf()
|
D | scanf.c | 40 int ret; in scanf() local 44 ret = vfscanf(stdin, fmt, ap); in scanf() 46 return (ret); in scanf()
|
D | fscanf.c | 40 int ret; in fscanf() local 44 ret = vfscanf(fp, fmt, ap); in fscanf() 46 return (ret); in fscanf()
|
D | fprintf.c | 40 int ret; in fprintf() local 44 ret = vfprintf(fp, fmt, ap); in fprintf() 46 return (ret); in fprintf()
|
D | vasprintf.c | 28 int ret; in vasprintf() local 40 ret = __vfprintf(&f, fmt, ap); in vasprintf() 41 if (ret == -1) in vasprintf() 44 _base = realloc(f._bf._base, ret + 1); in vasprintf() 48 return (ret); in vasprintf()
|
D | asprintf.c | 29 int ret; in asprintf() local 41 ret = __vfprintf(&f, fmt, ap); in asprintf() 43 if (ret == -1) in asprintf() 46 _base = realloc(f._bf._base, ret + 1); in asprintf() 50 return (ret); in asprintf()
|
/bionic/libc/unistd/ |
D | mmap.c | 37 void *ret; in mmap() local 44 ret = __mmap2(addr, size, prot, flags, fd, (size_t)offset >> MMAP2_SHIFT); in mmap() 46 if (ret && (flags & (MAP_PRIVATE | MAP_ANONYMOUS))) in mmap() 47 madvise(ret, size, MADV_MERGEABLE); in mmap() 49 return ret; in mmap()
|
D | eventfd.c | 37 int ret = read(fd, counter, sizeof(*counter)); in eventfd_read() local 39 if (ret == sizeof(*counter)) in eventfd_read() 47 int ret = write(fd, &counter, sizeof(counter)); in eventfd_write() local 49 if (ret == sizeof(counter)) in eventfd_write()
|
D | time.c | 37 time_t ret; in time() local 40 ret = -1; in time() 42 ret = tt.tv_sec; in time() 44 *t = ret; in time() 45 return ret; in time()
|
/bionic/libc/string/ |
D | __strlen_chk.c | 58 size_t ret = strlen(s); in __strlen_chk() local 60 if (__builtin_expect(ret >= s_len, 0)) { in __strlen_chk() 66 return ret; in __strlen_chk()
|
/bionic/libc/inet/ |
D | bindresvport.c | 43 int nn, ret; in bindresvport() local 65 ret = bind(sd, (struct sockaddr*)sin, sizeof(*sin)); in bindresvport() 66 } while (ret < 0 && errno == EINTR); in bindresvport() 68 if (!ret) in bindresvport() 71 return ret; in bindresvport()
|
/bionic/libc/kernel/arch-x86/asm/ |
D | linkage_32.h | 25 #define prevent_tail_call(ret) __asm__ ("" : "=r" (ret) : "0" (ret)) argument
|