Your own LibC
Posted: Sun Nov 20, 2005 2:42 pm
hey!
i'm trying for a while now to port one of the more popular libc's (dietlibc, msvc libc - not free) but each of the libraries is such a major project to project i just refuse to do it.
dietlibc is completly linux oriented and in the faq it is even considered "not portable" besides for linux+gcc. msvc is.. no need to say, windows oriented and its hard to cut apart only the parts I need (complete FILE* emulation, and all the around utils need to support it).
I just had to ask, aren't you guys using your own libc? isn't there a *free*, *portable* (using gnu gcc __attribute__ combinations everywhere is not much of a compiler portability) libc that I can easily use? what are you guys using for your os?
sure, I'm not looking for c99 / c++ / posix compatibility... I just want those goddamn fprintf, fscanf, scanf, printf, getch, ungetch, fwrite, fread, fclose, fopen, and all the weird variations used by stdio/stdlib so my OS could actually support some applications, sure I have my "native" os support files but there are not much use if I want to run existing projects on my os.
I managed to strip from dietlibc some stuff, but there must be some place some one who thought about it and made a libc where all you need to do is replace the base functionality, (only the actual workhorse _open for file, or _read for a file etc)
thanks!
i'm trying for a while now to port one of the more popular libc's (dietlibc, msvc libc - not free) but each of the libraries is such a major project to project i just refuse to do it.
dietlibc is completly linux oriented and in the faq it is even considered "not portable" besides for linux+gcc. msvc is.. no need to say, windows oriented and its hard to cut apart only the parts I need (complete FILE* emulation, and all the around utils need to support it).
I just had to ask, aren't you guys using your own libc? isn't there a *free*, *portable* (using gnu gcc __attribute__ combinations everywhere is not much of a compiler portability) libc that I can easily use? what are you guys using for your os?
sure, I'm not looking for c99 / c++ / posix compatibility... I just want those goddamn fprintf, fscanf, scanf, printf, getch, ungetch, fwrite, fread, fclose, fopen, and all the weird variations used by stdio/stdlib so my OS could actually support some applications, sure I have my "native" os support files but there are not much use if I want to run existing projects on my os.
I managed to strip from dietlibc some stuff, but there must be some place some one who thought about it and made a libc where all you need to do is replace the base functionality, (only the actual workhorse _open for file, or _read for a file etc)
thanks!