File tree 22 files changed +98
-96
lines changed
22 files changed +98
-96
lines changed Original file line number Diff line number Diff line change @@ -811,11 +811,11 @@ if(LLVM_LIBC_FULL_BUILD)
811
811
libc.src.dirent.opendir
812
812
libc.src.dirent.readdir
813
813
814
- # network .h entrypoints
815
- libc.src.network .htonl
816
- libc.src.network .htons
817
- libc.src.network .ntohl
818
- libc.src.network .ntohs
814
+ # arpa/inet .h entrypoints
815
+ libc.src.arpa.inet .htonl
816
+ libc.src.arpa.inet .htons
817
+ libc.src.arpa.inet .ntohl
818
+ libc.src.arpa.inet .ntohs
819
819
820
820
# pthread.h entrypoints
821
821
libc.src.pthread.pthread_atfork
Original file line number Diff line number Diff line change @@ -752,11 +752,11 @@ if(LLVM_LIBC_FULL_BUILD)
752
752
libc.src.dirent.opendir
753
753
libc.src.dirent.readdir
754
754
755
- # network .h entrypoints
756
- libc.src.network .htonl
757
- libc.src.network .htons
758
- libc.src.network .ntohl
759
- libc.src.network .ntohs
755
+ # arpa/inet .h entrypoints
756
+ libc.src.arpa.inet .htonl
757
+ libc.src.arpa.inet .htons
758
+ libc.src.arpa.inet .ntohl
759
+ libc.src.arpa.inet .ntohs
760
760
761
761
# pthread.h entrypoints
762
762
libc.src.pthread.pthread_atfork
Original file line number Diff line number Diff line change @@ -895,11 +895,11 @@ if(LLVM_LIBC_FULL_BUILD)
895
895
libc.src.dirent.opendir
896
896
libc.src.dirent.readdir
897
897
898
- # network .h entrypoints
899
- libc.src.network .htonl
900
- libc.src.network .htons
901
- libc.src.network .ntohl
902
- libc.src.network .ntohs
898
+ # arpa/inet .h entrypoints
899
+ libc.src.arpa.inet .htonl
900
+ libc.src.arpa.inet .htons
901
+ libc.src.arpa.inet .ntohl
902
+ libc.src.arpa.inet .ntohs
903
903
904
904
# pthread.h entrypoints
905
905
libc.src.pthread.pthread_atfork
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ if(NOT LLVM_LIBC_FULL_BUILD)
34
34
return ()
35
35
endif ()
36
36
37
+ add_subdirectory (arpa)
37
38
add_subdirectory (assert)
38
39
add_subdirectory (compiler)
39
- add_subdirectory (network )
40
+ add_subdirectory (locale )
40
41
add_subdirectory (search)
41
42
add_subdirectory (setjmp)
42
43
add_subdirectory (signal)
43
44
add_subdirectory (spawn)
44
45
add_subdirectory (threads)
45
- add_subdirectory (locale)
Original file line number Diff line number Diff line change
1
+ add_subdirectory (inet)
File renamed without changes.
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " src/network /htonl.h"
9
+ #include " src/arpa/inet /htonl.h"
10
10
#include " src/__support/common.h"
11
11
#include " src/__support/endian_internal.h"
12
12
#include " src/__support/macros/config.h"
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #ifndef LLVM_LIBC_SRC_NETWORK_HTONL_H
10
- #define LLVM_LIBC_SRC_NETWORK_HTONL_H
9
+ #ifndef LLVM_LIBC_SRC_ARPA_INET_HTONL_H
10
+ #define LLVM_LIBC_SRC_ARPA_INET_HTONL_H
11
11
12
12
#include " src/__support/macros/config.h"
13
13
#include < stdint.h>
@@ -18,4 +18,4 @@ uint32_t htonl(uint32_t hostlong);
18
18
19
19
} // namespace LIBC_NAMESPACE_DECL
20
20
21
- #endif // LLVM_LIBC_SRC_NETWORK_HTONL_H
21
+ #endif // LLVM_LIBC_SRC_ARPA_INET_HTONL_H
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " src/network /htons.h"
9
+ #include " src/arpa/inet /htons.h"
10
10
#include " src/__support/common.h"
11
11
#include " src/__support/endian_internal.h"
12
12
#include " src/__support/macros/config.h"
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #ifndef LLVM_LIBC_SRC_NETWORK_HTONS_H
10
- #define LLVM_LIBC_SRC_NETWORK_HTONS_H
9
+ #ifndef LLVM_LIBC_SRC_ARPA_INET_HTONS_H
10
+ #define LLVM_LIBC_SRC_ARPA_INET_HTONS_H
11
11
12
12
#include " src/__support/macros/config.h"
13
13
#include < stdint.h>
@@ -18,4 +18,4 @@ uint16_t htons(uint16_t hostshort);
18
18
19
19
} // namespace LIBC_NAMESPACE_DECL
20
20
21
- #endif // LLVM_LIBC_SRC_NETWORK_HTONS_H
21
+ #endif // LLVM_LIBC_SRC_ARPA_INET_HTONS_H
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " src/network /ntohl.h"
9
+ #include " src/arpa/inet /ntohl.h"
10
10
#include " src/__support/common.h"
11
11
#include " src/__support/endian_internal.h"
12
12
#include " src/__support/macros/config.h"
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #ifndef LLVM_LIBC_SRC_NETWORK_NTOHL_H
10
- #define LLVM_LIBC_SRC_NETWORK_NTOHL_H
9
+ #ifndef LLVM_LIBC_SRC_ARPA_INET_NTOHL_H
10
+ #define LLVM_LIBC_SRC_ARPA_INET_NTOHL_H
11
11
12
12
#include " src/__support/macros/config.h"
13
13
#include < stdint.h>
@@ -18,4 +18,4 @@ uint32_t ntohl(uint32_t netlong);
18
18
19
19
} // namespace LIBC_NAMESPACE_DECL
20
20
21
- #endif // LLVM_LIBC_SRC_NETWORK_NTOHL_H
21
+ #endif // LLVM_LIBC_SRC_ARPA_INET_NTOHL_H
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " src/network /ntohs.h"
9
+ #include " src/arpa/inet /ntohs.h"
10
10
#include " src/__support/common.h"
11
11
#include " src/__support/endian_internal.h"
12
12
#include " src/__support/macros/config.h"
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #ifndef LLVM_LIBC_SRC_NETWORK_NTOHS_H
10
- #define LLVM_LIBC_SRC_NETWORK_NTOHS_H
9
+ #ifndef LLVM_LIBC_SRC_ARPA_INET_NTOHS_H
10
+ #define LLVM_LIBC_SRC_ARPA_INET_NTOHS_H
11
11
12
12
#include " src/__support/macros/config.h"
13
13
#include < stdint.h>
@@ -18,4 +18,4 @@ uint16_t ntohs(uint16_t netshort);
18
18
19
19
} // namespace LIBC_NAMESPACE_DECL
20
20
21
- #endif // LLVM_LIBC_SRC_NETWORK_NTOHS_H
21
+ #endif // LLVM_LIBC_SRC_ARPA_INET_NTOHS_H
Original file line number Diff line number Diff line change @@ -77,14 +77,14 @@ if(NOT LLVM_LIBC_FULL_BUILD)
77
77
return ()
78
78
endif ()
79
79
80
+ add_subdirectory (arpa)
80
81
add_subdirectory (assert)
81
82
add_subdirectory (compiler)
82
83
add_subdirectory (dirent)
83
- add_subdirectory (network )
84
+ add_subdirectory (locale )
84
85
add_subdirectory (setjmp)
85
86
add_subdirectory (signal)
86
87
add_subdirectory (spawn)
87
- add_subdirectory (locale)
88
88
89
89
if (${LIBC_TARGET_OS} STREQUAL "linux" )
90
90
add_subdirectory (pthread)
Original file line number Diff line number Diff line change
1
+ add_subdirectory (inet)
Original file line number Diff line number Diff line change
1
+ add_custom_target (libc_arpa_inet_unittests)
2
+
3
+ add_libc_unittest(
4
+ htonl
5
+ SUITE
6
+ libc_arpa_inet_unittests
7
+ SRCS
8
+ htonl_test.cpp
9
+ CXX_STANDARD
10
+ 20
11
+ DEPENDS
12
+ libc.src.arpa.inet.htonl
13
+ libc.src.arpa.inet.ntohl
14
+ )
15
+
16
+ add_libc_unittest(
17
+ htons
18
+ SUITE
19
+ libc_arpa_inet_unittests
20
+ SRCS
21
+ htons_test.cpp
22
+ CXX_STANDARD
23
+ 20
24
+ DEPENDS
25
+ libc.src.arpa.inet.htons
26
+ libc.src.arpa.inet.ntohs
27
+ )
28
+
29
+ add_libc_unittest(
30
+ ntohl
31
+ SUITE
32
+ libc_arpa_inet_unittests
33
+ SRCS
34
+ ntohl_test.cpp
35
+ CXX_STANDARD
36
+ 20
37
+ DEPENDS
38
+ libc.src.arpa.inet.htonl
39
+ libc.src.arpa.inet.ntohl
40
+ )
41
+
42
+ add_libc_unittest(
43
+ ntohs
44
+ SUITE
45
+ libc_arpa_inet_unittests
46
+ SRCS
47
+ ntohs_test.cpp
48
+ CXX_STANDARD
49
+ 20
50
+ DEPENDS
51
+ libc.src.arpa.inet.htons
52
+ libc.src.arpa.inet.ntohs
53
+ )
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/__support/endian_internal.h"
10
- #include " src/network /htonl.h"
11
- #include " src/network /ntohl.h"
10
+ #include " src/arpa/inet /htonl.h"
11
+ #include " src/arpa/inet /ntohl.h"
12
12
#include " test/UnitTest/Test.h"
13
13
14
14
TEST (LlvmLibcHtonl, SmokeTest) {
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/__support/endian_internal.h"
10
- #include " src/network /htons.h"
11
- #include " src/network /ntohs.h"
10
+ #include " src/arpa/inet /htons.h"
11
+ #include " src/arpa/inet /ntohs.h"
12
12
#include " test/UnitTest/Test.h"
13
13
14
14
TEST (LlvmLibcHtons, SmokeTest) {
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/__support/endian_internal.h"
10
- #include " src/network /htonl.h"
11
- #include " src/network /ntohl.h"
10
+ #include " src/arpa/inet /htonl.h"
11
+ #include " src/arpa/inet /ntohl.h"
12
12
#include " test/UnitTest/Test.h"
13
13
14
14
TEST (LlvmLibcNtohl, SmokeTest) {
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/__support/endian_internal.h"
10
- #include " src/network /htons.h"
11
- #include " src/network /ntohs.h"
10
+ #include " src/arpa/inet /htons.h"
11
+ #include " src/arpa/inet /ntohs.h"
12
12
#include " test/UnitTest/Test.h"
13
13
14
14
TEST (LlvmLibcNtohs, SmokeTest) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments