Return to getcwd.c CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / gen |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.50, 2011/02/21 00:40:07 | version 1.51, 2012/03/13 21:13:35 | ||
---|---|---|---|
|
|
||
realpath(const char *path, char *resolved) | realpath(const char *path, char *resolved) | ||
{ | { | ||
struct stat sb; | struct stat sb; | ||
int idx = 0, n, nlnk = 0; | int idx = 0, nlnk = 0; | ||
const char *q; | const char *q; | ||
char *p, wbuf[2][MAXPATHLEN]; | char *p, wbuf[2][MAXPATHLEN]; | ||
size_t len; | size_t len; | ||
ssize_t n; | |||
_DIAGASSERT(resolved != NULL); | _DIAGASSERT(resolved != NULL); | ||