This is the mail archive of the ecos-discuss@sourceware.org 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: Re: eCos configuration question


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Grant Edwards wrote:
> On 2007-06-01, Sergei Gavrikov <w3sg@SoftHome.net> wrote:
>> Daniel Néri wrote:
>>> Sergei Gavrikov <w3sg@SoftHome.net> writes:
>>>
>>>> I think you get the messager, I think, if an 'ecosconfig' syntax would
>>>> allows such call
>>>>
>>>>   ecosconfig import - ;# i.e. import 'Tcl lines' = CDLs from stdin
>>> I once hacked my ecosconfig to add that feature, but I no longer use
>>> it since
>>>
>>>    ecosconfig import /dev/stdin
>>>
>>> works just as well (on the host platforms I care about).
>> That really works! Thanks for your great TIP!
> 
> The more general case is to use /proc/self/fd/N (where N is the
> file descriptor number).  If you look, /dev/stdin is just an
> indirect symlink to /proc/self/fd/0
> 

Perhaps on Linux, but on other *nix systems, /dev/stdin may
not be implemented this way.

- --
- ------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGYC1qmaKbSsQGV8ARAmCRAJwNbae3RuawENDGfobKDG0AKMv/XQCePvRI
SM0wZ9lrNcBnQD72bn/aCH0=
=c2zR
-----END PGP SIGNATURE-----

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


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