Page 1 of 1

Porting GNU Libc?

Posted: Fri Feb 14, 2003 8:52 am
by amirsadig
hi,
what should I care in my kernel structure, so that porting gnu libc will be easy.
you know if gnu libc are ported, then the most application will be easy to port it.

Re:Porting GNU Libc?

Posted: Sun Feb 16, 2003 1:59 pm
by Therx
Except for the OS dependant syscalls (ie video, keyboard etc.) the libc is independant.

If you want to make implementing syscalls easy then try to keep a standard for all the calls:-

Code: Select all

void read(int start, char *buffer, int size);
Or something which can cover all device calls fairly well

Re:Porting GNU Libc?

Posted: Sun Feb 16, 2003 2:35 pm
by Tim
Therx wrote:If you want to make implementing syscalls easy then try to keep a standard for all the calls:-
This particular standard is called POSIX. If you implement it then your OS will be compatible with most Unixes.

Re:Porting GNU Libc?

Posted: Sun Feb 16, 2003 4:39 pm
by amirsadig
I have search the internet for POSIX Standard, but I could not found any free docs. did you know one?

Re:Porting GNU Libc?

Posted: Sun Feb 16, 2003 5:47 pm
by Tim
Try here:
http://www.opengroup.org/onlinepubs/007904975/toc.htm

Free POSIX specifications are hard to come by, since you're supposed to buy a copy.

Re:Porting GNU Libc?

Posted: Tue Mar 18, 2003 4:23 am
by be
Linux is POSIX compatible. Maybe it's source can tell something?

Re:Porting GNU Libc?

Posted: Fri Mar 21, 2003 12:05 pm
by Tim
You're likely to find more information from the Linux man pages than the source. The Linux man pages act as a useful Posix reference (at least where Linux is compliant) whereas the sources are more likely to confuse most people.