Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 03-09-2005, 06:24 AM   #1
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Rep: Reputation: 15
Unhappy Gathering computer system (linux )information in C

how to access linux system information in C program. System information includes processor , harddisk size, used & free space. etc.

Thanks in advance
Old 03-09-2005, 06:36 AM   #2
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

i don't know a lot about C, but i would suggest that you can use something like fget() or fread() in the following file:
then get the output of the commands like
to get harddisk information.

and so on...

if your question concern some C builtin library that has all of these things already implemented, ignore my answer.


Old 03-09-2005, 06:47 AM   #3
Registered: Dec 2004
Location: Bangalore, India
Distribution: Fedora 2
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks , but i am asing for C builtin library


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Gathering post breach information on linux xxx_anuj_xxx Linux - Security 3 11-12-2005 11:08 AM
Information on Processes in linux using System calls Anup Kumar Programming 3 05-06-2005 12:51 PM
Can't copy files from an SCO Unix System V computer to a Linux computer gnppapas Linux - General 2 11-27-2004 02:39 PM
Information Gathering xathras Linux - Networking 4 06-28-2004 02:23 PM
System Information software for Linux caesius_01 Linux - General 2 10-24-2003 09:13 PM > Forums > Non-*NIX Forums > Programming

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

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