/bionic/libc/bionic/ |
H A D | raise.cpp | 32 int rc = pthread_kill(pthread_self(), sig); local 33 if (rc != 0) { 34 errno = rc;
|
H A D | sched_getaffinity.cpp | 36 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 D | pthread_getschedparam.cpp | 42 int rc = sched_getparam(thread->tid, param); local 43 if (rc == -1) {
|
H A D | pthread_setschedparam.cpp | 42 int rc = sched_setscheduler(thread->tid, policy, param); local 43 if (rc == -1) {
|
H A D | pthread_kill.cpp | 49 int rc = tgkill(getpid(), tid, sig); local 50 if (rc == -1) {
|
H A D | statvfs.cpp | 46 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 D | getcwd.cpp | 59 int rc = __getcwd(buf, allocated_size); local 60 if (rc == -1) {
|
H A D | dl_iterate_phdr_static.c | 59 int rc = cb(&exe_info, sizeof(exe_info), data); local 60 if (rc != 0) { 61 return rc;
|
H A D | libgen.cpp | 44 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 D | tmpfile.cpp | 80 int rc = fstat(fd, &sb); local 81 if (rc == -1) {
|
H A D | dirent.cpp | 84 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 D | libc_logging.cpp | 108 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 D | sysconf.cpp | 150 int rc = clock_getres(CLOCK_MONOTONIC, &t); local 151 return (rc == -1) ? -1 : _POSIX_VERSION;
|
H A D | pthread-timers.c | 394 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.c | 74 int rc, segment; local 82 rc = __set_thread_area( &_tls_desc ); 83 if (rc != 0)
|
/bionic/tests/ |
H A D | libgen_test.cpp | 70 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 D | stdio_test.cpp | 33 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 D | stdlib_test.cpp | 100 int rc = readlink("/proc/self/exe", executable_path, sizeof(executable_path)); local 101 ASSERT_NE(rc, -1); 102 executable_path[rc] = '\0';
|
H A D | dlfcn_test.cpp | 130 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 D | linker_phdr.cpp | 144 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 D | localtime.c | 2234 int rc = tzload(name, sp, doextend); local 2235 if (rc == 0) { 2243 return rc;
|