Sync to trunk r65566.
[reactos.git] / dll / win32 / 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
11 #include "ws2_32.h"
12
13 /*
14 * @implemented
15 */
16 ULONG
17 EXPORT
18 htonl(IN ULONG hostlong)
19 {
20 return DH2N(hostlong);
21 }
22
23
24 /*
25 * @implemented
26 */
27 USHORT
28 EXPORT
29 htons(IN USHORT hostshort)
30 {
31 return WH2N(hostshort);
32 }
33
34
35 /*
36 * @implemented
37 */
38 ULONG
39 EXPORT
40 ntohl(IN ULONG netlong)
41 {
42 return DN2H(netlong);
43 }
44
45
46 /*
47 * @implemented
48 */
49 USHORT
50 EXPORT
51 ntohs(IN USHORT netshort)
52 {
53 return WN2H(netshort);
54 }
55
56 /* EOF */