File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "f1" : {
3+ "body" : [
4+ {
5+ "text" : " libc::IPPROTO_TCP"
6+ }
7+ ],
8+ "return_type" : {
9+ "type" : " i32"
10+ }
11+ },
12+ "f2" : {
13+ "body" : [
14+ {
15+ "text" : " libc::IPPROTO_UDP"
16+ }
17+ ],
18+ "return_type" : {
19+ "type" : " i32"
20+ }
21+ },
22+ "f3" : {
23+ "body" : [
24+ {
25+ "text" : " libc::IPPROTO_IP"
26+ }
27+ ],
28+ "return_type" : {
29+ "type" : " i32"
30+ }
31+ }
32+ }
Original file line number Diff line number Diff line change 1+ #include < netinet/in.h>
2+
3+ int f1 () {
4+ return IPPROTO_TCP;
5+ }
6+
7+ int f2 () {
8+ return IPPROTO_UDP;
9+ }
10+
11+ int f3 () {
12+ return IPPROTO_IP;
13+ }
Original file line number Diff line number Diff line change 1+ unsafe fn f1 ( ) -> i32 {
2+ libc:: IPPROTO_TCP
3+ }
4+
5+ unsafe fn f2 ( ) -> i32 {
6+ libc:: IPPROTO_UDP
7+ }
8+
9+ unsafe fn f3 ( ) -> i32 {
10+ libc:: IPPROTO_IP
11+ }
Original file line number Diff line number Diff line change 1+ {
2+ "f1" : {
3+ "body" : [
4+ {
5+ "text" : " libc::MSG_NOSIGNAL"
6+ }
7+ ],
8+ "return_type" : {
9+ "type" : " i32"
10+ }
11+ }
12+ }
Original file line number Diff line number Diff line change 1+ #include < sys/types.h>
2+ #include < sys/socket.h>
3+
4+ int f1 () {
5+ return MSG_NOSIGNAL;
6+ }
Original file line number Diff line number Diff line change 1+ unsafe fn f1 ( ) -> i32 {
2+ libc:: MSG_NOSIGNAL
3+ }
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ pub mod iomanip_tgt_unsafe;
4646pub mod iostream_tgt_refcount;
4747#[ path = r#"../iostream/tgt_unsafe.rs"# ]
4848pub mod iostream_tgt_unsafe;
49+ #[ path = r#"../ip/tgt_unsafe.rs"# ]
50+ pub mod ip_tgt_unsafe;
4951#[ path = r#"../limits/tgt_unsafe.rs"# ]
5052pub mod limits_tgt_unsafe;
5153#[ path = r#"../map/tgt_refcount.rs"# ]
@@ -58,6 +60,8 @@ pub mod math_tgt_unsafe;
5860pub mod pair_tgt_refcount;
5961#[ path = r#"../pair/tgt_unsafe.rs"# ]
6062pub mod pair_tgt_unsafe;
63+ #[ path = r#"../socket/tgt_unsafe.rs"# ]
64+ pub mod socket_tgt_unsafe;
6165#[ path = r#"../stdio/tgt_refcount.rs"# ]
6266pub mod stdio_tgt_refcount;
6367#[ path = r#"../stdio/tgt_unsafe.rs"# ]
You can’t perform that action at this time.
0 commit comments