LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2008, 06:05 AM   #1
mathimca05
Member
 
Registered: Oct 2007
Posts: 66

Rep: Reputation: 15
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
 
Old 02-05-2008, 06:33 AM   #2
thorgal31
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
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')
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question About Dlopen And Constructor Method George2 Programming 3 03-31-2006 08:54 PM
LD_LIBRARY_PATH and dlopen smrcis Programming 5 03-08-2006 06:10 PM
Dlopen function - UNDEFINED REFERENCE mamthababu Programming 1 07-19-2005 10:20 AM
dlopen in multi-threading environnement yakotey Programming 2 06-30-2005 08:36 AM
Forcing dlopen to look at LD_LIBRARY_PATH again wiredj Programming 2 09-24-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration