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

12345

/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_earlysuspend.c42 int ret; local
46 ret = write(sPowerStatefd, pwr_state_mem, strlen(pwr_state_mem));
47 if (ret < 0) {
58 return ret;
64 int ret; local
68 ret = write(sPowerStatefd, pwr_state_on, strlen(pwr_state_on));
69 if (ret < 0) {
80 return ret;
91 int ret; local
93 ret
[all...]
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...]
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
/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) {
H A Dsock_shutdown_test.c68 int ret; local
102 ret = socket(family, typ, protocol);
103 printf("%d: socket() = %d\n", gettid(), ret);
104 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno));
106 return ret;
110 int ret; local
113 ret = close(fd);
114 printf("%d: close(%d) = %d\n", gettid(), fd, ret);
115 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno));
117 return ret;
122 int ret; local
158 int ret; local
169 int ret; local
208 int ret; local
[all...]
/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/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/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
67 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data);
68 if (ret < 0)
69 return ret;
71 return ret;
89 int ret local
112 int ret = ion_ioctl(fd, ION_IOC_SHARE, &data); local
129 int ret = ion_ioctl(fd, ION_IOC_IMPORT, &data); 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) {
H A Dsimg2img.c47 int ret; local
51 ret = read(fd, ptr, len - total);
53 if (ret < 0)
54 return ret;
56 if (ret == 0)
59 ptr += ret;
60 total += ret;
69 int ret; local
73 ret = write(fd, ptr, len - total);
75 if (ret <
91 int ret; local
118 int ret; local
160 int ret; local
186 int ret; local
[all...]
/system/netd/
H A DSoftapController.cpp66 int i, j, ret;
73 if ((ret = ioctl(mSock, SIOCGIWPRIV, &wrq)) < 0) {
74 ALOGE("SIOCGIPRIV failed: %d", ret);
75 return ret;
113 ret = ioctl(mSock, cmd, &wrq);
114 return ret;
119 int ret; local
131 ret = setCommand(iface, "START");
132 if (ret < 0) {
133 ALOGE("Softap driver start: %d", ret);
147 int ret; local
173 int ret = 0; local
217 int ret; local
270 int ret = 0, i = 0, fd; local
418 int ret, i = 0; local
459 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...]

Completed in 4162 milliseconds

12345