bump version to 1.0.28
[uclibc-ng.git] / libc / stdlib / canonicalize.c
blobda09d5841cf1c382efa3cd7c562c1e21b8bacda9
1 /*
2 * canonicalize.c -- Return a malloc'd string containing the canonical
3 * absolute name of the named file. The last file name component need
4 * not exist, and may be a symlink to a nonexistent file.
5 * Copyright (C) 2009 STMicroelectronics
6 * Author: Salvatore Cro <salvatore.cro@st.com>
8 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
9 */
11 #include <stdlib.h>
13 #ifdef __USE_GNU
15 char * canonicalize_file_name (const char *name)
17 return realpath (name, NULL);
19 #endif