Skip to content

Add more constants for getnameinfo on android #1853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

coolreader18
Copy link
Contributor

No description provided.

@rust-highfive
Copy link

r? @JohnTitor

(rust_highfive has picked a reviewer for you, use r? to override)

@coolreader18
Copy link
Contributor Author

coolreader18 commented Aug 3, 2020

I think the ci failure is just because of a network error

@JohnTitor
Copy link
Member

Re-triggering CI.

@JohnTitor JohnTitor closed this Aug 3, 2020
@JohnTitor JohnTitor reopened this Aug 3, 2020
@coolreader18
Copy link
Contributor Author

Yup, looks like it's fine now.

@coolreader18
Copy link
Contributor Author

By the way, here's what the relevant section of the ndk netdb.h header looks like, which I used as a source:

/*
 * Constants for getnameinfo()
 */
#define	NI_MAXHOST	1025
#define	NI_MAXSERV	32

/*
 * Flag values for getnameinfo()
 */
#define	NI_NOFQDN	0x00000001
#define	NI_NUMERICHOST	0x00000002
#define	NI_NAMEREQD	0x00000004
#define	NI_NUMERICSERV	0x00000008
#define	NI_DGRAM	0x00000010
#if 0 /* obsolete */
#define NI_WITHSCOPEID	0x00000020
#endif

Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@JohnTitor JohnTitor merged commit 510badd into rust-lang:master Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants