Statistics
| Branch: | Revision:

ffmpeg / libavformat / os_support.c @ 4dcde00c

History | View | Annotate | Download (8.5 KB)

# Date Author Comment
2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

9ac2085d 02/15/2011 05:11 PM Max Shakhmetov

os_support: fix poll() implementation

Our poll implementation does not iterate over the pollfd array properly
while setting the revents.

Signed-off-by: Luca Barbato <>

362d8f7d 01/28/2011 05:23 PM Mans Rullgard

os_support: make poll() fallbacks conditional on CONFIG_NETWORK

poll() is only used by networking code, so the fallback should
only be built if networking is enabled. Also remove CONFIG_FFSERVER
condition from the declarations.

This should fix building on systems without poll(), broken...

a8475bbd 01/28/2011 02:45 PM Luca Barbato

os: replace select with poll

Select has limitations on the fd values it could accept and silently
breaks when it is reached.

7fddac93 07/06/2010 11:42 AM Måns Rullgård

os_support: include some headers only when needed

Originally committed as revision 24072 to svn://svn.ffmpeg.org/ffmpeg/trunk

22f73dcc 03/08/2010 06:43 PM Måns Rullgård

Move resolve_host() to ffserver.c

This deprecated function is only used by ffserver, yet does not have
a 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....

38c3b6e7 03/07/2010 07:49 PM David Conrad

inet_aton needs _DARWIN_C_SOURCE on OS X

Originally committed as revision 22285 to svn://svn.ffmpeg.org/ffmpeg/trunk

ac11d562 03/07/2010 07:48 PM David Conrad

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

a34fc5e2 02/28/2010 10:31 PM Reimar Döffinger

Make our getaddrinfo implementation initialize "struct addrinfo" return
value to NULL on errors.

Originally committed as revision 22122 to svn://svn.ffmpeg.org/ffmpeg/trunk

04a2b04b 02/08/2010 06:48 PM Ronald S. Bultje

Implement gai_strerror() for systems lacking such functionality. Patch
by KO Myung-Hun <komh challion net>.

Originally committed as revision 21692 to svn://svn.ffmpeg.org/ffmpeg/trunk

6023d84a 01/25/2010 01:28 AM Martin Storsjö

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

5d629b72 01/11/2010 05:45 PM Martin Storsjö

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

fa053ca7 01/11/2010 05:27 PM Martin Storsjö

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

7e43f74a 01/11/2010 05:14 PM Ronald S. Bultje

Use getaddrinfo(), if available, in resolve_host(). Patch by Martin
Storsjö <$firstname()$firstname,st>.

Originally committed as revision 21143 to svn://svn.ffmpeg.org/ffmpeg/trunk

b827f4eb 01/08/2010 12:04 AM Martin Storsjö

Currently, the replacement which is used if inet_aton isn't available,
only works correctly on little-endian. The attached patch makes it endian
independent.

Patch by Martin Storsjö <$firstname()$firstname,st>.

Originally committed as revision 21080 to svn://svn.ffmpeg.org/ffmpeg/trunk

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

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

e748e34d 08/16/2008 06:39 PM Dave Yeo

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

a964e813 08/14/2008 10:36 PM Aurelien Jacobs

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

7246177d 08/14/2008 10:01 PM Aurelien Jacobs

ensure we get explicit definition of various _XOPEN_SOURCE functions we use

Originally committed as revision 14766 to svn://svn.ffmpeg.org/ffmpeg/trunk

f8cda19e 02/13/2008 12:51 PM Luca Abeni

Include poll.h instead of sys/poll.h

Originally committed as revision 11924 to svn://svn.ffmpeg.org/ffmpeg/trunk

81644c2e 12/27/2007 01:38 AM Michael Kostylev

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

72d6b1bf 12/09/2007 02:39 PM Tom Harper

Fix compilation of os_support.c for MinGW with --disable-network
Patch by Tom Harper <d.thomas.harper <at> gmail.com>

Originally committed as revision 11200 to svn://svn.ffmpeg.org/ffmpeg/trunk

087b3272 11/21/2007 04:33 PM Luca Abeni

Include os_support.h only when needed

Originally committed as revision 11073 to svn://svn.ffmpeg.org/ffmpeg/trunk

6ff3f3e7 08/08/2007 07:18 PM Ramiro Polla

Check for winsock2.h instead of MINGW32

Originally committed as revision 9988 to svn://svn.ffmpeg.org/ffmpeg/trunk

d72e7d0f 07/19/2007 10:48 AM Benoit Fouet

use sscanf to parse address

Originally committed as revision 9756 to svn://svn.ffmpeg.org/ffmpeg/trunk

109d30e9 07/18/2007 11:56 AM Benoit Fouet

remove useless check

Originally committed as revision 9733 to svn://svn.ffmpeg.org/ffmpeg/trunk

104d0418 07/18/2007 07:57 AM Joakim Plate

fix emulated inet_aton so that it fails for invalid addresses
patch by elupus: \elupus ecce se/
original thread:
[FFmpeg-devel] [PATCH] emulated inet_aton doesn't fail for invalidaddresses
date: 07/15/2007 12:40 AM

