nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nuttx] patacongo commented on issue #959: Issues with variadic ioctl()
Date Sun, 03 May 2020 17:32:17 GMT

patacongo commented on issue #959:
URL: https://github.com/apache/incubator-nuttx/issues/959#issuecomment-623149173


   We went through this same discussion involving the wdot wdparm_t type some time back. 
There was a Rube Goldberg-ish proposal to copy all of the data into an array of type wdparm_t
instead of passing varargs to avoid varying sizes of arguments.
   
   Instead, I said that it was the caller's resposibility to cast each argument to wdparm_t.
 We can enforce that casting inside of the OS, but we cannot enforce that casting across the
POSIX ioctl interface.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message