diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2013-11-04 17:08:47 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:57:36 +0200 |
commit | 76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (patch) | |
tree | 9b98e6e193c7870cb27ac861394c1c4592850922 /source/xap/xxgdb/xxgdb-1.12-debian-pty.patch | |
parent | 9664bee729d487bcc0a0bc35859f8e13d5421c75 (diff) | |
download | current-76fc4757ac91ac7947a01fb7b53dddf9a78a01d1.tar.gz |
Slackware 14.1slackware-14.1
Mon Nov 4 17:08:47 UTC 2013
Slackware 14.1 x86_64 stable is released!
It's been another interesting release cycle here at Slackware bringing
new features like support for UEFI machines, updated compilers and
development tools, the switch from MySQL to MariaDB, and many more
improvements throughout the system. Thanks to the team, the upstream
developers, the dedicated Slackware community, and everyone else who
pitched in to help make this release a reality.
The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a
dual-sided
32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware
project by picking up a copy from store.slackware.com. We're taking
pre-orders now, and offer a discount if you sign up for a subscription.
Have fun! :-)
Diffstat (limited to 'source/xap/xxgdb/xxgdb-1.12-debian-pty.patch')
-rw-r--r-- | source/xap/xxgdb/xxgdb-1.12-debian-pty.patch | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/source/xap/xxgdb/xxgdb-1.12-debian-pty.patch b/source/xap/xxgdb/xxgdb-1.12-debian-pty.patch deleted file mode 100644 index 7a56971f..00000000 --- a/source/xap/xxgdb/xxgdb-1.12-debian-pty.patch +++ /dev/null @@ -1,76 +0,0 @@ -diff -urNad xxgdb-1.12~/calldbx.c xxgdb-1.12/calldbx.c ---- xxgdb-1.12~/calldbx.c 1996-10-02 10:59:45.000000000 +0200 -+++ xxgdb-1.12/calldbx.c 2008-05-16 17:44:05.000000000 +0200 -@@ -85,8 +85,10 @@ - #include <sys/un.h> - #endif /* CREATE_IO_WINDOW */ - --#ifdef SVR4 -+#if defined(SVR4) || defined(UNIX98) - #define MASTER_CLONE "/dev/ptmx" -+#endif -+#ifdef SVR4 - #include <sys/types.h> - #include <sys/stat.h> - #include <sys/stropts.h> -@@ -125,13 +127,14 @@ - { - int master; - --#ifdef SVR4 /* (MJH) Use STREAMS */ -+#if defined(SVR4) || defined(UNIX98) - - if((master = open(MASTER_CLONE, O_RDWR)) < 0) - perror(MASTER_CLONE); - else - return master; --#else -+#endif -+#if !defined(SVR4) && !defined(UNIX98) - int i; - char c; - -@@ -150,7 +153,7 @@ - #ifndef sco - } - #endif --#endif /* SVR4 */ -+#endif /* !defined(SVR4) && !defined(UNIX98) */ - - #ifdef GDB - fprintf(stderr, "xxgdb: all ptys in use\n"); -@@ -166,6 +169,25 @@ - { - int slave; - -+#if defined(UNIX98) -+ -+ int n; -+ int zero=0; -+ char ptsname[16]; -+ -+ if (ioctl(master, TIOCGPTN, &n) < 0) -+ exit(2); -+ snprintf(ptsname,sizeof(ptsname),"/dev/pts/%i", n); -+ if (ioctl(master, TIOCSPTLCK, &zero) < 0) -+ exit(3); -+ if ((slave = open(ptsname, O_RDWR)) < 0) { -+ perror(ptsname); -+ exit(4); -+ } -+ return slave; -+ -+#else -+ - #ifdef SVR4 /* (MJH) */ - char *slave_name = "unknown"; - extern char *ptsname(int master); -@@ -193,6 +215,8 @@ - } - return slave; - #endif /* SVR4 */ -+ -+#endif /* UNIX98 */ - } - - #ifdef CREATE_IO_WINDOW |