[ECOS] Libc question.

Jonathan Larmour jifl@eCosCentric.com
Wed Jan 15 14:24:00 GMT 2003


Qiang Huang wrote:
> Hi all:
>   In the code: PACKAGES\LANGUAGE\C\LIBC\stdio\current\include\io.inl
> there are two definition for "cyg_stdio_read() " won't they conflict to each
> other? Thanks a lot!

You'll notice they're in sections compiled #ifdef CYGPKG_LIBC_STDIO_FILEIO
and #ifndef CYGPKG_LIBC_STDIO_FILEIO respectively.

[snip 1.]
> this is for FileIO versions of IO function.
> 
> 2. [snip] this if for Direct IO versions of IO function.
> why the first one is required?

In case the configuration is set up to use the fileio layer.

Jifl
-- 
eCosCentric       http://www.eCosCentric.com/       <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list