Searched refs:ret (Results 1 - 25 of 134) sorted by relevance

123456

/system/core/libsuspend/
H A Dautosuspend.c65 int ret; local
67 ret = autosuspend_init();
68 if (ret) {
69 return ret;
78 ret = autosuspend_ops->enable();
79 if (ret) {
80 return ret;
89 int ret; local
91 ret = autosuspend_init();
92 if (ret) {
[all...]
H A Dautosuspend_autosleep.c39 int ret; local
43 ret = write(autosleep_fd, sleep_state, strlen(sleep_state));
44 if (ret < 0) {
55 return ret;
61 int ret; local
65 ret = write(autosleep_fd, on_state, strlen(on_state));
66 if (ret < 0) {
77 return ret;
87 int ret; local
H A Dautosuspend_wakeup_count.c46 int ret; local
65 ret = sem_wait(&suspend_lockout);
66 if (ret < 0) {
73 ret = write(wakeup_count_fd, wakeup_count, wakeup_count_len);
74 if (ret < 0) {
79 ret = write(state_fd, sleep_state, strlen(sleep_state));
80 if (ret < 0) {
87 ret = sem_post(&suspend_lockout);
88 if (ret < 0) {
99 int ret; local
118 int ret; local
141 int ret; local
[all...]
/system/bluetooth/tools/
H A Dbttest.c28 int ret; local
29 ret = bt_enable();
30 printf("= %d\n", ret);
31 return ret;
35 int ret; local
36 ret = bt_disable();
37 printf("= %d\n", ret);
38 return ret;
42 int ret; local
43 ret
[all...]
H A Dsock_shutdown_bug_tcp.c27 int ret; local
36 ret = bind(fd, (struct sockaddr *)&addr, sizeof(addr));
37 if (ret < 0) {
41 ret = listen(fd, 1);
42 if (ret < 0) {
54 ret = bind(fd, (struct sockaddr *)&addr, sizeof(addr));
55 if (ret < 0) {
/system/core/libcutils/
H A Duio.c31 int ret = read( fd, buf, len ); local
32 if (ret < 0) {
37 if (ret == 0)
40 total += ret;
41 buf += ret;
42 len -= ret;
58 int ret = write( fd, buf, len ); local
59 if (ret < 0) {
64 if (ret == 0)
67 total += ret;
[all...]
H A Dstrdup8to16.c45 char16_t *ret; local
57 ret = (char16_t *) malloc (sizeof(char16_t) * len);
59 return strcpy8to16 (ret, s, out_len);
114 uint32_t ret; local
130 ret = (**pUtf8Ptr) & leaderMask [seq_len - 1];
132 if (**pUtf8Ptr == '\0') return ret;
139 UTF8_SHIFT_AND_MASK(ret, **pUtf8Ptr);
142 return ret;
157 uint32_t ret; local
159 ret
194 uint32_t ret; local
[all...]
H A Dpartition_utils.c27 int i, ret; local
29 ret = 1;
32 ret = 0;
36 return ret;
42 int fd, ret, wiped; local
48 ret = read(fd, buf, sizeof(buf));
51 if (ret != sizeof(buf)) {
H A Drecord_stream.c47 RecordStream *ret; local
51 ret = (RecordStream *)calloc(1, sizeof(RecordStream));
53 ret->fd = fd;
54 ret->maxRecordLen = maxRecordLen;
55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE);
57 ret->unconsumed = ret->buffer;
58 ret->read_end = ret->buffer;
59 ret
130 void *ret; local
[all...]
H A Dabort_socket.c62 int ret; local
65 ret = connect(s->fd, addr, addrlen);
66 } while (ret && errno == EINTR);
68 if (ret && errno == EINPROGRESS) {
81 ret = poll(pfd, 2, timeout);
82 } while (ret < 0 && errno == EINTR);
84 if (ret < 0)
86 else if (ret == 0) {
101 retlen = sizeof(ret);
102 if (getsockopt(s->fd, SOL_SOCKET, SO_ERROR, &ret,
122 int ret; local
167 int ret; local
213 int ret; local
258 int ret; local
[all...]
/system/core/toolbox/
H A Drmdir.c15 int ret; local
21 ret = rmdir(argv[0]);
22 if(ret < 0) {
24 return ret;
H A Dln.c15 int ret; local
27 ret = symlink(argv[1], argv[2]);
29 ret = link(argv[1], argv[2]);
31 if(ret < 0)
33 return ret;
H A Ddmesg.c15 ssize_t ret; local
31 while((ret = write(STDOUT_FILENO, p, n))) {
32 if (ret == -1) {
38 p += ret;
39 n -= ret;
H A Dreboot.c9 int ret; local
47 ret = android_reboot(ANDROID_RB_POWEROFF, flags, 0);
49 ret = android_reboot(ANDROID_RB_RESTART2, flags, argv[optind]);
51 ret = android_reboot(ANDROID_RB_RESTART, flags, 0);
52 if(ret < 0) {
/system/extras/tests/bionic/libc/bionic/
H A Dtest_getgrouplist.c39 int ret; local
45 ret = getgrouplist( TEST_USER, TEST_GROUP, groups, &count );
46 if (ret != 1) {
48 ret, count);
/system/core/libion/
H A Dion.c48 int ret = ioctl(fd, req, arg); local
49 if (ret < 0) {
51 ret, strerror(errno));
54 return ret;
60 int ret; local
68 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data);
69 if (ret < 0)
70 return ret;
72 return ret;
90 int ret local
113 int ret = ion_ioctl(fd, ION_IOC_SHARE, &data); local
127 int ret; local
143 int ret = ion_ioctl(fd, ION_IOC_IMPORT, &data); local
[all...]
/system/extras/tests/bionic/libc/common/
H A Dtest_gethostname.c37 int ret; local
39 ret = gethostname(hostname, sizeof(hostname));
40 if (ret < 0) {
H A Dtest_getaddrinfo.c20 int ret; local
23 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, NULL, &res);
24 if (ret != 0) {
25 printf("first getaddrinfo returned error: %s\n", gai_strerror(ret));
37 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, &hints, &res );
38 if (ret != 0) {
39 printf("second getaddrinfo returned error: %s\n", gai_strerror(ret));
H A Dtest_libgen.c13 char* ret; local
22 ret = basename(input);
24 if (ret != NULL) {
27 _input, ret);
39 if (ret == NULL) {
44 else if (strcmp(ret, _expected)) {
46 _input, ret, _expected);
50 _input, ret );
60 int ret; local
62 ret
93 int ret; local
129 char* ret; local
[all...]
/system/extras/ext4_utils/
H A Dwipe.c36 int ret; local
40 ret = ioctl(fd, BLKSECDISCARD, &range);
41 if (ret < 0) {
44 ret = ioctl(fd, BLKDISCARD, &range);
45 if (ret < 0) {
/system/core/adb/
H A Dadb_auth_client.c55 int ret; local
75 ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
76 if (ret != sizeof(key->key)) {
77 D("%s: Invalid base64 data ret=%d\n", file, ret);
124 int ret; local
130 ret = fread(token, token_size, 1, f);
133 return ret * token_size;
140 int ret; local
147 ret
159 int ret; local
178 int ret; local
226 int fd, ret; local
[all...]
/system/core/libsparse/
H A Dsparse_read.c102 int ret; local
114 ret = sparse_file_add_fd(s, fd, offset, len, block);
115 if (ret < 0) {
116 return ret;
122 ret = read_all(fd, copybuf, chunk);
123 if (ret < 0) {
124 return ret;
139 int ret; local
150 ret = read_all(fd, &fill_val, sizeof(fill_val));
151 if (ret <
180 int ret; local
207 int ret; local
229 int ret; local
279 int ret; local
361 int ret; local
425 int ret; local
483 int ret; local
[all...]
H A Doutput_file.c135 off64_t ret; local
138 ret = lseek64(outn->fd, cnt, SEEK_CUR);
139 if (ret < 0) {
148 int ret; local
151 ret = ftruncate64(outn->fd, len);
152 if (ret < 0) {
161 int ret; local
164 ret = write(outn->fd, data, len);
165 if (ret < 0) {
168 } else if (ret < le
207 off64_t ret; local
220 off64_t ret; local
244 int ret; local
284 int ret; local
305 int ret; local
329 int ret; local
351 int ret, chunk; local
379 int ret; local
415 int ret; local
454 int ret; local
487 int ret; local
505 int ret; local
546 int ret; local
555 int ret; local
645 int ret; local
670 int ret; local
706 int ret; local
755 int ret; local
[all...]
/system/extras/fatblock/
H A Dfatblock.c37 int ret; local
39 ret = fs_init(fs, cluster_size, data_size, total_size_out);
40 if (ret)
41 return ret;
43 ret = import_tree(fs, ".");
44 if (ret)
45 return ret;
155 int ret; local
169 ret = chdir(path);
170 if (ret <
[all...]
/system/core/init/
H A Dwatchdogd.c32 int ret; local
56 ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
57 if (ret) {
59 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
60 if (ret) {

Completed in 127 milliseconds

123456