mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 11:56:26 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
57 lines
687 B
C
57 lines
687 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 */
|