update for HEAD-2003091401
[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 /*
13  * @implemented
14  */
15 ULONG
16 EXPORT
17 htonl(
18   IN  ULONG hostlong)
19 {
20   return DH2N(hostlong);
21 }
22
23
24 /*
25  * @implemented
26  */
27 USHORT
28 EXPORT
29 htons(
30   IN  USHORT hostshort)
31 {
32   return WH2N(hostshort);
33 }
34
35
36 /*
37  * @implemented
38  */
39 ULONG
40 EXPORT
41 ntohl(
42   IN  ULONG netlong)
43 {
44   return DN2H(netlong);
45 }
46
47
48 /*
49  * @implemented
50  */
51 USHORT
52 EXPORT
53 ntohs(
54   IN  USHORT netshort)
55 {
56   return WN2H(netshort);
57 }
58
59 /* EOF */