Mail Archives: djgpp-workers/2000/06/27/03:32:44
DJ Delorie wrote:
>
> > assumption wrong? Or is it general policy to #include <libc/stubs.h>
> > everywhere in libc sources to play safe?
>
> I've got a program (or had, when I was working under MS-DOS) that
> checked libc.a for "cleanness". It told me when I needed stubs.h and
> when I didn't. If you can get that program working again (um,
> tests/libclink/check.cc and friends) then it will tell you when you
> need it and when you don't.
If I understand correctly, the following from its output means
that libc/stubs.h is missing:
Impure stub chown.o(access) -> stub0000.o
Impure stub fsext.o(close) -> stub0002.o
Impure stub tempnam.o(access) -> stub0000.o
Impure stub malloc.o(sbrk) -> stub0031.o
Impure stub fwrite.o(isatty) -> stub0008.o
I've just included libc/stubs.h in chown.c and the first line of
output disappeared. I'll investigate other problems mentioned there.
Laurynas
- Raw text -