From: Ben Gras Date: Mon, 5 Dec 2011 23:58:22 +0000 (+0100) Subject: add previous stat symbols as aliases X-Git-Tag: v3.2.0~197 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/CHANGES?a=commitdiff_plain;h=1c3c4d73ef01d6f1409fddd78314fc806a6f68b7;p=minix.git add previous stat symbols as aliases . renaming them causes fallout . only use the new ones though --- diff --git a/lib/nbsd_libc/sys-minix/stat.c b/lib/nbsd_libc/sys-minix/stat.c index 353d733b1..f84f45c00 100644 --- a/lib/nbsd_libc/sys-minix/stat.c +++ b/lib/nbsd_libc/sys-minix/stat.c @@ -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;