From: Andre-John Mas <ajmas@sympatico.ca>
To: Andrew Lunn <andrew@lunn.ch>
Cc: <ecos-discuss@sourceware.org>
Subject: Re: Re: [ECOS] Problems with tcgetattr()
Date: Fri, 18 Aug 2006 15:26:00 -0000 [thread overview]
Message-ID: <20060818152556.GIKE16051.tomts20-srv.bellnexxia.net@smtp1.sympatico.ca> (raw)
Fair enough. I have added the following code:
char* deviceName = "/dev/termiosX";
fd = open(deviceName, O_RDWR | O_NOCTTY);
but this fails at the 'isatty(fd)' test. Changing the device name
to to the value specified by 'console device name',in the ECC file:
"/dev/ttydiag"
gives me the same error as when I used STDIN_FILENO:
tcgetattr: Invalid argument
Any ideas?
Andre
Andrew Lunn <andrew@lunn.ch> wrote:
>
> On Fri, Aug 18, 2006 at 10:20:30AM -0400, Andre-John Mas wrote:
>
> > I am trying this on STDIN_FILENO, based on examples I have seen
> > posted on the net. Currently I am connecting via the serial port,
> > but later on it is likely to be via a telnet or ssh connection. I
> > thought STDIN_FILENO was meant to be mapped to the current device?
>
> You are thinking in Unix way, not the eCos way. termio controls only
> work on the termios devices and no other devices.
>
> However, there is currently no ssh or telnet daemon for eCos, so when
> you implement these things, you can add support for this in however
> you implement telnet or ssh.
>
> Also, not there is no concept of a per thread STDIN. It is one STDIN
> for the whole system.
>
> Andrew
>
>
>
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next reply other threads:[~2006-08-18 15:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-18 15:26 Andre-John Mas [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-22 15:42 Andre-John Mas
2006-08-21 20:06 Andre-John Mas
2006-08-21 16:19 Andre-John Mas
2006-08-18 18:17 Andre-John Mas
2006-08-18 15:57 Andre-John Mas
2006-08-18 14:20 Andre-John Mas
2006-08-18 14:40 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060818152556.GIKE16051.tomts20-srv.bellnexxia.net@smtp1.sympatico.ca \
--to=ajmas@sympatico.ca \
--cc=andrew@lunn.ch \
--cc=ecos-discuss@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).