This is the mail archive of the ecos-patches@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: [PATCH] add ftok() and getenv() functions to the synthetic target


On Thursday 27 October 2005 11:55, Andrew Lunn wrote:

...
> So i see no reason why you should not include the packages you need
> for synth into the build for your target application as well. It will
> not affect the size of your target application.

Yes, but there will be other headers available under the synthetic target than 
under the real target, so I'll have a different  environment and won't be 
able to check whether my software will work without CYGPKG_LIBC_STDLIB (which 
my application might not need). I think the functions for accessing resources 
from the host under the synthetic target should be independent from the 
actual configuration for the target.

...
> > That's all what the ftok man page on my system (slackware) says:
> > "Typically, a best effort attempt combines the given proj_id byte, the
> > lower 16 bits of the i-node number, and the lower 8 bits of the device
> > number into a 32-bit result."
>
> Yep, that is what is says for the man pages i have. Looking at that
> description there is a very limited number of ways to implement
> this. Running it with a few examples files and keys it would of been
> very easy to reverse enginner the algorithm Linux is using. You then

Why should I reverse engineer it if is available under a BSD license ?
Anyway, since I now know the code, I can't reverse engineer it anymore.

Bye
Alex
-- 
Work: alexander.neundorf@jenoptik.com - http://www.jenoptik-los.de
Home: neundorf@kde.org                - http://www.kde.org
      alex@neundorf.net               - http://www.neundorf.net


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