I have an app, this app uses Glibc, but i want to compile without linking glibc and i need to remove/change code which uses it. Where can i get list of functions defined in glibc?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need glibc to provide the startup for your typical
mainentry point (such as setting up theargc,argvinto the right places).You need glibc to call system calls (it provides the “wrappers” around
read,write,open,fork, etc.You need glibc to provide I/O functions such as
printf,scanf,getchar,getc,fopen,fclose,etc.You need glibc to provide typical string functions, such as
strcpy,strcat,strtok,strchr, etc.You need glibc to provide other standard functions,
rand,srand,qsort,assert,exit,setjmp,longjmp, etc.In summary, you probably can’t write any meaningful program without glibc.
Unless of course, you replace glibc with some other library that provides the same functionality. There uclibc which is supposedly a bit more “lightweight”, as it targets embedded systems, where memory is a little more at a premium.