add previous stat symbols as aliases

. renaming them causes fallout
	. only use the new ones though
This commit is contained in:
Ben Gras 2011-12-06 00:58:22 +01:00
parent 67c012b3fc
commit 1c3c4d73ef

View File

@ -30,6 +30,10 @@ static void prev_stat2new_stat(struct stat *new, struct minix_prev_stat *prev)
new->st_ctimespec.tv_sec = prev->st_ctime;
}
__weak_alias(_stat, __stat50);
__weak_alias(_lstat, __lstat50);
__weak_alias(_fstat, __fstat50);
int stat(const char *name, struct stat *buffer)
{
message m;
@ -61,6 +65,8 @@ int stat(const char *name, struct stat *buffer)
return r;
}
int _fstat(int fd, struct stat *buffer) { return fstat(fd, buffer); }
int fstat(int fd, struct stat *buffer)
{
message m;
@ -90,6 +96,8 @@ int fstat(int fd, struct stat *buffer)
return r;
}
int _lstat(const char *name, struct stat *buffer) { return lstat(name, buffer); }
int lstat(const char *name, struct stat *buffer)
{
message m;