/system/core/adb/ |
H A D | usb_windows.c | 134 int ret = 0; local 138 ret = known_device_locked(dev_name); 142 return ret; 192 usb_handle* ret = (usb_handle*)malloc(sizeof(usb_handle)); local 193 if (NULL == ret) 197 ret->next = ret; 198 ret->prev = ret; 201 ret 260 int ret; local 305 int ret; local [all...] |
H A D | services.c | 178 int pid, ret; local 192 waitpid(pid, &ret, 0); 195 ret = android_reboot(ANDROID_RB_RESTART2, 0, (char *) arg); 196 if (ret < 0) { 416 int ret = -1; local 422 ret = socket_loopback_client(port, SOCK_STREAM); 423 if (ret >= 0) 424 disable_tcp_nagle(ret); 428 ret = socket_network_client(name + 1, port, SOCK_STREAM); 436 ret [all...] |
/system/core/libcutils/ |
H A D | android_reboot.c | 106 int ret; local 116 ret = reboot(RB_AUTOBOOT); 120 ret = reboot(RB_POWER_OFF); 124 ret = __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, 129 ret = -1; 132 return ret;
|
H A D | ashmem-dev.c | 44 int fd, ret; local 54 ret = ioctl(fd, ASHMEM_SET_NAME, buf); 55 if (ret < 0) 59 ret = ioctl(fd, ASHMEM_SET_SIZE, size); 60 if (ret < 0) 67 return ret;
|
H A D | strdup16to8.c | 145 char* ret; local 161 ret = malloc(len + 1); 162 if (ret == NULL) 165 strncpy16to8 (ret, s, n); 167 return ret;
|
H A D | socket_inaddr_any_server.c | 59 int ret; local 61 ret = listen(s, LISTEN_BACKLOG); 63 if (ret < 0) {
|
H A D | socket_loopback_server.c | 59 int ret; local 61 ret = listen(s, LISTEN_BACKLOG); 63 if (ret < 0) {
|
H A D | zygote.c | 61 ssize_t ret; 93 ret = sendmsg(fd, &msg, MSG_NOSIGNAL); 94 } while (ret < 0 && errno == EINTR); 96 if (ret < 0) { 125 ret = sendmsg(fd, &msg, MSG_NOSIGNAL); 126 } while (ret < 0 && errno == EINTR); 132 if (ret < 0) { 145 ret = recvmsg(fd, &msg, MSG_NOSIGNAL | MSG_WAITALL); 146 } while (ret < 0 && errno == EINTR); 148 if (ret < [all...] |
/system/core/toolbox/ |
H A D | renice.c | 123 int ret; local 125 ret = sched_setscheduler(pid, SCHED_RR, &sp); 126 if (ret) { 131 int ret; local 133 ret = setpriority(PRIO_PROCESS, pid, prio); 134 if (ret) {
|
H A D | wipe.c | 61 int ret; local 66 ret = android_reboot(ANDROID_RB_RESTART, 0, 0); 67 if (ret < 0) { 85 int ret; local 118 ret = lstat (nameBuffer, &statBuffer); 120 if (ret != 0) { 143 ret = rmdir(newpath); 144 if (ret != 0) { 165 ret = unlink(nameBuffer); 167 if (ret ! [all...] |
H A D | insmod.c | 15 int ret, fd; local 36 ret = read(fd, buffer, size); 37 if (ret != size) 54 int ret; local 85 ret = init_module(file, size, opts); 86 if (ret != 0) { 95 return ret;
|
H A D | setkey.c | 38 int c, ret; local 53 ret = ioctl(fd, KDSKBENT, &kbe); 54 if (ret < 0) { 63 ret = ioctl(fd, KDGKBENT, &kbe); 64 if (ret < 0) {
|
H A D | nandread.c | 30 int ret; local 124 ret = ioctl(fd, MEMGETINFO, &mtdinfo); 125 if (ret) { 150 ret = ioctl(fd, ECCGETLAYOUT, &ecclayout); 151 if (ret) { 163 ret = ioctl(fd, ECCGETSTATS, &initial_ecc); 164 if (ret) { 180 ret = ioctl(fd, MTDFILEMODE, MTD_MODE_RAW); 181 if (ret) { 194 ret [all...] |
/system/bluetooth/tools/ |
H A D | pipetest.c | 38 int ret; local 40 ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd); 41 printf("%d: socketpair() = %d\n", gettid(), ret); 42 if (ret) printf("\terr %d (%s)\n", errno, strerror(errno)); 43 return ret; 47 int ret; local 49 ret = close(fd); 50 printf("%d: close(%d) = %d\n", gettid(), fd, ret); 51 if (ret) printf("\terr %d (%s)\n", errno, strerror(errno)); 52 return ret; 56 int ret; local 73 int ret; local 84 int ret; local 96 int ret; local [all...] |
H A D | sock_shutdown_bug_rfcomm.c | 29 int ret; local 41 ret = connect(fd, (struct sockaddr *)&addr, sizeof(addr)); 42 if (ret < 0) { 52 ret = connect(fd, (struct sockaddr *)&addr, sizeof(addr)); 53 if (ret < 0) {
|
H A D | asocket_test.c | 86 int ret; local 120 ret = socket(family, typ, protocol); 121 printf("%d: socket() = %d\n", gettid(), ret); 122 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); 124 return ret; 128 int ret; local 131 ret = close(fd); 132 printf("%d: close(%d) = %d\n", gettid(), fd, ret); 133 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); 135 return ret; 140 int ret; local 176 int ret; local 187 int ret; local 200 int ret; local 239 int ret; local 275 int ret; local 287 int ret; local 298 int ret; local [all...] |
H A D | socktest.c | 85 int ret; local 119 ret = socket(family, typ, protocol); 120 printf("%ld: socket() = %d\n", pthread_self(), ret); 121 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); 123 return ret; 127 int ret; local 130 ret = close(fd); 131 printf("%ld: close(%d) = %d\n", pthread_self(), fd, ret); 132 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno)); 134 return ret; 139 int ret; local 175 int ret; local 186 int ret; local 199 int ret; local 252 int ret; local 289 int ret; local 301 int ret; local 312 int ret; local [all...] |
/system/core/init/ |
H A D | keychords.c | 67 int fd, ret; local 82 ret = write(fd, keychords, keychords_length); 83 if (ret != keychords_length) { 84 ERROR("could not configure /dev/keychord %d (%d)\n", ret, errno); 100 int ret; local 108 ret = read(keychord_fd, &id, sizeof(id)); 109 if (ret != sizeof(id)) {
|
H A D | util.c | 86 int fd, ret; local 99 ret = unlink(addr.sun_path); 100 if (ret != 0 && errno != ENOENT) { 105 ret = bind(fd, (struct sockaddr *) &addr, sizeof (addr)); 106 if (ret) { 237 int ret; local 239 ret = clock_gettime(CLOCK_MONOTONIC, &ts); 240 if (ret < 0) { 254 int ret; local 271 ret 292 int ret; local 317 ssize_t ret; local 330 int ret = -1; local [all...] |
/system/extras/fatblock/ |
H A D | import.c | 100 int ret; local 102 ret = stat(path, &st); 103 if (ret < 0) { 112 ret = MALLOC_FAIL; 120 ret = MALLOC_FAIL; 131 ret = fs_alloc_extent(fs, &f->extent, 133 if (ret) { 148 return ret; 207 int ret; local 248 ret 355 int ret; local [all...] |
H A D | read.c | 55 int ret; local 59 ret = stat(f->path, &st); 60 if (ret) { 76 ssize_t ret; local 114 ret = read(fd, buf, (size_t)len); 115 if (ret != (ssize_t)len) { 165 int ret; local 171 ret = extent_read(fs, e, buf + r_start, e_start, rel_len); 172 if (ret == SKY_IS_FALLING) 174 if (ret) [all...] |
/system/extras/ext4_utils/ |
H A D | ext2simg.c | 47 off64_t ret; local 51 ret = lseek64(fd, 1024, SEEK_SET); 52 if (ret < 0) 55 ret = read(fd, &sb, sizeof(sb)); 56 if (ret < 0) 58 if (ret != sizeof(sb)) 63 ret = lseek64(fd, info.len, SEEK_SET); 64 if (ret < 0) 67 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); 68 if (ret < 112 off64_t ret; local [all...] |
/system/extras/tests/directiotest/ |
H A D | directiotest.c | 53 void *ret = mmap(NULL, size, PROT_READ | PROT_WRITE, local 56 if (ret == MAP_FAILED) { 58 ret = NULL; 60 return ret; 65 int ret = munmap(addr, size); local 66 if (ret == -1) 72 ssize_t ret; local 78 ret = read(fd, (char *)buf + bytes_read, count - bytes_read); 79 if (ret == -1) { 82 } else if (ret 94 ssize_t ret; local 171 int ret = 1; local [all...] |
/system/core/libsysutils/src/ |
H A D | FrameworkClient.cpp | 17 int ret; local 24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1)); 25 if (ret < 0) {
|
/system/extras/tests/bionic/libc/other/ |
H A D | test_zlib.c | 47 int ret, flush; local 57 ret = deflateInit(&strm, level); 58 if (ret != Z_OK) 59 return ret; 76 ret = deflate(&strm, flush); /* no bad return value */ 95 int ret; local 107 ret = inflateInit(&strm); 108 if (ret != Z_OK) 109 return ret; 126 ret 223 int ret, rr; local [all...] |