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

/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_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.cpp46 int rc = __statfs64(path, sizeof(tmp), &tmp); local
47 if (rc != 0) {
48 return rc;
56 int rc = __fstatfs64(fd, sizeof(tmp), &tmp); local
57 if (rc != 0) {
58 return rc;
H A Dgetcwd.cpp59 int rc = __getcwd(buf, allocated_size); local
60 if (rc == -1) {
H A Ddl_iterate_phdr_static.c59 int rc = cb(&exe_info, sizeof(exe_info), data); local
60 if (rc != 0) {
61 return rc;
H A Dlibgen.cpp44 int rc = basename_r(path, basename_tls_buffer, basename_tls_buffer_size); local
45 return (rc < 0) ? NULL : basename_tls_buffer;
50 int rc = dirname_r(path, dirname_tls_buffer, dirname_tls_buffer_size); local
51 return (rc < 0) ? NULL : dirname_tls_buffer;
H A Dtmpfile.cpp80 int rc = fstat(fd, &sb); local
81 if (rc == -1) {
H A Ddirent.cpp84 int rc = TEMP_FAILURE_RETRY(getdents(d->fd_, d->buff_, sizeof(d->buff_))); local
85 if (rc <= 0) {
88 d->available_bytes_ = rc;
H A Dlibc_logging.cpp108 int rc = TEMP_FAILURE_RETRY(write(fd_, data, len)); local
109 if (rc == -1) {
112 data += rc;
113 len -= rc;
114 total += rc;
H A Dsysconf.cpp150 int rc = clock_getres(CLOCK_MONOTONIC, &t); local
151 return (rc == -1) ? -1 : _POSIX_VERSION;
H A Dpthread-timers.c394 int rc = pthread_create(&timer->thread, &timer->attributes, timer_thread_start, timer); local
395 if (rc != 0) {
397 errno = rc;
/bionic/libc/arch-x86/bionic/
H A D__set_tls.c74 int rc, segment; local
82 rc = __set_thread_area( &_tls_desc );
83 if (rc != 0)
/bionic/tests/
H A Dlibgen_test.cpp70 int rc = basename_r(in, buf, buf_size); local
71 ASSERT_EQ(expected_rc, rc) << in;
72 if (rc != -1 && buf != NULL) {
81 int rc = dirname_r(in, buf, buf_size); local
82 ASSERT_EQ(expected_rc, rc) << in;
83 if (rc != -1 && buf != NULL) {
H A Dstdio_test.cpp33 int rc = fstat(fd, &sb); local
34 ASSERT_NE(rc, -1);
37 rc = fprintf(fp, "hello\n");
38 ASSERT_EQ(rc, 6);
55 int rc = fprintf(fp, "%s", line_written); local
56 ASSERT_EQ(rc, static_cast<int>(strlen(line_written)));
116 int rc = fprintf(fp, "%s", line_written); local
117 ASSERT_EQ(rc, static_cast<int>(strlen(line_written)));
H A Dstdlib_test.cpp100 int rc = readlink("/proc/self/exe", executable_path, sizeof(executable_path)); local
101 ASSERT_NE(rc, -1);
102 executable_path[rc] = '\0';
H A Ddlfcn_test.cpp130 int rc = dladdr(addr, &info); local
131 ASSERT_NE(rc, 0); // Zero on error, non-zero on success.
135 rc = readlink("/proc/self/exe", executable_path, sizeof(executable_path));
136 ASSERT_NE(rc, -1);
137 executable_path[rc] = '\0';
/bionic/linker/
H A Dlinker_phdr.cpp144 ssize_t rc = TEMP_FAILURE_RETRY(read(fd_, &header_, sizeof(header_))); local
145 if (rc < 0) {
149 if (rc != sizeof(header_)) {
/bionic/libc/tzcode/
H A Dlocaltime.c2234 int rc = tzload(name, sp, doextend); local
2235 if (rc == 0) {
2243 return rc;

Completed in 3558 milliseconds