@@ -24,11 +24,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
24
24
and nix::Error::UnsupportedOperation}`
25
25
([ #614 ] ( https://github.com/nix-rust/nix/pull/614 ) )
26
26
- Added ` cfmakeraw ` , ` cfsetspeed ` , and ` tcgetsid ` . ([ #527 ] ( https://github.com/nix-rust/nix/pull/527 ) )
27
+ - Added "bad none", "bad write_ptr", "bad write_int", and "bad readwrite" variants to the ` ioctl! `
28
+ macro. ([ #670 ] ( https://github.com/nix-rust/nix/pull/670 ) )
27
29
28
30
### Changed
29
- - Changed ` ioctl!(write ...) ` to take argument by value instead as pointer.
30
- If you need a pointer as argument, use ` ioctl!(write buf ...) ` .
31
- ([ #626 ] ( https://github.com/nix-rust/nix/pull/626 ) )
31
+ - Changed ` ioctl!(write ...) ` into ` ioctl!(write_ptr ...) ` and ` ioctl!(write_int ..) ` variants
32
+ to more clearly separate those use cases. ([ #670 ] ( https://github.com/nix-rust/nix/pull/670 ) )
32
33
- Marked ` sys::mman::{ mmap, munmap, madvise, munlock, msync } ` as unsafe.
33
34
([ #559 ] ( https://github.com/nix-rust/nix/pull/559 ) )
34
35
- Minimum supported Rust version is now 1.13.
@@ -46,10 +47,18 @@ This project adheres to [Semantic Versioning](http://semver.org/).
46
47
Also file system type constants like ` nix::sys::statfs::ADFS_SUPER_MAGIC ` were removed in favor of the libc equivalent.
47
48
([ #561 ] ( https://github.com/nix-rust/nix/pull/561 ) )
48
49
- Revised the termios API including additional tests and documentation and exposed it on iOS. ([ #527 ] ( https://github.com/nix-rust/nix/pull/527 ) )
50
+ - The ` ioctl! ` macro's plain variants has been replaced with "bad read" to be consistent with
51
+ other variants. The generated functions also have more strict types for their arguments. The
52
+ "* _ buf" variants also now calculate total array size and take slice references for improved type
53
+ safety. The documentation has also been dramatically improved.
54
+ ([ #670 ] ( https://github.com/nix-rust/nix/pull/670 ) )
49
55
50
56
### Removed
51
57
- Removed ` io::Error ` from ` nix::Error ` and the conversion from ` nix::Error ` to ` Errno `
52
58
([ #614 ] ( https://github.com/nix-rust/nix/pull/614 ) )
59
+ - Removed ` ioc_* ` functions and many helper constants and macros within the ` ioctl ` module. These
60
+ should always have been private and only the ` ioctl! ` should be used in public code.
61
+ ([ #670 ] ( https://github.com/nix-rust/nix/pull/670 ) )
53
62
54
63
### Fixed
55
64
- Fixed multiple issues compiling under different archetectures and OSes.
@@ -68,6 +77,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
68
77
([ #623 ] ( https://github.com/nix-rust/nix/pull/623 ) )
69
78
- Multiple constants related to the termios API have now been properly defined for
70
79
all supported platforms. ([ #527 ] ( https://github.com/nix-rust/nix/pull/527 ) )
80
+ - ` ioctl! ` macro now supports working with non-int datatypes and properly supports all platforms.
81
+ ([ #670 ] ( https://github.com/nix-rust/nix/pull/670 ) )
71
82
72
83
## [ 0.8.1] 2017-04-16
73
84
0 commit comments