-
Notifications
You must be signed in to change notification settings - Fork 666
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
Support TIMESTAMPNS #1402
Support TIMESTAMPNS #1402
Conversation
d2f691a
to
736d9a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks pretty good so far. But why did you decide to write the test without the usual test harness? It's preferable to use the regular test harness if possible. In fact, right now your test won't even be compiled, because you didn't add it to Cargo.toml.
Thanks for the review! Is there a way to use the macro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you mean cmsg_space!
? It's currently used by the functional tests in test/sys/test_socket.rs. There aren't any unit tests that currently use it, but I don't see why there couldn't be. What problem are you having?
It contains self-referential "use unix::*" statement. Apparently, when in "nix" crate, you can only reference it as "use crate::..." but not "use nix:...". |
Well, that sounds like something you can fix. |
I think it would be better to do that in a separate pull request. In the mean time, I can add a todo of moving the integration test to unit test after that is done. Edit: created #1405 to track the |
15b1987
to
a855796
Compare
We will wait for the release of this to have a more updated lists of arch here. |
After upgrading libc to 0.2.93, now the support has been added to all linux platforms. Tests however are restricted to x86-64, non musl due to suspected QEMU issue. |
Please feel free to squash all the commits into one if it is ready to merge. |
Ok, this looks good now. But you'll have to squash yourself. Nix uses the bors merge bot, which is incompatible with Github's squash-and-merge button. |
8a00113
to
830bab6
Compare
Sqaushed. Now it is ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
This adds support of linux TIMESTAMPNS.
The code is mostly copied paste from #663