Skip to content

Add <sys/timex.h> bindings for linux-musl #2333

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 2 commits into from
Aug 16, 2021
Merged

Conversation

dfoxfranke
Copy link
Contributor

@dfoxfranke dfoxfranke commented Aug 12, 2021

Adds bindings for adjtimex() & co. for linux-musl. Also adds clock_adjtime() to linux-glibc.

@rust-highfive
Copy link

r? @JohnTitor

(rust-highfive has picked a reviewer for you, use r? to override)

@dfoxfranke dfoxfranke force-pushed the master branch 2 times, most recently from 0650408 to 28f9ccc Compare August 13, 2021 00:49
@dfoxfranke dfoxfranke marked this pull request as ready for review August 13, 2021 00:56
@MarkAtwood
Copy link

AWS OSPO review, no OSPO concerns.

pub errcnt: ::c_long,
pub stbcnt: ::c_long,
pub tai: ::c_int,
pub __padding: [::c_int; 11],
Copy link
Member

Choose a reason for hiding this comment

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

A padding field doesn't need to be public generally, is there any reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose it doesn't matter much, but if this one should be private then I should've made the glibc ones private as well when I contributed #1642. So I can either keep this one public, be inconsistent, or make a breaking change to the glibc version. Up to you, I have no strong feelings on the matter.

Copy link
Member

Choose a reason for hiding this comment

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

Ah makes sense! Let's keep it as-is for now.

@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Aug 14, 2021

📌 Commit 530b4ca has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Aug 14, 2021

⌛ Testing commit 530b4ca with merge de9c207...

bors added a commit that referenced this pull request Aug 14, 2021
Add <sys/timex.h> bindings for linux-musl

Adds bindings for `adjtimex()` & co. for linux-musl. Also adds `clock_adjtime()` to linux-glibc.
@bors
Copy link
Contributor

bors commented Aug 14, 2021

💔 Test failed - checks-actions

@dfoxfranke
Copy link
Contributor Author

Looks like a CI test is failing because http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20200314/images/generic/initrd.debian has gone 404 (maybe releated to the release of Debian 11)? Obviously unrelated to this PR.

@JohnTitor
Copy link
Member

Fixed on master, @bors retry

@bors
Copy link
Contributor

bors commented Aug 16, 2021

⌛ Testing commit 530b4ca with merge 5f5f51c...

@bors
Copy link
Contributor

bors commented Aug 16, 2021

☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing 5f5f51c to master...

@bors bors merged commit 5f5f51c into rust-lang:master Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants