Searched defs:ret (Results 1 - 25 of 131) 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/bluetooth/tools/
H A Dsock_shutdown_bug_l2cap.c28 int ret; local
H A Dsock_shutdown_bug_rfcomm.c29 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 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/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 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 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 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) {
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) {
/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) {
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/netd/
H A Doem_iptables_hook.cpp56 int ret = system(OEM_SCRIPT_PATH); local
57 if ((-1 == ret) || (0 != WEXITSTATUS(ret))) {

Completed in 140 milliseconds

123456