Skip to content

Remove several deprecated constants and functions#1255

Merged
bors[bot] merged 2 commits intonix-rust:masterfrom
asomers:remove_deprecated2
Jun 12, 2020
Merged

Remove several deprecated constants and functions#1255
bors[bot] merged 2 commits intonix-rust:masterfrom
asomers:remove_deprecated2

Conversation

@asomers
Copy link
Copy Markdown
Member

@asomers asomers commented Jun 5, 2020

  • unistd::daemon on Apple
  • unistd::pipe2 on Apple
  • sys::event::FilterFlag::NOTE_EXIT_REPARENTED on Apple
  • sys::event::FilterFlag::NOTE_REAP on Apple
  • sys::ptrace::ptrace on Android and Linux

All have been deprecated for more than two releases and one year.

@asomers asomers mentioned this pull request Jun 5, 2020
@Susurrus
Copy link
Copy Markdown
Contributor

Susurrus commented Jun 5, 2020

Some tests still use pipe2 and fail to compile now. But fix that and I think it looks good to merge.

* `unistd::daemon` on Apple
* `unistd::pipe2` on Apple
* `sys::event::FilterFlag::NOTE_EXIT_REPARENTED` on Apple
* `sys::event::FilterFlag::NOTE_REAP` on Apple
* `sys::ptrace::ptrace` on Android and Linux

All have been deprecated for more than two releases and one year.
@asomers asomers force-pushed the remove_deprecated2 branch from f71f3b1 to f698fd3 Compare June 5, 2020 03:56
@asomers
Copy link
Copy Markdown
Member Author

asomers commented Jun 5, 2020

I fixed the cfg gate on the test, and tweaked the formatting of the man page.

Copy link
Copy Markdown
Contributor

@Susurrus Susurrus left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM.

Comment thread test/test_unistd.rs Outdated
target_os = "emscripten",
target_os = "freebsd",
target_os = "linux",
target_os = "redox",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

redox should be last.

Comment thread CHANGELOG.md Outdated

- Removed `unistd::daemon`, `unistd::pipe2`,
`sys::event::FilterFlag::NOTE_EXIT_REPARENTED`, and
`sys::event::FilterFlag::NOTE_REAP` on OSX and ios. Removed
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd split these as separate line items since they aren't really related even though they're part of the same PR.

@asomers
Copy link
Copy Markdown
Member Author

asomers commented Jun 12, 2020

bors r+

bors bot added a commit that referenced this pull request Jun 12, 2020
1255: Remove several deprecated constants and functions r=asomers a=asomers

* `unistd::daemon` on Apple
* `unistd::pipe2` on Apple
* `sys::event::FilterFlag::NOTE_EXIT_REPARENTED` on Apple
* `sys::event::FilterFlag::NOTE_REAP` on Apple
* `sys::ptrace::ptrace` on Android and Linux

All have been deprecated for more than two releases and one year.

Co-authored-by: Alan Somers <asomers@gmail.com>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Jun 12, 2020

Build failed:

@asomers
Copy link
Copy Markdown
Member Author

asomers commented Jun 12, 2020

bors retry

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Jun 12, 2020

Build succeeded:

@bors bors bot merged commit ea099dd into nix-rust:master Jun 12, 2020
@asomers asomers deleted the remove_deprecated2 branch June 12, 2020 20:36
@khuey
Copy link
Copy Markdown
Contributor

khuey commented Aug 11, 2020

It's unfortunate that ptrace was removed without creating nix wrappers for the remaining Request types (e.g. PTRACE_GETREGSET).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants