[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <45DEA098.000003.11666@webmail12.yandex.ru>
Date: Fri, 23 Feb 2007 11:06:48 +0300 (MSK)
From: "Mockern" <Mockern@...dex.ru>
To: linux-kernel@...r.kernel.org
Subject: cat reading problem
Hello,
I tried to cat < /dev/mytty/ttyS3, but cat shows nothing. I attached here strace
cat < /dev/mytty/ttyS3 and cat < hello. Hello is just a file. As you can see the
result of strace cat is identical, but in tty case I can't see nothing. Why does cat write nothing at my console?
Thank you,
------------------------------------------------------------------------------------
root@...t:/home# strace cat < hello
│c│c│c│c│c│c│c│c│c│c│c│c..
munmap(0x40017000, 5664) = 0
getuid32() = 0
getgid32() = 0
setgid32(0) = 0
setuid32(0) = 0
read(0, "Hello World!", 8192) = 12
write(1, "Hello World!", 12Hello World!) = 12
read(0, "", 8192) = 0
io_submit(0, 0x40200164, 0 <unfinished ... exit status 0>
Process 1520 detached
root@...t:/home# strace cat < /dev/mytty/ttyS3
│c│c│c│c│c│c│c│c│c│c│c│c│c.
getuid32() = 0
getgid32() = 0
setgid32(0) = 0
setuid32(0) = 0
read(0, "\376\377\377f\377\330\0000", 8192) = 8
write(1, "\376\377\377f\377\330\0000", 8│║ f0) = 8
read(0, "", 8192) = 0
io_submit(0, 0x40200164, 0 <unfinished ... exit status 0>
Process 1522 detached
root@...t:/home#
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists