diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-18 09:36:49 -0700 |
---|---|---|
committer | Marcin Mielniczuk <marmistrz.dev@zoho.eu> | 2017-07-25 09:09:52 +0200 |
commit | 3cf4cc68174ebe126a537ba8f29c29243201d917 (patch) | |
tree | 678f2958a9f4fdab2d05002d2ebd5e5b618a3926 /src/sys/signalfd.rs | |
parent | 7b078473b8ab52742c7ce46e338fc1ad98355dc8 (diff) | |
download | nix-3cf4cc68174ebe126a537ba8f29c29243201d917.zip |
Split ioctl!(write ...) into write_ptr and write_int
There two different write semantics used with ioctls: one involves
passing a pointer the other involves passing an int. Previously the
ioctl! macro did not distinguish between these cases and left it up
to the user to set the proper datatype. This previous version was
not type safe and prone to errors. The solution here is to split the
"write" variant into a "write_ptr" and "write_int" variant that makes
the semantics more explicit and improves type safety by specifying
arguments better.
Diffstat (limited to 'src/sys/signalfd.rs')
0 files changed, 0 insertions, 0 deletions