Searched refs:rc (Results 1 - 25 of 28) sorted by relevance

12

/bionic/libc/bionic/
H A Draise.cpp32 int rc = pthread_kill(pthread_self(), sig); local
33 if (rc != 0) {
34 errno = rc;
H A Dsched_getcpu.cpp36 int rc = __getcpu(&cpu, NULL, NULL); local
37 if (rc == -1) {
H A Dsched_getaffinity.cpp36 int rc = __sched_getaffinity(pid, set_size, set); local
37 if (rc == -1) {
43 memset(reinterpret_cast<char*>(set) + rc, 0, set_size - rc);
H A Dpthread_getschedparam.cpp42 int rc = sched_getparam(thread->tid, param); local
43 if (rc == -1) {
H A Dpthread_setschedparam.cpp42 int rc = sched_setscheduler(thread->tid, policy, param); local
43 if (rc == -1) {
H A Dpthread_kill.cpp49 int rc = tgkill(getpid(), tid, sig); local
50 if (rc == -1) {
H A Dstatvfs.cpp49 int rc = __statfs64(path, sizeof(tmp), &tmp); local
50 if (rc != 0) {
51 return rc;
60 int rc = __fstatfs64(fd, sizeof(tmp), &tmp); local
61 if (rc != 0) {
62 return rc;
H A Dgetcwd.cpp59 int rc = __getcwd(buf, allocated_size); local
60 if (rc == -1) {
H A Dmmap.cpp53 int rc = madvise(result, size, MADV_MERGEABLE); local
54 if (rc == -1 && errno == EINVAL) {
H A Ddl_iterate_phdr_static.cpp58 int rc = cb(&exe_info, sizeof(exe_info), data); local
59 if (rc != 0) {
60 return rc;
H A Dposix_timers.cpp81 int rc = __rt_sigtimedwait(sigset.get(), &si, NULL, sizeof(sigset)); local
82 if (rc == -1) {
148 int rc = pthread_create(&timer->callback_thread, &thread_attributes, __timer_thread_start, timer); local
152 if (rc != 0) {
154 errno = rc;
179 int rc = __timer_delete(to_kernel_timer_id(id)); local
180 if (rc == -1) {
H A Dlibgen.cpp155 int rc = basename_r(path, basename_tls_buffer, basename_tls_buffer_size); local
156 return (rc < 0) ? NULL : basename_tls_buffer;
161 int rc = dirname_r(path, dirname_tls_buffer, dirname_tls_buffer_size); local
162 return (rc < 0) ? NULL : dirname_tls_buffer;
H A Dtmpfile.cpp81 int rc = fstat(fd, &sb); local
82 if (rc == -1) {
H A Ddirent.cpp86 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); local
87 if (rc <= 0) {
90 d->available_bytes_ = rc;
H A Dndk_cruft.cpp197 int rc = vdprintf(fd, fmt, ap); local
199 return rc;
H A Dpthread_create.cpp223 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid)); local
224 if (rc == -1) {
H A Dsysconf.cpp149 int rc = clock_getres(CLOCK_MONOTONIC, &t); local
150 return (rc == -1) ? -1 : _POSIX_VERSION;
/bionic/libc/arch-x86/bionic/
H A D__set_tls.c64 int rc = __set_thread_area(&tls_descriptor); local
65 if (rc != -1) {
73 return rc;
/bionic/tests/
H A Dsys_sendfile_test.cpp34 ssize_t rc = sendfile(dst_file.fd, src_file.fd, &offset, count); local
35 ASSERT_EQ(2, rc);
53 ssize_t rc = sendfile64(dst_file.fd, src_file.fd, &offset, count); local
54 ASSERT_EQ(2, rc);
H A Dlibgen_test.cpp71 int rc = basename_r(in, buf, buf_size); local
72 ASSERT_EQ(expected_rc, rc) << in;
73 if (rc != -1 && buf != NULL) {
82 int rc = dirname_r(in, buf, buf_size); local
83 ASSERT_EQ(expected_rc, rc) << in;
84 if (rc != -1 && buf != NULL) {
H A Ddlfcn_test.cpp166 int rc = dladdr(addr, &info); local
167 ASSERT_NE(rc, 0); // Zero on error, non-zero on success.
171 rc = readlink("/proc/self/exe", executable_path, sizeof(executable_path));
172 ASSERT_NE(rc, -1);
173 executable_path[rc] = '\0';
H A Dfcntl_test.cpp32 int rc = fcntl(fd, F_SETFD, FD_CLOEXEC); local
33 ASSERT_EQ(0, rc);
151 int rc = fcntl(fd, F_GETLK64, &check_lock); local
152 ASSERT_EQ(0, rc);
H A Dstdio_test.cpp40 int rc = fstat(fd, &sb); local
41 ASSERT_NE(rc, -1);
44 rc = fprintf(fp, "hello\n");
45 ASSERT_EQ(rc, 6);
60 int rc = dprintf(tf.fd, "hello\n"); local
61 ASSERT_EQ(rc, 6);
80 int rc = fprintf(fp, "%s", line_written); local
81 ASSERT_EQ(rc, static_cast<int>(strlen(line_written)));
143 int rc = fprintf(fp, "%s", line_written); local
144 ASSERT_EQ(rc, static_cas
[all...]
H A Dstdlib_test.cpp105 int rc = readlink("/proc/self/exe", executable_path, sizeof(executable_path)); local
106 ASSERT_NE(rc, -1);
107 executable_path[rc] = '\0';
/bionic/linker/
H A Ddebugger.cpp102 int rc = TEMP_FAILURE_RETRY(connect(s, reinterpret_cast<sockaddr*>(&addr), alen)); local
103 if (rc == -1) {

Completed in 152 milliseconds

12