nix v0.11.0 Release Notes

Release Date: 2018-06-02 // over 1 year ago
  • ➕ Added

    • ➕ Added sendfile on FreeBSD and Darwin. (#901)
    • ➕ Added pselect (#894)
    • 🔦 Exposed preadv and pwritev on the BSDs. (#883)
    • ➕ Added mlockall and munlockall (#876)
    • ➕ Added SO_MARK on Linux. (#873)
    • ➕ Added safe support for nearly any buffer type in the sys::aio module. (#872)
    • ➕ Added sys::aio::LioCb as a wrapper for libc::lio_listio. (#872)
    • ➕ Added unistd::getsid (#850)
    • ➕ Added alarm. (#830)
    • Added interface flags IFF_NO_PI, IFF_TUN, IFF_TAP on linux-like systems. (#853)
    • ➕ Added statvfs module to all MacOS and Linux architectures. (#832)
    • Added EVFILT_EMPTY, EVFILT_PROCDESC, and EVFILT_SENDFILE on FreeBSD. (#825)
    • 🔦 Exposed termios::cfmakesane on FreeBSD. (#825)
    • Exposed MSG_CMSG_CLOEXEC on *BSD. (#825)
    • ➕ Added fchmod, fchmodat. (#857)
    • Added request_code_write_int! on FreeBSD/DragonFlyBSD (#833)

    🔄 Changed

    • Display and Debug for SysControlAddr now includes all fields. (#837)
    • ioctl! has been replaced with a family of ioctl_*! macros. (#833)
    • io!, ior!, iow!, and iorw! has been renamed to request_code_none!, request_code_read!, request_code_write!, and request_code_readwrite! respectively. These have also now been exposed in the documentation. (#833)
    • 🐧 Enabled more ptrace::Request definitions for uncommon Linux platforms (#892)
    • Emulation of FD_CLOEXEC and O_NONBLOCK was removed from socket(), accept4(), and socketpair(). (#907)

    🛠 Fixed

    • 🛠 Fixed possible panics when using SigAction::flags on Linux (#869)
    • Properly exposed 460800 and 921600 baud rates on NetBSD (#837)
    • Fixed ioctl_write_int! on FreeBSD/DragonFlyBSD (#833)
    • ioctl_write_int! now properly supports passing a c_ulong as the parameter on Linux non-musl targets (#833)

    ✂ Removed

    • ✂ Removed explicit support for the bytes crate from the sys::aio module. See sys::aio::AioCb::from_boxed_slice examples for alternatives. (#872)
    • ✂ Removed sys::aio::lio_listio. Use sys::aio::LioCb::listio instead. (#872)
    • ✂ Removed emulated accept4() from macos, ios, and netbsd targets (#907)
    • ✂ Removed IFF_NOTRAILERS on OpenBSD, as it has been removed in OpenBSD 6.3 (#893)