This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Add restrict keyword to sys/stat.h
- From: Peter Rosin <peda at lysator dot liu dot se>
- To: newlib at sourceware dot org
- Date: Thu, 21 Nov 2013 15:43:23 +0100
- Subject: Re: Add restrict keyword to sys/stat.h
- Authentication-results: sourceware.org; auth=none
- References: <528E1972 dot 90403 at oarcorp dot com>
On 2013-11-21 15:32, Joel Sherrill wrote:
> --- newlib/libc/sys/rdos/stat.c 31 Jan 2006 19:33:56 -0000 1.1
> +++ newlib/libc/sys/rdos/stat.c 21 Nov 2013 14:30:26 -0000
> @@ -5,7 +5,7 @@
> #include <sys/stat.h>
> #include <errno.h>
>
> -int stat(const char *file, struct stat *st)
> ++int stat(const char *__restrict file, struct stat *__restrict st)
> {
> errno = ENOSYS;
> return -1;
Errm, this is C, right? Not C++ or something? :-)
Cheers,
Peter