This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Implementation of sprintf ....
- From: Thomas BINDER <Thomas dot Binder at frequentis dot com>
- To: ecos-discuss at sources dot redhat dot com
- Cc: rjessich at frequentis dot com
- Date: Mon, 03 Feb 2003 11:19:11 +0100
- Subject: [ECOS] Implementation of sprintf ....
- Organization: Frequentis
Hi folks!
Ich have a short question concerning the implementation of the (libc) sprintf function.
A quick look into the sources reveals that an instance of Cyg_StdioStream is used, which in turn uses a mutex to lock critical sections (e.g. in write).
Since there is another implementation of sprintf (diag_sprintf) which does not need a mutex, I wonder what the actual differences between the two implementations are (apart from the mutex). Why are streams used in sprintf ???
Thx,
T.Binder
--
\\\|///
\\ ~ ~ //
( @ @ )
/------------------------oOOo-(_)-oOOo-----------------------------------------\
| DI Dr. Thomas Binder | System Software Group |
| FREQUENTIS Nachrichtentechnik Gmbh | http://www.frequentis.com |
| Spittelbreitengasse 34 | voice: +43/1/81150-2325 |
| A-1120 Vienna | fax: 1569 |
| A U S T R I A | mailto:Thomas.Binder@frequentis.com |
\---------------------------------Oooo.----------------------------------------/
.oooO ( )
( ) ) /
\ ( (_/
\_)
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss