Porting GNU Libc?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
amirsadig

Porting GNU Libc?

Post 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.
Therx

Re:Porting GNU Libc?

Post 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
Tim

Re:Porting GNU Libc?

Post 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.
amirsadig

Re:Porting GNU Libc?

Post by amirsadig »

I have search the internet for POSIX Standard, but I could not found any free docs. did you know one?
Tim

Re:Porting GNU Libc?

Post 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.
be

Re:Porting GNU Libc?

Post by be »

Linux is POSIX compatible. Maybe it's source can tell something?
Tim

Re:Porting GNU Libc?

Post 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.
Post Reply