LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2003, 04:23 AM   #1
n99joker
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Rep: Reputation: 0
Transparent access to file system


I'm making a file browser for Linux, but what library should I use to get transparent access to the file system.

I won't use Qt (or similar) in the core, because I want high performance and clean code - an independent core.

I have planed to use C++, and would like to make a seperate core for the main function, and then later add a Qt GUI.

I've looked at "The GNU C Library" and it has a file system interface - but "GNU C++ Standard Library" doesn't!

- Can I use "The GNU C Library" in my C++ code (with the GNU C++ Standard Library)?
- What alternatives do I have for a file system interface?
- I've tried to get some documentation for the VFS in the Linux kernel, but it seems difficult and there are no examples?
- What about boost.org - do you have any experience with this library?
 
Old 08-21-2003, 09:16 AM   #2
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
why don't you help out on nautalis instead of making your own file browser? or are you going to make one better than nautalis?
 
Old 08-21-2003, 09:50 AM   #3
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 18
Of course you can use the C library in C++. That the BIG plus of C; you can call C functions in any decent language It might be a bit involved in some languages, but from C++ it is almost trivial. Just tell the C++ compiler it has C linkage. The glibc headers take care of this.

Note that the C libraries provide (almost) the same interface as the kernels system calls. It is very simple, so there is no need to complicate things with complicated wrappers.
 
  


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
How to access raw sectors on HDD with no file system? prasanthpooyath Programming 4 01-08-2005 10:53 AM
Access linux file system from windows.... johncsl82 Linux - Newbie 2 06-19-2004 10:16 AM
which is the best file system for read write access from linux and windows tomank Linux - Newbie 4 04-05-2004 08:48 AM
ho to access the windows file system from vmware pessanimahi Linux - Networking 2 09-18-2003 08:26 AM
How to access windows file system from Mandrake KDE ? futurist Linux - General 6 03-16-2003 11:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:18 PM.

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