mirror of
https://github.com/jiangcuo/nix.git
synced 2026-02-01 08:57:05 +00:00
8.8 KiB
8.8 KiB
Change Log
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
[Unreleased]
Added
- Added complete definitions for all kqueue-related constants on all supported OSes (#415)
- Added function
epoll_create1and bitflagsEpollCreateFlagsin::nix::sys::epollin order to support::libc::epoll_create1. (#410) - Added
setresuidandsetresgidfor Linux in::nix::unistd(#448) - Added
getpgidin::nix::unistd(#433) - Added
tcgetpgrpandtcsetpgrpin::nix::unistd(#451) - Added
CLONE_NEWCGROUPin::nix::sched(#457)
Changed
kill's signature, defined in::nix::sys::signal, changed, so that the signal parameter has typeT: Into<Option<Signal>>.Noneas an argument for that parameter will result in a 0 passed to libc'skill, while aSome-argument will result in the previous behavior for the containedSignal. (#445)- The minimum supported version of rustc is now 1.7.0. (#444)
- Implement
SendforKEvent(#442) - Changed
KEventto an opaque structure that may only be modified by its constructor and theev_setmethod. (#415) pipe2now callslibc::pipe2where available. Previously it was emulated usingpipe, which meant that settingO_CLOEXECwas not atomic. (#427)- Renamed
EpollEventKindtoEpollFlagsin::nix::sys::epollin order for it to conform with our conventions. (#410) EpollEventin::nix::sys::epollis now an opaque proxy for::libc::epoll_event. The formerly public fieldeventsis now be read-only accessible with the new methodevents()ofEpollEvent. Instances ofEpollEventcan be constructed using the new methodnew()of EpollEvent. (#410)
Fixed
- Fixed using kqueue with
EVFILT_USERon 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_abstractin::nix::sys::socket. (#429)
[0.7.0] 2016-09-09
Added
- Added
lseekandlseek64in::nix::unistd(#377) - Added
mkdirandgetcwdin::nix::unistd(#416) - Added accessors
sigmask_mutandsigmasktoUContextin::nix::ucontext. (#370) - Added
WUNTRACEDtoWaitPidFlagin::nix::sys::waitfor non-linux targets. (#379) - Added new module
::nix::sys::rebootwith enumerationRebootModeand functionsrebootandset_cad_enabled. Currently for linux only. (#386) FdSetin::nix::sys::selectnow also implementsClone. (#405)- Added
F_FULLFSYNCtoFcntlArgin::nix::fcntlfor apple targets. (#407) - Added
CpuSet::unsetin::nix::sched. (#402) - Added constructor method
new()toPollFdin::nix::poll, in order to allow creation of objects, after removing public access to members. (#399) - Added method
revents()toPollFdin::nix::poll, in order to provide read access to formerly public memberrevents. (#399) - Added
MSG_CMSG_CLOEXECtoMsgFlagsin::nix::sys::socketfor linux only. (#422)
Changed
- Replaced the reexported integer constants for signals by the enumeration
Signalin::nix::sys::signal. (#362) - Renamed
EventFdFlagtoEfdFlagsin::nix::sys::eventfd. (#383) - Changed the result types of
CpuSet::is_setandCpuSet::setin::nix::schedtoResult<bool>andResult<()>, respectively. They now returnEINVAL, if an invalid argument for thefieldparameter is passed. (#402) MqAttrin::nix::mqueueis now an opaque proxy for::libc::mq_attr, which has the same structure as the oldMqAttr. The fieldmq_flagsof::libc::mq_attris readable using the new methodflags()ofMqAttr.MqAttralso no longer implementsDebug. (#392)- The parameter
msq_prioofmq_receivewith typeu32in::nix::mqueuewas replaced by a parameter namedmsg_priowith type&mut u32, so that the message priority can be obtained by the caller. (#392) - The type alias
MQdin::nix::queuewas replaced by the type aliaslibc::mqd_t, both of which are aliases for the same type. (#392)
Removed
- Type alias
SigNumfrom::nix::sys::signal. (#362) - Type alias
CpuMaskfrom::nix::shed. (#402) - Removed public fields from
PollFdin::nix::poll. (See also added methodrevents(). (#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)
[0.6.0] 2016-06-10
Added
- Added
gettidin::nix::unistdfor linux and android. (#293) - Some mips support in
::nix::schedand::nix::sys::syscall. (#301) - Added
SIGNALFD_SIGINFO_SIZEin::nix::sys::signalfd. (#309) - Added new module
::nix::ucontextwith structUContext. Currently for linux only. (#311) - Added
EPOLLEXCLUSIVEtoEpollEventKindin::nix::sys::epoll. (#330) - Added
pauseto::nix::unistd. (#336) - Added
sleepto::nix::unistd. (#351) - Added
S_IFDIR,S_IFLNK,S_IFMTtoSFlagin::nix::sys::stat. (#359) - Added
clearandextendfunctions toSigSet's implementation in::nix::sys::signal. (#347) sockaddr_storage_to_addrin::nix::sys::socketnow supportssockaddr_nlon linux and android. (#366)- Added support for
SO_ORIGINAL_DSTin::nix::sys::socketon linux. (#367) - Added
SIGINFOin::nix::sys::signalfor the macos target as well asSIGPWRandSIGSTKFLTin::nix::sys::signalfor non-macos targets. (#361)
Changed
- Changed the structure
IoVecin::nix::sys::uio. (#304) - Replaced
CREATE_NEW_FDbySIGNALFD_NEWin::nix::sys::signalfd. (#309) - Renamed
SaFlagtoSaFlagsandSigFlagtoSigFlagsin::nix::sys::signal. (#314) - Renamed
ForktoForkResultand changed its fields in::nix::unistd. (#332) - Added the
signalparameter toclone's signature in::nix::sched. (#344) execv,execve, andexecvpnow returnResult<Void>instead ofResult<()>in::nix::unistd. (#357)
Fixed
- Improved the conversion from
std::net::SocketAddrtoInetAddrin::nix::sys::socket::addr. (#335)