From: Ben Gras Date: Tue, 29 Jan 2013 18:59:30 +0000 (+0000) Subject: libc: add stat aliases X-Git-Tag: v3.2.1~48 X-Git-Url: http://zhaoyanbai.com/repos/man.rndc.html?a=commitdiff_plain;h=b6d285faba1c54cab0181d9815af5cb9438fa79b;p=minix.git libc: add stat aliases . add non-internal aliases for stat, lstat, fstat Change-Id: I87e025b2bf073ff56a5742fc1dcf5badb2b7b321 --- diff --git a/lib/libc/sys-minix/stat.c b/lib/libc/sys-minix/stat.c index d30ad7d30..983eb2eb5 100644 --- a/lib/libc/sys-minix/stat.c +++ b/lib/libc/sys-minix/stat.c @@ -34,10 +34,16 @@ int _stat(const char *name, struct stat *buffer); int _lstat(const char *name, struct stat *buffer); int _fstat(int fd, struct stat *buffer); +#ifdef __weak_alias __weak_alias(_stat, __stat50); __weak_alias(_lstat, __lstat50); __weak_alias(_fstat, __fstat50); +__weak_alias(stat, __stat50); +__weak_alias(lstat, __lstat50); +__weak_alias(fstat, __fstat50); +#endif + int stat(const char *name, struct stat *buffer) { message m;