Lines Matching +defs:name +defs:pos
56 gethostname(char *name, size_t namelen)
65 strcpy(name, uts.nodename);
239 * directory. The returned name is also present in d->dirname and is in
261 int bufsiz, pos;
274 pos = bufsiz - 1;
275 buf[pos] = '\0';
306 if (!buf[pos])
307 buf[--pos] = '/';
310 zchdir(buf + pos);
313 return d->dirname = ztrdup(buf + pos);
315 zchdir(buf + pos);
317 return buf + pos;
356 * This means buf[pos] is always a "/".
359 pos -= len;
360 while (pos <= 1) {
364 pos += bufsiz;
367 memcpy(buf + pos, nbuf + 2, len);
370 return d->dirname = ztrdup(buf + pos + 1);
379 * "/" at buf[pos].
383 if (buf[pos])
384 zchdir(buf + pos + 1);
390 if (buf[pos])
391 zchdir(buf + pos + 1);
544 * 3. Neither the name of the University nor the names of its contributors