All Versions
29
Latest Version
Avg Release Cycle
102 days
Latest Release
706 days ago

Changelog History
Page 3

  • v0.11.1

    June 07, 2019
  • v0.11.0 Changes

    June 02, 2018

    โž• 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)
  • v0.10.0 Changes

    January 26, 2018

    โž• Added

    • โž• Added specialized wrapper: sys::ptrace::step (#852)
    • Added AioCb::from_ptr and AioCb::from_mut_ptr (#820)
    • โž• Added specialized wrappers: sys::ptrace::{traceme, syscall, cont, attach}. Using the matching routines with sys::ptrace::ptrace is now deprecated.
    • โž• Added nix::poll module for all platforms (#672)
    • โž• Added nix::ppoll function for FreeBSD and DragonFly (#672)
    • โž• Added protocol families in AddressFamily enum. (#647)
    • โž• Added the pid() method to WaitStatus for extracting the PID. (#722)
    • โž• Added nix::unistd:fexecve. (#727)
    • ๐Ÿ”ฆ Expose uname() on all platforms. (#739)
    • ๐Ÿ”ฆ Expose signalfd module on Android as well. (#739)
    • โž• Added nix::sys::ptrace::detach. (#749)
    • โž• Added timestamp socket control message variant: nix::sys::socket::ControlMessage::ScmTimestamp (#663)
    • โž• Added socket option variant that enables the timestamp socket control message: nix::sys::socket::sockopt::ReceiveTimestamp (#663)
    • โž• Added more accessor methods for AioCb (#773)
    • โž• Add nix::sys::fallocate ([#768](https:://github.com/nix-rust/nix/pull/768))
    • โž• Added nix::unistd::mkfifo. (#602)
    • Added ptrace::Options::PTRACE_O_EXITKILL on Linux and Android. (#771)
    • Added nix::sys::uio::{process_vm_readv, process_vm_writev} on Linux (#568)
    • โž• Added nix::unistd::{getgroups, setgroups, getgrouplist, initgroups}. (#733)
    • โž• Added nix::sys::socket::UnixAddr::as_abstract on Linux and Android. (#785)
    • โž• Added nix::unistd::execveat on Linux and Android. (#800)
    • โž• Added the from_raw() method to WaitStatus for converting raw status values to WaitStatus independent of syscalls. (#741)
    • โž• Added more standard trait implementations for various types. (#814)
    • โž• Added sigprocmask to the signal module. (#826)
    • โž• Added nix::sys::socket::LinkAddr on Linux and all bsdlike system. (#813)
    • Add socket options for IP_TRANSPARENT / BIND_ANY. (#835)

    ๐Ÿ”„ Changed

    • ๐Ÿ”ฆ Exposed the mqueue module for all supported operating systems. (#834)
    • ๐Ÿ‘‰ Use native pipe2 on all BSD targets. Users should notice no difference. (#777)
    • ๐Ÿ“‡ Renamed existing ptrace wrappers to encourage namespacing (#692)
    • Marked sys::ptrace::ptrace as unsafe.
    • ๐Ÿ”„ Changed function signature of socket() and socketpair(). The protocol argument has changed type from c_int to SockProtocol. It accepts a None value for default protocol that was specified with zero using c_int. (#647)
    • Made select easier to use, adding the ability to automatically calculate the nfds parameter using the new FdSet::highest (#701)
    • ๐Ÿ”ฆ Exposed unistd::setresuid and unistd::setresgid on FreeBSD and OpenBSD (#721)
    • ๐Ÿ”จ Refactored the statvfs module removing extraneous API functions and the statvfs::vfs module. Additionally (f)statvfs() now return the struct directly. And the returned Statvfs struct now exposes its data through accessor methods. (#729)
    • ๐Ÿ‘ The addr argument to madvise and msync is now *mut to better match the libc API. (#731)
    • shm_open and shm_unlink are no longer exposed on Android targets, where they are not officially supported. (#731)
    • MapFlags, MmapAdvise, and MsFlags expose some more variants and only officially-supported variants are provided for each target. (#731)
    • Marked pty::ptsname function as unsafe (#744)
    • โšก๏ธ Moved constants ptrace request, event and options to enums and updated ptrace functions and argument types accordingly. (#749)
    • AioCb::Drop will now panic if the AioCb is still in-progress (#715)
    • ๐Ÿง Restricted nix::sys::socket::UnixAddr::new_abstract to Linux and Android only. (#785)
    • ๐Ÿšš The ucred struct has been removed in favor of a UserCredentials struct that contains only getters for its fields. (#814)
    • Both ip_mreq and ipv6_mreq have been replaced with IpMembershipRequest and Ipv6MembershipRequest. (#814)
    • โœ‚ Removed return type from pause. (#829)
    • ๐Ÿ”„ Changed the termios APIs to allow for using a u32 instead of the BaudRate enum on BSD platforms to support arbitrary baud rates. See the module docs for nix::sys::termios for more details. (#843)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix compilation and tests for OpenBSD targets (#688)
    • ๐Ÿ›  Fixed error handling in AioCb::fsync, AioCb::read, and AioCb::write. It is no longer an error to drop an AioCb that failed to enqueue in the OS. (#715)
    • ๐Ÿ›  Fix potential memory corruption on non-Linux platforms when using sendmsg/recvmsg, caused by mismatched msghdr definition. (#648)

    โœ‚ Removed

    • AioCb::from_boxed_slice has been removed. It was never actually safe. Use from_bytes or from_bytes_mut instead. (#820)
    • ๐Ÿšš The syscall module has been removed. This only exposed enough functionality for memfd_create() and pivot_root(), which are still exposed as separate functions. (#747)
    • The Errno variants are no longer reexported from the errno module. Errno itself is no longer reexported from the crate root and instead must be accessed using the errno module. (#696)
    • Removed MS_VERBOSE, MS_NOSEC, and MS_BORN from MsFlags. These are internal kernel flags and should never have been exposed. (#814)
  • v0.9.0 Changes

    July 24, 2017

    โž• Added

    • โž• Added sysconf, pathconf, and fpathconf (#630
    • โž• Added sys::signal::SigAction::{ flags, mask, handler} (#611
    • โž• Added nix::sys::pthread::pthread_self (#591
    • Added AioCb::from_boxed_slice (#582
    • โž• Added nix::unistd::{openat, fstatat, readlink, readlinkat} (#551)
    • Added nix::pty::{grantpt, posix_openpt, ptsname/ptsname_r, unlockpt} (#556
    • โž• Added nix::ptr::openpty (#456)
    • Added nix::ptrace::{ptrace_get_data, ptrace_getsiginfo, ptrace_setsiginfo and nix::Error::UnsupportedOperation} (#614)
    • โž• Added cfmakeraw, cfsetspeed, and tcgetsid. (#527)
    • Added "bad none", "bad write_ptr", "bad write_int", and "bad readwrite" variants to the ioctl! macro. (#670)
    • On Linux and Android, added support for receiving PTRACE_O_TRACESYSGOOD events from wait and waitpid using WaitStatus::PtraceSyscall (#566).

    ๐Ÿ”„ Changed

    • The ioctl! macro and its variants now allow the generated functions to have doccomments. (#661)
    • Changed ioctl!(write ...) into ioctl!(write_ptr ...) and ioctl!(write_int ..) variants to more clearly separate those use cases. (#670)
    • Marked sys::mman::{ mmap, munmap, madvise, munlock, msync } as unsafe. (#559)
    • ๐Ÿ‘ Minimum supported Rust version is now 1.13.
    • โœ‚ Removed revents argument from PollFd::new() as it's an output argument and will be overwritten regardless of value. (#542)
    • ๐Ÿ”„ Changed type signature of sys::select::FdSet::contains to make self immutable (#564)
    • Introduced wrapper types for gid_t, pid_t, and uid_t as Gid, Pid, and Uid respectively. Various functions have been changed to use these new types as arguments. (#629)
    • ๐Ÿ›  Fixed compilation on all Android and iOS targets (#527) and promoted them to Tier 2 support.
    • ๐Ÿง nix::sys::statfs::{statfs,fstatfs} uses statfs definition from libc::statfs instead of own linux specific type nix::sys::Statfs. Also file system type constants like nix::sys::statfs::ADFS_SUPER_MAGIC were removed in favor of the libc equivalent. (#561)
    • ๐Ÿ“š Revised the termios API including additional tests and documentation and exposed it on iOS. (#527)
    • ๐Ÿšฆ eventfd, signalfd, and pwritev/preadv functionality is now included by default for all supported platforms. (#681)
    • The ioctl! macro's plain variants has been replaced with "bad read" to be consistent with other variants. The generated functions also have more strict types for their arguments. The "*_buf" variants also now calculate total array size and take slice references for improved type safety. The documentation has also been dramatically improved. (#670)

    โœ‚ Removed

    • โœ‚ Removed io::Error from nix::Error and the conversion from nix::Error to Errno (#614)
    • ๐Ÿšš All feature flags have been removed in favor of conditional compilation on supported platforms. execvpe is no longer supported, but this was already broken and will be added back in the next release. (#681)
    • โœ‚ Removed ioc_* functions and many helper constants and macros within the ioctl module. These should always have been private and only the ioctl! should be used in public code. (#670)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed multiple issues compiling under different archetectures and OSes. Now compiles on Linux/MIPS (#538), Linux/PPC (#553), MacOS/x86_64,i686 (#553), NetBSD/x64_64 (#538), FreeBSD/x86_64,i686 (#536), and Android (#631).
    • bind and errno_location now work correctly on Android (#631)
    • โž• Added nix::ptrace on all Linux-kernel-based platforms #624. Previously it was only available on x86, x86-64, and ARM, and also not on Android.
    • ๐Ÿ›  Fixed sys::socket::sendmsg with zero entry cmsgs parameter. (#623)
    • Multiple constants related to the termios API have now been properly defined for all supported platforms. (#527)
    • ๐Ÿ‘ ioctl! macro now supports working with non-int datatypes and properly supports all platforms. (#670)
  • v0.8.1 Changes

    April 16, 2017

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed build on FreeBSD. (Cherry-picked a859ee3c)
  • v0.8.0 Changes

    March 02, 2017

    โž• Added

    • โž• Added ::nix::sys::termios::BaudRate enum to provide portable baudrate values. (#518)
    • โž• Added a new WaitStatus::PtraceEvent to support ptrace events on Linux and Android (#438)
    • โž• Added support for POSIX AIO (#483) (#506)
    • โž• Added support for XNU system control sockets (#478)
    • โž• Added support for ioctl calls on BSD platforms (#478)
    • โž• Added struct TimeSpec (#475) (#483)
    • โž• Added complete definitions for all kqueue-related constants on all supported OSes (#415)
    • โž• Added function epoll_create1 and bitflags EpollCreateFlags in ::nix::sys::epoll in order to support ::libc::epoll_create1. (#410)
    • โž• Added setresuid and setresgid for Linux in ::nix::unistd (#448)
    • โž• Added getpgid in ::nix::unistd (#433)
    • โž• Added tcgetpgrp and tcsetpgrp in ::nix::unistd (#451)
    • โž• Added CLONE_NEWCGROUP in ::nix::sched (#457)
    • โž• Added getpgrp in ::nix::unistd (#491)
    • โž• Added fchdir in ::nix::unistd (#497)
    • โž• Added major and minor in ::nix::sys::stat for decomposing dev_t (#508)
    • ๐Ÿ›  Fixed the style of many bitflags and use libc in more places. (#503)
    • โž• Added ppoll in ::nix::poll (#520)
    • โž• Added support for getting and setting pipe size with fcntl(2) on Linux (#540)

    ๐Ÿ”„ Changed

    • ::nix::sys::termios::{cfgetispeed, cfsetispeed, cfgetospeed, cfsetospeed} switched to use BaudRate enum from speed_t. (#518)
    • epoll_ctl now could accept None as argument event when op is EpollOp::EpollCtlDel. (#480)
    • โœ‚ Removed the bad keyword from the ioctl! macro (#478)
    • ๐Ÿ”„ Changed TimeVal into an opaque Newtype (#475)
    • ๐Ÿšฆ kill's signature, defined in ::nix::sys::signal, changed, so that the signal parameter has type T: Into<Option<Signal>>. None as an argument for that parameter will result in a 0 passed to libc's kill, while a Some-argument will result in the previous behavior for the contained Signal. (#445)
    • ๐Ÿ‘ The minimum supported version of rustc is now 1.7.0. (#444)
    • ๐Ÿ”„ Changed KEvent to an opaque structure that may only be modified by its constructor and the ev_set method. (#415) (#442) (#463)
    • pipe2 now calls libc::pipe2 where available. Previously it was emulated using pipe, which meant that setting O_CLOEXEC was not atomic. (#427)
    • ๐Ÿ“‡ Renamed EpollEventKind to EpollFlags in ::nix::sys::epoll in order for it to conform with our conventions. (#410)
    • EpollEvent in ::nix::sys::epoll is now an opaque proxy for ::libc::epoll_event. The formerly public field events is now be read-only accessible with the new method events() of EpollEvent. Instances of EpollEvent can be constructed using the new method new() of EpollEvent. (#410)
    • ๐Ÿšฆ SigFlags in ::nix::sys::signal has be renamed to SigmaskHow and its type has changed from bitflags to enum in order to conform to our conventions. (#460)
    • sethostname now takes a &str instead of a &[u8] as this provides an API that makes more sense in normal, correct usage of the API.
    • gethostname previously did not expose the actual length of the hostname written from the underlying system call at all. This has been updated to return a &CStr within the provided buffer that is always properly NUL-terminated (this is not guaranteed by the call with all platforms/libc implementations).
    • ๐Ÿ”ฆ Exposed all fcntl(2) operations at the module level, so they can be imported direclty instead of via FcntlArg enum. (#541)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed multiple issues with Unix domain sockets on non-Linux OSes (#474)
    • ๐Ÿ›  Fixed using kqueue with EVFILT_USER on FreeBSD (#415)
    • ๐Ÿ›  Fixed the build on FreeBSD, and fixed the getsockopt, sendmsg, and recvmsg functions on that same OS. (#397)
    • ๐Ÿ›  Fixed an off-by-one bug in UnixAddr::new_abstract in ::nix::sys::socket. (#429)
    • ๐Ÿ›  Fixed clone passing a potentially unaligned stack. (#490)
    • ๐Ÿ›  Fixed mkdev not creating a dev_t the same way as libc. (#508)
  • v0.7.0 Changes

    September 09, 2016

    โž• 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)
  • v0.6.0 Changes

    June 10, 2016

    โž• Added

    • ๐Ÿง Added gettid in ::nix::unistd for linux and android. (#293)
    • Some mips support in ::nix::sched and ::nix::sys::syscall. (#301)
    • Added SIGNALFD_SIGINFO_SIZE in ::nix::sys::signalfd. (#309)
    • โž• Added new module ::nix::ucontext with struct UContext. Currently for linux only. (#311)
    • โž• Added EPOLLEXCLUSIVE to EpollEventKind in ::nix::sys::epoll. (#330)
    • โž• Added pause to ::nix::unistd. (#336)
    • โž• Added sleep to ::nix::unistd. (#351)
    • Added S_IFDIR, S_IFLNK, S_IFMT to SFlag in ::nix::sys::stat. (#359)
    • โž• Added clear and extend functions to SigSet's implementation in ::nix::sys::signal. (#347)
    • sockaddr_storage_to_addr in ::nix::sys::socket now supports sockaddr_nl on linux and android. (#366)
    • Added support for SO_ORIGINAL_DST in ::nix::sys::socket on linux. (#367)
    • ๐ŸŽ Added SIGINFO in ::nix::sys::signal for the macos target as well as SIGPWR and SIGSTKFLT in ::nix::sys::signal for non-macos targets. (#361)

    ๐Ÿ”„ Changed

    • ๐Ÿ”„ Changed the structure IoVec in ::nix::sys::uio. (#304)
    • ๐Ÿ†• Replaced CREATE_NEW_FD by SIGNALFD_NEW in ::nix::sys::signalfd. (#309)
    • ๐Ÿ“‡ Renamed SaFlag to SaFlags and SigFlag to SigFlags in ::nix::sys::signal. (#314)
    • ๐Ÿ“‡ Renamed Fork to ForkResult and changed its fields in ::nix::unistd. (#332)
    • โž• Added the signal parameter to clone's signature in ::nix::sched. (#344)
    • execv, execve, and execvp now return Result<Void> instead of Result<()> in ::nix::unistd. (#357)

    ๐Ÿ›  Fixed

    • ๐Ÿ‘Œ Improved the conversion from std::net::SocketAddr to InetAddr in ::nix::sys::socket::addr. (#335)
  • v0.5.0

    March 01, 2016