Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> How Do I Get Disk Space I.e. Dfree(), disk space via function call
jack v
post Jan 18 2003, 08:58 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 2
Joined: 18-January 03
Member No.: 341

i would like to know how to do a function call that gets me the available disk space. i am porting a dos program over and one of the things we do is check disk space to see if the program should continue or not. Can anyone please help me or point me out in some direction?

i have tried looking thru usr/include and have not found anything i can use. i suppose i could try looking at the code for df (the linux utility) but i have tried the web on this and can't figure out where i can get the code.
any help will be appreciated.
Go to the top of the page
+Quote Post
post Jan 20 2003, 09:57 AM
Post #2

Its GNU/

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3

I don't really know of one off hand, the best thing to do is what you said, and parse the output of the df command. Maybe you can create a function call for it smile.gif

I have no real answer and i don't even know why i'm posting

Corey Quilliam
(former) Administrator

Want to help out Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th June 2018 - 07:52 AM