Lines Matching refs:mode
300 mode_t mode = 0755; in do_mkdir() local
306 mode = std::stoul(args[2], 0, 8); in do_mkdir()
309 ret = make_dir(args[1].c_str(), mode); in do_mkdir()
312 ret = fchmodat(AT_FDCWD, args[1].c_str(), mode, AT_SYMLINK_NOFOLLOW); in do_mkdir()
331 if (mode & (S_ISUID | S_ISGID)) { in do_mkdir()
332 ret = fchmodat(AT_FDCWD, args[1].c_str(), mode, AT_SYMLINK_NOFOLLOW); in do_mkdir()
419 int mode, loop, fd; in do_mount() local
422 mode = (flags & MS_RDONLY) ? O_RDONLY : O_RDWR; in do_mount()
423 fd = open(source + 5, mode | O_CLOEXEC); in do_mount()
430 loop = open(tmp, mode | O_CLOEXEC); in do_mount()
741 int mode = -1; in do_verity_load_state() local
742 int rc = fs_mgr_load_verity_state(&mode); in do_verity_load_state()
743 if (rc == 0 && mode != VERITY_MODE_DEFAULT) { in do_verity_load_state()
750 int mode, int status) { in verity_update_property() argument
752 android::base::StringPrintf("%d", mode).c_str()); in verity_update_property()
839 mode_t mode = 0; in get_mode() local
842 mode = (mode<<3) | (*s-'0'); in get_mode()
848 return mode; in get_mode()
852 mode_t mode = get_mode(args[1].c_str()); in do_chmod() local
853 if (fchmodat(AT_FDCWD, args[2].c_str(), mode, AT_SYMLINK_NOFOLLOW) < 0) { in do_chmod()