History | View | Annotate | Download (8.5 KB)
os_support: fix poll() implementation
Our poll implementation does not iterate over the pollfd array properlywhile setting the revents.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
os_support: make poll() fallbacks conditional on CONFIG_NETWORK
poll() is only used by networking code, so the fallback shouldonly be built if networking is enabled. Also remove CONFIG_FFSERVERcondition from the declarations.
This should fix building on systems without poll(), broken...
os: replace select with poll
Select has limitations on the fd values it could accept and silentlybreaks when it is reached.
os_support: include some headers only when needed
Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move resolve_host() to ffserver.c
This deprecated function is only used by ffserver, yet does not havea prototype visible there.
In the long term, ffserver should be made IPv6-aware. In the meantime,this change removes cruft from lavf and fixes some warnings in ffserver....
inet_aton needs _DARWIN_C_SOURCE on OS X
Originally committed as revision 22285 to svn://svn.ffmpeg.org/ffmpeg/trunk
Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.c
Originally committed as revision 22284 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make our getaddrinfo implementation initialize "struct addrinfo" returnvalue to NULL on errors.
Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk
Implement gai_strerror() for systems lacking such functionality. Patchby KO Myung-Hun <komh challion net>.
Originally committed as revision 21692 to svn://svn.ffmpeg.org/ffmpeg/trunk
Load the proper getaddrinfo functions from ws2_32.dll, if they're present.
Patch by Martin Storsjö <martin at martin dot st>.
Originally committed as revision 21443 to svn://svn.ffmpeg.org/ffmpeg/trunk
Provide a fallback for getnameinfo() also. Patch by Martin Storsjö<$firstname()$firstname,st>.
Originally committed as revision 21150 to svn://svn.ffmpeg.org/ffmpeg/trunk
Provide fallback implementations of getaddrinfo() and freeaddrinfo().Patch by Martin Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21145 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use getaddrinfo(), if available, in resolve_host(). Patch by MartinStorsjö <$firstname()$firstname,st>.
Originally committed as revision 21143 to svn://svn.ffmpeg.org/ffmpeg/trunk
Currently, the replacement which is used if inet_aton isn't available,only works correctly on little-endian. The attached patch makes it endianindependent.
Patch by Martin Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21080 to svn://svn.ffmpeg.org/ffmpeg/trunk
Change semantic of CONFIG_*, HAVE_* and ARCH_*.They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
struct timeval requires #include <sys/time.h>patch by Dave Yeo daveryeo at telus dot net
Originally committed as revision 14793 to svn://svn.ffmpeg.org/ffmpeg/trunk
use h_addr_list0 instead of h_addr as this is the posix hostent field name
Originally committed as revision 14768 to svn://svn.ffmpeg.org/ffmpeg/trunk
ensure we get explicit definition of various _XOPEN_SOURCE functions we use
Originally committed as revision 14766 to svn://svn.ffmpeg.org/ffmpeg/trunk
Include poll.h instead of sys/poll.h
Originally committed as revision 11924 to svn://svn.ffmpeg.org/ffmpeg/trunk
Check for the presence of sys/select.h and conditionally #include it.patch by Michael Kostylev, mik niipt ru
Originally committed as revision 11324 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix compilation of os_support.c for MinGW with --disable-networkPatch by Tom Harper <d.thomas.harper <at> gmail.com>
Originally committed as revision 11200 to svn://svn.ffmpeg.org/ffmpeg/trunk
Include os_support.h only when needed
Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk
Check for winsock2.h instead of MINGW32
Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk
use sscanf to parse address
Originally committed as revision 9756 to svn://svn.ffmpeg.org/ffmpeg/trunk
remove useless check
Originally committed as revision 9733 to svn://svn.ffmpeg.org/ffmpeg/trunk
fix emulated inet_aton so that it fails for invalid addressespatch by elupus: \elupus ecce se/original thread:[FFmpeg-devel] [PATCH] emulated inet_aton doesn't fail for invalidaddressesdate: 07/15/2007 12:40 AM
Originally committed as revision 9731 to svn://svn.ffmpeg.org/ffmpeg/trunk
MinGW has those include files.
Originally committed as revision 9707 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move av_gettime() back to lavf/utils.c
Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk
MinGW has gettimeofday() since mingw-runtime-3.10
Originally committed as revision 9705 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove OS/2 support
Originally committed as revision 9586 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove localtime_r implementation for systems that don't have it.It is no longer used.
Originally committed as revision 9425 to svn://svn.ffmpeg.org/ffmpeg/trunk
r9095 invalidly removed the check for non-winsock
Originally committed as revision 9096 to svn://svn.ffmpeg.org/ffmpeg/trunk
fix FD_SETSIZE handling in our poll() emulation
Originally committed as revision 9095 to svn://svn.ffmpeg.org/ffmpeg/trunk
initial mingw networking support
Originally committed as revision 9029 to svn://svn.ffmpeg.org/ffmpeg/trunk
implement ff_socket_nonblock and use it in networking code
Originally committed as revision 8846 to svn://svn.ffmpeg.org/ffmpeg/trunk
cosmetics: Remove trailing whitespace and tabs.
Originally committed as revision 8838 to svn://svn.ffmpeg.org/ffmpeg/trunk
move resolve_host from tcp.c to os_support.c as it is used widely
Originally committed as revision 8834 to svn://svn.ffmpeg.org/ffmpeg/trunk
remove possibly broken wince cruft
Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk
Some more BeOS cleanup: check for arpa/inet.h; declare the prototype for inet_aton if not found; remove barpainet.h as it's not longer needed.
Originally committed as revision 8488 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make sure we don't try to emulate poll() when it's there if --disable-ffserver... 10l
Originally committed as revision 7991 to svn://svn.ffmpeg.org/ffmpeg/trunk
MinGW patch by <koyama AT infocity DOT co DOT jp>, reworked. Removed placeholder for winsock.
Originally committed as revision 7990 to svn://svn.ffmpeg.org/ffmpeg/trunk
poll() emulation for BeOS, and maybe MinGW.
Originally committed as revision 7987 to svn://svn.ffmpeg.org/ffmpeg/trunk
use the standard INT64_C() macro for 64-bit constants
Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk
MinGW compilation fix, inet_aton and #includes depend on networking support.
Originally committed as revision 7081 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move BeOS-specific code into os_support.c.
Originally committed as revision 7071 to svn://svn.ffmpeg.org/ffmpeg/trunk
simplify
Originally committed as revision 7048 to svn://svn.ffmpeg.org/ffmpeg/trunk
Change license headers to say 'FFmpeg' instead of 'this program/this library'and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use justCONFIG_MINGW or MINGW32 instead.
Originally committed as revision 5718 to svn://svn.ffmpeg.org/ffmpeg/trunk
Skip all includes for WinCE, instead of falling through to the #else case.
Originally committed as revision 4884 to svn://svn.ffmpeg.org/ffmpeg/trunk
WinCE cross-compilation supportpatch by Gildas Bazin < gbazin @** altern **. org >
Originally committed as revision 4881 to svn://svn.ffmpeg.org/ffmpeg/trunk
Update licensing information: The FSF changed postal address.
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
COSMETICS: Remove all trailing whitespace.
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
doxy
Originally committed as revision 3664 to svn://svn.ffmpeg.org/ffmpeg/trunk
cygwin patch by ("Sascha Sommer" <saschasommer at freenet dot de>)
Originally committed as revision 3053 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/os_support.c HAVE_LOCALTIME_R patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)
Originally committed as revision 3009 to svn://svn.ffmpeg.org/ffmpeg/trunk
simpler strptime - added os_support.[ch] - moved localtime_r to os_support.c
Originally committed as revision 2228 to svn://svn.ffmpeg.org/ffmpeg/trunk