Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
dietlibc
dietlibc-0.30-tcsetattr.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dietlibc-0.30-tcsetattr.diff of Package dietlibc
--- lib/tcsetattr.c +++ lib/tcsetattr.c @@ -3,24 +3,8 @@ #include <errno.h> #include "dietfeatures.h" -#if !defined(__powerpc__) && !defined(__sparc__) && !defined(__alpha__) && !defined(__hppa__) -#if TCSANOW==0 && TCSADRAIN==1 && TCSAFLUSH==2 && TCSETSW-TCSETS==1 && TCSETSF-TCSETS==2 -#define shortcut -#endif -#endif - int tcsetattr ( int fildes, int optional_actions, struct termios* termios_p ) { -#ifdef shortcut - - if ( (unsigned int)optional_actions < 3u ) - return ioctl ( fildes, TCSETS+optional_actions, termios_p ); - - errno = EINVAL; - return -1; - -#else - switch ( optional_actions ) { case TCSANOW: return ioctl ( fildes, TCSETS , termios_p ); @@ -32,6 +16,4 @@ errno = EINVAL; return -1; } - -#endif }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor