This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Implementation of sprintf ....


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]