diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-08-05 05:29:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 05:29:30 +0900 |
commit | 510badd75fa5e324a7a0c85aa48baabe84fb1773 (patch) | |
tree | 73b2e628c94cc6377597e606f007c60cf4fe0a3d | |
parent | e4a1f269842d486e235e36c24cfb22e4c63091bd (diff) | |
parent | ec5c0ae6bc00ff9f67a0ba44bd2d3cc355dd3fae (diff) | |
download | rust-libc-510badd75fa5e324a7a0c85aa48baabe84fb1773.tar.gz |
Merge pull request #1853 from coolreader18/nameinfo-consts
Add more constants for getnameinfo on android
-rw-r--r-- | src/unix/linux_like/android/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 280571f8cc..e32fd38691 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -1062,6 +1062,13 @@ pub const O_NDELAY: ::c_int = 0x800; pub const O_DSYNC: ::c_int = 4096; pub const NI_MAXHOST: ::size_t = 1025; +pub const NI_MAXSERV: ::size_t = 32; + +pub const NI_NOFQDN: ::c_int = 0x00000001; +pub const NI_NUMERICHOST: ::c_int = 0x00000002; +pub const NI_NAMEREQD: ::c_int = 0x00000004; +pub const NI_NUMERICSERV: ::c_int = 0x00000008; +pub const NI_DGRAM: ::c_int = 0x00000010; pub const NCCS: usize = 19; pub const TCSBRKP: ::c_int = 0x5425; |