Has anyone out there seen this problem and/or can suggest a way to code 
around it?  This is all C code, not C++.

The call statfs("/usr/crc", &statbuf ) returns 0; the path exists and is of 
no interest because statbuf always contains the following, regardless of the 
path involved (all printed as %ld):

f_ type = 16390
f_bsize = 32768 
f_blocks = 65526  
f_bfree = 65526 
f_bavail = 65526
f_files = -1 
f_ffree = -1 
f_fsid = 300162640 
f_namelen = 255

(Just as an aside, the statfs() call (requiring vfs.h) is different from the 
SCO Unix version (using statfs.h) which also requires a buffer_lengh and a 
fs_type parameter.  I suspect these two additions are to allow for 
grandfathered differences in the size of struct statfs.)

In a related issue, the bash command "df" always returns "used = 0" and 
"used% = 0", regardless of which filesystem it is examining.  I'm not sure if 
any of the other values are correct, either.

I'm running the latest Cygwin, gcc, etc. on Win98 (FAT32).  See df and 
cygcheck output below.

Thanks,
John McDonald
[EMAIL PROTECTED] 

df: 
Filesystem           1k-blocks      Used Available Use% Mounted on
D:\Cygwin\contrib      2096832         0   2096832   0% /usr/contrib
D:\Cygwin\usr\crc      2096832         0   2096832   0% /usr/crc
D:\Cygwin\bin          2096832         0   2096832   0% /usr/bin
D:\Cygwin\lib          2096832         0   2096832   0% /usr/lib
D:\Cygwin              2096832         0   2096832   0% /
H:                     2097120         0   2097120   0% /UNIX


Cygcheck: 
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Jan 15 15:57:43 2001

Win9X Ver 4.10 build 67766222  

Path:   /usr/local/bin
    /usr/bin
    /bin
    /cygdrive/c/WINDOWS
    /cygdrive/c/WINDOWS/COMMAND
    /usr/bin
    /usr/crc/LIBS_WIN9X

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

PWD = `/'
USER = `root'
MAKE_MODE = `unix'
HOME = `/cygdrive/d'

PROMPT = `$p$g'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
CMDLINE = `bash --login -i'
HOSTNAME = `SEAN'
!D: = `D:\Cygwin\bin'
TERMINFO_DIRS = `/usr/crc/libs_win9x/terminfo'
CLASSPATH = `C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables'
WINDIR = `C:\WINDOWS'
WINBOOTDIR = `C:\WINDOWS'
PS1 = `\[\033]0;\007\033[33m\w\033[0m\]# '
BLASTER = `A220 I5 D1 T4'
MACHTYPE = `i686-pc-cygwin'
!H: = `H:\usr\crc\sys\source'
OLDPWD = `/cygdrive/d'
TEMP = `/cygdrive/c/Windows/TEMP'
SHLVL = `1'
SHELL = `/bin/sh'
HOSTTYPE = `i686'
OSTYPE = `cygwin'
TERM = `cygwin'
_ = `/usr/bin/cygcheck'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  FAT32   6850Mb  38% CP    UN           WINDOWS98
d:  hd  FAT32   6169Mb  43% CP    UN           CRC DRIVE
e:  cd           N/A    N/A                    
f:  fd           N/A    N/A                    
g:  cd           N/A    N/A                    
h:  net NTFS    3869Mb  41% CP       PA        root

D:\Cygwin\contrib  /usr/contrib  system  binmode
D:\Cygwin\usr\crc  /usr/crc  system  textmode
D:\Cygwin\bin  /usr/bin  system  textmode
D:\Cygwin\lib  /usr/lib  system  textmode
D:\Cygwin  /        system  textmode
H:    /UNIX    system  binmode

Found: D:\Cygwin\bin\bash.exe
Found: D:\Cygwin\bin\cat.exe
Found: D:\Cygwin\bin\cpp.exe
Found: D:\Cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: D:\Cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: D:\Cygwin\bin\gcc.exe
Found: D:\Cygwin\bin\gdb.exe
Found: D:\Cygwin\bin\ld.exe
Found: D:\Cygwin\bin\ls.exe
Found: D:\Cygwin\bin\make.exe
Found: D:\Cygwin\bin\sh.exe
Found: \bin\sh.exe
Warning: D:\Cygwin\bin\sh.exe hides \bin\sh.exe

   81k 2000/12/05 D:\Cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/11/25 20:43
   35k 2000/12/05 D:\Cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/11/25 20:43
  390k 2000/12/05 D:\Cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/11/25 20:39
    5k 2000/12/05 D:\Cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/12/05 D:\Cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/11/25 20:39
  623k 2000/12/05 D:\Cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/11/25 20:43
   45k 2000/12/07 D:\Cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2000/12/7 1:41
   26k 2000/12/07 D:\Cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2000/12/7 1:40
  159k 2000/12/07 D:\Cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2000/12/7 1:42
  225k 2000/12/07 D:\Cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2000/12/7 1:39
   15k 2000/12/07 D:\Cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2000/12/7 1:40
  611k 2000/12/25 D:\Cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/12/25 12:39
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 7
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 31
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Mon Dec 25 12:39:48 EST 2000
        shared id: cygwin1S3

  611k 2000/12/25 D:\Cygwin\usr\crc\LIBS_WIN9X\cygwin1.dll - os=4.0 img=1.0 
sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/12/25 12:39
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 7
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 31
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Mon Dec 25 12:39:48 EST 2000
        shared id: cygwin1S3

Use -h to see help about each section

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to