kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

ioctl defining macros should contain argument size #702

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
For example, TIOCGETA is _IOR('t', 1, struct termios),
but called like ioctl(fd, TIOCSETA, termios) -- termios is of 
const struct termios *termios (src/compat/posix/termios.c)

What is the expected output? What do you see instead?

TIOCGETA should be defined as _IOR('t', 1, struct termios *) 
(actually _IOR('t', 1, const struct termios *))

Isn't it?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by drakon.m...@gmail.com on 21 Aug 2014 at 12:51