Lines Matching refs:offset
386 ** offset -- offset into fn to start checking from.
394 safedirpath(fn, uid, gid, user, flags, level, offset)
401 int offset;
416 if (level < 0 || offset < 0 || offset > strlen(fn))
424 sm_dprintf("safedirpath(%s, uid=%ld, gid=%ld, flags=%lx, level=%d, offset=%d):\n",
425 fn, (long) uid, (long) gid, flags, level, offset);
434 p = s + offset;
508 offset = 0;
514 while (s[offset] == buf[offset] &&
515 s[offset] != '\0')
516 offset++;
518 if (s[offset] == '\0' && buf[offset] == '\0')
525 if (offset > 0)
526 offset--;
529 if (offset > 0 &&
530 s[offset] != '/' &&
531 s[offset] != '\0')
533 while (buf[offset] != '/' &&
534 offset > 0)
535 offset--;
537 if (offset > 0 &&
538 s[offset] == '/' &&
539 buf[offset] == '/')
542 offset++;
553 offset = sptr + 1 - s;
580 level + 1, offset);