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]

Re: Libc question.


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


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