summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-07-14 09:49:16 +0100
committerPádraig Brady <P@draigBrady.com>2010-07-22 01:03:48 +0100
commit63b5e8164847285f5d3c1dbc9f7c41ad8c17ccc6 (patch)
treead36d7838aa11ba9a3090cf88890de923d61a6ce /m4
parentc88cfffb6cb424c2f2ee8317dd8f546bd8594443 (diff)
downloadcoreutils-63b5e8164847285f5d3c1dbc9f7c41ad8c17ccc6.tar.xz
fadvise: new module providing a simpler interface to posix_fadvise
* bootstrap.conf: Include the new module * gl/lib/fadvise.c: Provide a simpler interface to posix_fadvise. (fadvise): Provide hint to the whole file associated with a stream. (fdadvise): Provide hint to the specific portion of a file associated with a file descriptor. * gl/lib/fadvise.h: Redefine POSIX_FADV_* to FADVISE_* enums. * gl/modules/fadvise: New file. * m4/jm-macros.m4: Remove the no longer needed posix_fadvise check. * .x-sc_program_name: Exclude test-fadvise.c from this check. * gl/tests/test-fadvise (main): New test program. * gl/modules/fadvise-testss: A new index to reference the tests. * src/sort.c (stream_open): Use the new interface. * src/dd.c (iwrite): Likewise.
Diffstat (limited to 'm4')
-rw-r--r--m4/jm-macros.m41
1 files changed, 0 insertions, 1 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index 8711e9428..20b9af9a4 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -64,7 +64,6 @@ AC_DEFUN([coreutils_MACROS],
LIBS=$coreutils_saved_libs
# Used by sort.c.
- AC_CHECK_FUNCS_ONCE([posix_fadvise])
AC_CHECK_FUNCS_ONCE([nl_langinfo])
# Used by tail.c.