2016-07-22 23:37:51 +02:00
|
|
|
# Change Log
|
|
|
|
|
|
|
|
All notable changes to this project will be documented in this file.
|
2021-05-13 23:37:16 -05:00
|
|
|
This project adheres to [Semantic Versioning](https://semver.org/).
|
2016-07-22 23:37:51 +02:00
|
|
|
|
2023-01-17 17:09:07 -07:00
|
|
|
## [0.26.2] - 2023-01-18
|
2023-01-10 13:53:16 +11:00
|
|
|
### Fixed
|
|
|
|
- Fix `SockaddrIn6` bug that was swapping flowinfo and scope_id byte ordering.
|
|
|
|
([#1964](https://github.com/nix-rust/nix/pull/1964))
|
|
|
|
|
2022-11-28 23:28:58 -07:00
|
|
|
## [0.26.1] - 2022-11-29
|
2022-11-28 23:00:24 -07:00
|
|
|
### Fixed
|
2022-09-15 14:58:56 -06:00
|
|
|
- Fix UB with `sys::socket::sockopt::SockType` using `SOCK_PACKET`.
|
|
|
|
([#1821](https://github.com/nix-rust/nix/pull/1821))
|
|
|
|
|
2022-11-28 22:56:21 -07:00
|
|
|
## [0.26.0] - 2022-11-29
|
2022-08-13 10:06:30 -06:00
|
|
|
### Added
|
|
|
|
|
2022-11-19 13:39:31 -07:00
|
|
|
- Added `SockaddrStorage::{as_unix_addr, as_unix_addr_mut}`
|
|
|
|
([#1871](https://github.com/nix-rust/nix/pull/1871))
|
|
|
|
- Added `MntFlags` and `unmount` on all of the BSDs.
|
2022-11-21 01:59:17 +00:00
|
|
|
- Added `any()` and `all()` to `poll::PollFd`.
|
|
|
|
([#1877](https://github.com/nix-rust/nix/pull/1877))
|
|
|
|
- Add `MntFlags` and `unmount` on all of the BSDs.
|
2022-10-18 08:38:16 -06:00
|
|
|
([#1849](https://github.com/nix-rust/nix/pull/1849))
|
2022-11-28 21:35:45 -07:00
|
|
|
- Added a `Statfs::flags` method.
|
2022-10-17 19:00:48 -06:00
|
|
|
([#1849](https://github.com/nix-rust/nix/pull/1849))
|
2022-09-26 16:27:11 +02:00
|
|
|
- Added `NSFS_MAGIC` FsType on Linux and Android.
|
|
|
|
([#1829](https://github.com/nix-rust/nix/pull/1829))
|
2022-09-27 14:26:35 +02:00
|
|
|
- Added `sched_getcpu` on platforms that support it.
|
|
|
|
([#1825](https://github.com/nix-rust/nix/pull/1825))
|
2022-08-20 16:36:05 -05:00
|
|
|
- Added `sched_getaffinity` and `sched_setaffinity` on FreeBSD.
|
|
|
|
([#1804](https://github.com/nix-rust/nix/pull/1804))
|
2022-08-21 00:37:17 +02:00
|
|
|
- Added `line_discipline` field to `Termios` on Linux, Android and Haiku
|
2022-08-20 16:36:05 -05:00
|
|
|
([#1805](https://github.com/nix-rust/nix/pull/1805))
|
2022-08-23 17:05:19 -05:00
|
|
|
- Expose the memfd module on FreeBSD (memfd was added in FreeBSD 13)
|
|
|
|
([#1808](https://github.com/nix-rust/nix/pull/1808))
|
2022-09-12 07:07:36 +08:00
|
|
|
- Added `domainname` field of `UtsName` on Android and Linux
|
|
|
|
([#1817](https://github.com/nix-rust/nix/pull/1817))
|
2022-10-02 10:46:22 +08:00
|
|
|
- Re-export `RLIM_INFINITY` from `libc`
|
|
|
|
([#1831](https://github.com/nix-rust/nix/pull/1831))
|
2022-10-08 12:53:37 +08:00
|
|
|
- Added `syncfs(2)` on Linux
|
|
|
|
([#1833](https://github.com/nix-rust/nix/pull/1833))
|
2022-10-10 21:17:55 +08:00
|
|
|
- Added `faccessat(2)` on illumos
|
|
|
|
([#1841](https://github.com/nix-rust/nix/pull/1841))
|
2022-10-13 09:23:09 +08:00
|
|
|
- Added `eaccess()` on FreeBSD, DragonFly and Linux (glibc and musl).
|
|
|
|
([#1842](https://github.com/nix-rust/nix/pull/1842))
|
2022-11-06 01:36:47 +01:00
|
|
|
- Added `IP_TOS` `SO_PRIORITY` and `IPV6_TCLASS` sockopts for Linux
|
|
|
|
([#1853](https://github.com/nix-rust/nix/pull/1853))
|
2022-11-21 12:10:34 -05:00
|
|
|
- Added `new_unnamed` and `is_unnamed` for `UnixAddr` on Linux and Android.
|
|
|
|
([#1857](https://github.com/nix-rust/nix/pull/1857))
|
2022-11-21 20:26:16 +03:00
|
|
|
- Added `SockProtocol::Raw` for raw sockets
|
|
|
|
([#1848](https://github.com/nix-rust/nix/pull/1848))
|
2022-11-14 09:56:02 +00:00
|
|
|
- added `IP_MTU` (`IpMtu`) `IPPROTO_IP` sockopt on Linux and Android.
|
|
|
|
([#1865](https://github.com/nix-rust/nix/pull/1865))
|
2022-11-06 01:36:47 +01:00
|
|
|
|
2022-08-13 10:06:30 -06:00
|
|
|
### Changed
|
|
|
|
|
2022-08-11 17:29:31 -06:00
|
|
|
- The MSRV is now 1.56.1
|
|
|
|
([#1792](https://github.com/nix-rust/nix/pull/1792))
|
2022-11-20 17:16:21 +00:00
|
|
|
- The `addr` argument of `sys::mman::mmap` is now of type `Option<NonZeroUsize>`.
|
|
|
|
([#1870](https://github.com/nix-rust/nix/pull/1870))
|
2022-11-20 22:53:34 +00:00
|
|
|
- The `length` argument of `sys::mman::mmap` is now of type `NonZeroUsize`.
|
|
|
|
([#1873](https://github.com/nix-rust/nix/pull/1873))
|
2022-08-11 17:29:31 -06:00
|
|
|
|
2022-08-13 10:06:30 -06:00
|
|
|
### Fixed
|
|
|
|
|
2022-11-19 13:39:31 -07:00
|
|
|
- Fixed using `SockaddrStorage` to store a Unix-domain socket address on Linux.
|
|
|
|
([#1871](https://github.com/nix-rust/nix/pull/1871))
|
2022-08-18 21:49:14 -04:00
|
|
|
- Fix microsecond calculation for `TimeSpec`.
|
|
|
|
([#1801](https://github.com/nix-rust/nix/pull/1801))
|
2022-09-11 23:01:08 +09:00
|
|
|
- Fix `User::from_name` and `Group::from_name` panicking
|
|
|
|
when given a name containing a nul.
|
|
|
|
([#1815](https://github.com/nix-rust/nix/pull/1815))
|
2022-09-25 02:17:51 +08:00
|
|
|
- Fix `User::from_uid` and `User::from_name` crash on Android platform.
|
|
|
|
([#1824](https://github.com/nix-rust/nix/pull/1824))
|
2022-08-10 16:47:51 +02:00
|
|
|
- Workaround XNU bug causing netmasks returned by `getifaddrs` to misbehave.
|
2022-11-28 21:01:57 -07:00
|
|
|
([#1788](https://github.com/nix-rust/nix/pull/1788))
|
2022-08-10 16:47:51 +02:00
|
|
|
|
2022-08-13 10:06:30 -06:00
|
|
|
### Removed
|
|
|
|
|
2022-11-11 19:41:25 -08:00
|
|
|
- Removed deprecated error constants and conversions.
|
|
|
|
([#1860](https://github.com/nix-rust/nix/pull/1860))
|
|
|
|
|
2022-08-13 10:02:42 -06:00
|
|
|
## [0.25.0] - 2022-08-13
|
2022-04-30 18:12:39 -05:00
|
|
|
### Added
|
2022-04-27 18:27:03 -07:00
|
|
|
|
2019-09-30 18:38:27 +08:00
|
|
|
- Added `faccessat`
|
|
|
|
([#1780](https://github.com/nix-rust/nix/pull/1780))
|
2022-07-25 08:56:48 +02:00
|
|
|
- Added `memfd` on Android.
|
|
|
|
(#[1773](https://github.com/nix-rust/nix/pull/1773))
|
2022-08-13 08:46:51 -06:00
|
|
|
- Added `ETH_P_ALL` to `SockProtocol` enum
|
2022-07-23 01:32:57 +05:30
|
|
|
(#[1768](https://github.com/nix-rust/nix/pull/1768))
|
2022-07-13 14:37:49 -04:00
|
|
|
- Added four non-standard Linux `SysconfVar` variants
|
|
|
|
(#[1761](https://github.com/nix-rust/nix/pull/1761))
|
2022-07-10 18:09:51 -06:00
|
|
|
- Added const constructors for `TimeSpec` and `TimeVal`
|
|
|
|
(#[1760](https://github.com/nix-rust/nix/pull/1760))
|
2022-04-27 12:23:56 +02:00
|
|
|
- Added `chflags`.
|
|
|
|
(#[1758](https://github.com/nix-rust/nix/pull/1758))
|
Rewrite the aio module
The existing AIO implementation has some problems:
1) The in_progress field is checked at runtime, not compile time.
2) The mutable field is checked at runtime, not compile time.
3) A downstream lio_listio user must store extra state to track whether
the whole operation is partially, completely, or not at all
submitted.
4) Nix does heap allocation itself, rather than allowing the caller to
choose it. This can result in double (or triple, or quadruple)
boxing.
5) There's no easy way to use lio_listio to submit multiple operations with
a single syscall, but poll each individually.
6) The lio_listio usage is far from transparent and zero-cost.
7) No aio_readv or aio_writev support.
8) priority has type c_int; should be i32
9) aio_return should return a usize instead of an isize, since it only
uses negative values to indicate errors, which Rust represents via
the Result type.
This rewrite solves several problems:
1) Unsolved. I don't think it can be solved without something like
C++'s guaranteed type elision. It might require changing the
signature of Future::poll too.
2) Solved.
3) Solved, by the new in_progress method and by removing the complicated
lio_listio resubmit code.
4) Solved.
5) Solved.
6) Solved, by removing the lio_listo resubmit code. It can be
reimplemented downstream if necessary. Or even in Nix, but it
doesn't fit Nix's theme of zero-cost abstractions.
7) Solved.
8) Solved.
9) Solved.
The rewrite includes functions that don't work on FreeBSD, so add CI
testing for FreeBSD 14 too.
By default only enable tests that will pass on FreeBSD 12.3. But run a
CI job on FreeBSD 14 and set a flag that will enable such tests.
2022-04-30 14:10:28 -06:00
|
|
|
- Added `aio_writev` and `aio_readv`.
|
|
|
|
(#[1713](https://github.com/nix-rust/nix/pull/1713))
|
2022-05-30 15:53:17 -04:00
|
|
|
- impl `From<uid_t>` for `Uid` and `From<gid_t>` for `Gid`
|
|
|
|
(#[1727](https://github.com/nix-rust/nix/pull/1727))
|
2022-08-13 08:46:51 -06:00
|
|
|
- impl `From<SockaddrIn>` for `std::net::SocketAddrV4` and
|
|
|
|
impl `From<SockaddrIn6>` for `std::net::SocketAddrV6`.
|
2022-04-27 18:27:03 -07:00
|
|
|
(#[1711](https://github.com/nix-rust/nix/pull/1711))
|
2022-04-22 23:56:51 -05:00
|
|
|
- Added support for the `x86_64-unknown-haiku` target.
|
|
|
|
(#[1703](https://github.com/nix-rust/nix/pull/1703))
|
2022-04-14 01:05:30 +01:00
|
|
|
- Added `ptrace::read_user` and `ptrace::write_user` for Linux.
|
|
|
|
(#[1697](https://github.com/nix-rust/nix/pull/1697))
|
2022-06-18 21:34:59 -03:00
|
|
|
- Added `getrusage` and helper types `UsageWho` and `Usage`
|
|
|
|
(#[1747](https://github.com/nix-rust/nix/pull/1747))
|
2022-07-10 12:19:20 +08:00
|
|
|
- Added the `DontRoute` SockOpt
|
|
|
|
(#[1752](https://github.com/nix-rust/nix/pull/1752))
|
2022-06-08 15:55:13 +02:00
|
|
|
- Added `signal::SigSet::from_sigset_t_unchecked()`.
|
|
|
|
(#[1741](https://github.com/nix-rust/nix/pull/1741))
|
2022-08-13 08:46:51 -06:00
|
|
|
- Added the `Ipv4OrigDstAddr` sockopt and control message.
|
2022-07-24 09:31:19 +10:00
|
|
|
(#[1772](https://github.com/nix-rust/nix/pull/1772))
|
2022-08-13 08:46:51 -06:00
|
|
|
- Added the `Ipv6OrigDstAddr` sockopt and control message.
|
2022-07-24 09:31:19 +10:00
|
|
|
(#[1772](https://github.com/nix-rust/nix/pull/1772))
|
2022-08-13 08:46:51 -06:00
|
|
|
- Added the `Ipv4SendSrcAddr` control message.
|
2022-07-31 22:24:22 +00:00
|
|
|
(#[1776](https://github.com/nix-rust/nix/pull/1776))
|
2022-04-27 18:27:03 -07:00
|
|
|
|
2022-04-30 18:12:39 -05:00
|
|
|
### Changed
|
Rewrite the aio module
The existing AIO implementation has some problems:
1) The in_progress field is checked at runtime, not compile time.
2) The mutable field is checked at runtime, not compile time.
3) A downstream lio_listio user must store extra state to track whether
the whole operation is partially, completely, or not at all
submitted.
4) Nix does heap allocation itself, rather than allowing the caller to
choose it. This can result in double (or triple, or quadruple)
boxing.
5) There's no easy way to use lio_listio to submit multiple operations with
a single syscall, but poll each individually.
6) The lio_listio usage is far from transparent and zero-cost.
7) No aio_readv or aio_writev support.
8) priority has type c_int; should be i32
9) aio_return should return a usize instead of an isize, since it only
uses negative values to indicate errors, which Rust represents via
the Result type.
This rewrite solves several problems:
1) Unsolved. I don't think it can be solved without something like
C++'s guaranteed type elision. It might require changing the
signature of Future::poll too.
2) Solved.
3) Solved, by the new in_progress method and by removing the complicated
lio_listio resubmit code.
4) Solved.
5) Solved.
6) Solved, by removing the lio_listo resubmit code. It can be
reimplemented downstream if necessary. Or even in Nix, but it
doesn't fit Nix's theme of zero-cost abstractions.
7) Solved.
8) Solved.
9) Solved.
The rewrite includes functions that don't work on FreeBSD, so add CI
testing for FreeBSD 14 too.
By default only enable tests that will pass on FreeBSD 12.3. But run a
CI job on FreeBSD 14 and set a flag that will enable such tests.
2022-04-30 14:10:28 -06:00
|
|
|
|
2022-06-13 10:38:39 +08:00
|
|
|
- Reimplemented sendmmsg/recvmmsg to avoid allocations and with better API
|
|
|
|
(#[1744](https://github.com/nix-rust/nix/pull/1744))
|
|
|
|
|
Rewrite the aio module
The existing AIO implementation has some problems:
1) The in_progress field is checked at runtime, not compile time.
2) The mutable field is checked at runtime, not compile time.
3) A downstream lio_listio user must store extra state to track whether
the whole operation is partially, completely, or not at all
submitted.
4) Nix does heap allocation itself, rather than allowing the caller to
choose it. This can result in double (or triple, or quadruple)
boxing.
5) There's no easy way to use lio_listio to submit multiple operations with
a single syscall, but poll each individually.
6) The lio_listio usage is far from transparent and zero-cost.
7) No aio_readv or aio_writev support.
8) priority has type c_int; should be i32
9) aio_return should return a usize instead of an isize, since it only
uses negative values to indicate errors, which Rust represents via
the Result type.
This rewrite solves several problems:
1) Unsolved. I don't think it can be solved without something like
C++'s guaranteed type elision. It might require changing the
signature of Future::poll too.
2) Solved.
3) Solved, by the new in_progress method and by removing the complicated
lio_listio resubmit code.
4) Solved.
5) Solved.
6) Solved, by removing the lio_listo resubmit code. It can be
reimplemented downstream if necessary. Or even in Nix, but it
doesn't fit Nix's theme of zero-cost abstractions.
7) Solved.
8) Solved.
9) Solved.
The rewrite includes functions that don't work on FreeBSD, so add CI
testing for FreeBSD 14 too.
By default only enable tests that will pass on FreeBSD 12.3. But run a
CI job on FreeBSD 14 and set a flag that will enable such tests.
2022-04-30 14:10:28 -06:00
|
|
|
- Rewrote the aio module. The new module:
|
|
|
|
* Does more type checking at compile time rather than runtime.
|
|
|
|
* Gives the caller control over whether and when to `Box` an aio operation.
|
|
|
|
* Changes the type of the `priority` arguments to `i32`.
|
|
|
|
* Changes the return type of `aio_return` to `usize`.
|
|
|
|
(#[1713](https://github.com/nix-rust/nix/pull/1713))
|
2022-06-08 09:52:53 +02:00
|
|
|
- `nix::poll::ppoll`: `sigmask` parameter is now optional.
|
|
|
|
(#[1739](https://github.com/nix-rust/nix/pull/1739))
|
2022-06-24 18:29:07 -07:00
|
|
|
- Changed `gethostname` to return an owned `OsString`.
|
2022-06-14 19:38:17 -07:00
|
|
|
(#[1745](https://github.com/nix-rust/nix/pull/1745))
|
2022-06-20 11:57:04 +02:00
|
|
|
- `signal:SigSet` is now marked as `repr(transparent)`.
|
|
|
|
(#[1741](https://github.com/nix-rust/nix/pull/1741))
|
Rewrite the aio module
The existing AIO implementation has some problems:
1) The in_progress field is checked at runtime, not compile time.
2) The mutable field is checked at runtime, not compile time.
3) A downstream lio_listio user must store extra state to track whether
the whole operation is partially, completely, or not at all
submitted.
4) Nix does heap allocation itself, rather than allowing the caller to
choose it. This can result in double (or triple, or quadruple)
boxing.
5) There's no easy way to use lio_listio to submit multiple operations with
a single syscall, but poll each individually.
6) The lio_listio usage is far from transparent and zero-cost.
7) No aio_readv or aio_writev support.
8) priority has type c_int; should be i32
9) aio_return should return a usize instead of an isize, since it only
uses negative values to indicate errors, which Rust represents via
the Result type.
This rewrite solves several problems:
1) Unsolved. I don't think it can be solved without something like
C++'s guaranteed type elision. It might require changing the
signature of Future::poll too.
2) Solved.
3) Solved, by the new in_progress method and by removing the complicated
lio_listio resubmit code.
4) Solved.
5) Solved.
6) Solved, by removing the lio_listo resubmit code. It can be
reimplemented downstream if necessary. Or even in Nix, but it
doesn't fit Nix's theme of zero-cost abstractions.
7) Solved.
8) Solved.
9) Solved.
The rewrite includes functions that don't work on FreeBSD, so add CI
testing for FreeBSD 14 too.
By default only enable tests that will pass on FreeBSD 12.3. But run a
CI job on FreeBSD 14 and set a flag that will enable such tests.
2022-04-30 14:10:28 -06:00
|
|
|
|
2022-07-23 14:38:41 -06:00
|
|
|
### Removed
|
|
|
|
|
|
|
|
- Removed support for resubmitting partially complete `lio_listio` operations.
|
|
|
|
It was too complicated, and didn't fit Nix's theme of zero-cost abstractions.
|
|
|
|
Instead, it can be reimplemented downstream.
|
|
|
|
(#[1713](https://github.com/nix-rust/nix/pull/1713))
|
|
|
|
|
|
|
|
## [0.24.2] - 2022-07-17
|
|
|
|
### Fixed
|
2022-05-31 10:02:35 -06:00
|
|
|
|
2022-08-13 08:46:51 -06:00
|
|
|
- Fixed buffer overflow in `nix::sys::socket::recvfrom`.
|
2022-07-14 11:10:06 -06:00
|
|
|
(#[1763](https://github.com/nix-rust/nix/pull/1763))
|
2022-05-31 10:02:35 -06:00
|
|
|
- Enabled `SockaddrStorage::{as_link_addr, as_link_addr_mut}` for Linux-like
|
|
|
|
operating systems.
|
|
|
|
(#[1729](https://github.com/nix-rust/nix/pull/1729))
|
2022-06-07 16:22:03 +01:00
|
|
|
- Fixed `SockaddrLike::from_raw` implementations for `VsockAddr` and
|
|
|
|
`SysControlAddr`.
|
|
|
|
(#[1736](https://github.com/nix-rust/nix/pull/1736))
|
2022-05-31 10:02:35 -06:00
|
|
|
|
2022-04-22 18:46:23 -05:00
|
|
|
## [0.24.1] - 2022-04-22
|
2022-04-22 11:49:34 -06:00
|
|
|
### Fixed
|
|
|
|
|
|
|
|
- Fixed `UnixAddr::size` on Linux-based OSes.
|
|
|
|
(#[1702](https://github.com/nix-rust/nix/pull/1702))
|
|
|
|
|
2022-04-20 21:47:48 -05:00
|
|
|
## [0.24.0] - 2022-04-21
|
2021-12-20 22:42:39 -07:00
|
|
|
### Added
|
|
|
|
|
2022-03-25 17:02:30 -06:00
|
|
|
- Added fine-grained features flags. Most Nix functionality can now be
|
|
|
|
conditionally enabled. By default, all features are enabled.
|
|
|
|
(#[1611](https://github.com/nix-rust/nix/pull/1611))
|
2022-03-25 09:33:54 +01:00
|
|
|
- Added statfs FS type magic constants for `target_os = "android"`
|
|
|
|
and synced constants with libc v0.2.121.
|
|
|
|
(#[1690](https://github.com/nix-rust/nix/pull/1690))
|
2021-10-19 23:51:55 -05:00
|
|
|
- Added `fexecve` on DragonFly.
|
|
|
|
(#[1577](https://github.com/nix-rust/nix/pull/1577))
|
2021-10-22 20:00:02 -06:00
|
|
|
- `sys::uio::IoVec` is now `Send` and `Sync`
|
|
|
|
(#[1582](https://github.com/nix-rust/nix/pull/1582))
|
2021-10-16 12:23:42 -05:00
|
|
|
- Added `EPOLLEXCLUSIVE` on Android.
|
|
|
|
(#[1567](https://github.com/nix-rust/nix/pull/1567))
|
2021-10-22 18:30:56 -05:00
|
|
|
- Added `fdatasync` for FreeBSD, Fuchsia, NetBSD, and OpenBSD.
|
|
|
|
(#[1581](https://github.com/nix-rust/nix/pull/1581))
|
2021-09-22 14:48:12 -05:00
|
|
|
- Added `sched_setaffinity` and `sched_getaffinity` on DragonFly.
|
|
|
|
(#[1537](https://github.com/nix-rust/nix/pull/1537))
|
2021-12-27 02:50:55 -06:00
|
|
|
- Added `posix_fallocate` on DragonFly.
|
|
|
|
(#[1621](https://github.com/nix-rust/nix/pull/1621))
|
2022-03-25 17:02:30 -06:00
|
|
|
- Added `SO_TIMESTAMPING` support
|
2021-09-29 11:32:03 +08:00
|
|
|
(#[1547](https://github.com/nix-rust/nix/pull/1547))
|
2021-12-26 12:43:01 -05:00
|
|
|
- Added getter methods to `MqAttr` struct
|
|
|
|
(#[1619](https://github.com/nix-rust/nix/pull/1619))
|
2021-08-25 14:31:57 +01:00
|
|
|
- Added the `TxTime` sockopt and control message.
|
|
|
|
(#[1564](https://github.com/nix-rust/nix/pull/1564))
|
2021-12-27 15:37:30 -08:00
|
|
|
- Added POSIX per-process timer support
|
|
|
|
(#[1622](https://github.com/nix-rust/nix/pull/1622))
|
2021-12-24 17:57:20 -06:00
|
|
|
- Added `sendfile` on DragonFly.
|
|
|
|
(#[1615](https://github.com/nix-rust/nix/pull/1615))
|
2022-01-14 08:04:52 -06:00
|
|
|
- Added `UMOUNT_NOFOLLOW`, `FUSE_SUPER_MAGIC` on Linux.
|
|
|
|
(#[1634](https://github.com/nix-rust/nix/pull/1634))
|
2022-01-03 04:25:47 -06:00
|
|
|
- Added `getresuid`, `setresuid`, `getresgid`, and `setresgid` on DragonFly, FreeBSD, and OpenBSD.
|
|
|
|
(#[1628](https://github.com/nix-rust/nix/pull/1628))
|
2022-01-18 16:42:52 -06:00
|
|
|
- Added `MAP_FIXED_NOREPLACE` on Linux.
|
|
|
|
(#[1636](https://github.com/nix-rust/nix/pull/1636))
|
2022-01-22 15:43:00 -07:00
|
|
|
- Added `fspacectl` on FreeBSD
|
|
|
|
(#[1640](https://github.com/nix-rust/nix/pull/1640))
|
2022-01-23 19:04:17 -06:00
|
|
|
- Added `accept4` on DragonFly, Emscripten, Fuchsia, Illumos, and NetBSD.
|
|
|
|
(#[1654](https://github.com/nix-rust/nix/pull/1654))
|
2021-10-17 13:50:54 +08:00
|
|
|
- Added `AsRawFd` implementation on `OwningIter`.
|
|
|
|
(#[1563](https://github.com/nix-rust/nix/pull/1563))
|
2021-10-18 03:56:26 +05:30
|
|
|
- Added `process_vm_readv` and `process_vm_writev` on Android.
|
|
|
|
(#[1557](https://github.com/nix-rust/nix/pull/1557))
|
2022-02-13 09:28:27 -06:00
|
|
|
- Added `nix::uncontext` module on s390x.
|
|
|
|
(#[1662](https://github.com/nix-rust/nix/pull/1662))
|
2022-02-20 13:17:09 +09:00
|
|
|
- Implemented `Extend`, `FromIterator`, and `IntoIterator` for `SigSet` and
|
|
|
|
added `SigSet::iter` and `SigSetIter`.
|
|
|
|
(#[1553](https://github.com/nix-rust/nix/pull/1553))
|
2022-02-21 17:45:29 -06:00
|
|
|
- Added `ENOTRECOVERABLE` and `EOWNERDEAD` error codes on DragonFly.
|
|
|
|
(#[1665](https://github.com/nix-rust/nix/pull/1665))
|
2022-02-21 15:04:39 -05:00
|
|
|
- Implemented `Read` and `Write` for `&PtyMaster`
|
|
|
|
(#[1664](https://github.com/nix-rust/nix/pull/1664))
|
2022-03-06 02:19:59 -06:00
|
|
|
- Added `MSG_NOSIGNAL` for Android, Dragonfly, FreeBSD, Fuchsia, Haiku, Illumos, Linux, NetBSD, OpenBSD and Solaris.
|
|
|
|
(#[1670](https://github.com/nix-rust/nix/pull/1670))
|
2022-03-05 11:37:53 +01:00
|
|
|
- Added `waitid`.
|
|
|
|
(#[1584](https://github.com/nix-rust/nix/pull/1584))
|
2022-04-05 15:06:13 -07:00
|
|
|
- Added `Ipv6DontFrag` for android, iOS, linux and macOS.
|
|
|
|
- Added `IpDontFrag` for iOS, macOS.
|
|
|
|
(#[1692](https://github.com/nix-rust/nix/pull/1692))
|
2021-12-20 22:42:39 -07:00
|
|
|
|
|
|
|
### Changed
|
2022-01-22 14:37:48 -07:00
|
|
|
|
|
|
|
- `mqueue` functions now operate on a distinct type, `nix::mqueue::MqdT`.
|
|
|
|
Accessors take this type by reference, not by value.
|
|
|
|
(#[1639](https://github.com/nix-rust/nix/pull/1639))
|
2022-02-20 13:17:09 +09:00
|
|
|
- Removed `SigSet::extend` in favor of `<SigSet as Extend<Signal>>::extend`.
|
|
|
|
Because of this change, you now need `use std::iter::Extend` to call `extend`
|
|
|
|
on a `SigSet`.
|
|
|
|
(#[1553](https://github.com/nix-rust/nix/pull/1553))
|
2022-02-02 19:40:50 -08:00
|
|
|
- Removed the the `PATH_MAX` restriction from APIs accepting paths. Paths
|
|
|
|
will now be allocated on the heap if they are too long. In addition, large
|
|
|
|
instruction count improvements (~30x) were made to path handling.
|
2022-03-25 17:02:30 -06:00
|
|
|
(#[1656](https://github.com/nix-rust/nix/pull/1656))
|
2022-03-13 17:33:02 -07:00
|
|
|
- Changed `getrlimit` and `setrlimit` to use `rlim_t` directly
|
|
|
|
instead of `Option<rlim_t>`.
|
|
|
|
(#[1668](https://github.com/nix-rust/nix/pull/1668))
|
2021-12-21 06:10:50 -07:00
|
|
|
- Deprecated `InetAddr` and `SockAddr` in favor of `SockaddrIn`, `SockaddrIn6`,
|
|
|
|
and `SockaddrStorage`.
|
|
|
|
(#[1684](https://github.com/nix-rust/nix/pull/1684))
|
2022-03-21 21:39:25 -06:00
|
|
|
- Deprecated `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` in favor of their equivalents
|
|
|
|
from the standard library.
|
|
|
|
(#[1685](https://github.com/nix-rust/nix/pull/1685))
|
2022-03-25 17:02:30 -06:00
|
|
|
- `uname` now returns a `Result<UtsName>` instead of just a `UtsName` and
|
|
|
|
ignoring failures from libc. And getters on the `UtsName` struct now return
|
|
|
|
an `&OsStr` instead of `&str`.
|
|
|
|
(#[1672](https://github.com/nix-rust/nix/pull/1672))
|
2022-01-23 11:43:25 -08:00
|
|
|
- Replaced `IoVec` with `IoSlice` and `IoSliceMut`, and replaced `IoVec::from_slice` with
|
|
|
|
`IoSlice::new`. (#[1643](https://github.com/nix-rust/nix/pull/1643))
|
2022-01-22 14:37:48 -07:00
|
|
|
|
2021-12-20 22:42:39 -07:00
|
|
|
### Fixed
|
2022-01-23 13:20:19 -06:00
|
|
|
|
|
|
|
- `InetAddr::from_std` now sets the `sin_len`/`sin6_len` fields on the BSDs.
|
|
|
|
(#[1642](https://github.com/nix-rust/nix/pull/1642))
|
2022-03-13 16:16:25 -06:00
|
|
|
- Fixed a panic in `LinkAddr::addr`. That function now returns an `Option`.
|
|
|
|
(#[1675](https://github.com/nix-rust/nix/pull/1675))
|
2022-03-13 22:57:00 -06:00
|
|
|
(#[1677](https://github.com/nix-rust/nix/pull/1677))
|
2022-01-23 13:20:19 -06:00
|
|
|
|
2021-12-20 22:42:39 -07:00
|
|
|
### Removed
|
|
|
|
|
2021-12-21 08:50:57 -07:00
|
|
|
- Removed public access to the inner fields of `NetlinkAddr`, `AlgAddr`,
|
|
|
|
`SysControlAddr`, `LinkAddr`, and `VsockAddr`.
|
|
|
|
(#[1614](https://github.com/nix-rust/nix/pull/1614))
|
2022-01-16 10:10:13 -06:00
|
|
|
- Removed `EventFlag::EV_SYSFLAG`.
|
|
|
|
(#[1635](https://github.com/nix-rust/nix/pull/1635))
|
2021-12-21 08:50:57 -07:00
|
|
|
|
2021-12-16 20:32:43 -07:00
|
|
|
## [0.23.1] - 2021-12-16
|
2021-10-18 23:05:39 -07:00
|
|
|
|
|
|
|
### Changed
|
2021-12-14 21:30:34 -07:00
|
|
|
|
|
|
|
- Relaxed the bitflags requirement from 1.3.1 to 1.1. This partially reverts
|
|
|
|
#1492. From now on, the MSRV is not guaranteed to work with all versions of
|
|
|
|
all dependencies, just with some version of all dependencies.
|
|
|
|
(#[1607](https://github.com/nix-rust/nix/pull/1607))
|
|
|
|
|
2021-10-18 23:05:39 -07:00
|
|
|
### Fixed
|
|
|
|
|
|
|
|
- Fixed soundness issues in `FdSet::insert`, `FdSet::remove`, and
|
|
|
|
`FdSet::contains` involving file descriptors outside of the range
|
|
|
|
`0..FD_SETSIZE`.
|
|
|
|
(#[1575](https://github.com/nix-rust/nix/pull/1575))
|
|
|
|
|
2021-09-28 21:27:58 -06:00
|
|
|
## [0.23.0] - 2021-09-28
|
2021-02-20 14:39:27 -07:00
|
|
|
### Added
|
2021-07-16 14:00:59 -04:00
|
|
|
|
2021-08-06 20:15:24 -06:00
|
|
|
- Added the `LocalPeerCred` sockopt.
|
|
|
|
(#[1482](https://github.com/nix-rust/nix/pull/1482))
|
2021-07-14 01:29:51 -04:00
|
|
|
- Added `TimeSpec::from_duration` and `TimeSpec::from_timespec`
|
|
|
|
(#[1465](https://github.com/nix-rust/nix/pull/1465))
|
2021-07-16 14:00:59 -04:00
|
|
|
- Added `IPV6_V6ONLY` sockopt.
|
|
|
|
(#[1470](https://github.com/nix-rust/nix/pull/1470))
|
2021-07-18 09:35:43 +00:00
|
|
|
- Added `impl From<User> for libc::passwd` trait implementation to convert a `User`
|
|
|
|
into a `libc::passwd`. Consumes the `User` struct to give ownership over
|
|
|
|
the member pointers.
|
|
|
|
(#[1471](https://github.com/nix-rust/nix/pull/1471))
|
2021-07-24 22:45:46 +02:00
|
|
|
- Added `pthread_kill`.
|
|
|
|
(#[1472](https://github.com/nix-rust/nix/pull/1472))
|
2021-07-22 07:49:59 +00:00
|
|
|
- Added `mknodat`.
|
|
|
|
(#[1473](https://github.com/nix-rust/nix/pull/1473))
|
2021-07-30 09:33:21 +10:00
|
|
|
- Added `setrlimit` and `getrlimit`.
|
|
|
|
(#[1302](https://github.com/nix-rust/nix/pull/1302))
|
2021-08-09 11:17:43 -06:00
|
|
|
- Added `ptrace::interrupt` method for platforms that support `PTRACE_INTERRUPT`
|
|
|
|
(#[1422](https://github.com/nix-rust/nix/pull/1422))
|
2021-08-12 01:17:11 +08:00
|
|
|
- Added `IP6T_SO_ORIGINAL_DST` sockopt.
|
|
|
|
(#[1490](https://github.com/nix-rust/nix/pull/1490))
|
2021-08-15 16:40:14 +03:00
|
|
|
- Added the `PTRACE_EVENT_STOP` variant to the `sys::ptrace::Event` enum
|
|
|
|
(#[1335](https://github.com/nix-rust/nix/pull/1335))
|
2021-06-07 23:07:45 -05:00
|
|
|
- Exposed `SockAddr::from_raw_sockaddr`
|
|
|
|
(#[1447](https://github.com/nix-rust/nix/pull/1447))
|
2021-08-26 21:37:26 -06:00
|
|
|
- Added `TcpRepair`
|
|
|
|
(#[1503](https://github.com/nix-rust/nix/pull/1503))
|
2021-09-04 11:55:48 -06:00
|
|
|
- Enabled `pwritev` and `preadv` for more operating systems.
|
|
|
|
(#[1511](https://github.com/nix-rust/nix/pull/1511))
|
2021-09-27 21:34:27 -06:00
|
|
|
- Added support for `TCP_MAXSEG` TCP Maximum Segment Size socket options
|
2021-08-25 15:27:33 -04:00
|
|
|
(#[1292](https://github.com/nix-rust/nix/pull/1292))
|
2021-09-06 16:59:35 -07:00
|
|
|
- Added `Ipv4RecvErr` and `Ipv6RecvErr` sockopts and associated control messages.
|
|
|
|
(#[1514](https://github.com/nix-rust/nix/pull/1514))
|
2021-09-07 00:32:38 -07:00
|
|
|
- Added `AsRawFd` implementation on `PollFd`.
|
|
|
|
(#[1516](https://github.com/nix-rust/nix/pull/1516))
|
2021-09-06 10:24:40 -07:00
|
|
|
- Added `Ipv4Ttl` and `Ipv6Ttl` sockopts.
|
|
|
|
(#[1515](https://github.com/nix-rust/nix/pull/1515))
|
2021-09-27 21:34:27 -06:00
|
|
|
- Added `MAP_EXCL`, `MAP_ALIGNED_SUPER`, and `MAP_CONCEAL` mmap flags, and
|
|
|
|
exposed `MAP_ANONYMOUS` for all operating systems.
|
2021-09-12 15:30:05 +01:00
|
|
|
(#[1522](https://github.com/nix-rust/nix/pull/1522))
|
2021-09-27 21:34:27 -06:00
|
|
|
(#[1525](https://github.com/nix-rust/nix/pull/1525))
|
2021-09-19 12:42:05 +01:00
|
|
|
(#[1531](https://github.com/nix-rust/nix/pull/1531))
|
2021-09-19 09:10:07 -06:00
|
|
|
(#[1534](https://github.com/nix-rust/nix/pull/1534))
|
2021-09-07 12:44:22 -07:00
|
|
|
- Added read/write accessors for 'events' on `PollFd`.
|
|
|
|
(#[1517](https://github.com/nix-rust/nix/pull/1517))
|
2021-07-16 14:00:59 -04:00
|
|
|
|
2021-07-09 08:07:41 -06:00
|
|
|
### Changed
|
2021-07-13 08:19:05 -06:00
|
|
|
|
|
|
|
- `FdSet::{contains, highest, fds}` no longer require a mutable reference.
|
|
|
|
(#[1464](https://github.com/nix-rust/nix/pull/1464))
|
2021-07-18 09:35:43 +00:00
|
|
|
- `User::gecos` and corresponding `libc::passwd::pw_gecos` are supported on
|
|
|
|
64-bit Android, change conditional compilation to include the field in
|
|
|
|
64-bit Android builds
|
|
|
|
(#[1471](https://github.com/nix-rust/nix/pull/1471))
|
2021-07-26 13:03:19 +02:00
|
|
|
- `eventfd`s are supported on Android, change conditional compilation to
|
|
|
|
include `sys::eventfd::eventfd` and `sys::eventfd::EfdFlags`for Android
|
|
|
|
builds.
|
|
|
|
(#[1481](https://github.com/nix-rust/nix/pull/1481))
|
2021-07-24 14:43:02 -06:00
|
|
|
- Most enums that come from C, for example `Errno`, are now marked as
|
|
|
|
`#[non_exhaustive]`.
|
|
|
|
(#[1474](https://github.com/nix-rust/nix/pull/1474))
|
2021-07-24 16:47:26 -06:00
|
|
|
- Many more functions, mostly contructors, are now `const`.
|
|
|
|
(#[1476](https://github.com/nix-rust/nix/pull/1476))
|
2021-08-13 17:45:49 -06:00
|
|
|
(#[1492](https://github.com/nix-rust/nix/pull/1492))
|
2021-08-09 13:28:43 -06:00
|
|
|
- `sys::event::KEvent::filter` now returns a `Result` instead of being
|
|
|
|
infalliable. The only cases where it will now return an error are cases
|
|
|
|
where it previously would've had undefined behavior.
|
|
|
|
(#[1484](https://github.com/nix-rust/nix/pull/1484))
|
2021-08-13 17:37:00 -06:00
|
|
|
- Minimum supported Rust version is now 1.46.0.
|
|
|
|
([#1492](https://github.com/nix-rust/nix/pull/1492))
|
2021-08-21 19:23:51 -05:00
|
|
|
- Rework `UnixAddr` to encapsulate internals better in order to fix soundness
|
|
|
|
issues. No longer allows creating a `UnixAddr` from a raw `sockaddr_un`.
|
|
|
|
([#1496](https://github.com/nix-rust/nix/pull/1496))
|
2021-09-27 21:34:27 -06:00
|
|
|
- Raised bitflags to 1.3.0 and the MSRV to 1.46.0.
|
|
|
|
([#1492](https://github.com/nix-rust/nix/pull/1492))
|
2021-08-21 19:23:51 -05:00
|
|
|
|
2021-07-09 08:07:41 -06:00
|
|
|
### Fixed
|
2021-07-13 20:22:32 -06:00
|
|
|
|
2021-09-23 20:31:17 +09:00
|
|
|
- `posix_fadvise` now returns errors in the conventional way, rather than as a
|
|
|
|
non-zero value in `Ok()`.
|
|
|
|
(#[1538](https://github.com/nix-rust/nix/pull/1538))
|
2021-07-13 20:22:32 -06:00
|
|
|
- Added more errno definitions for better backwards compatibility with
|
|
|
|
Nix 0.21.0.
|
|
|
|
(#[1467](https://github.com/nix-rust/nix/pull/1467))
|
2021-08-09 13:28:43 -06:00
|
|
|
- Fixed potential undefined behavior in `Signal::try_from` on some platforms.
|
|
|
|
(#[1484](https://github.com/nix-rust/nix/pull/1484))
|
2021-09-27 09:55:59 -04:00
|
|
|
- Fixed buffer overflow in `unistd::getgrouplist`.
|
|
|
|
(#[1545](https://github.com/nix-rust/nix/pull/1545))
|
2021-08-09 13:28:43 -06:00
|
|
|
|
|
|
|
|
2021-07-09 08:07:41 -06:00
|
|
|
### Removed
|
|
|
|
|
2021-08-08 18:52:21 -04:00
|
|
|
- Removed a couple of termios constants on redox that were never actually
|
|
|
|
supported.
|
|
|
|
(#[1483](https://github.com/nix-rust/nix/pull/1483))
|
2021-08-09 13:28:43 -06:00
|
|
|
- Removed `nix::sys::signal::NSIG`. It was of dubious utility, and not correct
|
|
|
|
for all platforms.
|
|
|
|
(#[1484](https://github.com/nix-rust/nix/pull/1484))
|
2021-08-13 17:58:33 -06:00
|
|
|
- Removed support for 32-bit Apple targets, since they've been dropped by both
|
|
|
|
Rustc and Xcode.
|
|
|
|
(#[1492](https://github.com/nix-rust/nix/pull/1492))
|
2021-06-07 23:07:45 -05:00
|
|
|
- Deprecated `SockAddr/InetAddr::to_str` in favor of `ToString::to_string`
|
|
|
|
(#[1495](https://github.com/nix-rust/nix/pull/1495))
|
2021-09-04 11:47:30 -06:00
|
|
|
- Removed `SigevNotify` on OpenBSD and Redox.
|
|
|
|
(#[1511](https://github.com/nix-rust/nix/pull/1511))
|
|
|
|
|
2022-11-28 22:18:29 -07:00
|
|
|
## [0.22.3] - 22 January 2022
|
|
|
|
### Changed
|
|
|
|
- Relaxed the bitflags requirement from 1.3.1 to 1.1. This partially reverts
|
|
|
|
#1492. From now on, the MSRV is not guaranteed to work with all versions of
|
|
|
|
all dependencies, just with some version of all dependencies.
|
|
|
|
(#[1607](https://github.com/nix-rust/nix/pull/1607))
|
|
|
|
|
|
|
|
## [0.22.2] - 28 September 2021
|
|
|
|
### Fixed
|
|
|
|
- Fixed buffer overflow in `unistd::getgrouplist`.
|
|
|
|
(#[1545](https://github.com/nix-rust/nix/pull/1545))
|
|
|
|
- Added more errno definitions for better backwards compatibility with
|
|
|
|
Nix 0.21.0.
|
|
|
|
(#[1467](https://github.com/nix-rust/nix/pull/1467))
|
|
|
|
|
|
|
|
## [0.22.1] - 13 August 2021
|
|
|
|
### Fixed
|
|
|
|
- Locked bitflags to < 1.3.0 to fix the build with rust < 1.46.0.
|
|
|
|
|
|
|
|
### Removed
|
|
|
|
- Removed a couple of termios constants on redox that were never actually
|
|
|
|
supported.
|
|
|
|
(#[1483](https://github.com/nix-rust/nix/pull/1483))
|
|
|
|
|
2021-07-09 08:07:41 -06:00
|
|
|
## [0.22.0] - 9 July 2021
|
|
|
|
### Added
|
2021-06-04 11:22:01 -05:00
|
|
|
- Added `if_nameindex` (#[1445](https://github.com/nix-rust/nix/pull/1445))
|
2021-06-13 19:42:13 -06:00
|
|
|
- Added `nmount` for FreeBSD.
|
2021-07-06 07:33:49 -06:00
|
|
|
(#[1453](https://github.com/nix-rust/nix/pull/1453))
|
2021-06-23 16:19:50 +02:00
|
|
|
- Added `IpFreebind` socket option (sockopt) on Linux, Fuchsia and Android.
|
|
|
|
(#[1456](https://github.com/nix-rust/nix/pull/1456))
|
2021-06-23 16:36:47 +02:00
|
|
|
- Added `TcpUserTimeout` socket option (sockopt) on Linux and Fuchsia.
|
|
|
|
(#[1457](https://github.com/nix-rust/nix/pull/1457))
|
2021-07-08 22:08:48 +01:00
|
|
|
- Added `renameat2` for Linux
|
|
|
|
(#[1458](https://github.com/nix-rust/nix/pull/1458))
|
2021-06-18 17:39:36 -07:00
|
|
|
- Added `RxqOvfl` support on Linux, Fuchsia and Android.
|
|
|
|
(#[1455](https://github.com/nix-rust/nix/pull/1455))
|
2021-06-04 11:22:01 -05:00
|
|
|
|
2021-05-31 09:33:38 -06:00
|
|
|
### Changed
|
2021-06-12 16:43:04 -06:00
|
|
|
- `ptsname_r` now returns a lossily-converted string in the event of bad UTF,
|
|
|
|
just like `ptsname`.
|
|
|
|
([#1446](https://github.com/nix-rust/nix/pull/1446))
|
|
|
|
- Nix's error type is now a simple wrapper around the platform's Errno. This
|
|
|
|
means it is now `Into<std::io::Error>`. It's also `Clone`, `Copy`, `Eq`, and
|
|
|
|
has a small fixed size. It also requires less typing. For example, the old
|
|
|
|
enum variant `nix::Error::Sys(nix::errno::Errno::EINVAL)` is now simply
|
|
|
|
`nix::Error::EINVAL`.
|
|
|
|
([#1446](https://github.com/nix-rust/nix/pull/1446))
|
|
|
|
|
2022-11-28 22:18:29 -07:00
|
|
|
## [0.21.2] - 29 September 2021
|
|
|
|
### Fixed
|
|
|
|
- Fixed buffer overflow in `unistd::getgrouplist`.
|
|
|
|
(#[1545](https://github.com/nix-rust/nix/pull/1545))
|
|
|
|
|
|
|
|
## [0.21.1] - 13 August 2021
|
2021-05-31 09:33:38 -06:00
|
|
|
### Fixed
|
2022-11-28 22:18:29 -07:00
|
|
|
- Locked bitflags to < 1.3.0 to fix the build with rust < 1.46.0.
|
|
|
|
|
2021-05-31 09:33:38 -06:00
|
|
|
### Removed
|
2022-11-28 22:18:29 -07:00
|
|
|
- Removed a couple of termios constants on redox that were never actually
|
|
|
|
supported.
|
|
|
|
(#[1483](https://github.com/nix-rust/nix/pull/1483))
|
2021-05-31 09:33:38 -06:00
|
|
|
|
|
|
|
## [0.21.0] - 31 May 2021
|
|
|
|
### Added
|
2021-04-23 16:48:41 +02:00
|
|
|
- Added `getresuid` and `getresgid`
|
|
|
|
(#[1430](https://github.com/nix-rust/nix/pull/1430))
|
2021-03-20 22:36:36 +08:00
|
|
|
- Added TIMESTAMPNS support for linux
|
|
|
|
(#[1402](https://github.com/nix-rust/nix/pull/1402))
|
2021-05-28 16:06:16 -07:00
|
|
|
- Added `sendfile64` (#[1439](https://github.com/nix-rust/nix/pull/1439))
|
2021-05-26 15:06:58 +09:00
|
|
|
- Added `MS_LAZYTIME` to `MsFlags`
|
|
|
|
(#[1437](https://github.com/nix-rust/nix/pull/1437))
|
2021-02-20 16:21:42 -05:00
|
|
|
|
2021-02-20 14:39:27 -07:00
|
|
|
### Changed
|
2021-02-20 16:21:42 -05:00
|
|
|
- Made `forkpty` unsafe, like `fork`
|
|
|
|
(#[1390](https://github.com/nix-rust/nix/pull/1390))
|
2021-04-21 11:40:44 +02:00
|
|
|
- Made `Uid`, `Gid` and `Pid` methods `from_raw` and `as_raw` a `const fn`
|
|
|
|
(#[1429](https://github.com/nix-rust/nix/pull/1429))
|
|
|
|
- Made `Uid::is_root` a `const fn`
|
|
|
|
(#[1429](https://github.com/nix-rust/nix/pull/1429))
|
2021-05-30 10:47:05 -06:00
|
|
|
- `AioCb` is now always pinned. Once a `libc::aiocb` gets sent to the kernel,
|
|
|
|
its address in memory must not change. Nix now enforces that by using
|
|
|
|
`std::pin`. Most users won't need to change anything, except when using
|
|
|
|
`aio_suspend`. See that method's documentation for the new usage.
|
|
|
|
(#[1440](https://github.com/nix-rust/nix/pull/1440))
|
|
|
|
- `LioCb` is now constructed using a distinct `LioCbBuilder` struct. This
|
|
|
|
avoids a soundness issue with the old `LioCb`. Usage is similar but
|
|
|
|
construction now uses the builder pattern. See the documentation for
|
|
|
|
details.
|
|
|
|
(#[1440](https://github.com/nix-rust/nix/pull/1440))
|
|
|
|
- Minimum supported Rust version is now 1.41.0.
|
|
|
|
([#1440](https://github.com/nix-rust/nix/pull/1440))
|
2021-06-12 18:00:29 -06:00
|
|
|
- Errno aliases are now associated consts on `Errno`, instead of consts in the
|
2021-06-12 18:53:28 -06:00
|
|
|
`errno` module.
|
2021-06-12 18:00:29 -06:00
|
|
|
(#[1452](https://github.com/nix-rust/nix/pull/1452))
|
2021-02-20 16:21:42 -05:00
|
|
|
|
2021-02-20 14:39:27 -07:00
|
|
|
### Fixed
|
2021-03-02 17:34:29 +01:00
|
|
|
- Allow `sockaddr_ll` size, as reported by the Linux kernel, to be smaller then it's definition
|
|
|
|
(#[1395](https://github.com/nix-rust/nix/pull/1395))
|
2021-04-01 17:39:30 -07:00
|
|
|
- Fix spurious errors using `sendmmsg` with multiple cmsgs
|
|
|
|
(#[1414](https://github.com/nix-rust/nix/pull/1414))
|
2021-06-12 18:03:37 -06:00
|
|
|
- Added `Errno::EOPNOTSUPP` to FreeBSD, where it was missing.
|
|
|
|
(#[1452](https://github.com/nix-rust/nix/pull/1452))
|
2021-03-02 17:34:29 +01:00
|
|
|
|
2021-02-20 14:39:27 -07:00
|
|
|
### Removed
|
|
|
|
|
2021-03-04 19:39:27 -07:00
|
|
|
- Removed `sys::socket::accept4` from Android arm because libc removed it in
|
|
|
|
version 0.2.87.
|
|
|
|
([#1399](https://github.com/nix-rust/nix/pull/1399))
|
2021-05-30 10:47:05 -06:00
|
|
|
- `AioCb::from_boxed_slice` and `AioCb::from_boxed_mut_slice` have been
|
|
|
|
removed. They were useful with earlier versions of Rust, but should no
|
|
|
|
longer be needed now that async/await are available. `AioCb`s now work
|
|
|
|
exclusively with borrowed buffers, not owned ones.
|
|
|
|
(#[1440](https://github.com/nix-rust/nix/pull/1440))
|
2021-06-12 17:55:22 -06:00
|
|
|
- Removed some Errno values from platforms where they aren't actually defined.
|
|
|
|
(#[1452](https://github.com/nix-rust/nix/pull/1452))
|
2021-03-04 19:39:27 -07:00
|
|
|
|
2022-11-28 22:18:29 -07:00
|
|
|
## [0.20.2] - 28 September 2021
|
|
|
|
### Fixed
|
|
|
|
- Fixed buffer overflow in `unistd::getgrouplist`.
|
|
|
|
(#[1545](https://github.com/nix-rust/nix/pull/1545))
|
|
|
|
|
|
|
|
## [0.20.1] - 13 August 2021
|
|
|
|
### Fixed
|
|
|
|
- Locked bitflags to < 1.3.0 to fix the build with rust < 1.46.0.
|
|
|
|
|
|
|
|
### Removed
|
|
|
|
- Removed a couple of termios constants on redox that were never actually
|
|
|
|
supported.
|
|
|
|
(#[1483](https://github.com/nix-rust/nix/pull/1483))
|
|
|
|
|
2021-02-20 14:16:59 -07:00
|
|
|
## [0.20.0] - 20 February 2021
|
2020-08-22 21:21:33 +01:00
|
|
|
### Added
|
2020-09-26 19:50:27 -04:00
|
|
|
|
|
|
|
- Added a `passwd` field to `Group` (#[1338](https://github.com/nix-rust/nix/pull/1338))
|
2020-10-05 09:18:44 -05:00
|
|
|
- Added `mremap` (#[1306](https://github.com/nix-rust/nix/pull/1306))
|
2020-11-10 13:57:40 -05:00
|
|
|
- Added `personality` (#[1331](https://github.com/nix-rust/nix/pull/1331))
|
2020-08-05 13:25:03 -04:00
|
|
|
- Added limited Fuchsia support (#[1285](https://github.com/nix-rust/nix/pull/1285))
|
2020-11-26 13:09:21 -05:00
|
|
|
- Added `getpeereid` (#[1342](https://github.com/nix-rust/nix/pull/1342))
|
2020-11-15 21:27:32 +00:00
|
|
|
- Implemented `IntoIterator` for `Dir`
|
|
|
|
(#[1333](https://github.com/nix-rust/nix/pull/1333)).
|
2021-01-08 15:47:41 +01:00
|
|
|
|
2020-11-28 21:43:55 -07:00
|
|
|
### Changed
|
2020-12-04 18:15:51 -07:00
|
|
|
|
2020-12-10 17:56:40 -07:00
|
|
|
- Minimum supported Rust version is now 1.40.0.
|
|
|
|
([#1356](https://github.com/nix-rust/nix/pull/1356))
|
2020-12-04 18:15:51 -07:00
|
|
|
- i686-apple-darwin has been demoted to Tier 2 support, because it's deprecated
|
|
|
|
by Xcode.
|
|
|
|
(#[1350](https://github.com/nix-rust/nix/pull/1350))
|
2020-11-27 21:52:35 +01:00
|
|
|
- Fixed calling `recvfrom` on an `AddrFamily::Packet` socket
|
|
|
|
(#[1344](https://github.com/nix-rust/nix/pull/1344))
|
2020-12-04 18:15:51 -07:00
|
|
|
|
2021-02-20 14:13:44 -07:00
|
|
|
### Fixed
|
|
|
|
- `TimerFd` now closes the underlying fd on drop.
|
|
|
|
([#1381](https://github.com/nix-rust/nix/pull/1381))
|
|
|
|
- Define `*_MAGIC` filesystem constants on Linux s390x
|
|
|
|
(#[1372](https://github.com/nix-rust/nix/pull/1372))
|
|
|
|
- mqueue, sysinfo, timespec, statfs, test_ptrace_syscall() on x32
|
|
|
|
(#[1366](https://github.com/nix-rust/nix/pull/1366))
|
|
|
|
|
2020-11-28 21:43:55 -07:00
|
|
|
### Removed
|
2020-11-28 17:49:13 -07:00
|
|
|
|
2021-02-01 20:00:48 -07:00
|
|
|
- `Dir`, `SignalFd`, and `PtyMaster` are no longer `Clone`.
|
|
|
|
(#[1382](https://github.com/nix-rust/nix/pull/1382))
|
2020-12-14 19:59:59 -07:00
|
|
|
- Removed `SockLevel`, which hasn't been used for a few years
|
|
|
|
(#[1362](https://github.com/nix-rust/nix/pull/1362))
|
2021-02-01 14:46:24 +00:00
|
|
|
- Removed both `Copy` and `Clone` from `TimerFd`.
|
|
|
|
([#1381](https://github.com/nix-rust/nix/pull/1381))
|
2020-12-14 19:59:59 -07:00
|
|
|
|
2020-11-28 21:43:55 -07:00
|
|
|
## [0.19.1] - 28 November 2020
|
|
|
|
### Fixed
|
2020-11-28 17:49:13 -07:00
|
|
|
- Fixed bugs in `recvmmsg`.
|
|
|
|
(#[1341](https://github.com/nix-rust/nix/pull/1341))
|
|
|
|
|
2020-09-30 12:15:46 +01:00
|
|
|
## [0.19.0] - 6 October 2020
|
|
|
|
### Added
|
2020-08-08 14:49:27 +01:00
|
|
|
- Added Netlink protocol families to the `SockProtocol` enum
|
2020-09-29 12:32:53 +01:00
|
|
|
(#[1289](https://github.com/nix-rust/nix/pull/1289))
|
2020-08-01 11:28:24 -07:00
|
|
|
- Added `clock_gettime`, `clock_settime`, `clock_getres`,
|
|
|
|
`clock_getcpuclockid` functions and `ClockId` struct.
|
|
|
|
(#[1281](https://github.com/nix-rust/nix/pull/1281))
|
2020-10-03 14:29:34 +02:00
|
|
|
- Added wrapper functions for `PTRACE_SYSEMU` and `PTRACE_SYSEMU_SINGLESTEP`.
|
|
|
|
(#[1300](https://github.com/nix-rust/nix/pull/1300))
|
2020-09-29 12:32:53 +01:00
|
|
|
- Add support for Vsock on Android rather than just Linux.
|
|
|
|
(#[1301](https://github.com/nix-rust/nix/pull/1301))
|
2020-08-03 10:14:19 +03:00
|
|
|
- Added `TCP_KEEPCNT` and `TCP_KEEPINTVL` TCP keepalive options.
|
|
|
|
(#[1283](https://github.com/nix-rust/nix/pull/1283))
|
2020-07-26 15:20:52 -06:00
|
|
|
### Changed
|
2020-08-22 21:21:33 +01:00
|
|
|
- Expose `SeekData` and `SeekHole` on all Linux targets
|
2020-09-30 12:15:46 +01:00
|
|
|
(#[1284](https://github.com/nix-rust/nix/pull/1284))
|
2020-07-28 00:37:31 +09:00
|
|
|
- Changed unistd::{execv,execve,execvp,execvpe,fexecve,execveat} to take both `&[&CStr]` and `&[CString]` as its list argument(s).
|
|
|
|
(#[1278](https://github.com/nix-rust/nix/pull/1278))
|
2020-09-12 02:08:07 +03:00
|
|
|
- Made `unistd::fork` an unsafe funtion, bringing it in line with [libstd's decision](https://github.com/rust-lang/rust/pull/58059).
|
|
|
|
(#[1293](https://github.com/nix-rust/nix/pull/1293))
|
2020-07-26 15:20:52 -06:00
|
|
|
|
|
|
|
## [0.18.0] - 26 July 2020
|
|
|
|
### Added
|
2020-06-07 13:57:29 -04:00
|
|
|
- Added `fchown(2)` wrapper.
|
|
|
|
(#[1257](https://github.com/nix-rust/nix/pull/1257))
|
2020-04-12 10:06:29 +02:00
|
|
|
- Added support on linux systems for `MAP_HUGE_`_`SIZE`_ family of flags.
|
|
|
|
(#[1211](https://github.com/nix-rust/nix/pull/1211))
|
2020-03-17 18:55:46 -03:00
|
|
|
- Added support for `F_OFD_*` `fcntl` commands on Linux and Android.
|
|
|
|
(#[1195](https://github.com/nix-rust/nix/pull/1195))
|
2020-02-10 21:37:33 -05:00
|
|
|
- Added `env::clearenv()`: calls `libc::clearenv` on platforms
|
|
|
|
where it's available, and clears the environment of all variables
|
|
|
|
via `std::env::vars` and `std::env::remove_var` on others.
|
|
|
|
(#[1185](https://github.com/nix-rust/nix/pull/1185))
|
2020-02-12 23:25:08 +03:00
|
|
|
- `FsType` inner value made public.
|
|
|
|
(#[1187](https://github.com/nix-rust/nix/pull/1187))
|
2020-02-29 10:34:11 +00:00
|
|
|
- Added `unistd::setfsuid` and `unistd::setfsgid` to set the user or group
|
|
|
|
identity for filesystem checks per-thread.
|
|
|
|
(#[1163](https://github.com/nix-rust/nix/pull/1163))
|
2020-02-29 10:54:50 -08:00
|
|
|
- Derived `Ord`, `PartialOrd` for `unistd::Pid` (#[1189](https://github.com/nix-rust/nix/pull/1189))
|
2020-04-07 18:32:55 -07:00
|
|
|
- Added `select::FdSet::fds` method to iterate over file descriptors in a set.
|
2020-04-14 10:11:22 -07:00
|
|
|
([#1207](https://github.com/nix-rust/nix/pull/1207))
|
2020-11-10 13:57:40 -05:00
|
|
|
- Added support for UDP generic segmentation offload (GSO) and generic
|
2020-04-07 23:40:14 +03:00
|
|
|
receive offload (GRO) ([#1209](https://github.com/nix-rust/nix/pull/1209))
|
2020-04-08 12:41:56 +03:00
|
|
|
- Added support for `sendmmsg` and `recvmmsg` calls
|
|
|
|
(#[1208](https://github.com/nix-rust/nix/pull/1208))
|
2020-04-15 01:16:01 +03:00
|
|
|
- Added support for `SCM_CREDS` messages (`UnixCredentials`) on FreeBSD/DragonFly
|
|
|
|
(#[1216](https://github.com/nix-rust/nix/pull/1216))
|
2020-05-08 14:36:09 -05:00
|
|
|
- Added `BindToDevice` socket option (sockopt) on Linux
|
|
|
|
(#[1233](https://github.com/nix-rust/nix/pull/1233))
|
2020-05-26 15:36:52 -04:00
|
|
|
- Added `EventFilter` bitflags for `EV_DISPATCH` and `EV_RECEIPT` on OpenBSD.
|
|
|
|
(#[1252](https://github.com/nix-rust/nix/pull/1252))
|
Add Ipv{4,6}PacketInfo support to ControlMessage for send{m,}msg
This adds Ipv4PacketInfo and Ipv6PacketInfo to ControlMessage,
allowing these to be used with sendmsg/sendmmsg.
This change contains the following squashed commits:
Add Ipv{4,6}PacketInfo to ControlMessage.
Add documentation links to Ipv{4,6}PacketInfo
Add changelog entry for Ipv{4,6}PacketInfo
Add link to PR in the Changelog.
Add extra build environments.
Add tests for Ipv{4,6}PacketInfo.
Swap #[test] and #[cfg]
The CI appears to be running the test, even though it's not cfg'd for
that platform. I _think_ this might be due to these being in the wrong
order. So lets try swapping them.
s/freebsd/netbsd/ for Ipv4PacketInfo
netbsd supports in_pktinfo, not freebsd.
Fix the cfg for Ipv{4,6}PacketInfo usage.
Ah, I see what I did wrong. I had fixed the definitions, but I had the
wrong cfg() in the usage. This has the usage match the definitions.
Change SOL_IPV6 to IPPROTO_IPV6.
FreeBSD doesn't have SOL_IPV6, but does have IPPROTO_IPV6, and the two
constants are defined as being equal. So change to use IPPROTO_IPV6.
Skip Ipv6PacketInfo test if v6 is not available.
If IPv6 is not available, then when we try and bind to ip6-localhost,
we'll get a EADDRNOTAVAIL, so skip the test.
This should mean that the test will run on any machine that has a v6
loopback address.
More architecture cfg() fixes.
These all need to be the same, and they were not. Make them them all
the same. Attempt III.
Fix up mismatched cfg's again.
Take IV. Make sure the cfg's that use a enum variant match the enum
definition.
2020-04-26 13:16:21 +01:00
|
|
|
- Added support for `Ipv4PacketInfo` and `Ipv6PacketInfo` to `ControlMessage`.
|
|
|
|
(#[1222](https://github.com/nix-rust/nix/pull/1222))
|
2020-05-16 17:16:48 -06:00
|
|
|
- `CpuSet` and `UnixCredentials` now implement `Default`.
|
2020-05-16 16:55:59 -06:00
|
|
|
(#[1244](https://github.com/nix-rust/nix/pull/1244))
|
2020-06-16 00:44:59 -04:00
|
|
|
- Added `unistd::ttyname`
|
|
|
|
(#[1259](https://github.com/nix-rust/nix/pull/1259))
|
2020-06-29 22:08:52 -03:00
|
|
|
- Added support for `Ipv4PacketInfo` and `Ipv6PacketInfo` to `ControlMessage` for iOS and Android.
|
|
|
|
(#[1265](https://github.com/nix-rust/nix/pull/1265))
|
2020-03-03 16:30:30 +01:00
|
|
|
- Added support for `TimerFd`.
|
|
|
|
(#[1261](https://github.com/nix-rust/nix/pull/1261))
|
2020-02-29 10:54:50 -08:00
|
|
|
|
2020-02-03 19:50:30 -07:00
|
|
|
### Changed
|
2020-03-28 14:18:42 -04:00
|
|
|
- Changed `fallocate` return type from `c_int` to `()` (#[1201](https://github.com/nix-rust/nix/pull/1201))
|
2020-03-19 16:52:15 +00:00
|
|
|
- Enabled `sys::ptrace::setregs` and `sys::ptrace::getregs` on x86_64-unknown-linux-musl target
|
|
|
|
(#[1198](https://github.com/nix-rust/nix/pull/1198))
|
2020-07-05 23:36:35 +03:00
|
|
|
- On Linux, `ptrace::write` is now an `unsafe` function. Caveat programmer.
|
2020-05-16 16:18:43 -06:00
|
|
|
(#[1245](https://github.com/nix-rust/nix/pull/1245))
|
2020-05-13 11:15:03 +03:00
|
|
|
- `execv`, `execve`, `execvp` and `execveat` in `::nix::unistd` and `reboot` in
|
|
|
|
`::nix::sys::reboot` now return `Result<Infallible>` instead of `Result<Void>` (#[1239](https://github.com/nix-rust/nix/pull/1239))
|
2020-05-16 16:49:41 -06:00
|
|
|
- `sys::socket::sockaddr_storage_to_addr` is no longer `unsafe`. So is
|
|
|
|
`offset_of!`.
|
2020-05-16 17:34:33 -06:00
|
|
|
- `sys::socket::sockaddr_storage_to_addr`, `offset_of!`, and `Errno::clear` are
|
|
|
|
no longer `unsafe`.
|
2020-05-16 18:05:01 -06:00
|
|
|
- `SockAddr::as_ffi_pair`,`sys::socket::sockaddr_storage_to_addr`, `offset_of!`,
|
|
|
|
and `Errno::clear` are no longer `unsafe`.
|
2020-05-16 16:49:41 -06:00
|
|
|
(#[1244](https://github.com/nix-rust/nix/pull/1244))
|
2020-05-16 17:19:00 -06:00
|
|
|
- Several `Inotify` methods now take `self` by value instead of by reference
|
|
|
|
(#[1244](https://github.com/nix-rust/nix/pull/1244))
|
2020-07-05 23:36:35 +03:00
|
|
|
- `nix::poll::ppoll`: `timeout` parameter is now optional, None is equivalent for infinite timeout.
|
2020-03-19 16:52:15 +00:00
|
|
|
|
2020-02-03 19:50:30 -07:00
|
|
|
### Fixed
|
2020-04-06 12:54:59 +00:00
|
|
|
|
2020-04-12 14:03:15 -06:00
|
|
|
- Fixed `getsockopt`. The old code produced UB which triggers a panic with
|
|
|
|
Rust 1.44.0.
|
|
|
|
(#[1214](https://github.com/nix-rust/nix/pull/1214))
|
|
|
|
|
2020-04-06 12:54:59 +00:00
|
|
|
- Fixed a bug in nix::unistd that would result in an infinite loop
|
|
|
|
when a group or user lookup required a buffer larger than
|
|
|
|
16KB. (#[1198](https://github.com/nix-rust/nix/pull/1198))
|
2020-04-07 22:20:18 +03:00
|
|
|
- Fixed unaligned casting of `cmsg_data` to `af_alg_iv` (#[1206](https://github.com/nix-rust/nix/pull/1206))
|
2020-05-03 13:18:52 -06:00
|
|
|
- Fixed `readlink`/`readlinkat` when reading symlinks longer than `PATH_MAX` (#[1231](https://github.com/nix-rust/nix/pull/1231))
|
2020-05-16 15:55:30 -06:00
|
|
|
- `PollFd`, `EpollEvent`, `IpMembershipRequest`, `Ipv6MembershipRequest`,
|
|
|
|
`TimeVal`, and `IoVec` are now `repr(transparent)`. This is required for
|
|
|
|
correctness's sake across all architectures and compilers, though now bugs
|
|
|
|
have been reported so far.
|
|
|
|
(#[1243](https://github.com/nix-rust/nix/pull/1243))
|
2020-05-16 16:13:12 -06:00
|
|
|
- Fixed unaligned pointer read in `Inotify::read_events`.
|
|
|
|
(#[1244](https://github.com/nix-rust/nix/pull/1244))
|
2020-04-06 12:54:59 +00:00
|
|
|
|
2020-02-03 19:50:30 -07:00
|
|
|
### Removed
|
|
|
|
|
2020-04-12 14:40:45 -06:00
|
|
|
- Removed `sys::socket::addr::from_libc_sockaddr` from the public API.
|
|
|
|
(#[1215](https://github.com/nix-rust/nix/pull/1215))
|
2020-05-10 21:09:19 -07:00
|
|
|
- Removed `sys::termios::{get_libc_termios, get_libc_termios_mut, update_wrapper`
|
|
|
|
from the public API. These were previously hidden in the docs but still usable
|
|
|
|
by downstream.
|
|
|
|
(#[1235](https://github.com/nix-rust/nix/pull/1235))
|
2020-04-12 14:40:45 -06:00
|
|
|
|
2020-05-16 14:36:10 -06:00
|
|
|
- Nix no longer implements `NixPath` for `Option<P> where P: NixPath`. Most
|
|
|
|
Nix functions that accept `NixPath` arguments can't do anything useful with
|
|
|
|
`None`. The exceptions (`mount` and `quotactl_sync`) already take explicitly
|
|
|
|
optional arguments.
|
|
|
|
(#[1242](https://github.com/nix-rust/nix/pull/1242))
|
|
|
|
|
2020-06-05 21:47:40 -06:00
|
|
|
- Removed `unistd::daemon` and `unistd::pipe2` on OSX and ios
|
|
|
|
(#[1255](https://github.com/nix-rust/nix/pull/1255))
|
|
|
|
|
|
|
|
- Removed `sys::event::FilterFlag::NOTE_EXIT_REPARENTED` and
|
|
|
|
`sys::event::FilterFlag::NOTE_REAP` on OSX and ios.
|
|
|
|
(#[1255](https://github.com/nix-rust/nix/pull/1255))
|
|
|
|
|
|
|
|
- Removed `sys::ptrace::ptrace` on Android and Linux.
|
2020-06-04 21:12:05 -06:00
|
|
|
(#[1255](https://github.com/nix-rust/nix/pull/1255))
|
|
|
|
|
2020-07-02 22:47:01 -06:00
|
|
|
- Dropped support for powerpc64-unknown-linux-gnu
|
|
|
|
(#[1266](https://github.com/nix-rust/nix/pull/1268))
|
|
|
|
|
2020-02-03 19:50:30 -07:00
|
|
|
## [0.17.0] - 3 February 2020
|
|
|
|
### Added
|
2020-01-11 11:16:38 -08:00
|
|
|
- Add `CLK_TCK` to `SysconfVar`
|
|
|
|
(#[1177](https://github.com/nix-rust/nix/pull/1177))
|
2019-12-23 20:40:44 -07:00
|
|
|
### Removed
|
2019-12-28 22:26:18 +01:00
|
|
|
- Removed deprecated Error::description from error types
|
|
|
|
(#[1175](https://github.com/nix-rust/nix/pull/1175))
|
2019-12-23 20:40:44 -07:00
|
|
|
|
2019-12-23 19:56:49 -07:00
|
|
|
## [0.16.1] - 23 December 2019
|
2019-12-22 18:36:18 -07:00
|
|
|
### Fixed
|
|
|
|
|
|
|
|
- Fixed the build for OpenBSD
|
|
|
|
(#[1168](https://github.com/nix-rust/nix/pull/1168))
|
|
|
|
|
2019-12-01 21:12:36 -07:00
|
|
|
## [0.16.0] - 1 December 2019
|
2019-08-10 14:38:02 -06:00
|
|
|
### Added
|
2019-11-17 19:04:28 -08:00
|
|
|
- Added `ptrace::seize()`: similar to `attach()` on Linux
|
|
|
|
but with better-defined semantics.
|
|
|
|
(#[1154](https://github.com/nix-rust/nix/pull/1154))
|
|
|
|
|
2019-10-16 20:04:11 +03:00
|
|
|
- Added `Signal::as_str()`: returns signal name as `&'static str`
|
|
|
|
(#[1138](https://github.com/nix-rust/nix/pull/1138))
|
2019-08-19 15:55:25 -06:00
|
|
|
|
2019-09-12 07:26:23 +08:00
|
|
|
- Added `posix_fallocate`.
|
|
|
|
([#1105](https://github.com/nix-rust/nix/pull/1105))
|
|
|
|
|
2019-08-19 16:53:27 -06:00
|
|
|
- Implemented `Default` for `FdSet`
|
|
|
|
([#1107](https://github.com/nix-rust/nix/pull/1107))
|
|
|
|
|
2019-08-19 15:55:25 -06:00
|
|
|
- Added `NixPath::is_empty`.
|
|
|
|
([#1107](https://github.com/nix-rust/nix/pull/1107))
|
|
|
|
|
2019-09-30 18:45:24 +08:00
|
|
|
- Added `mkfifoat`
|
|
|
|
([#1133](https://github.com/nix-rust/nix/pull/1133))
|
|
|
|
|
2019-10-19 14:09:36 -03:00
|
|
|
- Added `User::from_uid`, `User::from_name`, `User::from_gid` and
|
|
|
|
`Group::from_name`,
|
|
|
|
([#1139](https://github.com/nix-rust/nix/pull/1139))
|
2019-12-01 16:08:54 -07:00
|
|
|
|
2019-07-24 18:50:04 -07:00
|
|
|
- Added `linkat`
|
|
|
|
([#1101](https://github.com/nix-rust/nix/pull/1101))
|
2019-10-19 14:09:36 -03:00
|
|
|
|
2019-10-30 21:55:27 +01:00
|
|
|
- Added `sched_getaffinity`.
|
|
|
|
([#1148](https://github.com/nix-rust/nix/pull/1148))
|
|
|
|
|
2019-06-09 18:54:48 -03:00
|
|
|
- Added optional `Signal` argument to `ptrace::{detach, syscall}` for signal
|
|
|
|
injection. ([#1083](https://github.com/nix-rust/nix/pull/1083))
|
|
|
|
|
2019-08-10 14:38:02 -06:00
|
|
|
### Changed
|
2019-12-01 15:09:19 -07:00
|
|
|
- `sys::termios::BaudRate` now implements `TryFrom<speed_t>` instead of
|
|
|
|
`From<speed_t>`. The old `From` implementation would panic on failure.
|
2019-12-01 21:08:21 -07:00
|
|
|
([#1159](https://github.com/nix-rust/nix/pull/1159))
|
2019-12-01 16:08:54 -07:00
|
|
|
|
|
|
|
- `sys::socket::ControlMessage::ScmCredentials` and
|
|
|
|
`sys::socket::ControlMessageOwned::ScmCredentials` now wrap `UnixCredentials`
|
|
|
|
rather than `libc::ucred`.
|
2019-12-01 21:08:21 -07:00
|
|
|
([#1160](https://github.com/nix-rust/nix/pull/1160))
|
2019-12-01 15:09:19 -07:00
|
|
|
|
2019-11-30 20:25:55 -07:00
|
|
|
- `sys::socket::recvmsg` now takes a plain `Vec` instead of a `CmsgBuffer`
|
|
|
|
implementor. If you were already using `cmsg_space!`, then you needn't worry.
|
|
|
|
([#1156](https://github.com/nix-rust/nix/pull/1156))
|
|
|
|
|
2019-10-27 13:33:40 -06:00
|
|
|
- `sys::socket::recvfrom` now returns
|
|
|
|
`Result<(usize, Option<SockAddr>)>` instead of `Result<(usize, SockAddr)>`.
|
|
|
|
([#1145](https://github.com/nix-rust/nix/pull/1145))
|
|
|
|
|
2019-08-30 16:33:18 -06:00
|
|
|
- `Signal::from_c_int` has been replaced by `Signal::try_from`
|
|
|
|
([#1113](https://github.com/nix-rust/nix/pull/1113))
|
|
|
|
|
2019-08-22 21:44:16 +02:00
|
|
|
- Changed `readlink` and `readlinkat` to return `OsString`
|
2019-08-22 20:53:39 +02:00
|
|
|
([#1109](https://github.com/nix-rust/nix/pull/1109))
|
2019-08-22 21:44:16 +02:00
|
|
|
|
|
|
|
```rust
|
2019-08-22 20:34:53 +00:00
|
|
|
# use nix::fcntl::{readlink, readlinkat};
|
2019-08-22 22:22:29 +02:00
|
|
|
// the buffer argument of `readlink` and `readlinkat` has been removed,
|
|
|
|
// and the return value is now an owned type (`OsString`).
|
|
|
|
// Existing code can be updated by removing the buffer argument
|
|
|
|
// and removing any clone or similar operation on the output
|
|
|
|
|
|
|
|
// old code `readlink(&path, &mut buf)` can be replaced with the following
|
2019-08-22 20:34:53 +00:00
|
|
|
let _: OsString = readlink(&path);
|
2020-04-12 10:06:29 +02:00
|
|
|
|
2019-08-22 22:22:29 +02:00
|
|
|
// old code `readlinkat(dirfd, &path, &mut buf)` can be replaced with the following
|
2019-08-22 20:34:53 +00:00
|
|
|
let _: OsString = readlinkat(dirfd, &path);
|
2019-08-22 21:44:16 +02:00
|
|
|
```
|
|
|
|
|
2019-08-22 01:18:37 -03:00
|
|
|
- Minimum supported Rust version is now 1.36.0.
|
|
|
|
([#1108](https://github.com/nix-rust/nix/pull/1108))
|
2019-08-19 15:55:25 -06:00
|
|
|
|
|
|
|
- `Ipv4Addr::octets`, `Ipv4Addr::to_std`, `Error::as_errno`,
|
|
|
|
`ForkResult::is_child`, `ForkResult::is_parent`, `Gid::as_raw`,
|
|
|
|
`Uid::is_root`, `Uid::as_raw`, `Pid::as_raw`, and `PollFd::revents` now take
|
|
|
|
`self` by value.
|
|
|
|
([#1107](https://github.com/nix-rust/nix/pull/1107))
|
|
|
|
|
2019-09-06 03:08:46 +02:00
|
|
|
- Type `&CString` for parameters of `exec(v|ve|vp|vpe|veat)` are changed to `&CStr`.
|
|
|
|
([#1121](https://github.com/nix-rust/nix/pull/1121))
|
|
|
|
|
2019-08-10 14:38:02 -06:00
|
|
|
### Fixed
|
2019-09-04 13:32:26 +01:00
|
|
|
- Fix length of abstract socket addresses
|
|
|
|
([#1120](https://github.com/nix-rust/nix/pull/1120))
|
2019-12-01 09:02:02 -07:00
|
|
|
|
2019-10-15 20:13:40 +01:00
|
|
|
- Fix initialization of msghdr in recvmsg/sendmsg when built with musl
|
|
|
|
([#1136](https://github.com/nix-rust/nix/pull/1136))
|
2019-09-04 13:32:26 +01:00
|
|
|
|
2019-08-10 14:38:02 -06:00
|
|
|
### Removed
|
2019-11-30 20:25:55 -07:00
|
|
|
- Remove the deprecated `CmsgSpace`.
|
|
|
|
([#1156](https://github.com/nix-rust/nix/pull/1156))
|
2019-08-10 14:38:02 -06:00
|
|
|
|
|
|
|
## [0.15.0] - 10 August 2019
|
2019-01-15 09:36:43 -07:00
|
|
|
### Added
|
2019-06-04 18:10:21 +02:00
|
|
|
- Added `MSG_WAITALL` to `MsgFlags` in `sys::socket`.
|
|
|
|
([#1079](https://github.com/nix-rust/nix/pull/1079))
|
2019-03-10 08:29:23 -07:00
|
|
|
- Implemented `Clone`, `Copy`, `Debug`, `Eq`, `Hash`, and `PartialEq` for most
|
|
|
|
types that support them. ([#1035](https://github.com/nix-rust/nix/pull/1035))
|
2019-06-11 22:44:11 +00:00
|
|
|
- Added `copy_file_range` wrapper
|
|
|
|
([#1069](https://github.com/nix-rust/nix/pull/1069))
|
2019-06-09 21:10:10 -04:00
|
|
|
- Add `mkdirat`.
|
|
|
|
([#1084](https://github.com/nix-rust/nix/pull/1084))
|
2019-06-21 00:13:02 -04:00
|
|
|
- Add `posix_fadvise`.
|
|
|
|
([#1089](https://github.com/nix-rust/nix/pull/1089))
|
2019-06-25 12:34:09 +02:00
|
|
|
- Added `AF_VSOCK` to `AddressFamily`.
|
|
|
|
([#1091](https://github.com/nix-rust/nix/pull/1091))
|
2019-05-15 22:18:21 -07:00
|
|
|
- Add `unlinkat`
|
|
|
|
([#1058](https://github.com/nix-rust/nix/pull/1058))
|
2019-07-11 16:31:56 -07:00
|
|
|
- Add `renameat`.
|
|
|
|
([#1097](https://github.com/nix-rust/nix/pull/1097))
|
2019-06-04 18:10:21 +02:00
|
|
|
|
2019-06-06 15:07:08 -06:00
|
|
|
### Changed
|
2019-06-03 16:21:38 -05:00
|
|
|
- Support for `ifaddrs` now present when building for Android.
|
|
|
|
([#1077](https://github.com/nix-rust/nix/pull/1077))
|
2019-07-02 13:39:25 -06:00
|
|
|
- Minimum supported Rust version is now 1.31.0
|
2019-03-10 08:29:23 -07:00
|
|
|
([#1035](https://github.com/nix-rust/nix/pull/1035))
|
2019-07-02 13:39:25 -06:00
|
|
|
([#1095](https://github.com/nix-rust/nix/pull/1095))
|
2018-07-11 17:21:23 +03:00
|
|
|
- Now functions `statfs()` and `fstatfs()` return result with `Statfs` wrapper
|
|
|
|
([#928](https://github.com/nix-rust/nix/pull/928))
|
2019-06-03 16:21:38 -05:00
|
|
|
|
2019-06-06 15:07:08 -06:00
|
|
|
### Fixed
|
2019-06-25 10:07:41 +02:00
|
|
|
- Enabled `sched_yield` for all nix hosts.
|
|
|
|
([#1090](https://github.com/nix-rust/nix/pull/1090))
|
|
|
|
|
2019-06-06 15:07:08 -06:00
|
|
|
## [0.14.1] - 2019-06-06
|
|
|
|
### Added
|
2019-05-24 16:51:56 -07:00
|
|
|
- Macros exported by `nix` may now be imported via `use` on the Rust 2018
|
|
|
|
edition without importing helper macros on Linux targets.
|
|
|
|
([#1066](https://github.com/nix-rust/nix/pull/1066))
|
|
|
|
|
|
|
|
For example, in Rust 2018, the `ioctl_read_bad!` macro can now be imported
|
|
|
|
without importing the `convert_ioctl_res!` macro.
|
|
|
|
|
|
|
|
```rust
|
|
|
|
use nix::ioctl_read_bad;
|
|
|
|
|
|
|
|
ioctl_read_bad!(tcgets, libc::TCGETS, libc::termios);
|
|
|
|
```
|
|
|
|
|
2019-05-21 19:31:55 -06:00
|
|
|
### Changed
|
2019-06-06 15:04:01 -06:00
|
|
|
- Changed some public types from reexports of libc types like `uint32_t` to the
|
|
|
|
native equivalents like `u32.`
|
|
|
|
([#1072](https://github.com/nix-rust/nix/pull/1072/commits))
|
|
|
|
|
2019-05-21 19:31:55 -06:00
|
|
|
### Fixed
|
2019-06-06 15:04:01 -06:00
|
|
|
- Fix the build on Android and Linux/mips with recent versions of libc.
|
|
|
|
([#1072](https://github.com/nix-rust/nix/pull/1072/commits))
|
|
|
|
|
2019-05-21 19:31:55 -06:00
|
|
|
## [0.14.0] - 2019-05-21
|
|
|
|
### Added
|
2018-12-27 20:45:51 -05:00
|
|
|
- Add IP_RECVIF & IP_RECVDSTADDR. Enable IP_PKTINFO and IP6_PKTINFO on netbsd/openbsd.
|
|
|
|
([#1002](https://github.com/nix-rust/nix/pull/1002))
|
2019-01-20 09:11:15 +01:00
|
|
|
- Added `inotify_init1`, `inotify_add_watch` and `inotify_rm_watch` wrappers for
|
|
|
|
Android and Linux. ([#1016](https://github.com/nix-rust/nix/pull/1016))
|
2019-02-18 14:36:46 +03:00
|
|
|
- Add `ALG_SET_IV`, `ALG_SET_OP` and `ALG_SET_AEAD_ASSOCLEN` control messages and `AF_ALG`
|
|
|
|
socket types on Linux and Android ([#1031](https://github.com/nix-rust/nix/pull/1031))
|
2019-03-04 10:25:05 +08:00
|
|
|
- Add killpg
|
|
|
|
([#1034](https://github.com/nix-rust/nix/pull/1034))
|
2018-11-08 17:23:43 -05:00
|
|
|
- Added ENOTSUP errno support for Linux and Android.
|
|
|
|
([#969](https://github.com/nix-rust/nix/pull/969))
|
2019-03-15 12:47:00 -04:00
|
|
|
- Add several errno constants from OpenBSD 6.2
|
|
|
|
([#1036](https://github.com/nix-rust/nix/pull/1036))
|
2019-04-09 13:48:38 -04:00
|
|
|
- Added `from_std` and `to_std` methods for `sys::socket::IpAddr`
|
|
|
|
([#1043](https://github.com/nix-rust/nix/pull/1043))
|
2019-04-10 21:20:11 -04:00
|
|
|
- Added `nix::unistd:seteuid` and `nix::unistd::setegid` for those platforms that do
|
|
|
|
not support `setresuid` nor `setresgid` respectively.
|
|
|
|
([#1044](https://github.com/nix-rust/nix/pull/1044))
|
2019-04-19 23:52:59 +02:00
|
|
|
- Added a `access` wrapper
|
|
|
|
([#1045](https://github.com/nix-rust/nix/pull/1045))
|
2019-04-07 15:02:53 -07:00
|
|
|
- Add `forkpty`
|
|
|
|
([#1042](https://github.com/nix-rust/nix/pull/1042))
|
2019-05-06 20:53:42 -07:00
|
|
|
- Add `sched_yield`
|
|
|
|
([#1050](https://github.com/nix-rust/nix/pull/1050))
|
2019-01-20 09:11:15 +01:00
|
|
|
|
2019-01-15 09:36:43 -07:00
|
|
|
### Changed
|
2019-02-10 22:44:18 -05:00
|
|
|
- `PollFd` event flags renamed to `PollFlags` ([#1024](https://github.com/nix-rust/nix/pull/1024/))
|
2019-01-30 13:45:39 -07:00
|
|
|
- `recvmsg` now returns an Iterator over `ControlMessageOwned` objects rather
|
|
|
|
than `ControlMessage` objects. This is sadly not backwards-compatible. Fix
|
|
|
|
code like this:
|
|
|
|
```rust
|
|
|
|
if let ControlMessage::ScmRights(&fds) = cmsg {
|
|
|
|
```
|
|
|
|
|
|
|
|
By replacing it with code like this:
|
|
|
|
```rust
|
|
|
|
if let ControlMessageOwned::ScmRights(fds) = cmsg {
|
|
|
|
```
|
|
|
|
([#1020](https://github.com/nix-rust/nix/pull/1020))
|
|
|
|
- Replaced `CmsgSpace` with the `cmsg_space` macro.
|
|
|
|
([#1020](https://github.com/nix-rust/nix/pull/1020))
|
|
|
|
|
2019-01-15 09:36:43 -07:00
|
|
|
### Fixed
|
2019-01-30 13:45:39 -07:00
|
|
|
- Fixed multiple bugs when using `sendmsg` and `recvmsg` with ancillary control messages
|
|
|
|
([#1020](https://github.com/nix-rust/nix/pull/1020))
|
2019-04-02 15:03:35 -04:00
|
|
|
- Macros exported by `nix` may now be imported via `use` on the Rust 2018
|
2019-05-24 16:51:56 -07:00
|
|
|
edition without importing helper macros for BSD targets.
|
2019-04-02 15:03:35 -04:00
|
|
|
([#1041](https://github.com/nix-rust/nix/pull/1041))
|
|
|
|
|
|
|
|
For example, in Rust 2018, the `ioctl_read_bad!` macro can now be imported
|
|
|
|
without importing the `convert_ioctl_res!` macro.
|
|
|
|
|
|
|
|
```rust
|
|
|
|
use nix::ioctl_read_bad;
|
|
|
|
|
|
|
|
ioctl_read_bad!(tcgets, libc::TCGETS, libc::termios);
|
|
|
|
```
|
2019-01-30 13:45:39 -07:00
|
|
|
|
2019-01-15 09:36:43 -07:00
|
|
|
### Removed
|
2019-03-01 08:22:37 -07:00
|
|
|
- `Daemon`, `NOTE_REAP`, and `NOTE_EXIT_REPARENTED` are now deprecated on OSX
|
|
|
|
and iOS.
|
|
|
|
([#1033](https://github.com/nix-rust/nix/pull/1033))
|
2019-05-17 19:48:10 -06:00
|
|
|
- `PTRACE_GETREGS`, `PTRACE_SETREGS`, `PTRACE_GETFPREGS`, and
|
|
|
|
`PTRACE_SETFPREGS` have been removed from some platforms where they never
|
|
|
|
should've been defined in the first place.
|
|
|
|
([#1055](https://github.com/nix-rust/nix/pull/1055))
|
2019-01-15 09:36:43 -07:00
|
|
|
|
2022-11-28 22:18:29 -07:00
|
|
|
## [0.13.1] - 2019-06-10
|
|
|
|
### Changed
|
|
|
|
- Changed some public types from reexports of libc types like `uint32_t` to the
|
|
|
|
native equivalents like `u32.`
|
|
|
|
([#1072](https://github.com/nix-rust/nix/pull/1072/commits))
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
- Fix the build on Android and Linux/mips with recent versions of libc.
|
|
|
|
([#1072](https://github.com/nix-rust/nix/pull/1072/commits))
|
|
|
|
- Fixed build on Linux/arm and Linux/s390x with the latest Rust libc
|
|
|
|
([52102cb](https://github.com/nix-rust/nix/commit/52102cb76398c4dfb9ea141b98c5b01a2e050973))
|
|
|
|
|
|
|
|
### Removed
|
|
|
|
- `Daemon`, `NOTE_REAP`, and `NOTE_EXIT_REPARENTED` are now deprecated on OSX
|
|
|
|
and iOS.
|
|
|
|
([#1033](https://github.com/nix-rust/nix/pull/1033))
|
|
|
|
|
2019-01-15 09:36:43 -07:00
|
|
|
## [0.13.0] - 2019-01-15
|
|
|
|
### Added
|
2018-12-04 00:58:47 -05:00
|
|
|
- Added PKTINFO(V4) & V6PKTINFO cmsg support - Android/FreeBSD/iOS/Linux/MacOS.
|
|
|
|
([#990](https://github.com/nix-rust/nix/pull/990))
|
2018-11-16 16:06:12 +01:00
|
|
|
- Added support of CString type in `setsockopt`.
|
|
|
|
([#972](https://github.com/nix-rust/nix/pull/972))
|
|
|
|
- Added option `TCP_CONGESTION` in `setsockopt`.
|
|
|
|
([#972](https://github.com/nix-rust/nix/pull/972))
|
2018-12-11 23:32:09 +02:00
|
|
|
- Added `symlinkat` wrapper.
|
|
|
|
([#997](https://github.com/nix-rust/nix/pull/997))
|
2019-01-09 15:27:04 -05:00
|
|
|
- Added `ptrace::{getregs, setregs}`.
|
|
|
|
([#1010](https://github.com/nix-rust/nix/pull/1010))
|
2017-12-11 00:14:35 -08:00
|
|
|
- Added `nix::sys::signal::signal`.
|
|
|
|
([#817](https://github.com/nix-rust/nix/pull/817))
|
2018-12-05 10:55:59 -08:00
|
|
|
- Added an `mprotect` wrapper.
|
|
|
|
([#991](https://github.com/nix-rust/nix/pull/991))
|
2018-11-16 16:06:12 +01:00
|
|
|
|
2018-11-28 10:40:37 -07:00
|
|
|
### Fixed
|
2019-01-14 22:18:06 +02:00
|
|
|
- `lutimes` never worked on OpenBSD as it is not implemented on OpenBSD. It has
|
|
|
|
been removed. ([#1000](https://github.com/nix-rust/nix/pull/1000))
|
|
|
|
- `fexecve` never worked on NetBSD or on OpenBSD as it is not implemented on
|
|
|
|
either OS. It has been removed. ([#1000](https://github.com/nix-rust/nix/pull/1000))
|
|
|
|
|
2022-11-28 22:18:29 -07:00
|
|
|
## [0.12.1] 2019-06-08
|
|
|
|
### Changed
|
|
|
|
- Changed some public types from reexports of libc types like `uint32_t` to the
|
|
|
|
native equivalents like `u32.`
|
|
|
|
([#1072](https://github.com/nix-rust/nix/pull/1072/commits))
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
- Fix the build on Android and Linux/mips with recent versions of libc.
|
|
|
|
([#1072](https://github.com/nix-rust/nix/pull/1072/commits))
|
|
|
|
- Fixed build on Linux/arm and Linux/s390x with the latest Rust libc
|
|
|
|
([52102cb](https://github.com/nix-rust/nix/commit/52102cb76398c4dfb9ea141b98c5b01a2e050973))
|
|
|
|
|
2018-11-28 10:40:37 -07:00
|
|
|
### Removed
|
2022-11-28 22:18:29 -07:00
|
|
|
- `fexecve` never worked on NetBSD or on OpenBSD as it is not implemented on
|
|
|
|
either OS. It has been removed. ([#1000](https://github.com/nix-rust/nix/pull/1000))
|
|
|
|
- `Daemon`, `NOTE_REAP`, and `NOTE_EXIT_REPARENTED` are now deprecated on OSX
|
|
|
|
and iOS.
|
|
|
|
([#1033](https://github.com/nix-rust/nix/pull/1033))
|
2018-11-28 10:40:37 -07:00
|
|
|
|
|
|
|
## [0.12.0] 2018-11-28
|
2018-01-26 08:36:41 -07:00
|
|
|
|
2018-06-01 20:06:44 -07:00
|
|
|
### Added
|
2018-11-16 18:07:17 +01:00
|
|
|
- Added `FromStr` and `Display` impls for `nix::sys::Signal`
|
|
|
|
([#884](https://github.com/nix-rust/nix/pull/884))
|
2018-11-01 22:05:34 +02:00
|
|
|
- Added a `sync` wrapper.
|
|
|
|
([#961](https://github.com/nix-rust/nix/pull/961))
|
2018-07-04 17:22:41 +02:00
|
|
|
- Added a `sysinfo` wrapper.
|
|
|
|
([#922](https://github.com/nix-rust/nix/pull/922))
|
2018-07-04 14:52:51 +02:00
|
|
|
- Support the `SO_PEERCRED` socket option and the `UnixCredentials` type on all Linux and Android targets.
|
|
|
|
([#921](https://github.com/nix-rust/nix/pull/921))
|
2018-07-06 02:23:22 +02:00
|
|
|
- Added support for `SCM_CREDENTIALS`, allowing to send process credentials over Unix sockets.
|
|
|
|
([#923](https://github.com/nix-rust/nix/pull/923))
|
2018-06-07 13:18:14 -07:00
|
|
|
- Added a `dir` module for reading directories (wraps `fdopendir`, `readdir`, and `rewinddir`).
|
|
|
|
([#916](https://github.com/nix-rust/nix/pull/916))
|
2018-07-20 21:59:16 +02:00
|
|
|
- Added `kmod` module that allows loading and unloading kernel modules on Linux.
|
|
|
|
([#930](https://github.com/nix-rust/nix/pull/930))
|
Add a wrapper for lutimes(2)
PR #944 added wrappers for the more-modern futimens(2) and utimesat(2),
but unfortunately these APIs are not available on old-ish systems.
In particular, macOS Sierra and below don't implement them, making the
new APIs unusable. Whether we should care about such "old" systems is
debatable, but the problem is that, at the moment, this is the only
macOS version usable on Travis to test kexts and, thus, to test FUSE
file systems.
This should have been part of PR #946, which added a wrapper for
utimes(2) following this same rationale, but missed lutimes(2) because
I simply didn't notice it existed.
2018-11-05 09:16:58 -05:00
|
|
|
- Added `futimens` and `utimesat` wrappers ([#944](https://github.com/nix-rust/nix/pull/944)),
|
|
|
|
an `lutimes` wrapper ([#967](https://github.com/nix-rust/nix/pull/967)),
|
2018-10-02 06:11:33 -04:00
|
|
|
and a `utimes` wrapper ([#946](https://github.com/nix-rust/nix/pull/946)).
|
2018-10-06 13:51:02 +02:00
|
|
|
- Added `AF_UNSPEC` wrapper to `AddressFamily` ([#948](https://github.com/nix-rust/nix/pull/948))
|
2018-10-16 21:28:33 -04:00
|
|
|
- Added the `mode_t` public alias within `sys::stat`.
|
|
|
|
([#954](https://github.com/nix-rust/nix/pull/954))
|
2018-10-17 06:02:12 -04:00
|
|
|
- Added a `truncate` wrapper.
|
|
|
|
([#956](https://github.com/nix-rust/nix/pull/956))
|
2018-10-17 06:35:45 -04:00
|
|
|
- Added a `fchownat` wrapper.
|
|
|
|
([#955](https://github.com/nix-rust/nix/pull/955))
|
2018-10-06 15:31:33 +01:00
|
|
|
- Added support for `ptrace` on BSD operating systems ([#949](https://github.com/nix-rust/nix/pull/949))
|
2019-01-09 15:27:04 -05:00
|
|
|
- Added `ptrace` functions for reads and writes to tracee memory and ptrace kill
|
2018-10-22 23:20:36 +01:00
|
|
|
([#949](https://github.com/nix-rust/nix/pull/949)) ([#958](https://github.com/nix-rust/nix/pull/958))
|
2018-10-20 20:44:26 -04:00
|
|
|
- Added a `acct` wrapper module for enabling and disabling process accounting
|
|
|
|
([#952](https://github.com/nix-rust/nix/pull/952))
|
2018-11-05 11:06:04 -05:00
|
|
|
- Added the `time_t` and `suseconds_t` public aliases within `sys::time`.
|
|
|
|
([#968](https://github.com/nix-rust/nix/pull/968))
|
2018-11-18 11:38:26 +01:00
|
|
|
- Added `unistd::execvpe` for Haiku, Linux and OpenBSD
|
|
|
|
([#975](https://github.com/nix-rust/nix/pull/975))
|
2018-11-21 12:23:29 -07:00
|
|
|
- Added `Error::as_errno`.
|
|
|
|
([#977](https://github.com/nix-rust/nix/pull/977))
|
2018-06-01 20:06:44 -07:00
|
|
|
|
|
|
|
### Changed
|
2018-11-05 04:50:24 +01:00
|
|
|
- Increased required Rust version to 1.24.1
|
2018-05-10 11:45:33 +02:00
|
|
|
([#900](https://github.com/nix-rust/nix/pull/900))
|
2018-11-05 04:50:24 +01:00
|
|
|
([#966](https://github.com/nix-rust/nix/pull/966))
|
2018-06-01 20:06:44 -07:00
|
|
|
|
|
|
|
### Fixed
|
2018-06-11 05:56:35 +02:00
|
|
|
- Made `preadv` take immutable slice of IoVec.
|
|
|
|
([#914](https://github.com/nix-rust/nix/pull/914))
|
2018-03-19 20:07:31 +00:00
|
|
|
- Fixed passing multiple file descriptors over Unix Sockets.
|
|
|
|
([#918](https://github.com/nix-rust/nix/pull/918))
|
2018-06-01 20:06:44 -07:00
|
|
|
|
2022-11-28 22:18:29 -07:00
|
|
|
## [0.11.1] 2019-06-06
|
|
|
|
### Changed
|
|
|
|
- Changed some public types from reexports of libc types like `uint32_t` to the
|
|
|
|
native equivalents like `u32.`
|
|
|
|
([#1072](https://github.com/nix-rust/nix/pull/1072/commits))
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
- Fix the build on Android and Linux/mips with recent versions of libc.
|
|
|
|
([#1072](https://github.com/nix-rust/nix/pull/1072/commits))
|
|
|
|
- Fixed build on Linux/arm and Linux/s390x with the latest Rust libc
|
|
|
|
([52102cb](https://github.com/nix-rust/nix/commit/52102cb76398c4dfb9ea141b98c5b01a2e050973))
|
|
|
|
|
2018-06-01 20:06:44 -07:00
|
|
|
### Removed
|
2022-11-28 22:18:29 -07:00
|
|
|
- `fexecve` never worked on NetBSD or on OpenBSD as it is not implemented on
|
|
|
|
either OS. It has been removed. ([#1000](https://github.com/nix-rust/nix/pull/1000))
|
|
|
|
- `Daemon`, `NOTE_REAP`, and `NOTE_EXIT_REPARENTED` are now deprecated on OSX
|
|
|
|
and iOS.
|
|
|
|
([#1033](https://github.com/nix-rust/nix/pull/1033))
|
2018-06-01 20:06:44 -07:00
|
|
|
|
|
|
|
## [0.11.0] 2018-06-01
|
|
|
|
|
2018-01-26 08:36:41 -07:00
|
|
|
### Added
|
2018-05-02 19:08:41 -06:00
|
|
|
- Added `sendfile` on FreeBSD and Darwin.
|
|
|
|
([#901](https://github.com/nix-rust/nix/pull/901))
|
2018-04-28 21:08:39 +02:00
|
|
|
- Added `pselect`
|
|
|
|
([#894](https://github.com/nix-rust/nix/pull/894))
|
2018-04-12 22:23:13 -06:00
|
|
|
- Exposed `preadv` and `pwritev` on the BSDs.
|
|
|
|
([#883](https://github.com/nix-rust/nix/pull/883))
|
2018-03-24 15:18:10 +01:00
|
|
|
- Added `mlockall` and `munlockall`
|
|
|
|
([#876](https://github.com/nix-rust/nix/pull/876))
|
2018-03-08 15:49:39 +00:00
|
|
|
- Added `SO_MARK` on Linux.
|
2018-06-01 19:59:45 -07:00
|
|
|
([#873](https://github.com/nix-rust/nix/pull/873))
|
2018-03-06 19:28:16 -07:00
|
|
|
- Added safe support for nearly any buffer type in the `sys::aio` module.
|
|
|
|
([#872](https://github.com/nix-rust/nix/pull/872))
|
2018-03-04 21:17:08 -07:00
|
|
|
- Added `sys::aio::LioCb` as a wrapper for `libc::lio_listio`.
|
|
|
|
([#872](https://github.com/nix-rust/nix/pull/872))
|
2018-06-01 19:59:45 -07:00
|
|
|
- Added `unistd::getsid`
|
2018-01-29 12:39:48 -08:00
|
|
|
([#850](https://github.com/nix-rust/nix/pull/850))
|
2018-01-07 22:09:58 +01:00
|
|
|
- Added `alarm`. ([#830](https://github.com/nix-rust/nix/pull/830))
|
2018-02-01 04:42:56 +08:00
|
|
|
- Added interface flags `IFF_NO_PI, IFF_TUN, IFF_TAP` on linux-like systems.
|
|
|
|
([#853](https://github.com/nix-rust/nix/pull/853))
|
2018-01-08 00:13:59 +01:00
|
|
|
- Added `statvfs` module to all MacOS and Linux architectures.
|
|
|
|
([#832](https://github.com/nix-rust/nix/pull/832))
|
2018-06-01 19:59:45 -07:00
|
|
|
- Added `EVFILT_EMPTY`, `EVFILT_PROCDESC`, and `EVFILT_SENDFILE` on FreeBSD.
|
2018-01-04 02:48:39 +03:00
|
|
|
([#825](https://github.com/nix-rust/nix/pull/825))
|
2018-01-04 02:54:31 +03:00
|
|
|
- Exposed `termios::cfmakesane` on FreeBSD.
|
|
|
|
([#825](https://github.com/nix-rust/nix/pull/825))
|
2018-01-05 01:11:11 +03:00
|
|
|
- Exposed `MSG_CMSG_CLOEXEC` on *BSD.
|
|
|
|
([#825](https://github.com/nix-rust/nix/pull/825))
|
2018-02-05 22:32:15 +03:00
|
|
|
- Added `fchmod`, `fchmodat`.
|
|
|
|
([#857](https://github.com/nix-rust/nix/pull/857))
|
2018-01-28 19:03:14 -08:00
|
|
|
- Added `request_code_write_int!` on FreeBSD/DragonFlyBSD
|
|
|
|
([#833](https://github.com/nix-rust/nix/pull/833))
|
2018-01-07 22:09:58 +01:00
|
|
|
|
2018-01-26 08:36:41 -07:00
|
|
|
### Changed
|
2018-06-01 19:59:45 -07:00
|
|
|
- `Display` and `Debug` for `SysControlAddr` now includes all fields.
|
2018-01-14 22:34:18 -08:00
|
|
|
([#837](https://github.com/nix-rust/nix/pull/837))
|
2018-04-11 08:07:01 -07:00
|
|
|
- `ioctl!` has been replaced with a family of `ioctl_*!` macros.
|
|
|
|
([#833](https://github.com/nix-rust/nix/pull/833))
|
2018-06-01 19:59:45 -07:00
|
|
|
- `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
|
2018-04-11 08:07:01 -07:00
|
|
|
in the documentation.
|
|
|
|
([#833](https://github.com/nix-rust/nix/pull/833))
|
2018-04-26 17:44:09 +09:00
|
|
|
- Enabled more `ptrace::Request` definitions for uncommon Linux platforms
|
|
|
|
([#892](https://github.com/nix-rust/nix/pull/892))
|
2018-06-01 13:32:50 -07:00
|
|
|
- Emulation of `FD_CLOEXEC` and `O_NONBLOCK` was removed from `socket()`, `accept4()`, and
|
|
|
|
`socketpair()`.
|
|
|
|
([#907](https://github.com/nix-rust/nix/pull/907))
|
2018-01-26 08:36:41 -07:00
|
|
|
|
|
|
|
### Fixed
|
2018-04-04 07:11:43 +03:00
|
|
|
- Fixed possible panics when using `SigAction::flags` on Linux
|
|
|
|
([#869](https://github.com/nix-rust/nix/pull/869))
|
2018-01-14 16:19:40 -08:00
|
|
|
- Properly exposed 460800 and 921600 baud rates on NetBSD
|
|
|
|
([#837](https://github.com/nix-rust/nix/pull/837))
|
2018-01-28 19:03:14 -08:00
|
|
|
- Fixed `ioctl_write_int!` on FreeBSD/DragonFlyBSD
|
|
|
|
([#833](https://github.com/nix-rust/nix/pull/833))
|
2018-01-30 19:52:49 -08:00
|
|
|
- `ioctl_write_int!` now properly supports passing a `c_ulong` as the parameter on Linux non-musl targets
|
|
|
|
([#833](https://github.com/nix-rust/nix/pull/833))
|
2018-01-26 08:36:41 -07:00
|
|
|
|
|
|
|
### Removed
|
2018-03-06 19:28:16 -07:00
|
|
|
- Removed explicit support for the `bytes` crate from the `sys::aio` module.
|
2018-06-01 19:59:45 -07:00
|
|
|
See `sys::aio::AioCb::from_boxed_slice` examples for alternatives.
|
2018-03-06 19:28:16 -07:00
|
|
|
([#872](https://github.com/nix-rust/nix/pull/872))
|
2018-03-04 21:17:08 -07:00
|
|
|
- Removed `sys::aio::lio_listio`. Use `sys::aio::LioCb::listio` instead.
|
|
|
|
([#872](https://github.com/nix-rust/nix/pull/872))
|
2018-06-01 13:32:50 -07:00
|
|
|
- Removed emulated `accept4()` from macos, ios, and netbsd targets
|
|
|
|
([#907](https://github.com/nix-rust/nix/pull/907))
|
2018-06-01 19:59:45 -07:00
|
|
|
- Removed `IFF_NOTRAILERS` on OpenBSD, as it has been removed in OpenBSD 6.3
|
|
|
|
([#893](https://github.com/nix-rust/nix/pull/893))
|
2018-01-26 08:36:41 -07:00
|
|
|
|
2018-01-26 07:18:39 -07:00
|
|
|
## [0.10.0] 2018-01-26
|
2017-07-23 22:33:21 -06:00
|
|
|
|
2017-07-17 09:39:23 +02:00
|
|
|
### Added
|
2018-02-11 17:10:36 -08:00
|
|
|
- Added specialized wrapper: `sys::ptrace::step`
|
2018-01-31 20:33:31 +00:00
|
|
|
([#852](https://github.com/nix-rust/nix/pull/852))
|
2017-11-04 11:59:39 -06:00
|
|
|
- Added `AioCb::from_ptr` and `AioCb::from_mut_ptr`
|
|
|
|
([#820](https://github.com/nix-rust/nix/pull/820))
|
2017-08-03 10:29:45 +02:00
|
|
|
- Added specialized wrappers: `sys::ptrace::{traceme, syscall, cont, attach}`. Using the matching routines
|
|
|
|
with `sys::ptrace::ptrace` is now deprecated.
|
2017-07-31 08:31:12 -07:00
|
|
|
- Added `nix::poll` module for all platforms
|
|
|
|
([#672](https://github.com/nix-rust/nix/pull/672))
|
|
|
|
- Added `nix::ppoll` function for FreeBSD and DragonFly
|
|
|
|
([#672](https://github.com/nix-rust/nix/pull/672))
|
2017-07-17 09:39:23 +02:00
|
|
|
- Added protocol families in `AddressFamily` enum.
|
|
|
|
([#647](https://github.com/nix-rust/nix/pull/647))
|
2017-08-07 15:10:41 +02:00
|
|
|
- Added the `pid()` method to `WaitStatus` for extracting the PID.
|
|
|
|
([#722](https://github.com/nix-rust/nix/pull/722))
|
2017-08-09 20:08:05 +00:00
|
|
|
- Added `nix::unistd:fexecve`.
|
|
|
|
([#727](https://github.com/nix-rust/nix/pull/727))
|
2017-08-17 18:03:07 -07:00
|
|
|
- Expose `uname()` on all platforms.
|
|
|
|
([#739](https://github.com/nix-rust/nix/pull/739))
|
|
|
|
- Expose `signalfd` module on Android as well.
|
|
|
|
([#739](https://github.com/nix-rust/nix/pull/739))
|
2018-02-11 17:10:36 -08:00
|
|
|
- Added `nix::sys::ptrace::detach`.
|
2017-08-28 10:37:42 +01:00
|
|
|
([#749](https://github.com/nix-rust/nix/pull/749))
|
2017-04-02 13:48:02 -05:00
|
|
|
- Added timestamp socket control message variant:
|
|
|
|
`nix::sys::socket::ControlMessage::ScmTimestamp`
|
|
|
|
([#663](https://github.com/nix-rust/nix/pull/663))
|
|
|
|
- Added socket option variant that enables the timestamp socket
|
|
|
|
control message: `nix::sys::socket::sockopt::ReceiveTimestamp`
|
|
|
|
([#663](https://github.com/nix-rust/nix/pull/663))
|
2017-09-17 22:06:03 -06:00
|
|
|
- Added more accessor methods for `AioCb`
|
|
|
|
([#773](https://github.com/nix-rust/nix/pull/773))
|
2018-02-11 17:10:36 -08:00
|
|
|
- Add `nix::sys::fallocate`
|
2017-10-07 19:13:02 +05:30
|
|
|
([#768](https:://github.com/nix-rust/nix/pull/768))
|
2017-10-11 09:46:22 +01:00
|
|
|
- Added `nix::unistd::mkfifo`.
|
|
|
|
([#602](https://github.com/nix-rust/nix/pull/774))
|
2017-10-30 10:53:50 -04:00
|
|
|
- Added `ptrace::Options::PTRACE_O_EXITKILL` on Linux and Android.
|
|
|
|
([#771](https://github.com/nix-rust/nix/pull/771))
|
2017-04-03 10:18:11 -04:00
|
|
|
- Added `nix::sys::uio::{process_vm_readv, process_vm_writev}` on Linux
|
|
|
|
([#568](https://github.com/nix-rust/nix/pull/568))
|
2017-08-27 20:13:06 +02:00
|
|
|
- Added `nix::unistd::{getgroups, setgroups, getgrouplist, initgroups}`. ([#733](https://github.com/nix-rust/nix/pull/733))
|
2017-10-26 09:30:55 +00:00
|
|
|
- Added `nix::sys::socket::UnixAddr::as_abstract` on Linux and Android.
|
|
|
|
([#785](https://github.com/nix-rust/nix/pull/785))
|
2017-11-19 09:13:53 +00:00
|
|
|
- Added `nix::unistd::execveat` on Linux and Android.
|
|
|
|
([#800](https://github.com/nix-rust/nix/pull/800))
|
2017-08-21 15:07:37 +12:00
|
|
|
- Added the `from_raw()` method to `WaitStatus` for converting raw status values
|
|
|
|
to `WaitStatus` independent of syscalls.
|
|
|
|
([#741](https://github.com/nix-rust/nix/pull/741))
|
2017-12-05 19:10:44 -08:00
|
|
|
- Added more standard trait implementations for various types.
|
|
|
|
([#814](https://github.com/nix-rust/nix/pull/814))
|
2018-01-05 16:28:14 +01:00
|
|
|
- Added `sigprocmask` to the signal module.
|
|
|
|
([#826](https://github.com/nix-rust/nix/pull/826))
|
2017-12-14 01:57:38 +08:00
|
|
|
- Added `nix::sys::socket::LinkAddr` on Linux and all bsdlike system.
|
|
|
|
([#813](https://github.com/nix-rust/nix/pull/813))
|
2018-01-11 02:06:50 +00:00
|
|
|
- Add socket options for `IP_TRANSPARENT` / `BIND_ANY`.
|
|
|
|
([#835](https://github.com/nix-rust/nix/pull/835))
|
2017-07-17 09:39:23 +02:00
|
|
|
|
2017-07-25 09:12:29 +02:00
|
|
|
### Changed
|
2018-01-07 20:39:31 -07:00
|
|
|
- Exposed the `mqueue` module for all supported operating systems.
|
|
|
|
([#834](https://github.com/nix-rust/nix/pull/834))
|
2017-10-08 11:05:01 -06:00
|
|
|
- Use native `pipe2` on all BSD targets. Users should notice no difference.
|
|
|
|
([#777](https://github.com/nix-rust/nix/pull/777))
|
2017-07-25 09:12:29 +02:00
|
|
|
- Renamed existing `ptrace` wrappers to encourage namespacing ([#692](https://github.com/nix-rust/nix/pull/692))
|
2017-08-03 10:29:45 +02:00
|
|
|
- Marked `sys::ptrace::ptrace` as `unsafe`.
|
2017-07-21 12:20:56 +02:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/647))
|
2017-07-21 00:46:56 +02:00
|
|
|
- Made `select` easier to use, adding the ability to automatically calculate the `nfds` parameter using the new
|
|
|
|
`FdSet::highest` ([#701](https://github.com/nix-rust/nix/pull/701))
|
2017-08-07 18:00:58 +10:00
|
|
|
- Exposed `unistd::setresuid` and `unistd::setresgid` on FreeBSD and OpenBSD
|
|
|
|
([#721](https://github.com/nix-rust/nix/pull/721))
|
2017-08-10 08:00:59 -07:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/729))
|
2017-08-10 14:32:59 -07:00
|
|
|
- The `addr` argument to `madvise` and `msync` is now `*mut` to better match the
|
|
|
|
libc API. ([#731](https://github.com/nix-rust/nix/pull/731))
|
|
|
|
- `shm_open` and `shm_unlink` are no longer exposed on Android targets, where
|
|
|
|
they are not officially supported. ([#731](https://github.com/nix-rust/nix/pull/731))
|
|
|
|
- `MapFlags`, `MmapAdvise`, and `MsFlags` expose some more variants and only
|
|
|
|
officially-supported variants are provided for each target.
|
|
|
|
([#731](https://github.com/nix-rust/nix/pull/731))
|
2017-08-24 00:47:20 -07:00
|
|
|
- Marked `pty::ptsname` function as `unsafe`
|
|
|
|
([#744](https://github.com/nix-rust/nix/pull/744))
|
2017-12-06 07:58:10 -08:00
|
|
|
- Moved constants ptrace request, event and options to enums and updated ptrace functions and argument types accordingly.
|
2017-08-12 16:49:08 +01:00
|
|
|
([#749](https://github.com/nix-rust/nix/pull/749))
|
2017-09-03 14:27:20 -06:00
|
|
|
- `AioCb::Drop` will now panic if the `AioCb` is still in-progress ([#715](https://github.com/nix-rust/nix/pull/715))
|
2017-10-26 09:30:55 +00:00
|
|
|
- Restricted `nix::sys::socket::UnixAddr::new_abstract` to Linux and Android only.
|
|
|
|
([#785](https://github.com/nix-rust/nix/pull/785))
|
2017-12-06 07:58:10 -08:00
|
|
|
- The `ucred` struct has been removed in favor of a `UserCredentials` struct that
|
|
|
|
contains only getters for its fields.
|
|
|
|
([#814](https://github.com/nix-rust/nix/pull/814))
|
2017-12-05 20:06:23 -08:00
|
|
|
- Both `ip_mreq` and `ipv6_mreq` have been replaced with `IpMembershipRequest` and
|
|
|
|
`Ipv6MembershipRequest`.
|
|
|
|
([#814](https://github.com/nix-rust/nix/pull/814))
|
2018-01-11 15:31:51 +01:00
|
|
|
- Removed return type from `pause`.
|
|
|
|
([#829](https://github.com/nix-rust/nix/pull/829))
|
2018-01-23 21:45:08 -08:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/843))
|
2017-07-25 09:12:29 +02:00
|
|
|
|
2017-10-14 17:53:58 -06:00
|
|
|
### Fixed
|
2017-08-08 07:03:36 +10:00
|
|
|
- Fix compilation and tests for OpenBSD targets
|
|
|
|
([#688](https://github.com/nix-rust/nix/pull/688))
|
2017-09-03 14:27:57 -06:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/715))
|
2017-09-27 23:15:12 +13:00
|
|
|
- Fix potential memory corruption on non-Linux platforms when using
|
|
|
|
`sendmsg`/`recvmsg`, caused by mismatched `msghdr` definition.
|
|
|
|
([#648](https://github.com/nix-rust/nix/pull/648))
|
2017-08-08 07:03:36 +10:00
|
|
|
|
2017-10-14 17:53:58 -06:00
|
|
|
### Removed
|
2017-11-04 14:48:14 -06:00
|
|
|
- `AioCb::from_boxed_slice` has been removed. It was never actually safe. Use
|
|
|
|
`from_bytes` or `from_bytes_mut` instead.
|
|
|
|
([#820](https://github.com/nix-rust/nix/pull/820))
|
2017-08-26 21:03:52 -07:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/747))
|
2017-07-20 20:00:00 +02:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/696))
|
2017-12-05 19:36:53 -08:00
|
|
|
- Removed `MS_VERBOSE`, `MS_NOSEC`, and `MS_BORN` from `MsFlags`. These
|
|
|
|
are internal kernel flags and should never have been exposed.
|
|
|
|
([#814](https://github.com/nix-rust/nix/pull/814))
|
|
|
|
|
2017-08-26 21:03:52 -07:00
|
|
|
|
2017-07-23 21:11:17 -06:00
|
|
|
## [0.9.0] 2017-07-23
|
2017-03-02 00:03:05 -05:00
|
|
|
|
2017-04-15 12:11:18 -07:00
|
|
|
### Added
|
2017-06-24 14:20:48 -06:00
|
|
|
- Added `sysconf`, `pathconf`, and `fpathconf`
|
|
|
|
([#630](https://github.com/nix-rust/nix/pull/630)
|
2017-06-01 02:11:25 +02:00
|
|
|
- Added `sys::signal::SigAction::{ flags, mask, handler}`
|
|
|
|
([#611](https://github.com/nix-rust/nix/pull/609)
|
2017-04-18 20:03:23 +08:00
|
|
|
- Added `nix::sys::pthread::pthread_self`
|
|
|
|
([#591](https://github.com/nix-rust/nix/pull/591)
|
2017-04-07 23:30:47 -06:00
|
|
|
- Added `AioCb::from_boxed_slice`
|
|
|
|
([#582](https://github.com/nix-rust/nix/pull/582)
|
2017-03-20 22:12:07 +01:00
|
|
|
- Added `nix::unistd::{openat, fstatat, readlink, readlinkat}`
|
2017-04-15 12:11:18 -07:00
|
|
|
([#551](https://github.com/nix-rust/nix/pull/551))
|
2017-03-15 10:26:09 -07:00
|
|
|
- Added `nix::pty::{grantpt, posix_openpt, ptsname/ptsname_r, unlockpt}`
|
|
|
|
([#556](https://github.com/nix-rust/nix/pull/556)
|
2016-11-02 09:26:29 -04:00
|
|
|
- Added `nix::ptr::openpty`
|
|
|
|
([#456](https://github.com/nix-rust/nix/pull/456))
|
2017-06-01 21:34:36 +01:00
|
|
|
- Added `nix::ptrace::{ptrace_get_data, ptrace_getsiginfo, ptrace_setsiginfo
|
|
|
|
and nix::Error::UnsupportedOperation}`
|
|
|
|
([#614](https://github.com/nix-rust/nix/pull/614))
|
2017-07-10 21:11:18 -07:00
|
|
|
- Added `cfmakeraw`, `cfsetspeed`, and `tcgetsid`. ([#527](https://github.com/nix-rust/nix/pull/527))
|
2017-07-17 11:15:42 -07:00
|
|
|
- Added "bad none", "bad write_ptr", "bad write_int", and "bad readwrite" variants to the `ioctl!`
|
|
|
|
macro. ([#670](https://github.com/nix-rust/nix/pull/670))
|
2017-03-28 16:55:36 -04:00
|
|
|
- On Linux and Android, added support for receiving `PTRACE_O_TRACESYSGOOD`
|
|
|
|
events from `wait` and `waitpid` using `WaitStatus::PtraceSyscall`
|
|
|
|
([#566](https://github.com/nix-rust/nix/pull/566)).
|
2017-03-19 19:54:17 -04:00
|
|
|
|
|
|
|
### Changed
|
2017-07-23 19:05:49 -06:00
|
|
|
- The `ioctl!` macro and its variants now allow the generated functions to have
|
|
|
|
doccomments. ([#661](https://github.com/nix-rust/nix/pull/661))
|
2017-07-17 11:15:42 -07:00
|
|
|
- Changed `ioctl!(write ...)` into `ioctl!(write_ptr ...)` and `ioctl!(write_int ..)` variants
|
|
|
|
to more clearly separate those use cases. ([#670](https://github.com/nix-rust/nix/pull/670))
|
2017-03-19 12:06:56 -07:00
|
|
|
- Marked `sys::mman::{ mmap, munmap, madvise, munlock, msync }` as unsafe.
|
|
|
|
([#559](https://github.com/nix-rust/nix/pull/559))
|
2017-07-10 21:10:49 -07:00
|
|
|
- Minimum supported Rust version is now 1.13.
|
2017-04-15 12:11:18 -07:00
|
|
|
- Removed `revents` argument from `PollFd::new()` as it's an output argument and
|
|
|
|
will be overwritten regardless of value.
|
2017-04-15 14:35:43 -07:00
|
|
|
([#542](https://github.com/nix-rust/nix/pull/542))
|
2017-03-26 17:06:07 +02:00
|
|
|
- Changed type signature of `sys::select::FdSet::contains` to make `self`
|
|
|
|
immutable ([#564](https://github.com/nix-rust/nix/pull/564))
|
2017-07-10 21:10:49 -07:00
|
|
|
- Introduced wrapper types for `gid_t`, `pid_t`, and `uid_t` as `Gid`, `Pid`, and `Uid`
|
2017-06-24 10:05:03 +02:00
|
|
|
respectively. Various functions have been changed to use these new types as
|
|
|
|
arguments. ([#629](https://github.com/nix-rust/nix/pull/629))
|
2017-07-10 21:11:18 -07:00
|
|
|
- Fixed compilation on all Android and iOS targets ([#527](https://github.com/nix-rust/nix/pull/527))
|
|
|
|
and promoted them to Tier 2 support.
|
2017-03-24 19:33:38 +01:00
|
|
|
- `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](https://github.com/nix-rust/nix/pull/561))
|
2017-07-10 21:11:18 -07:00
|
|
|
- Revised the termios API including additional tests and documentation and exposed it on iOS. ([#527](https://github.com/nix-rust/nix/pull/527))
|
2017-07-17 11:24:41 -07:00
|
|
|
- `eventfd`, `signalfd`, and `pwritev`/`preadv` functionality is now included by default for all
|
|
|
|
supported platforms. ([#681](https://github.com/nix-rust/nix/pull/561))
|
2017-07-17 11:15:42 -07:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/670))
|
2017-04-15 12:11:18 -07:00
|
|
|
|
2017-06-01 21:34:36 +01:00
|
|
|
### Removed
|
2017-07-10 21:10:49 -07:00
|
|
|
- Removed `io::Error` from `nix::Error` and the conversion from `nix::Error` to `Errno`
|
2017-06-01 21:34:36 +01:00
|
|
|
([#614](https://github.com/nix-rust/nix/pull/614))
|
2017-07-17 11:24:41 -07:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/561))
|
2017-07-17 11:15:42 -07:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/670))
|
2017-06-01 21:34:36 +01:00
|
|
|
|
2017-04-15 12:11:18 -07:00
|
|
|
### Fixed
|
|
|
|
- Fixed multiple issues compiling under different archetectures and OSes.
|
|
|
|
Now compiles on Linux/MIPS ([#538](https://github.com/nix-rust/nix/pull/538)),
|
|
|
|
`Linux/PPC` ([#553](https://github.com/nix-rust/nix/pull/553)),
|
2017-04-15 14:35:43 -07:00
|
|
|
`MacOS/x86_64,i686` ([#553](https://github.com/nix-rust/nix/pull/553)),
|
2017-07-04 14:06:39 +02:00
|
|
|
`NetBSD/x64_64` ([#538](https://github.com/nix-rust/nix/pull/538)),
|
|
|
|
`FreeBSD/x86_64,i686` ([#536](https://github.com/nix-rust/nix/pull/536)), and
|
|
|
|
`Android` ([#631](https://github.com/nix-rust/nix/pull/631)).
|
|
|
|
- `bind` and `errno_location` now work correctly on `Android`
|
|
|
|
([#631](https://github.com/nix-rust/nix/pull/631))
|
2017-06-20 01:13:29 -04:00
|
|
|
- Added `nix::ptrace` on all Linux-kernel-based platforms
|
|
|
|
[#624](https://github.com/nix-rust/nix/pull/624). Previously it was
|
|
|
|
only available on x86, x86-64, and ARM, and also not on Android.
|
2017-06-20 15:30:48 +12:00
|
|
|
- Fixed `sys::socket::sendmsg` with zero entry `cmsgs` parameter.
|
|
|
|
([#623](https://github.com/nix-rust/nix/pull/623))
|
2017-07-10 21:11:18 -07:00
|
|
|
- Multiple constants related to the termios API have now been properly defined for
|
|
|
|
all supported platforms. ([#527](https://github.com/nix-rust/nix/pull/527))
|
2017-07-17 11:15:42 -07:00
|
|
|
- `ioctl!` macro now supports working with non-int datatypes and properly supports all platforms.
|
|
|
|
([#670](https://github.com/nix-rust/nix/pull/670))
|
2017-03-19 12:06:56 -07:00
|
|
|
|
2017-04-16 23:05:56 -04:00
|
|
|
## [0.8.1] 2017-04-16
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
- Fixed build on FreeBSD. (Cherry-picked
|
|
|
|
[a859ee3c](https://github.com/nix-rust/nix/commit/a859ee3c9396dfdb118fcc2c8ecc697e2d303467))
|
|
|
|
|
2017-03-01 23:49:52 -05:00
|
|
|
## [0.8.0] 2017-03-02
|
2016-07-22 23:37:51 +02:00
|
|
|
|
|
|
|
### Added
|
2017-02-16 16:30:47 +00:00
|
|
|
- Added `::nix::sys::termios::BaudRate` enum to provide portable baudrate
|
|
|
|
values. ([#518](https://github.com/nix-rust/nix/pull/518))
|
2017-02-14 10:22:33 -05:00
|
|
|
- Added a new `WaitStatus::PtraceEvent` to support ptrace events on Linux
|
2017-07-10 21:10:49 -07:00
|
|
|
and Android ([#438](https://github.com/nix-rust/nix/pull/438))
|
Add POSIX AIO support
POSIX AIO is a standard for asynchronous file I/O. Read, write, and
fsync operations can all take place in the background, with completion
notification delivered by a signal, by a new thread, by kqueue, or not
at all. This commit supports all standard AIO functions. However,
lio_listio is disabled on macos because it doesn't seem to work, even
though the syscall is present.
The SigEvent class, used for AIO notifications among other things, is
also added.
Also, impl AsRef for TimeVal and TimeSpec
2016-09-18 21:17:41 -06:00
|
|
|
- Added support for POSIX AIO
|
2017-01-25 22:58:23 -07:00
|
|
|
([#483](https://github.com/nix-rust/nix/pull/483))
|
2017-02-05 20:57:04 -07:00
|
|
|
([#506](https://github.com/nix-rust/nix/pull/506))
|
2016-11-25 00:11:51 -05:00
|
|
|
- Added support for XNU system control sockets
|
|
|
|
([#478](https://github.com/nix-rust/nix/pull/478))
|
2016-11-25 00:10:15 -05:00
|
|
|
- Added support for `ioctl` calls on BSD platforms
|
|
|
|
([#478](https://github.com/nix-rust/nix/pull/478))
|
2016-11-19 20:59:08 -07:00
|
|
|
- Added struct `TimeSpec`
|
|
|
|
([#475](https://github.com/nix-rust/nix/pull/475))
|
2017-01-25 22:58:23 -07:00
|
|
|
([#483](https://github.com/nix-rust/nix/pull/483))
|
2016-10-02 12:31:30 -06:00
|
|
|
- Added complete definitions for all kqueue-related constants on all supported
|
|
|
|
OSes
|
|
|
|
([#415](https://github.com/nix-rust/nix/pull/415))
|
2016-10-12 22:14:01 +02:00
|
|
|
- Added function `epoll_create1` and bitflags `EpollCreateFlags` in
|
|
|
|
`::nix::sys::epoll` in order to support `::libc::epoll_create1`.
|
|
|
|
([#410](https://github.com/nix-rust/nix/pull/410))
|
2016-10-25 11:36:41 -07:00
|
|
|
- Added `setresuid` and `setresgid` for Linux in `::nix::unistd`
|
|
|
|
([#448](https://github.com/nix-rust/nix/pull/448))
|
2016-10-05 13:16:18 +11:00
|
|
|
- Added `getpgid` in `::nix::unistd`
|
|
|
|
([#433](https://github.com/nix-rust/nix/pull/433))
|
2016-11-08 10:26:06 -05:00
|
|
|
- Added `tcgetpgrp` and `tcsetpgrp` in `::nix::unistd`
|
|
|
|
([#451](https://github.com/nix-rust/nix/pull/451))
|
2016-11-09 18:46:06 -08:00
|
|
|
- Added `CLONE_NEWCGROUP` in `::nix::sched`
|
|
|
|
([#457](https://github.com/nix-rust/nix/pull/457))
|
2016-12-12 14:52:29 -05:00
|
|
|
- Added `getpgrp` in `::nix::unistd`
|
|
|
|
([#491](https://github.com/nix-rust/nix/pull/491))
|
2017-01-18 08:32:55 +00:00
|
|
|
- Added `fchdir` in `::nix::unistd`
|
|
|
|
([#497](https://github.com/nix-rust/nix/pull/497))
|
2017-02-13 19:34:17 +00:00
|
|
|
- Added `major` and `minor` in `::nix::sys::stat` for decomposing `dev_t`
|
|
|
|
([#508](https://github.com/nix-rust/nix/pull/508))
|
2017-01-31 21:13:15 +01:00
|
|
|
- Fixed the style of many bitflags and use `libc` in more places.
|
|
|
|
([#503](https://github.com/nix-rust/nix/pull/503))
|
2017-02-23 15:27:11 -08:00
|
|
|
- Added `ppoll` in `::nix::poll`
|
|
|
|
([#520](https://github.com/nix-rust/nix/pull/520))
|
2017-02-27 22:37:28 -05:00
|
|
|
- Added support for getting and setting pipe size with fcntl(2) on Linux
|
2017-07-10 21:10:49 -07:00
|
|
|
([#540](https://github.com/nix-rust/nix/pull/540))
|
2016-10-12 22:14:01 +02:00
|
|
|
|
2016-09-15 13:32:19 -07:00
|
|
|
### Changed
|
2017-04-15 12:11:18 -07:00
|
|
|
- `::nix::sys::termios::{cfgetispeed, cfsetispeed, cfgetospeed, cfsetospeed}`
|
|
|
|
switched to use `BaudRate` enum from `speed_t`.
|
2017-02-16 16:30:47 +00:00
|
|
|
([#518](https://github.com/nix-rust/nix/pull/518))
|
2016-12-19 15:54:59 +08:00
|
|
|
- `epoll_ctl` now could accept None as argument `event`
|
|
|
|
when op is `EpollOp::EpollCtlDel`.
|
|
|
|
([#480](https://github.com/nix-rust/nix/pull/480))
|
2016-11-25 00:10:15 -05:00
|
|
|
- Removed the `bad` keyword from the `ioctl!` macro
|
|
|
|
([#478](https://github.com/nix-rust/nix/pull/478))
|
2016-11-19 20:59:08 -07:00
|
|
|
- Changed `TimeVal` into an opaque Newtype
|
|
|
|
([#475](https://github.com/nix-rust/nix/pull/475))
|
2016-10-24 21:03:30 +02:00
|
|
|
- `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`.
|
2016-11-15 08:41:33 +01:00
|
|
|
([#445](https://github.com/nix-rust/nix/pull/445))
|
2016-10-24 11:50:21 -05:00
|
|
|
- The minimum supported version of rustc is now 1.7.0.
|
|
|
|
([#444](https://github.com/nix-rust/nix/pull/444))
|
2016-10-13 21:26:43 -06:00
|
|
|
- Changed `KEvent` to an opaque structure that may only be modified by its
|
|
|
|
constructor and the `ev_set` method.
|
|
|
|
([#415](https://github.com/nix-rust/nix/pull/415))
|
2016-11-14 21:33:04 -07:00
|
|
|
([#442](https://github.com/nix-rust/nix/pull/442))
|
|
|
|
([#463](https://github.com/nix-rust/nix/pull/463))
|
2016-09-15 13:32:19 -07:00
|
|
|
- `pipe2` now calls `libc::pipe2` where available. Previously it was emulated
|
|
|
|
using `pipe`, which meant that setting `O_CLOEXEC` was not atomic.
|
2016-09-15 14:43:42 -07:00
|
|
|
([#427](https://github.com/nix-rust/nix/pull/427))
|
2016-10-12 22:14:01 +02:00
|
|
|
- Renamed `EpollEventKind` to `EpollFlags` in `::nix::sys::epoll` in order for
|
|
|
|
it to conform with our conventions.
|
|
|
|
([#410](https://github.com/nix-rust/nix/pull/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](https://github.com/nix-rust/nix/pull/410))
|
2016-11-08 18:21:36 -08:00
|
|
|
- `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.
|
2016-11-15 08:41:33 +01:00
|
|
|
([#460](https://github.com/nix-rust/nix/pull/460))
|
2016-10-29 17:04:37 -05:00
|
|
|
- `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.
|
2016-10-29 17:19:39 -05:00
|
|
|
- `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).
|
2017-02-27 22:55:49 -05:00
|
|
|
- Exposed all fcntl(2) operations at the module level, so they can be
|
|
|
|
imported direclty instead of via `FcntlArg` enum.
|
|
|
|
([#541](https://github.com/nix-rust/nix/pull/541))
|
2016-10-12 22:14:01 +02:00
|
|
|
|
|
|
|
### Fixed
|
2016-11-18 22:03:59 -07:00
|
|
|
- Fixed multiple issues with Unix domain sockets on non-Linux OSes
|
|
|
|
([#474](https://github.com/nix-rust/nix/pull/415))
|
2016-10-13 21:26:43 -06:00
|
|
|
- Fixed using kqueue with `EVFILT_USER` on FreeBSD
|
|
|
|
([#415](https://github.com/nix-rust/nix/pull/415))
|
2016-10-12 22:14:01 +02:00
|
|
|
- Fixed the build on FreeBSD, and fixed the getsockopt, sendmsg, and recvmsg
|
|
|
|
functions on that same OS.
|
|
|
|
([#397](https://github.com/nix-rust/nix/pull/397))
|
|
|
|
- Fixed an off-by-one bug in `UnixAddr::new_abstract` in `::nix::sys::socket`.
|
|
|
|
([#429](https://github.com/nix-rust/nix/pull/429))
|
2016-12-10 23:32:11 -08:00
|
|
|
- Fixed clone passing a potentially unaligned stack.
|
|
|
|
([#490](https://github.com/nix-rust/nix/pull/490))
|
2017-02-13 19:34:17 +00:00
|
|
|
- Fixed mkdev not creating a `dev_t` the same way as libc.
|
|
|
|
([#508](https://github.com/nix-rust/nix/pull/508))
|
2016-09-15 13:32:19 -07:00
|
|
|
|
2016-09-09 20:32:45 +02:00
|
|
|
## [0.7.0] 2016-09-09
|
2016-07-22 23:37:51 +02:00
|
|
|
|
|
|
|
### Added
|
|
|
|
- Added `lseek` and `lseek64` in `::nix::unistd`
|
|
|
|
([#377](https://github.com/nix-rust/nix/pull/377))
|
2016-09-09 06:54:35 +02:00
|
|
|
- Added `mkdir` and `getcwd` in `::nix::unistd`
|
|
|
|
([#416](https://github.com/nix-rust/nix/pull/416))
|
2016-07-22 23:37:51 +02:00
|
|
|
- Added accessors `sigmask_mut` and `sigmask` to `UContext` in
|
|
|
|
`::nix::ucontext`.
|
|
|
|
([#370](https://github.com/nix-rust/nix/pull/370))
|
|
|
|
- Added `WUNTRACED` to `WaitPidFlag` in `::nix::sys::wait` for non-_linux_
|
|
|
|
targets.
|
|
|
|
([#379](https://github.com/nix-rust/nix/pull/379))
|
|
|
|
- Added new module `::nix::sys::reboot` with enumeration `RebootMode` and
|
|
|
|
functions `reboot` and `set_cad_enabled`. Currently for _linux_ only.
|
|
|
|
([#386](https://github.com/nix-rust/nix/pull/386))
|
2016-08-28 09:20:02 +02:00
|
|
|
- `FdSet` in `::nix::sys::select` now also implements `Clone`.
|
|
|
|
([#405](https://github.com/nix-rust/nix/pull/405))
|
|
|
|
- Added `F_FULLFSYNC` to `FcntlArg` in `::nix::fcntl` for _apple_ targets.
|
|
|
|
([#407](https://github.com/nix-rust/nix/pull/407))
|
2016-08-15 21:02:59 +02:00
|
|
|
- Added `CpuSet::unset` in `::nix::sched`.
|
|
|
|
([#402](https://github.com/nix-rust/nix/pull/402))
|
2016-08-31 20:30:56 +02:00
|
|
|
- Added constructor method `new()` to `PollFd` in `::nix::poll`, in order to
|
|
|
|
allow creation of objects, after removing public access to members.
|
|
|
|
([#399](https://github.com/nix-rust/nix/pull/399))
|
|
|
|
- Added method `revents()` to `PollFd` in `::nix::poll`, in order to provide
|
|
|
|
read access to formerly public member `revents`.
|
|
|
|
([#399](https://github.com/nix-rust/nix/pull/399))
|
2016-09-09 20:24:57 +02:00
|
|
|
- Added `MSG_CMSG_CLOEXEC` to `MsgFlags` in `::nix::sys::socket` for _linux_ only.
|
|
|
|
([#422](https://github.com/nix-rust/nix/pull/422))
|
2016-07-22 23:37:51 +02:00
|
|
|
|
|
|
|
### Changed
|
|
|
|
- Replaced the reexported integer constants for signals by the enumeration
|
|
|
|
`Signal` in `::nix::sys::signal`.
|
|
|
|
([#362](https://github.com/nix-rust/nix/pull/362))
|
|
|
|
- Renamed `EventFdFlag` to `EfdFlags` in `::nix::sys::eventfd`.
|
|
|
|
([#383](https://github.com/nix-rust/nix/pull/383))
|
2016-08-15 21:02:59 +02:00
|
|
|
- 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](https://github.com/nix-rust/nix/pull/402))
|
2016-08-06 09:46:38 +02:00
|
|
|
- `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`.
|
2016-10-12 22:14:01 +02:00
|
|
|
([#392](https://github.com/nix-rust/nix/pull/392))
|
2016-08-06 09:46:38 +02:00
|
|
|
- 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.
|
2016-10-12 22:14:01 +02:00
|
|
|
([#392](https://github.com/nix-rust/nix/pull/392))
|
2016-08-06 09:46:38 +02:00
|
|
|
- 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.
|
2016-10-12 22:14:01 +02:00
|
|
|
([#392](https://github.com/nix-rust/nix/pull/392))
|
2016-07-22 23:37:51 +02:00
|
|
|
|
|
|
|
### Removed
|
|
|
|
- Type alias `SigNum` from `::nix::sys::signal`.
|
|
|
|
([#362](https://github.com/nix-rust/nix/pull/362))
|
2016-08-15 21:02:59 +02:00
|
|
|
- Type alias `CpuMask` from `::nix::shed`.
|
|
|
|
([#402](https://github.com/nix-rust/nix/pull/402))
|
2016-08-31 20:30:56 +02:00
|
|
|
- Removed public fields from `PollFd` in `::nix::poll`. (See also added method
|
|
|
|
`revents()`.
|
|
|
|
([#399](https://github.com/nix-rust/nix/pull/399))
|
2016-07-22 23:37:51 +02:00
|
|
|
|
|
|
|
### Fixed
|
|
|
|
- Fixed the build problem for NetBSD (Note, that we currently do not support
|
|
|
|
it, so it might already be broken again).
|
|
|
|
([#389](https://github.com/nix-rust/nix/pull/389))
|
2016-08-09 08:19:22 -06:00
|
|
|
- Fixed the build on FreeBSD, and fixed the getsockopt, sendmsg, and recvmsg
|
|
|
|
functions on that same OS.
|
|
|
|
([#397](https://github.com/nix-rust/nix/pull/397))
|
2016-07-22 23:37:51 +02:00
|
|
|
|
|
|
|
## [0.6.0] 2016-06-10
|
|
|
|
|
|
|
|
### Added
|
|
|
|
- Added `gettid` in `::nix::unistd` for _linux_ and _android_.
|
|
|
|
([#293](https://github.com/nix-rust/nix/pull/293))
|
|
|
|
- Some _mips_ support in `::nix::sched` and `::nix::sys::syscall`.
|
|
|
|
([#301](https://github.com/nix-rust/nix/pull/301))
|
|
|
|
- Added `SIGNALFD_SIGINFO_SIZE` in `::nix::sys::signalfd`.
|
|
|
|
([#309](https://github.com/nix-rust/nix/pull/309))
|
|
|
|
- Added new module `::nix::ucontext` with struct `UContext`. Currently for
|
|
|
|
_linux_ only.
|
|
|
|
([#311](https://github.com/nix-rust/nix/pull/311))
|
|
|
|
- Added `EPOLLEXCLUSIVE` to `EpollEventKind` in `::nix::sys::epoll`.
|
|
|
|
([#330](https://github.com/nix-rust/nix/pull/330))
|
|
|
|
- Added `pause` to `::nix::unistd`.
|
|
|
|
([#336](https://github.com/nix-rust/nix/pull/336))
|
|
|
|
- Added `sleep` to `::nix::unistd`.
|
|
|
|
([#351](https://github.com/nix-rust/nix/pull/351))
|
|
|
|
- Added `S_IFDIR`, `S_IFLNK`, `S_IFMT` to `SFlag` in `::nix::sys::stat`.
|
|
|
|
([#359](https://github.com/nix-rust/nix/pull/359))
|
|
|
|
- Added `clear` and `extend` functions to `SigSet`'s implementation in
|
|
|
|
`::nix::sys::signal`.
|
|
|
|
([#347](https://github.com/nix-rust/nix/pull/347))
|
|
|
|
- `sockaddr_storage_to_addr` in `::nix::sys::socket` now supports `sockaddr_nl`
|
|
|
|
on _linux_ and _android_.
|
|
|
|
([#366](https://github.com/nix-rust/nix/pull/366))
|
|
|
|
- Added support for `SO_ORIGINAL_DST` in `::nix::sys::socket` on _linux_.
|
|
|
|
([#367](https://github.com/nix-rust/nix/pull/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](https://github.com/nix-rust/nix/pull/361))
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
- Changed the structure `IoVec` in `::nix::sys::uio`.
|
|
|
|
([#304](https://github.com/nix-rust/nix/pull/304))
|
|
|
|
- Replaced `CREATE_NEW_FD` by `SIGNALFD_NEW` in `::nix::sys::signalfd`.
|
|
|
|
([#309](https://github.com/nix-rust/nix/pull/309))
|
|
|
|
- Renamed `SaFlag` to `SaFlags` and `SigFlag` to `SigFlags` in
|
|
|
|
`::nix::sys::signal`.
|
|
|
|
([#314](https://github.com/nix-rust/nix/pull/314))
|
|
|
|
- Renamed `Fork` to `ForkResult` and changed its fields in `::nix::unistd`.
|
|
|
|
([#332](https://github.com/nix-rust/nix/pull/332))
|
|
|
|
- Added the `signal` parameter to `clone`'s signature in `::nix::sched`.
|
|
|
|
([#344](https://github.com/nix-rust/nix/pull/344))
|
|
|
|
- `execv`, `execve`, and `execvp` now return `Result<Void>` instead of
|
|
|
|
`Result<()>` in `::nix::unistd`.
|
|
|
|
([#357](https://github.com/nix-rust/nix/pull/357))
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
- Improved the conversion from `std::net::SocketAddr` to `InetAddr` in
|
|
|
|
`::nix::sys::socket::addr`.
|
|
|
|
([#335](https://github.com/nix-rust/nix/pull/335))
|
|
|
|
|
|
|
|
## [0.5.0] 2016-03-01
|