summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-06 05:36:48 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-06 16:21:05 +0530
commitefdf16b72f20ef4d3703ce018864611358d0023e (patch)
tree0ad3be936b2c591ae0f4fabc0cdc80489b42e533 /src/rt
parent5c172ad03cee9274028ae8333338845002eeec9a (diff)
parentcb4965ef3a826af8150ef863e98709b4ffa83767 (diff)
downloadrust-efdf16b72f20ef4d3703ce018864611358d0023e.tar.gz
rust-efdf16b72f20ef4d3703ce018864611358d0023e.zip
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.
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.c b/src/rt/rust_builtin.c
index 6bf86f52739..b756602ead4 100644
--- a/src/rt/rust_builtin.c
+++ b/src/rt/rust_builtin.c
@@ -205,7 +205,7 @@ int *__dfly_error(void) { return __error(); }
 #include <sys/sysctl.h>
 #include <limits.h>
 
-const char * rust_load_self() {
+const char * rust_current_exe() {
     static char *self = NULL;
 
     if (self == NULL) {