From Jérôme Duval <jerome.duval@xxxxxxxxx>:
Jérôme Duval has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/1447
Change subject: vfs: _user_ioctl: any buffer value is allowed for some ops.
......................................................................
vfs: _user_ioctl: any buffer value is allowed for some ops.
some ops want an integer value instead of a pointer as arg parameter ( #15058 ).
http://pubs.opengroup.org/onlinepubs/9699919799/functions/ioctl.html clearly ;
specifies that:
"The type of arg depends upon the particular control request, but it shall be
either an
integer or a pointer to a device-specific data structure."
add a test for functions which should return ENOTTY as errno.
---
M src/system/kernel/fs/fd.cpp
A src/tests/system/libroot/posix/termios.cpp
2 files changed, 60 insertions(+), 3 deletions(-)
git pull ssh://git.haiku-os.org/haiku refs/changes/47/1447/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/1447
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I4a98af73b17c79c3460123d3794ee866f8719898
Gerrit-Change-Number: 1447
Gerrit-PatchSet: 1
Gerrit-Owner: Jérôme Duval <jerome.duval@xxxxxxxxx>
Gerrit-MessageType: newchange