Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/bionic/libc/bionic/
Dfdprintf.c37 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()
Dsched_getaffinity.c33 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()
Dpthread-rwlocks.c112 int ret; in pthread_rwlock_init() local
127 ret = pthread_mutex_init(&rwlock->lock, lock_attr); in pthread_rwlock_init()
128 if (ret != 0) in pthread_rwlock_init()
129 return ret; in pthread_rwlock_init()
131 ret = pthread_cond_init(&rwlock->cond, cond_attr); in pthread_rwlock_init()
132 if (ret != 0) { in pthread_rwlock_init()
134 return ret; in pthread_rwlock_init()
209 int ret = 0; in pthread_rwlock_tryrdlock() local
216 ret = EBUSY; in pthread_rwlock_tryrdlock()
221 return ret; in pthread_rwlock_tryrdlock()
[all …]
Dfork.c37 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()
Dsemaphore.c167 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__strlen_chk.cpp57 size_t ret = strlen(s); in __strlen_chk() local
59 if (__builtin_expect(ret >= s_len, 0)) { in __strlen_chk()
63 return ret; in __strlen_chk()
Dbindresvport.c43 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()
Dpututline.c47 goto ret; in pututline()
49 goto ret; in pututline()
51 goto ret; in pututline()
62 ret: in pututline()
Dcpuacct.c41 int ret = 0; in cpuacct_add() local
60 ret = -errno; in cpuacct_add()
62 ret = -EIO; in cpuacct_add()
67 return ret; in cpuacct_add()
Dflockfile.c61 int ret = EINVAL; in ftrylockfile() local
64 ret = _FLOCK_TRYLOCK(fp); in ftrylockfile()
66 return ret; in ftrylockfile()
/bionic/libc/upstream-netbsd/libc/inet/
Dinet_ntoa.c59 static char ret[18]; in __weak_alias() local
61 strlcpy(ret, "[inet_ntoa error]", sizeof(ret)); in __weak_alias()
62 (void) inet_ntop(AF_INET, &in, ret, (socklen_t)sizeof ret); in __weak_alias()
63 return ret; in __weak_alias()
/bionic/libc/stdio/
Dstdio.c47 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()
Dflags.c48 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()
Dfileno.c45 int ret; in fileno() local
48 ret = __sfileno(fp); in fileno()
50 return (ret); in fileno()
Dfeof.c45 int ret; in feof() local
48 ret = __sfeof(fp); in feof()
50 return (ret); in feof()
Dfwalk.c43 int n, ret; in _fwalk() local
46 ret = 0; in _fwalk()
50 ret |= (*function)(fp); in _fwalk()
52 return (ret); in _fwalk()
Dscanf.c40 int ret; in scanf() local
44 ret = vfscanf(stdin, fmt, ap); in scanf()
46 return (ret); in scanf()
Dprintf.c40 int ret; in printf() local
44 ret = vfprintf(stdout, fmt, ap); in printf()
46 return (ret); in printf()
Dfscanf.c40 int ret; in fscanf() local
44 ret = vfscanf(fp, fmt, ap); in fscanf()
46 return (ret); in fscanf()
Dfprintf.c40 int ret; in fprintf() local
44 ret = vfprintf(fp, fmt, ap); in fprintf()
46 return (ret); in fprintf()
Dasprintf.c29 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()
Dvasprintf.c28 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()
/bionic/libc/unistd/
Dtime.c37 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/kernel/arch-x86/asm/
Dlinkage_32.h25 #define prevent_tail_call(ret) __asm__ ("" : "=r" (ret) : "0" (ret)) argument
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_nearbyint.c44 type ret; \
48 ret = rint(x); \
50 return (ret); \

12345678910>>...12