We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 469807e commit f474825Copy full SHA for f474825
[refs]
@@ -2,5 +2,5 @@
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
-refs/heads/try: cd02046de4c29878b38c5c9751fd80fbe8ecc8ee
+refs/heads/try: 2c5a660c99168c99bd9ba40a47afe637497c7e0e
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
branches/try/src/libcore/os.rs
@@ -28,7 +28,7 @@ import consts::*;
28
export close, fclose, fsync_fd, waitpid;
29
export env, getenv, setenv, fdopen, pipe;
30
export getcwd, dll_filename, self_exe_path;
31
-export exe_suffix, dll_suffix, sysname, arch;
+export exe_suffix, dll_suffix, sysname, arch, family;
32
export homedir, list_dir, list_dir_path, path_is_dir, path_exists,
33
make_absolute, make_dir, remove_dir, change_dir, remove_file,
34
copy_file;
@@ -755,6 +755,14 @@ fn set_exit_status(code: int) {
755
rustrt::rust_set_exit_status(code as libc::intptr_t);
756
}
757
758
+#[cfg(target_os = "macos")]
759
+#[cfg(target_os = "linux")]
760
+#[cfg(target_os = "freebsd")]
761
+fn family() -> str { "unix" }
762
+
763
+#[cfg(target_os = "win32")]
764
+fn family() -> str { "windows" }
765
766
#[cfg(target_os = "macos")]
767
mod consts {
768
fn sysname() -> str { "macos" }
0 commit comments