Add an OS-specific dylib_filename() function to the standard library
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user