:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / ws2_32 / misc / bsd.c
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS WinSock 2 DLL
4  * FILE:        misc/bsd.c
5  * PURPOSE:     Legacy BSD sockets APIs
6  * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
7  * REVISIONS:
8  *   CSH 15/06-2001 Created
9  */
10 #include <ws2_32.h>
11
12 ULONG
13 EXPORT
14 htonl(
15   IN  ULONG hostlong)
16 {
17   return DH2N(hostlong);
18 }
19
20 USHORT
21 EXPORT
22 htons(
23   IN  USHORT hostshort)
24 {
25   return WH2N(hostshort);
26 }
27
28 ULONG
29 EXPORT
30 ntohl(
31   IN  ULONG netlong)
32 {
33   return DN2H(netlong);
34 }
35
36 USHORT
37 EXPORT
38 ntohs(
39   IN  USHORT netshort)
40 {
41   return WN2H(netshort);
42 }
43
44 /* EOF */