summaryrefslogtreecommitdiff
path: root/src/sys/wait.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2017-07-18 09:36:49 -0700
committerMarcin Mielniczuk <marmistrz.dev@zoho.eu>2017-07-25 09:09:52 +0200
commit3cf4cc68174ebe126a537ba8f29c29243201d917 (patch)
tree678f2958a9f4fdab2d05002d2ebd5e5b618a3926 /src/sys/wait.rs
parent7b078473b8ab52742c7ce46e338fc1ad98355dc8 (diff)
downloadnix-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/wait.rs')
0 files changed, 0 insertions, 0 deletions