Displaying 3 results from an estimated 3 matches for "c2e4a4".
Did you mean:
c2e4a4e
2014 Jun 11
2
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
...ve command line (PS1, editing, etc).
Reported-by: Dominik George <d.george at tarent.de>
Signed-off-by: Thorsten Glaser <t.glaser at tarent.de>
---
usr/klibc/isatty.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/usr/klibc/isatty.c b/usr/klibc/isatty.c
index c2e4a4e..2359479 100644
--- a/usr/klibc/isatty.c
+++ b/usr/klibc/isatty.c
@@ -8,8 +8,9 @@
int isatty(int fd)
{
- int dummy;
+ struct termios dummy;
/* All ttys support TIOCGPGRP */
- return !ioctl(fd, TIOCGPGRP, &dummy);
+ /* except /dev/console which needs TCGETS */
+ return !ioctl(fd, TCGETS...
2014 Jun 11
0
[PATCH] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
...t; Reported-by: Dominik George <d.george at tarent.de>
> Signed-off-by: Thorsten Glaser <t.glaser at tarent.de>
> ---
> usr/klibc/isatty.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/usr/klibc/isatty.c b/usr/klibc/isatty.c
> index c2e4a4e..2359479 100644
> --- a/usr/klibc/isatty.c
> +++ b/usr/klibc/isatty.c
> @@ -8,8 +8,9 @@
>
> int isatty(int fd)
> {
> - int dummy;
> + struct termios dummy;
>
> /* All ttys support TIOCGPGRP */
> - return !ioctl(fd, TIOCGPGRP, &dummy);
> + /* except /...
2014 Jul 09
0
[klibc:master] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does
...ik George <d.george at tarent.de>
Signed-off-by: Thorsten Glaser <t.glaser at tarent.de>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
usr/klibc/isatty.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/usr/klibc/isatty.c b/usr/klibc/isatty.c
index c2e4a4e..2359479 100644
--- a/usr/klibc/isatty.c
+++ b/usr/klibc/isatty.c
@@ -8,8 +8,9 @@
int isatty(int fd)
{
- int dummy;
+ struct termios dummy;
/* All ttys support TIOCGPGRP */
- return !ioctl(fd, TIOCGPGRP, &dummy);
+ /* except /dev/console which needs TCGETS */
+ return !ioctl(fd, TCGETS...