delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/04/09:28:12

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Sam Steingold <sds AT gnu DOT org>
Subject: Re: bug in statfs
Date: Thu, 04 Dec 2003 09:27:14 -0500
Organization: disorganization
Lines: 37
Message-ID: <ud6b4psjh.fsf@gnu.org>
References: <uoeuprfyq DOT fsf AT gnu DOT org> <20031204094137 DOT GT1640 AT cygbert DOT vinschen DOT de>
Reply-To: sds AT gnu DOT org
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Attribution: Sam
X-Disclaimer: You should not expect anyone to agree with me.
User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt)
Cancel-Lock: sha1:iyTgm2ej5gi3XghnkhUmVu4g0+U=

> * Corinna Vinschen <pbevaan-pltjva AT pltjva DOT pbz> [2003-12-04 10:41:37 +0100]:
>
> On Wed, Dec 03, 2003 at 12:03:41PM -0500, Sam Steingold wrote:
>> POSIX specifies struct statvfs to contain slots f_frsize, f_flag,
>> f_favail, and f_namemax and to be declared in <sys/statvfs.h>:
>> <http://www.opengroup.org/onlinepubs/007904975/basedefs/sys/statvfs.h.html>
>> 
>> Cygwin defines struct statfs without slots f_frsize, f_flag, and
>> f_favail, and with f_namelen instead of f_namemax, in sys/vfs.h (also
>> included from sys/statfs.h) and does not come with sys/statvfs.h.
>
> Sure.  It's struct *statfs*, not struct *statvfs*.  We also have a
> statfs system call, not statvfs.  So you're talking about adding a new
> system call.

yes, I realized that myself
(http://article.gmane.org/gmane.os.cygwin:41294).

>> Any change this might get rectified in the nearest future?
>
> Any important information you can't get from statfs?  Otherwise it's
> a matter of time and interest, as usual.

I cannot get f_frsize, f_flag, and f_favail.
This is also a portability issue.

PS.  Is there a POSIX way to get the list of mount points, lime mount(1)
     and df(1) do?  It appears that linux has /proc/mounts and most
     unixes have /etc/mtab, but is there a system call?

thanks.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
History doesn't repeat itself, but historians do repeat each other.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019