From: "James F.Hranicky" Date: 2002-04-17T12:58:45+09:00 Subject: Re: Help wanted for statvfs extension On Wed, 17 Apr 2002 05:04:06 +0900 "Daniel Berger" wrote: > First, I should mention that I wrote this with Ruby 1.6.6 on Solaris > 8. This is my first attempt at a C extension (no laughing please!). > I have no idea how portable it is. Mostly what I'm looking for are > opinions on how I've set things up, if there are any potential memory > leaks, and whether or not I should make this a subclass of File::Stat. > I realize that there are plenty of missing methods. Once everything > else is established, the methods will come easy (since they'll just be > struct attribute values). I recommend you change the name to "Fs" : Fs.stat("/tmp") { |fs| p fs.size p fs.name } Statvfs is more-or-less SYSV-specific; under the BSDs it'll be statfs. I don't think it should be a subclass of File or File::Stat . This will be a nice addition when finished. $ 0.02 ---------------------------------------------------------------------- | Jim Hranicky, Senior SysAdmin UF/CISE Department | | E314D CSE Building Phone (352) 392-1499 | | jfh@cise.ufl.edu http://www.cise.ufl.edu/~jfh | ----------------------------------------------------------------------