/system/extras/tests/bionic/libc/common/ |
H A D | test_gethostname.c | 37 int ret; local 39 ret = gethostname(hostname, sizeof(hostname)); 40 if (ret < 0) {
|
H A D | test_getaddrinfo.c | 20 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 D | test_gethostbyname.c | 40 int i, ret; local
|
/system/extras/tests/bionic/libc/other/ |
H A D | test_sysconf.c | 36 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 D | ion_test_fixture.cpp | 49 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 D | rmmod.c | 13 int ret, i; local 44 ret = delete_module(modname, O_NONBLOCK | O_EXCL); 45 if (ret != 0) {
|
H A D | mkdir.c | 18 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 D | setkey.c | 38 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 D | wipe.c | 38 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 D | test_getgrouplist.c | 39 int ret; local 45 ret = getgrouplist( TEST_USER, TEST_GROUP, groups, &count ); 46 if (ret != 1) { 48 ret, count);
|
/system/core/init/ |
H A D | watchdogd.c | 32 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 D | keychords.c | 67 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 D | partition_utils.c | 28 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 D | socket_inaddr_any_server.c | 57 int ret; local 59 ret = listen(s, LISTEN_BACKLOG); 61 if (ret < 0) {
|
H A D | socket_loopback_server.c | 57 int ret; local 59 ret = listen(s, LISTEN_BACKLOG); 61 if (ret < 0) {
|
/system/core/liblog/ |
H A D | uio.c | 31 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 D | simg2img.c | 43 int ret; local 76 ret = sparse_file_write(s, out, false, false, false); 77 if (ret < 0) {
|
/system/core/libsuspend/ |
H A D | autosuspend.c | 68 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 D | FrameworkClient.cpp | 17 int ret; local 24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1)); 25 if (ret < 0) {
|
/system/core/reboot/ |
H A D | reboot.c | 26 int ret; local 66 ret = property_set(ANDROID_RB_PROPERTY, property_val); 67 if(ret < 0) {
|
/system/security/keystore/ |
H A D | keystore_get.cpp | 34 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 D | test_track_devices.c | 55 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 D | test_track_jdwp.c | 55 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 D | config.c | 83 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 D | UnwindMap.cpp | 88 int ret; local 89 while ((ret = unw_map_local_cursor_get_next(&map_cursor_, &unw_map)) > 0) { 103 if (ret != -UNW_EINVAL) {
|