reactos/dll/win32/ws2_32/misc/bsd.c
Amine Khaldi c424146e2c Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
2010-07-24 18:52:44 +00:00

56 lines
686 B
C

/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS WinSock 2 DLL
* FILE: misc/bsd.c
* PURPOSE: Legacy BSD sockets APIs
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
* REVISIONS:
* CSH 15/06-2001 Created
*/
#include <ws2_32.h>
/*
* @implemented
*/
ULONG
EXPORT
htonl(IN ULONG hostlong)
{
return DH2N(hostlong);
}
/*
* @implemented
*/
USHORT
EXPORT
htons(IN USHORT hostshort)
{
return WH2N(hostshort);
}
/*
* @implemented
*/
ULONG
EXPORT
ntohl(IN ULONG netlong)
{
return DN2H(netlong);
}
/*
* @implemented
*/
USHORT
EXPORT
ntohs(IN USHORT netshort)
{
return WN2H(netshort);
}
/* EOF */