Lines Matching defs:output
17 char output[PATH_MAX];
37 * If not a link, it's moved to output; if a link, contents are
42 * and the output state must be reset. */
47 output[q++] = '/';
51 output[q++] = '/';
66 /* Copy next component onto output at least temporarily, to
67 * call readlink, but wait to advance output position until
69 if (q && output[q-1] != '/') {
75 memcpy(output+q, stack+p, l);
76 output[q+l] = 0;
95 ssize_t k = readlink(output, stack, p);
106 while(q && output[q-1]!='/') q--;
107 if (q>1 && (q>2 || output[0]!='/')) q--;
130 output[q] = 0;
132 if (output[0] != '/') {
145 memmove(output + l, output + p, q - p + 1);
146 memcpy(output, stack, l);
150 if (resolved) return memcpy(resolved, output, q+1);
151 else return strdup(output);