4
* AT&T Bell Laboratories
7
/* #include "univlib.h" */
17
* return external representation for symbolic link text of name in buf
18
* the link text string length is returned
22
pathgetlink(const char* name, char* buf, int siz)
26
if ((n = readlink(name, buf, siz)) < 0) return(-1);
45
while (isalnum(*++s) || *s == '_' || *s == '.');
50
if (!*s || isspace(*s))
60
if (t >= &tmp[sizeof(tmp)]) break;
62
if (!match && t < &tmp[sizeof(tmp) - univ_size + 1]) for (n = 0; n < UNIV_MAX; n++)
64
if (*(v = s - 1) == *(u = univ_name[n]))
66
while (*u && *v++ == *u) u++;
70
strcpy(t - 1, univ_cond);