]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #21964 - semarie:openbsd-env, r=alexcrichton
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 6 Feb 2015 00:06:48 +0000 (05:36 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Fri, 6 Feb 2015 10:51:05 +0000 (16:21 +0530)
commitefdf16b72f20ef4d3703ce018864611358d0023e
tree0ad3be936b2c591ae0f4fabc0cdc80489b42e533
parent5c172ad03cee9274028ae8333338845002eeec9a
parentcb4965ef3a826af8150ef863e98709b4ffa83767
Rollup merge of #21964 - semarie:openbsd-env, r=alexcrichton

 - 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.
src/libstd/os.rs
src/rt/rust_builtin.c