2013-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>

* libc/include/stdlib.h: Add prototype of realpath().
	* libc/sys/linux/realpath.c: Add restrict keyword.
This commit is contained in:
Joel Sherrill
2013-11-19 17:32:24 +00:00
parent 7dffe44b09
commit aed5f73fa8
3 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,7 @@ static int resolve_path(char *path,char *result,char *pos)
}
char *realpath(const char *path,char *resolved_path)
char *realpath(const char *__restrict path,char *__restrict resolved_path)
{
char cwd[PATH_MAX];
char *path_copy;