Re: [exim] Using statvfs instead of statfs on Linux

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Andreas Metzler
日付:  
To: exim-users
題目: Re: [exim] Using statvfs instead of statfs on Linux
On 2004-11-10 Philip Hazel <ph10@???> wrote:
> On Tue, 9 Nov 2004, Andreas Metzler wrote:
> > Currently on Linux systems exim is using statfs() instead of
> > statvfs(). I suggest to change this.

[...]
> I rely on OS experts to tell me these things. I see that there's a
> comment in the Exim source that statvfs() is the new standard and that
> statfs() is deprecated. That was written a very long time ago (before I
> was using Linux myself), so it does seem plausible that all relevant
> Linux systems will have statvfs() these days. I will make the change,
> and we'll see what happens...


Thanks.

> > On a sidenote how about replacing the hardcoded
> > "-D_FILE_OFFSET_BITS=64" in OS/Makefile-Linux with
> > $(shell getconf LFS_CFLAGS) or a similar construct?


> The usage "$(shell..." is not something of which I am aware. I suspect
> is it not universally available in all versions of "make". I do like to
> keep things as simple as possible (both in the code and in my brain :-)


> Neither was I aware of the getconf command or the name LFS_FLAGS. You
> see, I am definitely NOT an OS expert. :-)


I am not either, as you can tell, and as I've now learned that
a) exim really uses bare-bone make
b) "getconf LFS_CFLAGS" is a glibc-ism
I retract this suggestion.
                 cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"