1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00
2002-07-11  Ulrich Drepper  <drepper@redhat.com>

	* Versions.def (libc): Add GLIBC_2.3.
	* stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
	* stdlib/canonicalize.c: Add compatibility version for realpath
	and make new code available in GLIBC_2.3.
This commit is contained in:
Ulrich Drepper
2002-07-11 16:34:20 +00:00
parent 1ae915d98d
commit 3e0dd85b10
4 changed files with 31 additions and 1 deletions

View File

@@ -26,6 +26,8 @@
#include <errno.h>
#include <stddef.h>
#include <shlib-compat.h>
/* Return the canonical absolute name of file NAME. A canonical name
does not contain any `.', `..' components nor any repeated path
separators ('/') or symlinks. All path components must exist. If
@@ -204,7 +206,23 @@ error:
free (rpath);
return NULL;
}
weak_alias (__realpath, realpath)
versioned_symbol (libc, __realpath, realpath, GLIBC_2_3);
#if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3)
char *
__old_realpath (const char *name, char *resolved)
{
if (resolved == NULL)
{
__set_errno (EINVAL);
return NULL;
}
return __realpath (name, resolved);
}
compat_symbol (libc, __old_realpath, realpath, GLIBC_2_0);
#endif
char *