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

123456

/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/toolbox/
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 Drmdir.c15 int ret; local
21 ret = rmdir(argv[0]);
22 if(ret < 0) {
24 return ret;
H A Drmmod.c13 int ret, i; local
44 ret = delete_module(modname, O_NONBLOCK | O_EXCL);
45 if (ret != 0) {
H A Dmkdir.c19 int ret; local
60 ret = mkdir(currpath, 0777);
61 if(ret < 0) {
63 return ret;
69 ret = mkdir(argv[0], 0777);
70 if(ret < 0) {
72 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.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/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.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 Dsocket_inaddr_any_server.c59 int ret; local
61 ret = listen(s, LISTEN_BACKLOG);
63 if (ret < 0) {
H A Dsocket_loopback_server.c59 int ret; local
61 ret = listen(s, LISTEN_BACKLOG);
63 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.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...]
/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 Dlog_service.c49 int ret; local
51 ret = unix_read(logfd, entry, LOGGER_ENTRY_MAX_LEN);
52 if (ret < 0) {
58 else if (!ret) {
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" );

Completed in 383 milliseconds

123456