Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
95a84cda
Commit
95a84cda
authored
Apr 28, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove getnameinfo and getaddrinfo wrappers
They weren't thread-safe (and did not support IPv6).
parent
c796d10a
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
547 deletions
+8
-547
configure.ac
configure.ac
+1
-20
include/vlc_network.h
include/vlc_network.h
+0
-26
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+0
-493
src/network/io.c
src/network/io.c
+1
-1
src/network/tcp.c
src/network/tcp.c
+1
-1
src/network/udp.c
src/network/udp.c
+4
-4
src/stream_output/sap.c
src/stream_output/sap.c
+1
-1
No files found.
configure.ac
View file @
95a84cda
...
...
@@ -619,28 +619,9 @@ dnl getaddrinfo, getnameinfo and gai_strerror check
dnl -lnsl and -lsocket are needed on Solaris;
dnl we purposedly make the test fail on Windows
LIBS_save="${LIBS}"
AH_TEMPLATE(HAVE_GETADDRINFO, [Define to 1 if you have the `getaddrinfo' function.])
AC_SEARCH_LIBS([getaddrinfo], [nsl], [AC_DEFINE(HAVE_GETADDRINFO)],, [${SOCKET_LIBS}])
dnl NOTE: we assume getaddrinfo will be present if getnameinfo or gai_strerro
dnl are
LIBS="${LIBS_gai}"
AC_CHECK_FUNCS([getnameinfo gai_strerror])
AC_SEARCH_LIBS([getaddrinfo], [nsl],,, [${SOCKET_LIBS}])
LIBS="${LIBS_save}"
AH_TEMPLATE(HAVE_ADDRINFO, [Define to 1 if <netdb.h> defines `struct addrinfo'.])
AC_CHECK_TYPES([struct addrinfo],[AC_DEFINE(HAVE_ADDRINFO)],,
[#include <sys/types.h>
#if defined( WIN32 ) || defined( UNDER_CE )
# if defined(UNDER_CE) && defined(sockaddr_storage)
# undef sockaddr_storage
# endif
# include <winsock2.h>
# include <ws2tcpip.h>
#else
# include <netdb.h>
#endif])
dnl Check for va_copy
AC_CACHE_CHECK([for va_copy], ac_cv_c_va_copy,
AC_TRY_LINK(
...
...
include/vlc_network.h
View file @
95a84cda
...
...
@@ -221,36 +221,10 @@ VLC_EXPORT (int, vlc_poll, (struct pollfd *fds, unsigned nfds, int timeout));
# endif
# define NI_MAXNUMERICHOST 64
# ifndef NI_NUMERICHOST
# define NI_NUMERICHOST 0x01
# define NI_NUMERICSERV 0x02
# define NI_NOFQDN 0x04
# define NI_NAMEREQD 0x08
# define NI_DGRAM 0x10
# endif
# ifndef HAVE_STRUCT_ADDRINFO
struct
addrinfo
{
int
ai_flags
;
int
ai_family
;
int
ai_socktype
;
int
ai_protocol
;
size_t
ai_addrlen
;
struct
sockaddr
*
ai_addr
;
char
*
ai_canonname
;
struct
addrinfo
*
ai_next
;
};
# define AI_PASSIVE 1
# define AI_CANONNAME 2
# define AI_NUMERICHOST 4
# endif
/* if !HAVE_STRUCT_ADDRINFO */
#ifndef AI_NUMERICSERV
# define AI_NUMERICSERV 0
#endif
VLC_EXPORT
(
const
char
*
,
vlc_gai_strerror
,
(
int
)
);
VLC_EXPORT
(
int
,
vlc_getnameinfo
,
(
const
struct
sockaddr
*
,
int
,
char
*
,
int
,
int
*
,
int
)
);
VLC_EXPORT
(
int
,
vlc_getaddrinfo
,
(
vlc_object_t
*
,
const
char
*
,
int
,
const
struct
addrinfo
*
,
struct
addrinfo
**
)
);
VLC_EXPORT
(
void
,
vlc_freeaddrinfo
,
(
struct
addrinfo
*
)
);
...
...
src/libvlccore.sym
View file @
95a84cda
...
...
@@ -511,7 +511,6 @@ vlc_fourcc_IsYUV
vlc_fourcc_GetRGBFallback
vlc_fourcc_GetYUVFallback
vlc_fourcc_AreUVPlanesSwapped
vlc_gai_strerror
vlc_gc_init
vlc_GetActionId
vlc_getaddrinfo
...
...
src/network/getaddrinfo.c
View file @
95a84cda
This diff is collapsed.
Click to expand it.
src/network/io.c
View file @
95a84cda
...
...
@@ -141,7 +141,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
if
(
i_val
)
{
msg_Err
(
p_this
,
"Cannot resolve %s port %d : %s"
,
psz_host
,
i_port
,
vlc_
gai_strerror
(
i_val
));
gai_strerror
(
i_val
));
return
NULL
;
}
...
...
src/network/tcp.c
View file @
95a84cda
...
...
@@ -142,7 +142,7 @@ int net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
if
(
i_val
)
{
msg_Err
(
p_this
,
"cannot resolve %s port %d : %s"
,
psz_realhost
,
i_realport
,
vlc_
gai_strerror
(
i_val
)
);
i_realport
,
gai_strerror
(
i_val
)
);
return
-
1
;
}
...
...
src/network/udp.c
View file @
95a84cda
...
...
@@ -155,7 +155,7 @@ static int net_ListenSingle (vlc_object_t *obj, const char *host, int port,
if
(
val
)
{
msg_Err
(
obj
,
"Cannot resolve %s port %d : %s"
,
host
,
port
,
vlc_
gai_strerror
(
val
));
gai_strerror
(
val
));
return
-
1
;
}
...
...
@@ -661,7 +661,7 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
if
(
i_val
)
{
msg_Err
(
p_this
,
"cannot resolve [%s]:%d : %s"
,
psz_host
,
i_port
,
vlc_
gai_strerror
(
i_val
)
);
gai_strerror
(
i_val
)
);
return
-
1
;
}
...
...
@@ -764,7 +764,7 @@ int net_OpenDgram( vlc_object_t *obj, const char *psz_bind, int i_bind,
if
(
val
)
{
msg_Err
(
obj
,
"cannot resolve %s port %d : %s"
,
psz_bind
,
i_bind
,
vlc_
gai_strerror
(
val
));
gai_strerror
(
val
));
return
-
1
;
}
...
...
@@ -773,7 +773,7 @@ int net_OpenDgram( vlc_object_t *obj, const char *psz_bind, int i_bind,
if
(
val
)
{
msg_Err
(
obj
,
"cannot resolve %s port %d : %s"
,
psz_bind
,
i_bind
,
vlc_
gai_strerror
(
val
));
gai_strerror
(
val
));
vlc_freeaddrinfo
(
rem
);
return
-
1
;
}
...
...
src/stream_output/sap.c
View file @
95a84cda
...
...
@@ -307,7 +307,7 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
if
(
i
)
{
msg_Err
(
p_sap
,
"%s"
,
vlc_
gai_strerror
(
i
)
);
msg_Err
(
p_sap
,
"%s"
,
gai_strerror
(
i
)
);
return
VLC_EGENERIC
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment