aboutsummaryrefslogtreecommitdiffstats
path: root/sockets.c
Commit message (Collapse)AuthorAgeFilesLines
* Enable sockets.c to compile with GCC 4.4 headersJack Palevich2009-09-151-1/+8
| | | | | | | | | The GCC 4.4 version of netdb.h moves EAI_NODATA behind a __USE_GNU define, because that feature is not part of the POSIX standard for that header. In order to compile sockets.c without error under GCC 4.4 we explicitly define __USE_GNU and explicitly include netdb.h.
* Merge upstream QEMU 10.0.50 into the Android source tree.David 'Digit' Turner2009-09-141-8/+196
| | | | | | | | | | | | | | | | | | | This change integrates many changes from the upstream QEMU sources. Its main purpose is to enable correct ARMv6 and ARMv7 support to the Android emulator. Due to the nature of the upstream code base, this unfortunately also required changes to many other parts of the source. Note that to ensure easier integrations in the future, some source files and directories that have heavy Android-specific customization have been renamed with an -android suffix. The original files are still there for easier integration tracking, but *never* compiled. For example: net.c net-android.c qemu-char.c qemu-char-android.c slirp/ slirp-android/ etc... Tested on linux-x86, darwin-x86 and windows host machines.
* Fix bad zero-termination bug in the socket string formatter.David 'Digit' Turner2009-07-101-6/+9
| | | | | This created, among other things, malformed CONNECT proxy requests, depending on the state of the stack
* Fix one minor crashing bug when -debug-audio is used with the OSS audio backend.David 'Digit' Turner2009-05-201-1/+4
| | | | Moreover, properly set errno to 0 in QSOCKET_CALL macro, to avoid misleading trace messages when -debug-slirp is used
* This fixes sock_address_init_resolv() to properly parse the linked-list ↵David 'Digit' Turner2009-05-141-11/+59
| | | | | | | | | | | | | returned by getaddrinfo(). The previous implementation simply took the first entry, which could be an IPv6 address instead of an IPv4 one in certain OS setups. This created problems when "localhost" resolved to :::1 instead of 127.0.0.1. For example, when implementing inter-emulator telephony or SMS, since the caller would try to connect to localhost:5556, which was resolved to :::1:5556 while the received is listening on 127.0.0.1:5556 Also disable debugging traces that should not be activated. And make the error messages in sockets.c only dumped to the terminal when -debug-socket is active.
* Fix build for platforms where deprecated symbol EAI_NODATA is not defined.Nick Pelly2009-04-241-0/+2
|
* AI 145975: am: CL 145805 Fix a bug in android/console.c that prevented the ↵David Turner2009-04-131-2/+23
| | | | | | | | | | console "redir add" command from working properly Fix a bug in sock_address_init_resolve which caused a crashed when getaddrinfo() returned an error. Original author: digit Merged from: //branches/cupcake/... Automated import of CL 145975
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+1269
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-1269/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-4/+30
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-200/+926
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+68
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+449