Skip to content

Commit

Permalink
chore: prepare for 0.29.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed May 24, 2024
1 parent f743197 commit 1dad4d8
Show file tree
Hide file tree
Showing 31 changed files with 93 additions and 47 deletions.
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,98 @@ This project adheres to [Semantic Versioning](https://semver.org/).

# Change Log

## [0.29.0] - 2024-05-24


### Added

- Add `getregset()/setregset()` for Linux/glibc/x86/x86_64/aarch64/riscv64 and
`getregs()/setregs()` for Linux/glibc/aarch64/riscv64
([#2044](https://github.com/nix-rust/nix/pull/2044))
- Add socket option Ipv6Ttl for apple targets.
([#2287](https://github.com/nix-rust/nix/pull/2287))
- Add socket option UtunIfname.
([#2325](https://github.com/nix-rust/nix/pull/2325))
- make SigAction repr(transparent) & can be converted to the libc raw type
([#2326](https://github.com/nix-rust/nix/pull/2326))
- Add `From` trait implementation for conversions between `sockaddr_in` and
`SockaddrIn`, `sockaddr_in6` and `SockaddrIn6`
([#2328](https://github.com/nix-rust/nix/pull/2328))
- Add socket option ReusePortLb for FreeBSD.
([#2332](https://github.com/nix-rust/nix/pull/2332))
- Added support for openat2 on linux.
([#2339](https://github.com/nix-rust/nix/pull/2339))
- Add if_indextoname function.
([#2340](https://github.com/nix-rust/nix/pull/2340))
- Add `mount` and `unmount` API for apple targets.
([#2347](https://github.com/nix-rust/nix/pull/2347))
- Added `_PC_MIN_HOLE_SIZE` for `pathconf` and `fpathconf`.
([#2349](https://github.com/nix-rust/nix/pull/2349))
- Added `impl AsFd for pty::PtyMaster`
([#2355](https://github.com/nix-rust/nix/pull/2355))
- Add `open` flag `O_SEARCH` to AIX, Empscripten, FreeBSD, Fuchsia, solarish,
WASI ([#2374](https://github.com/nix-rust/nix/pull/2374))
- Add prctl function `prctl_set_vma_anon_name` for Linux/Android.
([#2378](https://github.com/nix-rust/nix/pull/2378))
- Add `sync(2)` for `apple_targets/solarish/haiku/aix/hurd`, `syncfs(2)` for
`hurd` and `fdatasync(2)` for `aix/hurd`
([#2379](https://github.com/nix-rust/nix/pull/2379))
- Add fdatasync support for Apple targets.
([#2380](https://github.com/nix-rust/nix/pull/2380))
- Add `fcntl::OFlag::O_PATH` for FreeBSD and Fuchsia
([#2382](https://github.com/nix-rust/nix/pull/2382))
- Added `PathconfVar::MIN_HOLE_SIZE` for apple_targets.
([#2388](https://github.com/nix-rust/nix/pull/2388))
- Add `open` flag `O_SEARCH` to apple_targets
([#2391](https://github.com/nix-rust/nix/pull/2391))
- `O_DSYNC` may now be used with `aio_fsync` and `fcntl` on FreeBSD.
([#2404](https://github.com/nix-rust/nix/pull/2404))
- Added `Flock::relock` for upgrading and downgrading locks.
([#2407](https://github.com/nix-rust/nix/pull/2407))

### Changed

- Change the `ForkptyResult` type to the following repr so that the
uninitialized
`master` field won't be accessed in the child process:

```rs
pub enum ForkptyResult {
Parent {
child: Pid,
master: OwnedFd,
},
Child,
}
``` ([#2315](https://github.com/nix-rust/nix/pull/2315))
- Updated `cfg_aliases` dependency from version 0.1 to 0.2
([#2322](https://github.com/nix-rust/nix/pull/2322))
- Change the signature of `ptrace::write` and `ptrace::write_user` to make them
safe ([#2324](https://github.com/nix-rust/nix/pull/2324))
- Allow use of `SignalFd` through shared reference

Like with many other file descriptors, concurrent use of signalfds is safe.
Changing the signal mask of and reading signals from a signalfd can now be
done
with the `SignalFd` API even if other references to it exist.
([#2367](https://github.com/nix-rust/nix/pull/2367))
- Changed tee, splice and vmsplice RawFd arguments to AsFd.
([#2387](https://github.com/nix-rust/nix/pull/2387))
- Added I/O safety to the sys/aio module. Most functions that previously
accepted a `AsRawFd` argument now accept an `AsFd` instead.
([#2401](https://github.com/nix-rust/nix/pull/2401))
- `RecvMsg::cmsgs()` now returns a `Result`, and checks that cmsgs were not
truncated. ([#2413](https://github.com/nix-rust/nix/pull/2413))

### Fixed

- No longer panics when the `fanotify` queue overflows.
([#2399](https://github.com/nix-rust/nix/pull/2399))
- Fixed ControlMessageOwned::UdpGroSegments wrapped type from u16 to i32 to
reflect the used kernel's one.
([#2406](https://github.com/nix-rust/nix/pull/2406))


## [0.28.0] - 2024-02-24


Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "nix"
description = "Rust friendly bindings to *nix APIs"
edition = "2021"
version = "0.28.0"
version = "0.29.0"
rust-version = "1.69"
authors = ["The nix-rust Project Developers"]
repository = "https://github.com/nix-rust/nix"
Expand Down
2 changes: 0 additions & 2 deletions changelog/2044.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2287.added.md

This file was deleted.

12 changes: 0 additions & 12 deletions changelog/2315.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2322.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2324.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2325.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2326.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2328.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2332.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2339.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2340.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2347.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2349.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2355.added.md

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/2367.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2374.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2378.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2379.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2380.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2382.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2387.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2388.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2391.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2399.fixed.md

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/2401.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2404.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2406.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2407.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/2413.changed.md

This file was deleted.

0 comments on commit 1dad4d8

Please sign in to comment.