Page MenuHomeFreeBSD

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

Authored by brooks on Oct 8 2018, 7:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 7:09 PM
Unknown Object (File)
Tue, Nov 19, 1:53 PM
Unknown Object (File)
Oct 29 2024, 12:54 AM
Unknown Object (File)
Oct 18 2024, 8:36 AM
Unknown Object (File)
Sep 29 2024, 11:43 PM
Unknown Object (File)
Sep 27 2024, 5:50 AM
Unknown Object (File)
Sep 11 2024, 5:09 AM
Unknown Object (File)
Sep 7 2024, 5:23 PM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/kern/tty_pts.c
299 ↗(On Diff #48904)

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.