diff options
| author | Patrick Walton <[email protected]> | 2011-03-15 16:56:59 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-15 16:56:59 -0700 |
| commit | a8d8ea3cf39c7a694dcefc6226233ddbbf904ec2 (patch) | |
| tree | 04bd954ba328112faaaccd8d311b5c473e22d914 /src/lib/linux_os.rs | |
| parent | rustc: Add a stub crate reader module for "use" directives (diff) | |
| download | rust-a8d8ea3cf39c7a694dcefc6226233ddbbf904ec2.tar.xz rust-a8d8ea3cf39c7a694dcefc6226233ddbbf904ec2.zip | |
Add an OS-specific dylib_filename() function to the standard library
Diffstat (limited to 'src/lib/linux_os.rs')
| -rw-r--r-- | src/lib/linux_os.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/linux_os.rs b/src/lib/linux_os.rs index 6695377d..81b4781a 100644 --- a/src/lib/linux_os.rs +++ b/src/lib/linux_os.rs @@ -57,6 +57,10 @@ fn target_os() -> str { ret "linux"; } +fn dylib_filename(str base) -> str { + ret "lib" + base + ".so"; +} + fn pipe() -> tup(int, int) { let vec[mutable int] fds = vec(mutable 0, 0); check(os.libc.pipe(_vec.buf[mutable int](fds)) == 0); |