Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!sun-barr!ames!dftsrv!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: How do "df" from within a C program? Message-ID: <21411@mimsy.umd.edu> Date: 22 Dec 89 18:49:09 GMT References: <470@cpsolv.UUCP> <1989Dec22.121735.18455@virtech.uucp> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 11 In article <1989Dec22.121735.18455@virtech.uucp> cpcahil@virtech.uucp (Conor P. Cahill) writes: >For BSD I don't know of any special system call to support this kind >of operation. You might need to read the superblock or parse the df outupt. Sufficiently recent versions of BSD (i.e., 4.4) have a statfs() system call like the one in SunOS and SysRel 4. (There are some differences with which I am unfamiliar.) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris