Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 55655 Details for
Bug 88334
x11-libs/xview-3.2p1.4-18c doesnt use UNIX98 ptys (uses BSD legacy ptys)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
This patch makes xview use the GNU Libc functions getpt(),grantpt(),unlockpt() to open a pty
patch_xview_for_unix98_pty.diff (text/plain), 1.23 KB, created by
L.Stohlmann
on 2005-04-08 04:08:25 UTC
(
hide
)
Description:
This patch makes xview use the GNU Libc functions getpt(),grantpt(),unlockpt() to open a pty
Filename:
MIME Type:
Creator:
L.Stohlmann
Created:
2005-04-08 04:08:25 UTC
Size:
1.23 KB
patch
obsolete
>--- xview-3.2p1.4-18c/lib/libxview/ttysw/tty_init.c 2005-04-08 11:39:49.000000000 +0200 >+++ xview-3.2p1.4-18c-unix98ptys/lib/libxview/ttysw/tty_init.c 2005-04-08 12:20:15.000000000 +0200 >@@ -27,6 +27,10 @@ > #include <pty.h> > #endif > >+#ifdef _XOPEN_SOURCE >+#include <stdlib.h> >+#endif >+ > #include <xview_private/portable.h> /* for XV* defines and termios */ > > #ifdef XV_USE_SVR4_PTYS >@@ -731,6 +735,18 @@ > int tmpfd; > int pty = 0, tty = 0; > int on = 1; >+ >+#ifdef _XOPEN_SOURCE >+ /* info: pty master, tty slave, Ttysw->tty_name is char[20] */ >+ if (((pty=getpt())<0)||(grantpt(pty)<0)||(unlockpt(pty)<0)) { >+ (void) fprintf(stderr, XV_MSG("Error: getpt/grantpt/unlockpt failed\n")); >+ return XV_ERROR; } >+ if ((ptsname(pty)==NULL)||(strncpy(ttysw->tty_name,ptsname(pty),19)==NULL)) { >+ (void) fprintf(stderr, XV_MSG("Error: ptsname/strncpy failed\n")); >+ return XV_ERROR; } >+ if ((tty=open(ttysw->tty_name,O_RDWR))<0) { >+ return XV_ERROR; } >+#else > #ifdef __CYGWIN__ > openpty(&pty, &tty, ttysw->tty_name, NULL, NULL); > #else >@@ -949,6 +965,7 @@ > > #endif /* SVR4 */ > #endif /* cygwin */ >+#endif /* _XOPEN_SOURCE */ > > if (ttysw_restoreparms(tty)) > (void) putenv(WE_TTYPARMS_E);
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 88334
:
55651
| 55655