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
e0daa157
Verified
Commit
e0daa157
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add protocol families
parent
5c4c49a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/header/sys_socket/constants.rs
+6
-1
6 additions, 1 deletion
src/header/sys_socket/constants.rs
with
6 additions
and
1 deletion
src/header/sys_socket/constants.rs
+
6
−
1
View file @
e0daa157
...
@@ -4,7 +4,6 @@ pub const SOCK_STREAM: c_int = 1;
...
@@ -4,7 +4,6 @@ pub const SOCK_STREAM: c_int = 1;
pub
const
SOCK_DGRAM
:
c_int
=
2
;
pub
const
SOCK_DGRAM
:
c_int
=
2
;
pub
const
SOCK_NONBLOCK
:
c_int
=
0o4000
;
pub
const
SOCK_NONBLOCK
:
c_int
=
0o4000
;
pub
const
SOCK_CLOEXEC
:
c_int
=
0o2000000
;
pub
const
SOCK_CLOEXEC
:
c_int
=
0o2000000
;
pub
const
AF_INET
:
c_int
=
2
;
// Other constants
// Other constants
pub
const
SOCK_SEQPACKET
:
c_int
=
5
;
pub
const
SOCK_SEQPACKET
:
c_int
=
5
;
...
@@ -49,10 +48,16 @@ pub const MSG_PEEK: c_int = 2;
...
@@ -49,10 +48,16 @@ pub const MSG_PEEK: c_int = 2;
pub
const
MSG_TRUNC
:
c_int
=
32
;
pub
const
MSG_TRUNC
:
c_int
=
32
;
pub
const
MSG_WAITALL
:
c_int
=
256
;
pub
const
MSG_WAITALL
:
c_int
=
256
;
pub
const
AF_INET
:
c_int
=
2
;
pub
const
AF_INET6
:
c_int
=
10
;
pub
const
AF_INET6
:
c_int
=
10
;
pub
const
AF_UNIX
:
c_int
=
1
;
pub
const
AF_UNIX
:
c_int
=
1
;
pub
const
AF_UNSPEC
:
c_int
=
0
;
pub
const
AF_UNSPEC
:
c_int
=
0
;
pub
const
PF_INET
:
c_int
=
AF_INET
;
pub
const
PF_INET6
:
c_int
=
AF_INET6
;
pub
const
PF_UNIX
:
c_int
=
AF_UNIX
;
pub
const
PF_UNSPEC
:
c_int
=
AF_UNSPEC
;
pub
const
SHUT_RD
:
c_int
=
0
;
pub
const
SHUT_RD
:
c_int
=
0
;
pub
const
SHUT_RDWR
:
c_int
=
2
;
pub
const
SHUT_RDWR
:
c_int
=
2
;
pub
const
SHUT_WR
:
c_int
=
1
;
pub
const
SHUT_WR
:
c_int
=
1
;
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