On 4/29/2026 7:45 AM, Warner Losh wrote:
> Add initial bsd-ioctl.c file with termios conversion functions,
> structure type definitions, and ioctl table infrastructure.
> Includes target_to_host_termios and host_to_target_termios for
> terminal I/O control conversion, along with the ioctl dispatch
> table framework.
> 
> Style complains about STRUCT and STRUCT_SPECIAL defines:
>   ● checkpatch.pl: 197: ERROR: Macros with complex values should be enclosed 
> in parenthesis
>   ● checkpatch.pl: 198: ERROR: Macros with complex values should be enclosed 
> in parenthesis
> but that's fine. We are doing weird things with macros, and it's fine.
> We can't put parens or do while (0) around these since they are table
> building macros for files that are included multiple times.
> 
> Signed-off-by: Stacey D. Son <[email protected]>
> Signed-off-by: Warner Losh <[email protected]>
> Signed-off-by: Sean Bruno <[email protected]>
> Signed-off-by: Kyle Evans <[email protected]>
> ---
>  bsd-user/bsd-ioctl.c | 221 
> +++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 221 insertions(+)
> 

Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to