diff options
author | Igor Aleksanov <[email protected]> | 2020-08-14 05:34:07 +0100 |
---|---|---|
committer | Igor Aleksanov <[email protected]> | 2020-08-14 05:34:07 +0100 |
commit | c26c911ec1e6c2ad1dcb7d155a6a1d528839ad1a (patch) | |
tree | 7cff36c38234be0afb65273146d8247083a5cfeb /crates/syntax/test_data/parser/ok/0031_extern.rs | |
parent | 3c018bf84de5c693b5ee1c6bec0fed3b201c2060 (diff) | |
parent | f1f73649a686dc6e6449afc35e0fa6fed00e225d (diff) |
Merge branch 'master' into add-disable-diagnostics
Diffstat (limited to 'crates/syntax/test_data/parser/ok/0031_extern.rs')
-rw-r--r-- | crates/syntax/test_data/parser/ok/0031_extern.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/ok/0031_extern.rs b/crates/syntax/test_data/parser/ok/0031_extern.rs new file mode 100644 index 000000000..b33ac273c --- /dev/null +++ b/crates/syntax/test_data/parser/ok/0031_extern.rs | |||
@@ -0,0 +1,29 @@ | |||
1 | extern { | ||
2 | pub fn socket(domain: ::c_int, ty: ::c_int, protocol: ::c_int) -> ::c_int; | ||
3 | pub fn bind(fd: ::c_int, addr: *const sockaddr, len: socklen_t) -> ::c_int; | ||
4 | pub fn connect(socket: ::c_int, address: *const sockaddr, | ||
5 | len: socklen_t) -> ::c_int; | ||
6 | pub fn listen(socket: ::c_int, backlog: ::c_int) -> ::c_int; | ||
7 | pub fn getsockname(socket: ::c_int, address: *mut sockaddr, | ||
8 | address_len: *mut socklen_t) -> ::c_int; | ||
9 | pub fn getsockopt(sockfd: ::c_int, | ||
10 | level: ::c_int, | ||
11 | optname: ::c_int, | ||
12 | optval: *mut ::c_void, | ||
13 | optlen: *mut ::socklen_t) -> ::c_int; | ||
14 | pub fn setsockopt(socket: ::c_int, level: ::c_int, name: ::c_int, | ||
15 | value: *const ::c_void, | ||
16 | option_len: socklen_t) -> ::c_int; | ||
17 | pub fn getpeername(socket: ::c_int, address: *mut sockaddr, | ||
18 | address_len: *mut socklen_t) -> ::c_int; | ||
19 | pub fn sendto(socket: ::c_int, buf: *const ::c_void, len: ::size_t, | ||
20 | flags: ::c_int, addr: *const sockaddr, | ||
21 | addrlen: socklen_t) -> ::ssize_t; | ||
22 | pub fn send(socket: ::c_int, buf: *const ::c_void, len: ::size_t, | ||
23 | flags: ::c_int) -> ::ssize_t; | ||
24 | pub fn recvfrom(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, | ||
25 | flags: ::c_int, addr: *mut ::sockaddr, | ||
26 | addrlen: *mut ::socklen_t) -> ::ssize_t; | ||
27 | pub fn recv(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, | ||
28 | flags: ::c_int) -> ::ssize_t; | ||
29 | } | ||