Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bc85fb4c
Commit
bc85fb4c
authored
Dec 22, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Added implementation for inet_ntop.
parent
866240d4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
0 deletions
+31
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
socket.c
dlls/ws2_32/socket.c
+24
-0
ws2_32.spec
dlls/ws2_32/ws2_32.spec
+1
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
bc85fb4c
...
@@ -17792,6 +17792,7 @@ esac
...
@@ -17792,6 +17792,7 @@ esac
for
ac_func
in
\
for
ac_func
in
\
_pclose
\
_pclose
\
_popen
\
_popen
\
...
@@ -17824,6 +17825,7 @@ for ac_func in \
...
@@ -17824,6 +17825,7 @@ for ac_func in \
gettid
\
gettid
\
gettimeofday
\
gettimeofday
\
getuid
\
getuid
\
inet_ntop
\
inet_pton
\
inet_pton
\
kqueue
\
kqueue
\
lstat
\
lstat
\
...
...
configure.ac
View file @
bc85fb4c
...
@@ -1387,6 +1387,7 @@ AC_CHECK_FUNCS(\
...
@@ -1387,6 +1387,7 @@ AC_CHECK_FUNCS(\
gettid \
gettid \
gettimeofday \
gettimeofday \
getuid \
getuid \
inet_ntop \
inet_pton \
inet_pton \
kqueue \
kqueue \
lstat \
lstat \
...
...
dlls/ws2_32/socket.c
View file @
bc85fb4c
...
@@ -4555,6 +4555,30 @@ int WINAPI WSARemoveServiceClass(LPGUID info)
...
@@ -4555,6 +4555,30 @@ int WINAPI WSARemoveServiceClass(LPGUID info)
}
}
/***********************************************************************
/***********************************************************************
* inet_ntop (WS2_32.@)
*/
PCSTR
WINAPI
WS_inet_ntop
(
INT
family
,
PVOID
addr
,
PSTR
buffer
,
size_t
len
)
{
#ifdef HAVE_INET_NTOP
union
generic_unix_sockaddr
unix_addr
;
switch
(
family
)
{
case
WS_AF_INET
:
ws_sockaddr_ws2u
(
addr
,
sizeof
(
struct
WS_sockaddr_in
),
&
unix_addr
);
return
inet_ntop
(
AF_INET
,
&
unix_addr
,
buffer
,
len
);
case
WS_AF_INET6
:
ws_sockaddr_ws2u
(
addr
,
sizeof
(
struct
WS_sockaddr_in6
),
&
unix_addr
);
return
inet_ntop
(
AF_INET6
,
&
unix_addr
,
buffer
,
len
);
}
#else
FIXME
(
"not supported on this platform
\n
"
);
#endif
WSASetLastError
(
WSAEAFNOSUPPORT
);
return
NULL
;
}
/***********************************************************************
* WSAStringToAddressA (WS2_32.80)
* WSAStringToAddressA (WS2_32.80)
*/
*/
INT
WINAPI
WSAStringToAddressA
(
LPSTR
AddressString
,
INT
WINAPI
WSAStringToAddressA
(
LPSTR
AddressString
,
...
...
dlls/ws2_32/ws2_32.spec
View file @
bc85fb4c
...
@@ -117,3 +117,4 @@
...
@@ -117,3 +117,4 @@
@ stdcall freeaddrinfo(ptr) WS_freeaddrinfo
@ stdcall freeaddrinfo(ptr) WS_freeaddrinfo
@ stdcall getaddrinfo(str str ptr ptr) WS_getaddrinfo
@ stdcall getaddrinfo(str str ptr ptr) WS_getaddrinfo
@ stdcall getnameinfo(ptr long ptr long ptr long long) WS_getnameinfo
@ stdcall getnameinfo(ptr long ptr long ptr long long) WS_getnameinfo
@ stdcall inet_ntop(long ptr ptr long) WS_inet_ntop
include/config.h.in
View file @
bc85fb4c
...
@@ -249,6 +249,9 @@
...
@@ -249,6 +249,9 @@
/* Define to 1 if you have the `inet_network' function. */
/* Define to 1 if you have the `inet_network' function. */
#undef HAVE_INET_NETWORK
#undef HAVE_INET_NETWORK
/* Define to 1 if you have the `inet_ntop' function. */
#undef HAVE_INET_NTOP
/* Define to 1 if you have the `inet_pton' function. */
/* Define to 1 if you have the `inet_pton' function. */
#undef HAVE_INET_PTON
#undef HAVE_INET_PTON
...
...
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