Patch - Add restrict for statvfs
Joel Sherrill
joel.sherrill@oarcorp.com
Thu Nov 21 23:02:00 GMT 2013
Hi
Another in the restrict series from Google Code-In students.
This one is a little odd. newlib doesn't have the .h file.
RTEMS does and we could move it to newlib if desirable and
possible to be target independent. But there is only
a single Linux file which needed touching.
OK to commit?
2013-11-21 Daniel Ramirez <javamonn@gmail.com>
* libc/sys/linux/statvfs.c (statvfs): Added restrict keyword.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
-------------- next part --------------
Index: newlib/libc/sys/linux/statvfs.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/linux/statvfs.c,v
retrieving revision 1.1
diff -u -r1.1 statvfs.c
--- newlib/libc/sys/linux/statvfs.c 24 Jul 2002 20:38:32 -0000 1.1
+++ newlib/libc/sys/linux/statvfs.c 21 Nov 2013 15:57:47 -0000
@@ -30,7 +30,7 @@
int
-statvfs (const char *file, struct statvfs *buf)
+statvfs (const char *__restrict file, struct statvfs *__restrict buf)
{
struct statfs fsbuf;
struct stat64 st;
More information about the Newlib
mailing list