From b6d285faba1c54cab0181d9815af5cb9438fa79b Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 29 Jan 2013 18:59:30 +0000 Subject: [PATCH] libc: add stat aliases . add non-internal aliases for stat, lstat, fstat Change-Id: I87e025b2bf073ff56a5742fc1dcf5badb2b7b321 --- lib/libc/sys-minix/stat.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.11.4.GIT