This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Libc question.
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Qiang Huang <jameshq at liverpool dot ac dot uk>
- Cc: Ecos-Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 15 Jan 2003 14:24:04 +0000
- Subject: Re: [ECOS] Libc question.
- References: <BDEPKKELILOKGOAOMONOCEPOCAAA.jameshq@liv.ac.uk>
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