mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
2006-03-27 Lior Balkohen <balkohen@gmail.com>
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT. Add readahead prototype.
This commit is contained in:
parent
bfc23f5a36
commit
f3fb78ec4e
@ -1,3 +1,9 @@
|
||||
2006-03-27 Lior Balkohen <balkohen@gmail.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define
|
||||
LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT. Add readahead
|
||||
prototype.
|
||||
|
||||
2006-03-27 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/mips/bits/poll.h (POLLREMOVE, POLLRDHUP):
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* O_*, F_*, FD_* bit values for Linux.
|
||||
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002, 2003, 2004
|
||||
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002, 2003, 2004, 2006
|
||||
Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@ -192,3 +192,17 @@ struct flock64
|
||||
# define POSIX_FADV_DONTNEED 4 /* Don't need these pages. */
|
||||
# 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. */
|
||||
extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
|
||||
__THROW;
|
||||
|
||||
__END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user