Re: S3 suspend and serial console

Stefan Seyfried
2005-02-05T22:06:19Z

On Sat, Feb 05, 2005 at 04:58:45PM +0100, Karol Kozimor wrote:

> echo > /dev/ttyS0 will echo a single '\n'. I guess echo -n would be more

only "> /dev/ttyS0", no echo. This basically does...

open("/dev/tty", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
fcntl64(1, F_GETFD) = 0
fcntl64(1, F_DUPFD, 10) = 10
fcntl64(1, F_GETFD) = 0
fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
dup2(3, 1) = 1
close(3) = 0

so it is pretty equivalent to "echo -n > /dev/ttyS0"
--
Stefan Seyfried