Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
37357abb
Commit
37357abb
authored
4 years ago
by
Andrew Walbran
Browse files
Options
Downloads
Patches
Plain Diff
Android: Add vsock constants and struct.
parent
87d3a326
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libc-test/build.rs
+1
-0
1 addition, 0 deletions
libc-test/build.rs
src/unix/linux_like/android/mod.rs
+14
-0
14 additions, 0 deletions
src/unix/linux_like/android/mod.rs
with
15 additions
and
0 deletions
libc-test/build.rs
+
1
−
0
View file @
37357abb
...
...
@@ -1487,6 +1487,7 @@ fn test_android(target: &str) {
"linux/seccomp.h"
,
"linux/sched.h"
,
"linux/sockios.h"
,
"linux/vm_sockets.h"
,
"linux/wait.h"
,
}
...
...
This diff is collapsed.
Click to expand it.
src/unix/linux_like/android/mod.rs
+
14
−
0
View file @
37357abb
...
...
@@ -236,6 +236,14 @@ s! {
pub
rm_so
:
::
ssize_t
,
pub
rm_eo
:
::
ssize_t
,
}
pub
struct
sockaddr_vm
{
pub
svm_family
:
::
sa_family_t
,
pub
svm_reserved1
:
::
c_ushort
,
pub
svm_port
:
::
c_uint
,
pub
svm_cid
:
::
c_uint
,
pub
svm_zero
:
[
u8
;
4
]
}
}
s_no_extra_traits!
{
...
...
@@ -2241,6 +2249,12 @@ pub const SCHED_DEADLINE: ::c_int = 6;
pub
const
SEEK_DATA
:
::
c_int
=
3
;
pub
const
SEEK_HOLE
:
::
c_int
=
4
;
// sys/socket.h
pub
const
AF_NFC
:
::
c_int
=
39
;
pub
const
AF_VSOCK
:
::
c_int
=
40
;
pub
const
PF_NFC
:
::
c_int
=
AF_NFC
;
pub
const
PF_VSOCK
:
::
c_int
=
AF_VSOCK
;
f!
{
pub
fn
CMSG_NXTHDR
(
mhdr
:
*
const
msghdr
,
cmsg
:
*
const
cmsghdr
)
->
*
mut
cmsghdr
{
...
...
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