Lines Matching refs:tok
230 fstring tok;
255 if (!next_token(&cp, tok, "/", sizeof(fstring))) {
259 if (strncmp(tok, "ALLOWED", strlen("ALLOWED")) == 0) {
261 } else if (strncmp(tok, "DENIED", strlen("DENIED")) == 0) {
269 if (!(next_token(&cp, tok, "/", sizeof(fstring)) &&
270 sscanf(tok, "%i", &aflags))) {
274 if (!next_token(&cp, tok, "/", sizeof(fstring))) {
278 if (strncmp(tok, "0x", 2) == 0) {
279 if (sscanf(tok, "%i", &amask) != 1) {
286 if (strcmp(tok, v->perm) == 0) {
292 p = tok;
341 fstring tok;
348 while (next_token(&p, tok, "\t,\r\n", sizeof(tok))) {
350 if (strncmp(tok,"REVISION:", 9) == 0) {
351 revision = strtol(tok+9, NULL, 16);
355 if (strncmp(tok,"OWNER:", 6) == 0) {
358 !StringToSid(owner_sid, tok+6)) {
365 if (strncmp(tok,"GROUP:", 6) == 0) {
368 !StringToSid(grp_sid, tok+6)) {
375 if (strncmp(tok,"ACL:", 4) == 0) {
377 if (!parse_ace(&ace, tok+4)) {
378 printf("Failed to parse ACL %s\n", tok);
382 printf("Failed to add ACL %s\n", tok);