Displaying 2 results from an estimated 2 matches for "tcsasoft".
Did you mean:
scasoft
2001 Oct 18
0
Patch for hanging ssh-add under Solaris CDE
...That flag is not set for ssh-add, but it is
set for other things.
- Dave Dykstra
--- openbsd-compat/readpassphrase.c.O Fri Oct 12 17:12:22 2001
+++ openbsd-compat/readpassphrase.c Thu Oct 18 13:59:25 2001
@@ -36,12 +36,6 @@
#include <termios.h>
#include <readpassphrase.h>
-#ifdef TCSASOFT
-# define _T_FLUSH (TCSAFLUSH|TCSASOFT)
-#else
-# define _T_FLUSH (TCSAFLUSH)
-#endif
-
char *
readpassphrase(prompt, buf, bufsiz, flags)
const char *prompt;
@@ -102,13 +96,13 @@
term.c_cc[VSTATUS] = _POSIX_VDISABLE;
}
#endif
- (void)tcsetattr(input, _T_FLUSH, &term);
+ (void)tcse...
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...lude <sys/types.h>
+#include <errno.h>
+#include <sys/wait.h>
+
+int
+tcgetattr(fd, t)
+ int fd;
+ struct termios *t;
+{
+
+ return (ioctl(fd, TIOCGETA, t));
+}
+
+int
+tcsetattr(fd, opt, t)
+ int fd, opt;
+ const struct termios *t;
+{
+ struct termios localterm;
+
+ if (opt & TCSASOFT) {
+ localterm = *t;
+ localterm.c_cflag |= CIGNORE;
+ t = &localterm;
+ }
+ switch (opt & ~TCSASOFT) {
+ case TCSANOW:
+ return (ioctl(fd, TIOCSETA, t));
+ case TCSADRAIN:
+ return (ioctl(fd, TIOCSETAW, t));
+ case TCSAFLUSH:
+ return (ioctl(fd, TIOCSETAF, t));
+ default:
+ errno =...