public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: Joerg Rapka <joerg.rapka@duagon.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] printf
Date: Wed, 05 Sep 2001 07:38:00 -0000	[thread overview]
Message-ID: <3B9638F5.978993AA@redhat.com> (raw)
In-Reply-To: <NDBBKEBGMLIMMPMJHHFDOEDECPAA.joerg.rapka@duagon.com>

Joerg Rapka wrote:
> 
> Hello all
> 
> The default console device is set by the configuration (e.g.
> CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE="/dev/tty0").
> Can this configuration be overridden by the application? 

Obviously it can be overridden in the configuration at configuration time.

> I have two serial
> lines and the application
> should select one for printf.

Presumably you are instead wanting to change it dynamically at run time.
The normal way to do this is freopen() on stdout, but I notice that
freopen(), while by the letter standards compliant, isn't fully
implemented. An fclose() and fopen() on stdout may just work though.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

  reply	other threads:[~2001-09-05  7:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-30  0:02 Joerg Rapka
2001-09-05  7:38 ` Jonathan Larmour [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-10 10:30 Emmanuel Viollet
2006-05-10 10:54 ` Andrew Lunn
2000-12-07 10:30 Fabrice Gautier
2000-12-07 11:03 ` Grant Edwards
2000-12-07 12:57 ` Dave Airlie
2000-12-07 11:12   ` Grant Edwards
2000-12-07 19:18   ` Jonathan Larmour
2000-12-06 14:08 Fabrice Gautier
2000-12-06 14:45 ` Grant Edwards
2000-12-06  1:33 Ilko Iliev
2000-12-06 11:25 ` Jonathan Larmour

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=3B9638F5.978993AA@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=joerg.rapka@duagon.com \
    /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).