bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] New fallocate module


From: Pádraig Brady
Subject: Re: [PATCH] New fallocate module
Date: Thu, 28 May 2009 09:41:21 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Eric Blake wrote:
> According to Pádraig Brady on 5/27/2009 10:20 AM:
>> Take 2 attached.
> 
>> Still outstanding from the gnulib portion is support for solaris.
>> I may get time to set this up, but I've very little time lately,
>> so I would like not to require this for merging.
> 
> That seems like a reasonable approach for a first cut, especially with
> your FIXME comment.
> 
>> +  dnl Persuade glibc <fcntl.h> to declare fallocate().
>> +  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
> 
> Use gl_USE_SYSTEM_EXTENSIONS instead; it avoids some warnings from newer
> autoconf.

Done.
(I notice AC_USE_SYSTEM_EXTENSIONS seems to be used more):
  $ grep AC_USE_SYSTEM_EXTENSIONS *.m4 | wc -l
  54
  $ grep gl_USE_SYSTEM_EXTENSIONS *.m4 | wc -l
  34

I was also thinking a bit more about the current glibc interface.
I still don't like the requirement on <linux/falloc.h>, i.e.

  #if HAVE_LINUX_FALLOC_H
  # include <linux/falloc.h>
  #endif

I've added a query to the existing glibc fallocate bug,
as to whether <sys/falloc.h> should be available instead,
or even better, everything be available in fcntl.h

cheers,
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]