LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dlopen calls (https://www.linuxquestions.org/questions/linux-newbie-8/dlopen-calls-618794/)

mathimca05 02-05-2008 06:05 AM

dlopen calls
 
hai all
i want to know what are the system calls used when i try to open a file in user space program(c).(using fopen);

i think that i should use dlopen,dlsym calls for that.how to do that?
can anyone suggest me some ideas?i m totally confused with that?





thanks in advance

thorgal31 02-05-2008 06:33 AM

dlopen and friends are used to handle dynamic libraries.
If you want to handle a simple file (open, create, read, write, close ...) the fopen and friends (fputc, fputs, fprintf, fscanf, fflush, fclose ...) are OK.
See man pages for syntax and information (eg 'man fopen')


All times are GMT -5. The time now is 08:36 PM.