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
7d75ee2a
Unverified
Commit
7d75ee2a
authored
4 years ago
by
Yuki Okushi
Browse files
Options
Downloads
Patches
Plain Diff
Add `rtentry` to musl as well
parent
e69c5eaa
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/unix/linux_like/linux/musl/mod.rs
+21
-0
21 additions, 0 deletions
src/unix/linux_like/linux/musl/mod.rs
with
21 additions
and
0 deletions
src/unix/linux_like/linux/musl/mod.rs
+
21
−
0
View file @
7d75ee2a
...
@@ -117,6 +117,27 @@ s! {
...
@@ -117,6 +117,27 @@ s! {
__nsub2
:
::
size_t
,
__nsub2
:
::
size_t
,
__padding2
:
::
c_char
,
__padding2
:
::
c_char
,
}
}
pub
struct
rtentry
{
pub
rt_pad1
:
::
c_ulong
,
pub
rt_dst
:
::
sockaddr
,
pub
rt_gateway
:
::
sockaddr
,
pub
rt_genmask
:
::
sockaddr
,
pub
rt_flags
:
::
c_ushort
,
pub
rt_pad2
:
::
c_short
,
pub
rt_pad3
:
::
c_ulong
,
pub
rt_tos
:
::
c_uchar
,
pub
rt_class
:
::
c_uchar
,
#[cfg(target_pointer_width
=
"64"
)]
pub
rt_pad4
:
[::
c_short
;
3usize
],
#[cfg(not(target_pointer_width
=
"64"
))]
pub
rt_pad4
:
[::
c_short
;
1usize
],
pub
rt_metric
:
::
c_short
,
pub
rt_dev
:
*
mut
::
c_char
,
pub
rt_mtu
:
::
c_ulong
,
pub
rt_window
:
::
c_ulong
,
pub
rt_irtt
:
::
c_ushort
,
}
}
}
s_no_extra_traits!
{
s_no_extra_traits!
{
...
...
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