Lines Matching refs:mode_dec
2531 adminsock_conf(path, owner, group, mode_dec) in adminsock_conf() argument
2535 int mode_dec;
2574 if (mode_dec == -1)
2577 if (mode_dec > 777)
2578 yyerror("Mode 0%03o is invalid", mode_dec);
2579 if (mode_dec >= 400) { mode += 0400; mode_dec -= 400; }
2580 if (mode_dec >= 200) { mode += 0200; mode_dec -= 200; }
2581 if (mode_dec >= 100) { mode += 0200; mode_dec -= 100; }
2583 if (mode_dec > 77)
2584 yyerror("Mode 0%03o is invalid", mode_dec);
2585 if (mode_dec >= 40) { mode += 040; mode_dec -= 40; }
2586 if (mode_dec >= 20) { mode += 020; mode_dec -= 20; }
2587 if (mode_dec >= 10) { mode += 020; mode_dec -= 10; }
2589 if (mode_dec > 7)
2590 yyerror("Mode 0%03o is invalid", mode_dec);
2591 if (mode_dec >= 4) { mode += 04; mode_dec -= 4; }
2592 if (mode_dec >= 2) { mode += 02; mode_dec -= 2; }
2593 if (mode_dec >= 1) { mode += 02; mode_dec -= 1; }