This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] sync ARM and MIPS bits/fcntl.h with trunk.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]