Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern crate libc;
- use std::path::Path;
- pub struct Jail {
- }
- impl Jail {
- pub fn create(name: Option<&str>, path: &Path, hostname: Option<&str>) -> Jail {
- Jail{}
- }
- }
- fn main() {
- let j = Jail::create(name: Some("testjail"), path: Path::new("/tmp"), hostname: None);
- println!("Hello, world!");
- }
Add Comment
Please, Sign In to add comment