Skip to content

unbreak tree for openbsd after #21787 #21964

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
Feb 7, 2015
Merged

Conversation

semarie
Copy link
Contributor

@semarie semarie commented Feb 5, 2015

  • add _SC_GETPW_R_SIZE_MAX constant
  • declare struct passwd
  • convert load_self to current_exe

Note: OpenBSD don't provide system function to return a valuable Path
for env::current_exe. The implementation is currently based on the
value of argv[0], which couldn't be used when executable is called via
PATH.

@rust-highfive
Copy link
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

- add `_SC_GETPW_R_SIZE_MAX` constant
- declare `struct passwd`
- convert `load_self` to `current_exe`

Note: OpenBSD don't provide system function to return a valuable Path
for `env::current_exe`. The implementation is currently based on the
value of `argv[0]`, which couldn't be used when executable is called via
PATH.
@alexcrichton
Copy link
Member

@bors: r+ 5ad3488

@alexcrichton
Copy link
Member

@bors: rollup

@alexcrichton alexcrichton assigned alexcrichton and unassigned brson Feb 5, 2015
@semarie
Copy link
Contributor Author

semarie commented Feb 5, 2015

hum... some code is missing (std::env::consts part for openbsd, and deprecating for std::os::consts).

- add `std::env:consts`
- deprecating `std::os::consts`
- refactoring errno_location()
@alexcrichton
Copy link
Member

@bors: r+ cb4965e rollup

@semarie semarie mentioned this pull request Feb 6, 2015
Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 6, 2015
 - add `_SC_GETPW_R_SIZE_MAX` constant
- declare `struct passwd`
- convert `load_self` to `current_exe`

Note: OpenBSD don't provide system function to return a valuable Path
for `env::current_exe`. The implementation is currently based on the
value of `argv[0]`, which couldn't be used when executable is called via
PATH.
@bors bors merged commit cb4965e into rust-lang:master Feb 7, 2015
@semarie semarie deleted the openbsd-env branch February 7, 2015 08:15
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.

5 participants