Lines Matching refs:start

62 static int	isint_w(const wchar_t *start, const wchar_t *end, int *result);
63 static int ismode_w(const wchar_t *start, const wchar_t *end, int *result);
64 static int is_nfs4_flags_w(const wchar_t *start, const wchar_t *end,
66 static int is_nfs4_perms_w(const wchar_t *start, const wchar_t *end,
68 static void next_field_w(const wchar_t **wp, const wchar_t **start,
73 static int isint(const char *start, const char *end, int *result);
74 static int ismode(const char *start, const char *end, int *result);
75 static int is_nfs4_flags(const char *start, const char *end,
77 static int is_nfs4_perms(const char *start, const char *end,
79 static void next_field(const char **p, size_t *l, const char **start,
1140 const wchar_t *start; in archive_acl_from_text_w() member
1176 const wchar_t *start, *end; in archive_acl_from_text_w() local
1177 next_field_w(&text, &start, &end, &sep); in archive_acl_from_text_w()
1179 field[fields].start = start; in archive_acl_from_text_w()
1187 field[n].start = field[n].end = NULL; in archive_acl_from_text_w()
1189 if (field[0].start == NULL || field[0].end == NULL) { in archive_acl_from_text_w()
1194 if (*(field[0].start) == L'#') { in archive_acl_from_text_w()
1203 name.start = name.end = NULL; in archive_acl_from_text_w()
1215 s = field[0].start; in archive_acl_from_text_w()
1216 len = field[0].end - field[0].start; in archive_acl_from_text_w()
1221 field[0].start += 7; in archive_acl_from_text_w()
1228 isint_w(field[n + 1].start, field[n + 1].end, &id); in archive_acl_from_text_w()
1231 isint_w(field[n + 3].start, field[n + 3].end, in archive_acl_from_text_w()
1235 s = field[n].start; in archive_acl_from_text_w()
1236 st = field[n].start + 1; in archive_acl_from_text_w()
1237 len = field[n].end - field[n].start; in archive_acl_from_text_w()
1268 && field[n + 1].start < field[n + 1].end in archive_acl_from_text_w()
1269 && ismode_w(field[n + 1].start, in archive_acl_from_text_w()
1274 field[n + 1].start < field[n + 1].end) { in archive_acl_from_text_w()
1283 field[n + 1].start < field[n + 1].end) { in archive_acl_from_text_w()
1301 if (permset == 0 && !ismode_w(field[n + 2 - sol].start, in archive_acl_from_text_w()
1309 s = field[0].start; in archive_acl_from_text_w()
1310 len = field[0].end - field[0].start; in archive_acl_from_text_w()
1343 isint_w(name.start, name.end, &id); in archive_acl_from_text_w()
1347 if (!is_nfs4_perms_w(field[1 + n].start, in archive_acl_from_text_w()
1353 if (!is_nfs4_flags_w(field[2 + n].start, in archive_acl_from_text_w()
1359 s = field[3 + n].start; in archive_acl_from_text_w()
1360 len = field[3 + n].end - field[3 + n].start; in archive_acl_from_text_w()
1378 isint_w(field[4 + n].start, field[4 + n].end, &id); in archive_acl_from_text_w()
1383 tag, id, name.start, name.end - name.start); in archive_acl_from_text_w()
1403 isint_w(const wchar_t *start, const wchar_t *end, int *result) in isint_w() argument
1406 if (start >= end) in isint_w()
1408 while (start < end) { in isint_w()
1409 if (*start < L'0' || *start > L'9') in isint_w()
1412 (n == INT_MAX / 10 && (*start - L'0') > INT_MAX % 10)) { in isint_w()
1416 n += *start - L'0'; in isint_w()
1418 start++; in isint_w()
1430 ismode_w(const wchar_t *start, const wchar_t *end, int *permset) in ismode_w() argument
1434 if (start >= end) in ismode_w()
1436 p = start; in ismode_w()
1464 is_nfs4_perms_w(const wchar_t *start, const wchar_t *end, int *permset) in is_nfs4_perms_w() argument
1466 const wchar_t *p = start; in is_nfs4_perms_w()
1527 is_nfs4_flags_w(const wchar_t *start, const wchar_t *end, int *permset) in is_nfs4_flags_w() argument
1529 const wchar_t *p = start; in is_nfs4_flags_w()
1573 next_field_w(const wchar_t **wp, const wchar_t **start, in next_field_w() argument
1580 *start = *wp; in next_field_w()
1590 if (*wp == *start) { in next_field_w()
1636 const char *start; in archive_acl_from_text_nl() member
1671 const char *start, *end; in archive_acl_from_text_nl() local
1672 next_field(&text, &length, &start, &end, &sep); in archive_acl_from_text_nl()
1674 field[fields].start = start; in archive_acl_from_text_nl()
1682 field[n].start = field[n].end = NULL; in archive_acl_from_text_nl()
1684 if (field[0].start == NULL || field[0].end == NULL) { in archive_acl_from_text_nl()
1689 if (*(field[0].start) == '#') { in archive_acl_from_text_nl()
1698 name.start = name.end = NULL; in archive_acl_from_text_nl()
1710 s = field[0].start; in archive_acl_from_text_nl()
1711 len = field[0].end - field[0].start; in archive_acl_from_text_nl()
1716 field[0].start += 7; in archive_acl_from_text_nl()
1723 isint(field[n + 1].start, field[n + 1].end, &id); in archive_acl_from_text_nl()
1726 isint(field[n + 3].start, field[n + 3].end, in archive_acl_from_text_nl()
1730 s = field[n].start; in archive_acl_from_text_nl()
1731 st = field[n].start + 1; in archive_acl_from_text_nl()
1732 len = field[n].end - field[n].start; in archive_acl_from_text_nl()
1768 && field[n + 1].start < field[n + 1].end in archive_acl_from_text_nl()
1769 && ismode(field[n + 1].start, in archive_acl_from_text_nl()
1774 field[n + 1].start < field[n + 1].end) { in archive_acl_from_text_nl()
1783 field[n + 1].start < field[n + 1].end) { in archive_acl_from_text_nl()
1801 if (permset == 0 && !ismode(field[n + 2 - sol].start, in archive_acl_from_text_nl()
1809 s = field[0].start; in archive_acl_from_text_nl()
1810 len = field[0].end - field[0].start; in archive_acl_from_text_nl()
1844 isint(name.start, name.end, &id); in archive_acl_from_text_nl()
1848 if (!is_nfs4_perms(field[1 + n].start, in archive_acl_from_text_nl()
1854 if (!is_nfs4_flags(field[2 + n].start, in archive_acl_from_text_nl()
1860 s = field[3 + n].start; in archive_acl_from_text_nl()
1861 len = field[3 + n].end - field[3 + n].start; in archive_acl_from_text_nl()
1879 isint(field[4 + n].start, field[4 + n].end, in archive_acl_from_text_nl()
1885 tag, id, name.start, name.end - name.start, sc); in archive_acl_from_text_nl()
1905 isint(const char *start, const char *end, int *result) in isint() argument
1908 if (start >= end) in isint()
1910 while (start < end) { in isint()
1911 if (*start < '0' || *start > '9') in isint()
1914 (n == INT_MAX / 10 && (*start - '0') > INT_MAX % 10)) { in isint()
1918 n += *start - '0'; in isint()
1920 start++; in isint()
1932 ismode(const char *start, const char *end, int *permset) in ismode() argument
1936 if (start >= end) in ismode()
1938 p = start; in ismode()
1966 is_nfs4_perms(const char *start, const char *end, int *permset) in is_nfs4_perms() argument
1968 const char *p = start; in is_nfs4_perms()
2029 is_nfs4_flags(const char *start, const char *end, int *permset) in is_nfs4_flags() argument
2031 const char *p = start; in is_nfs4_flags()
2075 next_field(const char **p, size_t *l, const char **start, in next_field() argument
2083 *start = *p; in next_field()