Re: getpagesize() problems

Felix von Leitner <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
Thus spake Michele Alberti ([email protected]):
> >> I know about "diet" but I don't want/ or can not use it on the project.
> > Uh... why?
> Because we always use only dietlibc.a. Is a mistake to use dietlibc.a
> and not use "diet"?
> We ship your dietlibc.a library in our project and not diet.
> A switch should be the same?

You should ship neither but list dietlibc as dependency and then run the
diet binary in the Makefile.

> Ok, now I understand. But there is another problem. Where can I found
> dietlibc man pages?

There are none.
Use the regular ones.  If they say GNU extension, then dietlibc probably
does not support it.  If they say POSIX, then dietlibc probably supports
it.

> I need them otherwise I can't know that diet stat struct is different.

No amount of man pages can preempt any and all misguided assumptions on
your part.

The idea that you can freely exchange glibc and dietlibc is bad.  Assume
all parts do not mix and match.  The only noteworthy exception is libm.
You can use libm.a from glibc in dietlibc programs.

Felix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.