This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] sync ARM and MIPS bits/fcntl.h with trunk.
- From: "Lior Balkohen" <balkohen at gmail dot com>
- To: libc-ports at sources dot redhat dot com
- Date: Sat, 25 Mar 2006 17:28:34 +0100
- Subject: [PATCH] sync ARM and MIPS bits/fcntl.h with trunk.
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dJM7ILqHOxbilTavvElGs3yjAKeJGf6WhiA9vw53RV3m+dafRCJ3vuLHaB3SZD4H/lCOtgUdUt95mHJwQHx8/2XEJeJx1uzTuFik2D1BHPwXAPiIFHkFx6YX8aZXx5gcirBdN/hhXNXdQW07Z/YPqrrwpPwNh2iPTqZTTs1PqXE=
Hi,
Ulrich made changes in bits/fcntl.h in all architectures, but not in ports.
Furthermore asm-mips/unistd.h declares __NR_readahead, so any reason
why MIPS does not provide kernel hint to read ahead?
2006-03-25 Lior Balkohen <balkohen@gmail.com>
* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define LINUX_FADV_ASYNC_WRITE
and LINUX_FADV_WRITE_WAIT.
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define LINUX_FADV_ASYNC_WRITE
and LINUX_FADV_WRITE_WAIT.
Add readahead prototype.
diff -Naur ports/sysdeps/unix/sysv/linux/arm/bits/fcntl.h
ports~/sysdeps/unix/sysv/linux/arm/bits/fcntl.h
--- ports/sysdeps/unix/sysv/linux/arm/bits/fcntl.h 2004-08-23
09:28:44.000000000 +0200
+++ ports~/sysdeps/unix/sysv/linux/arm/bits/fcntl.h 2006-03-25
16:56:16.000000000 +0100
@@ -1,5 +1,5 @@
/* O_*, F_*, FD_* bit values for Linux.
- Copyright (C) 1995-1998, 2000, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1995-1998, 2000, 2004, 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
@@ -180,6 +180,12 @@
# 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. */
diff -Naur ports/sysdeps/unix/sysv/linux/mips/bits/fcntl.h
ports~/sysdeps/unix/sysv/linux/mips/bits/fcntl.h
--- ports/sysdeps/unix/sysv/linux/mips/bits/fcntl.h 2004-11-24
05:37:34.000000000 +0100
+++ ports~/sysdeps/unix/sysv/linux/mips/bits/fcntl.h 2006-03-25
16:57:36.000000000 +0100
@@ -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 @@
# 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