FreeBSD Bugzilla – Attachment 76965 Details for
Bug 110872
[mail/xmail] Switch to <termios.h>
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.72 KB, created by
Ed Schouten
on 2007-03-26 18:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Ed Schouten
Created:
2007-03-26 18:50:01 UTC
Size:
1.72 KB
patch
obsolete
>--- mail/xmail/files/patch-ad Thu Feb 5 08:33:20 1998 >+++ mail/xmail/files/patch-ad Mon Mar 26 19:38:38 2007 >@@ -1,6 +1,20 @@ > --- callMail.c.orig Thu Jan 26 21:52:01 1995 > +++ callMail.c Wed Feb 4 23:30:07 1998 >-@@ -81,7 +81,7 @@ >+@@ -38,11 +38,10 @@ >+ #include <sys/select.h> >+ #endif >+ >+-#if !(defined(SYSV) || defined(linux)) || defined(clipper) >++#if !(defined(SYSV) || defined(linux) || defined(__FreeBSD__)) || defined(clipper) >+ #include <sgtty.h> >+ #else >+-#include <sys/termio.h> >+-#include <sys/sysmacros.h> >++#include <sys/termios.h> >+ #include <fcntl.h> >+ #if defined(att) >+ #include <sys/stropts.h> >+@@ -81,7 +80,7 @@ > #ifdef hpux > #define PTYCHAR2 "fedcba9876543210" > #else /* !hpux */ >@@ -9,3 +23,33 @@ > #endif /* !hpux */ > #endif /* !PTYCHAR2 */ > >+@@ -207,8 +206,8 @@ >+ callMail(argv) >+ char *argv[]; >+ { >+-#if defined(linux) || (defined(SYSV) && !defined(clipper)) >+- struct termio tio; >++#if defined(linux) || defined(__FreeBSD__) || (defined(SYSV) && !defined(clipper)) >++ struct termios tio; >+ #else >+ struct sgttyb Sgtty; >+ #endif >+@@ -223,14 +222,14 @@ >+ /* >+ ** Set minimal requirements for slave connection (no echo, no NL->CR, keep TABS) >+ */ >+-#if defined(linux) || (defined(SYSV) && !defined(clipper)) >+- (void) ioctl(slave, TCGETA, &tio); >+- tio.c_oflag &= ~(OCRNL|ONLCR|ONLRET|TABDLY); >++#if defined(linux) || defined(__FreeBSD__) || (defined(SYSV) && !defined(clipper)) >++ tcgetattr(slave, &tio); >++ tio.c_oflag &= ~(OCRNL|ONLCR|ONLRET|OXTABS); >+ tio.c_iflag &= ~IXOFF; >+ tio.c_iflag |= ICRNL; >+ tio.c_lflag &= ~(ISIG|ECHO); >+ tio.c_lflag |= ICANON; >+- (void) ioctl(slave, TCSETA, &tio); >++ tcsetattr(slave, TCSANOW, &tio); >+ #else >+ (void) ioctl(slave, TIOCGETP, &Sgtty); >+ Sgtty.sg_flags &= ~(ECHO|CRMOD|XTABS);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 110872
: 76965