zonename 0.1.1

Bindings to getzoneid(3C), getzoneidbyname(3C), and getzonenamebyid(3C) for illumos based systems.
Documentation
extern crate libc;

use libc::{c_char, c_int, size_t};

extern "C" {
    pub fn getzoneid() -> c_int;
    pub fn getzoneidbyname(name: *const c_char) -> c_int;
    pub fn getzonenamebyid(id: c_int, buf: *mut c_char, len: size_t) -> c_int;
}