Originally committed as revision 9731 to svn://svn.ffmpeg.org/ffmpeg/trunk

1fc44ed6 07/16/2007 08:30 PM Ramiro Polla

MinGW has those include files.

Originally committed as revision 9707 to svn://svn.ffmpeg.org/ffmpeg/trunk

82e4ac2c 07/16/2007 08:28 PM Ramiro Polla

Move av_gettime() back to lavf/utils.c

Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk

c993a831 07/16/2007 08:27 PM Ramiro Polla

MinGW has gettimeofday() since mingw-runtime-3.10

Originally committed as revision 9705 to svn://svn.ffmpeg.org/ffmpeg/trunk

7c37e504 07/10/2007 09:52 PM Ramiro Polla

Remove OS/2 support

Originally committed as revision 9586 to svn://svn.ffmpeg.org/ffmpeg/trunk

45c10110 06/25/2007 04:18 PM Ramiro Polla

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

3e2e29fb 05/21/2007 04:08 PM Alex Beregszaszi

r9095 invalidly removed the check for non-winsock

Originally committed as revision 9096 to svn://svn.ffmpeg.org/ffmpeg/trunk

7235183d 05/21/2007 03:54 PM Alex Beregszaszi

fix FD_SETSIZE handling in our poll() emulation

Originally committed as revision 9095 to svn://svn.ffmpeg.org/ffmpeg/trunk

5676d140 05/15/2007 02:58 PM Alex Beregszaszi

initial mingw networking support

Originally committed as revision 9029 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba472aaf 04/27/2007 12:41 AM Alex Beregszaszi

implement ff_socket_nonblock and use it in networking code

Originally committed as revision 8846 to svn://svn.ffmpeg.org/ffmpeg/trunk

4ee10633 04/26/2007 07:27 PM Diego Biurrun

cosmetics: Remove trailing whitespace and tabs.

Originally committed as revision 8838 to svn://svn.ffmpeg.org/ffmpeg/trunk

383eda23 04/26/2007 06:04 PM Alex Beregszaszi

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

61bc79ec 04/20/2007 11:45 PM Alex Beregszaszi

remove possibly broken wince cruft

Originally committed as revision 8763 to svn://svn.ffmpeg.org/ffmpeg/trunk

c9fdab0d 03/23/2007 10:01 PM François Revol

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

457b101e 02/15/2007 03:39 PM François Revol

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

36c07acd 02/15/2007 01:32 PM François Revol

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

b0c858d8 02/15/2007 07:44 AM François Revol

poll() emulation for BeOS, and maybe MinGW.

Originally committed as revision 7987 to svn://svn.ffmpeg.org/ffmpeg/trunk

8da9266c 12/06/2006 11:46 PM Måns Rullgård

use the standard INT64_C() macro for 64-bit constants

Originally committed as revision 7240 to svn://svn.ffmpeg.org/ffmpeg/trunk

eaa53b95 11/15/2006 01:11 AM Diego Biurrun

MinGW compilation fix, inet_aton and #includes depend on networking support.

Originally committed as revision 7081 to svn://svn.ffmpeg.org/ffmpeg/trunk

54eb77c0 11/14/2006 09:31 PM Diego Biurrun

Move BeOS-specific code into os_support.c.

Originally committed as revision 7071 to svn://svn.ffmpeg.org/ffmpeg/trunk

fa28bc16 11/14/2006 03:42 AM Måns Rullgård

simplify

Originally committed as revision 7048 to svn://svn.ffmpeg.org/ffmpeg/trunk

b78e7197 10/07/2006 03:30 PM Diego Biurrun

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

2f30a81d 07/11/2006 09:45 PM Diego Biurrun

CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use just
CONFIG_MINGW or MINGW32 instead.

Originally committed as revision 5718 to svn://svn.ffmpeg.org/ffmpeg/trunk

fdc7b570 01/23/2006 12:57 AM Diego Biurrun

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

ac44871c 01/22/2006 06:34 PM Gildas Bazin

WinCE cross-compilation support
patch by Gildas Bazin < gbazin @** altern **. org >

Originally committed as revision 4881 to svn://svn.ffmpeg.org/ffmpeg/trunk

5509bffa 01/12/2006 10:43 PM Diego Biurrun

Update licensing information: The FSF changed postal address.

Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk

115329f1 12/17/2005 06:14 PM Diego Biurrun

COSMETICS: Remove all trailing whitespace.

Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk

f6506a54 11/09/2004 05:27 PM Michael Niedermayer

doxy

Originally committed as revision 3664 to svn://svn.ffmpeg.org/ffmpeg/trunk

2a86d50b 04/24/2004 11:51 AM Sascha Sommer

cygwin patch by ("Sascha Sommer" <saschasommer at freenet dot de>)

Originally committed as revision 3053 to svn://svn.ffmpeg.org/ffmpeg/trunk

17c22f57 04/12/2004 10:54 PM Steven M. Schultz

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

f71869a4 09/08/2003 09:20 PM Fabrice Bellard

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