Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
6c0c6dd7
Verified
Commit
6c0c6dd7
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Fix missing negative flags in netdb.h, add NI_MAXHOST and NI_MAXSERV
parent
018ff409
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/bits/netdb.h
+13
-0
13 additions, 0 deletions
include/bits/netdb.h
src/header/netdb/mod.rs
+3
-0
3 additions, 0 deletions
src/header/netdb/mod.rs
with
16 additions
and
0 deletions
include/bits/netdb.h
+
13
−
0
View file @
6c0c6dd7
#ifndef _BITS_NETDB_H
#ifndef _BITS_NETDB_H
#define _BITS_NETDB_H
#define _BITS_NETDB_H
#define EAI_BADFLAGS (-1)
#define EAI_NONAME (-2)
#define EAI_AGAIN (-3)
#define EAI_FAIL (-4)
#define EAI_NODATA (-5)
#define EAI_FAMILY (-6)
#define EAI_SOCKTYPE (-7)
#define EAI_SERVICE (-8)
#define EAI_ADDRFAMILY (-9)
#define EAI_MEMORY (-10)
#define EAI_SYSTEM (-11)
#define EAI_OVERFLOW (-12)
# define h_addr h_addr_list[0]
/* Address, for backward compatibility.*/
# define h_addr h_addr_list[0]
/* Address, for backward compatibility.*/
#endif
/* _BITS_NETDB_H */
#endif
/* _BITS_NETDB_H */
This diff is collapsed.
Click to expand it.
src/header/netdb/mod.rs
+
3
−
0
View file @
6c0c6dd7
...
@@ -117,6 +117,9 @@ pub const EAI_MEMORY: c_int = -10;
...
@@ -117,6 +117,9 @@ pub const EAI_MEMORY: c_int = -10;
pub
const
EAI_SYSTEM
:
c_int
=
-
11
;
pub
const
EAI_SYSTEM
:
c_int
=
-
11
;
pub
const
EAI_OVERFLOW
:
c_int
=
-
12
;
pub
const
EAI_OVERFLOW
:
c_int
=
-
12
;
pub
const
NI_MAXHOST
:
c_int
=
1025
;
pub
const
NI_MAXSERV
:
c_int
=
32
;
pub
const
NI_NUMERICHOST
:
c_int
=
0x0001
;
pub
const
NI_NUMERICHOST
:
c_int
=
0x0001
;
pub
const
NI_NUMERICSERV
:
c_int
=
0x0002
;
pub
const
NI_NUMERICSERV
:
c_int
=
0x0002
;
pub
const
NI_NOFQDN
:
c_int
=
0x0004
;
pub
const
NI_NOFQDN
:
c_int
=
0x0004
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment