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:
parent
7dffe44b09
commit
aed5f73fa8
newlib
|
@ -1,3 +1,8 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2013-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2013-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* libm/common/modfl.c: Add cast to remove compiler warning.
|
* libm/common/modfl.c: Add cast to remove compiler warning.
|
||||||
|
|
|
@ -118,6 +118,7 @@ int _EXFUN(_mkstemp_r, (struct _reent *, char *));
|
||||||
int _EXFUN(_mkstemps_r, (struct _reent *, char *, int));
|
int _EXFUN(_mkstemps_r, (struct _reent *, char *, int));
|
||||||
char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
|
char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
|
||||||
#endif
|
#endif
|
||||||
|
char * _EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_path));
|
||||||
_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
|
_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, __compar_fn_t _compar));
|
||||||
int _EXFUN(rand,(_VOID));
|
int _EXFUN(rand,(_VOID));
|
||||||
_PTR _EXFUN_NOTHROW(realloc,(_PTR __r, size_t __size));
|
_PTR _EXFUN_NOTHROW(realloc,(_PTR __r, size_t __size));
|
||||||
|
|
|
@ -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 cwd[PATH_MAX];
|
||||||
char *path_copy;
|
char *path_copy;
|
||||||
|
|
Loading…
Reference in New Issue