Skip to content

Commit

Permalink
Implemented the home_dir for VxWorks
Browse files Browse the repository at this point in the history
  • Loading branch information
Umesh Kalappa authored and BaoshanPang committed Nov 4, 2019
1 parent 2477e24 commit 5083ade
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstd/sys/vxworks/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ pub fn temp_dir() -> PathBuf {
}

pub fn home_dir() -> Option<PathBuf> {
None
crate::env::var_os("HOME").or_else(|| None
).map(PathBuf::from)
}

pub fn exit(code: i32) -> ! {
Expand Down

0 comments on commit 5083ade

Please sign in to comment.