mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Removed redundant implementation of tcgetattr and tcsetattr.
This commit is contained in:
@@ -90,24 +90,4 @@ ioctl(int fd, int request, void *argp)
|
||||
return __rtems_ioctl(fd,request,argp);
|
||||
}
|
||||
|
||||
/*
|
||||
* tcgetattr/tcsetattr -- get/set attributes of a device.
|
||||
*
|
||||
* by K.Shibuya
|
||||
*/
|
||||
|
||||
int
|
||||
tcgetattr(int fd, struct termios *tp)
|
||||
{
|
||||
return __rtems_ioctl(fd,RTEMS_IO_GET_ATTRIBUTES,tp);
|
||||
}
|
||||
|
||||
int
|
||||
tcsetattr(int fd, int opt, struct termios *tp)
|
||||
{
|
||||
if(opt != TCSANOW)
|
||||
return -1;
|
||||
return __rtems_ioctl(fd,RTEMS_IO_SET_ATTRIBUTES,tp);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user