Page MenuHomeFreeBSD

Move 32-bit compat support for FIODGNAME to the right place.

Authored by brooks on Oct 8 2018, 7:59 PM.
Referenced Files
Unknown Object (File)
Sat, Dec 2, 7:40 PM
Unknown Object (File)
Fri, Dec 1, 3:11 PM
Unknown Object (File)
Wed, Nov 29, 5:37 AM
Unknown Object (File)
Wed, Nov 29, 5:29 AM
Unknown Object (File)
Sep 26 2023, 12:31 PM
Unknown Object (File)
Sep 15 2023, 3:18 PM
Unknown Object (File)
Aug 26 2023, 10:04 AM
Unknown Object (File)
Aug 17 2023, 5:50 PM



ioctl(2) commands only have meaning in the context of a file descriptor
so translating them in the syscall layer is incorrect.

The new handler users an accessor to retrieve/construct a pointer from
the last member of the passed structure and relies on type punning to
access the other member which requires no translation.

Unlike r339174 this change supports both places FIODGNAME is handled.

Diff Detail

Lint Passed
No Test Coverage
Build Status
Buildable 20069
Build 19568: arc lint + arc unit

Event Timeline

kib added inline comments.

return (copyout(...));

This revision is now accepted and ready to land.Oct 8 2018, 8:12 PM
  • style(9) as pointed out by @kib
This revision now requires review to proceed.Oct 8 2018, 8:36 PM
This revision was not accepted when it landed; it landed in state Needs Review.Oct 26 2018, 5:59 PM
This revision was automatically updated to reflect the committed changes.