2013-11-21 Daniel Ramirez <javamonn@gmail.com>
* d30v/syscalls.c, i960/mon960.c, m68k/io-stat.c, mt/stat.c, spu/lstat.c, spu/stat.c: Add restrict keyword.
This commit is contained in:
parent
21cf2aee53
commit
c9e978ed1b
|
@ -1,3 +1,8 @@
|
|||
2013-11-21 Daniel Ramirez <javamonn@gmail.com>
|
||||
|
||||
* d30v/syscalls.c, i960/mon960.c, m68k/io-stat.c, mt/stat.c,
|
||||
spu/lstat.c, spu/stat.c: Add restrict keyword.
|
||||
|
||||
2013-11-21 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
||||
|
||||
* aarch64/ftruncate.c: Include errno.h.
|
||||
|
|
|
@ -119,7 +119,7 @@ chdir (char *dir)
|
|||
}
|
||||
|
||||
int
|
||||
stat (const char *filename, void *info)
|
||||
stat (const char *__restrict filename, void *__restrict info)
|
||||
{
|
||||
return __syscall (filename, info, 0, 0, SYS_stat);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ fstat (int file, struct stat *st)
|
|||
}
|
||||
|
||||
int
|
||||
stat (const char *filename, struct stat *st)
|
||||
stat (const char *__restrict filename, struct stat *__restrict st)
|
||||
{
|
||||
st->st_mode = S_IFCHR;
|
||||
return 0;
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
|
||||
int stat (const char *filename, struct stat *buf)
|
||||
int stat (const char *__restrict filename, struct stat *__restrict buf)
|
||||
{
|
||||
#if HOSTED
|
||||
gdb_parambuf_t parameters;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
int
|
||||
stat (const char *path, struct stat *st)
|
||||
stat (const char *__restrict path, struct stat *__restrict st)
|
||||
|
||||
{
|
||||
return TRAP0 (SYS_stat, path, st, 0);
|
||||
|
|
|
@ -44,7 +44,7 @@ typedef struct
|
|||
} syscall_stat_t;
|
||||
|
||||
int
|
||||
lstat (const char *pathname, struct stat *pstat)
|
||||
lstat (const char *__restrict pathname, struct stat *__restrict pstat)
|
||||
{
|
||||
syscall_stat_t sys;
|
||||
struct jsre_stat pjstat;
|
||||
|
|
Loading…
Reference in New Issue