From: Ulrich Drepper Date: Fri, 24 Mar 2006 16:36:38 +0000 (+0000) Subject: Define LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT. X-Git-Tag: glibc-2.16-ports-before-merge~887 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea5f32769ed893a0680ce95dabcd494720844024;p=thirdparty%2Fglibc.git Define LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT. --- diff --git a/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h b/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h index c4a9b77e2ea..0f32cec8766 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h @@ -1,5 +1,5 @@ /* O_*, F_*, FD_* bit values for Linux. - Copyright (C) 1995-1999, 2000, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 1995-2000, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -173,6 +173,12 @@ struct flock64 # define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ #endif +/* Linux-specific operations for posix_fadvise. */ +#ifdef __USE_GNU +# define LINUX_FADV_ASYNC_WRITE 32 /* Start writeout on range. */ +# define LINUX_FADV_WRITE_WAIT 33 /* Wait upon writeout to range. */ +#endif + __BEGIN_DECLS /* Provide kernel hint to read ahead. */