50
* Normalize the unix pathname in src eliminating .. sequences
51
* to yield an absolute path. Returns 0 on success, and -1 on
54
int norm(char* dest, int len, const char* src)
60
enum { L0, L1, L2, L3, L4 } state = L0;
61
assert(strlen(src) <= len);
66
enum { slash, dot, other } cls;