Searched defs:ret (Results 1 - 25 of 170) sorted by relevance

1234567

/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_gethostbyname.c40 int i, ret; local
/system/extras/tests/bionic/libc/other/
H A Dtest_sysconf.c36 ret = sysconf( _name ); \
37 if (ret < 0 && errno != 0) { \
40 if ( ret _cond ) { \
41 printf( "OK (%d)\n", ret ); \
43 printf( "ERROR: %d does not meet %s\n", ret, #_cond ); \
49 int ret; local
/system/core/libion/tests/
H A Dion_test_fixture.cpp49 int ret; local
50 ret = ion_alloc(fd, 4096, 0, i, 0, &handle);
51 if (ret == 0 && handle != 0) {
59 ASSERT_EQ(-ENODEV, ret);
/system/core/toolbox/
H A Drmmod.c13 int ret, i; local
44 ret = delete_module(modname, O_NONBLOCK | O_EXCL);
45 if (ret != 0) {
H A Dmkdir.c18 int ret; local
59 ret = mkdir(currpath, 0777);
60 if(ret < 0) {
62 return ret;
68 ret = mkdir(argv[0], 0777);
69 if(ret < 0) {
71 return ret;
H A Dsetkey.c38 int c, ret; local
53 ret = ioctl(fd, KDSKBENT, &kbe);
54 if (ret < 0) {
63 ret = ioctl(fd, KDGKBENT, &kbe);
64 if (ret < 0) {
/system/extras/ext4_utils/
H A Dwipe.c38 int ret; local
47 ret = ioctl(fd, BLKSECDISCARD, &range);
48 if (ret < 0) {
51 ret = ioctl(fd, BLKDISCARD, &range);
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/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) {
H A Dkeychords.c67 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);
99 int ret; local
104 ret = read(keychord_fd, &id, sizeof(id));
105 if (ret != sizeof(id)) {
/system/core/libcutils/
H A Dpartition_utils.c28 int i, ret; local
30 ret = 1;
33 ret = 0;
37 return ret;
43 int fd, ret; local
49 ret = read(fd, buf, sizeof(buf));
52 if (ret != sizeof(buf)) {
H A Dsocket_inaddr_any_server.c57 int ret; local
59 ret = listen(s, LISTEN_BACKLOG);
61 if (ret < 0) {
H A Dsocket_loopback_server.c57 int ret; local
59 ret = listen(s, LISTEN_BACKLOG);
61 if (ret < 0) {
/system/core/liblog/
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...]
/system/core/libsparse/
H A Dsimg2img.c43 int ret; local
76 ret = sparse_file_write(s, out, false, false, false);
77 if (ret < 0) {
/system/core/libsuspend/
H A Dautosuspend.c68 int ret; local
70 ret = autosuspend_init();
71 if (ret) {
72 return ret;
81 ret = autosuspend_ops->enable();
82 if (ret) {
83 return ret;
92 int ret; local
94 ret = autosuspend_init();
95 if (ret) {
[all...]
/system/core/libsysutils/src/
H A DFrameworkClient.cpp17 int ret; local
24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));
25 if (ret < 0) {
/system/core/reboot/
H A Dreboot.c26 int ret; local
66 ret = property_set(ANDROID_RB_PROPERTY, property_val);
67 if(ret < 0) {
/system/security/keystore/
H A Dkeystore_get.cpp34 int32_t ret = service->get(String16(key, keyLength), value, &valueLength); local
35 if (ret < 0) {
37 } else if (ret != ::NO_ERROR) {
/system/core/adb/
H A Dtest_track_devices.c55 int ret, s; local
67 ret = connect( s, (struct sockaddr*) &server, sizeof(server) );
68 if (ret < 0) panic( "could not connect to server" );
H A Dtest_track_jdwp.c55 int ret, s; local
67 ret = connect( s, (struct sockaddr*) &server, sizeof(server) );
68 if (ret < 0) panic( "could not connect to server" );
/system/core/fastbootd/
H A Dconfig.c83 int ret; local
89 ret = config_parse_line(line);
90 if (ret < 0) {
102 ssize_t ret; local
127 ret = read(fd, buffer + count, len - count);
128 if (ret < 0 && errno != EINTR) {
132 if (ret == 0) {
137 count += ret;
/system/core/libbacktrace/
H A DUnwindMap.cpp88 int ret; local
89 while ((ret = unw_map_local_cursor_get_next(&map_cursor_, &unw_map)) > 0) {
103 if (ret != -UNW_EINVAL) {

Completed in 9405 milliseconds

1234567