Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
mgetty
mgetty-delete-obsolete.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mgetty-delete-obsolete.patch of Package mgetty
Index: mgetty-1.1.37/contrib/README =================================================================== --- mgetty-1.1.37.orig/contrib/README +++ mgetty-1.1.37/contrib/README @@ -128,17 +128,6 @@ Make: just go to the mgetty directory, c gert@greenie.muc.de ----------------------------------------------------------- -scrts.c - -A small tool for linux (only), to set the CRTSCTS hardware handshake -flag. Compile it with "cc -o scrts scrts.c", use it with "scrts <device>" - -It will (if possible) open the port in non-blocking mode (you need this -if "stty crtscts </dev/ttyS..." hangs), and set the CRTSCTS flag. If -something goes wrong, it will print an error message. - -gert@greenie.muc.de ------------------------------------------------------------ g3toxwd.c From: Chel van Gennip <chel@bazis.nl> Index: mgetty-1.1.37/contrib/scrts.c =================================================================== --- mgetty-1.1.37.orig/contrib/scrts.c +++ /dev/null @@ -1,42 +0,0 @@ -/* scrts.c - auxiliary program to set the CRTSCTS flag on serial ttys - * called like: "scrts ttyS1 ttyS5" - * intended to be used on Linux, where sendfax cannot send the - * flag itself. - */ -#include <stdio.h> -#include <fcntl.h> -#include <termios.h> -#include <strings.h> - -int main( int argc, char ** argv ) -{ -int i, fd; -struct termios tio; -char device[1000]; - - for ( i=1; i<argc; i++ ) - { - if ( strchr( argv[i], '/' ) == NULL ) - sprintf( device, "/dev/%s", argv[i] ); - else - strcpy( device, argv[i] ); - - printf( "setting CRTSCTS for device %s...\n", device ); - - fd = open( device, O_RDONLY|O_NDELAY ); - if ( fd == -1 ) - { perror( "open" ); break; } - - if ( tcgetattr( fd, &tio ) == -1 ) - { perror( "tcgetattr" ); break; } - - if ( ( tio.c_cflag & CRTSCTS ) != 0 ) printf( "CRTSCTS was already set!\n" ); - - tio.c_cflag |= CRTSCTS; - - if ( tcsetattr( fd, TCSANOW, &tio ) == -1 ) - { perror( "tcsetattr" ); break; } - close( fd ); - } - return 0; -} Index: mgetty-1.1.37/doc/mgetty.texi-in =================================================================== --- mgetty-1.1.37.orig/doc/mgetty.texi-in +++ mgetty-1.1.37/doc/mgetty.texi-in @@ -3378,11 +3378,6 @@ mgetty 1.1.10 or higher, as the timeout versions doesn't work under glibc. Unfortunately, this means that the version of mgetty shipped with RedHat 5.0 (1.1.9) won't work. Upgrade! -Hardware handshake (RTS+CTS) on Linux works flawlessly (but only if mgetty -is compiled with POSIX_TERMIOS, but that is default on Linux -anyway). Nevertheless, the @code{scrts.c} program in @file{contrib/} is -still provided, it has some other uses, too. - Linux has no poll(S), so, don't #define @code{USE_POLL}, and the default, @code{USE_SELECT}, will be used.
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