Subhashish, le Sat 31 May 2014 04:24:27 +0530, a écrit :
> The symbol VKI_PATH_MAX cannot be defined since symbol PATH_MAX is not
> defined[3].
> Can we have workarounds - based on realloc, or like xgethostname() as
> described.

Yes, but that'll be tedious (there are quite a few occurrences) and
uninteresting. I'd say for now just define it to some arbitrary value,
such as 4096.

> I'm following vki-linux.h and vki-gnu.h to add type definitions to
> vki-gnu.h - but I am in the dark as to what is to be added - I'm doing hit
> and trial.

Well, everything that appears in vki-linux.h is probably used in
coregrind, so you'll have to define them too.

> VKI_S_IRUSR, VKI_S_IWOTH are the few of many symbols to be
> defined here.
> 
> The latter 2 are part of sys/stat.h in other unix systems - I suppose we
> don't do stat.h

We do, see /usr/include/i386-gnu/sys/stat.h

Samuel

Reply via email to