nix v0.7.0 Release Notes

Release Date: 2016-09-09 // over 7 years ago
  • ➕ Added

    • ➕ Added lseek and lseek64 in ::nix::unistd (#377)
    • ➕ Added mkdir and getcwd in ::nix::unistd (#416)
    • ➕ Added accessors sigmask_mut and sigmask to UContext in ::nix::ucontext. (#370)
    • 🐧 Added WUNTRACED to WaitPidFlag in ::nix::sys::wait for non-linux targets. (#379)
    • ➕ Added new module ::nix::sys::reboot with enumeration RebootMode and functions reboot and set_cad_enabled. Currently for linux only. (#386)
    • 👯 FdSet in ::nix::sys::select now also implements Clone. (#405)
    • Added F_FULLFSYNC to FcntlArg in ::nix::fcntl for apple targets. (#407)
    • ➕ Added CpuSet::unset in ::nix::sched. (#402)
    • ➕ Added constructor method new() to PollFd in ::nix::poll, in order to allow creation of objects, after removing public access to members. (#399)
    • ➕ Added method revents() to PollFd in ::nix::poll, in order to provide read access to formerly public member revents. (#399)
    • Added MSG_CMSG_CLOEXEC to MsgFlags in ::nix::sys::socket for linux only. (#422)

    🔄 Changed

    • 🚦 Replaced the reexported integer constants for signals by the enumeration Signal in ::nix::sys::signal. (#362)
    • 📇 Renamed EventFdFlag to EfdFlags in ::nix::sys::eventfd. (#383)
    • 🔄 Changed the result types of CpuSet::is_set and CpuSet::set in ::nix::sched to Result<bool> and Result<()>, respectively. They now return EINVAL, if an invalid argument for the field parameter is passed. (#402)
    • MqAttr in ::nix::mqueue is now an opaque proxy for ::libc::mq_attr, which has the same structure as the old MqAttr. The field mq_flags of ::libc::mq_attr is readable using the new method flags() of MqAttr. MqAttr also no longer implements Debug. (#392)
    • The parameter msq_prio of mq_receive with type u32 in ::nix::mqueue was replaced by a parameter named msg_prio with type &mut u32, so that the message priority can be obtained by the caller. (#392)
    • The type alias MQd in ::nix::queue was replaced by the type alias libc::mqd_t, both of which are aliases for the same type. (#392)

    ✂ Removed

    • 🚦 Type alias SigNum from ::nix::sys::signal. (#362)
    • Type alias CpuMask from ::nix::shed. (#402)
    • ✂ Removed public fields from PollFd in ::nix::poll. (See also added method revents(). (#399)

    🛠 Fixed

    • 🛠 Fixed the build problem for NetBSD (Note, that we currently do not support it, so it might already be broken again). (#389)
    • 🛠 Fixed the build on FreeBSD, and fixed the getsockopt, sendmsg, and recvmsg functions on that same OS. (#397)