diff --git a/examples/hello.rs b/examples/hello.rs index c0997d4..0ca9c76 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -8,7 +8,7 @@ // except according to those terms. #[macro_use] -extern crate syscall; +extern crate sc; fn write(fd: usize, buf: &[u8]) { unsafe { diff --git a/tests/test.rs b/tests/test.rs index f81f4a8..8ed7c37 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -8,18 +8,18 @@ // except according to those terms. #[macro_use] -extern crate syscall; +extern crate sc; // getpid() is POSIX but that doesn't guarantee it's a system call. -#[cfg(any(target_os="linux", target_os="freebsd"))] +#[cfg(any(target_os = "linux", target_os = "freebsd"))] #[test] fn getpid() { unsafe { - assert!(0 < syscall::syscall0(syscall::nr::GETPID)); + assert!(0 < sc::syscall0(sc::nr::GETPID)); } } -#[cfg(any(target_os="linux", target_os="freebsd"))] +#[cfg(any(target_os = "linux", target_os = "freebsd"))] #[test] fn getpid_macro() { unsafe {