| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/experimental/bits/ |
| H A D | fs_fwd.h | 141 enum class perms : unsigned { in _GLIBCXX_VISIBILITY() enum 166 constexpr perms in _GLIBCXX_VISIBILITY() 167 operator&(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 169 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 170 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 174 constexpr perms in _GLIBCXX_VISIBILITY() 175 operator|(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 177 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 178 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 182 constexpr perms in _GLIBCXX_VISIBILITY() [all …]
|
| H A D | fs_dir.h | 62 perms __prms = perms::unknown) noexcept in _GLIBCXX_VISIBILITY() 74 perms permissions() const noexcept { return _M_perms; } in _GLIBCXX_VISIBILITY() 78 void permissions(perms __prms) noexcept { _M_perms = __prms; } in _GLIBCXX_VISIBILITY() 82 perms _M_perms; in _GLIBCXX_VISIBILITY()
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/experimental/bits/ |
| H A D | fs_fwd.h | 150 enum class perms : unsigned { in _GLIBCXX_VISIBILITY() enum 177 constexpr perms in _GLIBCXX_VISIBILITY() 178 operator&(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 180 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 181 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 185 constexpr perms in _GLIBCXX_VISIBILITY() 186 operator|(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 188 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 189 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 193 constexpr perms in _GLIBCXX_VISIBILITY() [all …]
|
| H A D | fs_dir.h | 62 perms __prms = perms::unknown) noexcept in _GLIBCXX_VISIBILITY() 74 perms permissions() const noexcept { return _M_perms; } in _GLIBCXX_VISIBILITY() 78 void permissions(perms __prms) noexcept { _M_perms = __prms; } in _GLIBCXX_VISIBILITY() 82 perms _M_perms; in _GLIBCXX_VISIBILITY()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/ |
| H A D | fs_fwd.h | 134 enum class perms : unsigned { in _GLIBCXX_VISIBILITY() enum 156 constexpr perms in _GLIBCXX_VISIBILITY() 157 operator&(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 159 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 160 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 164 constexpr perms in _GLIBCXX_VISIBILITY() 165 operator|(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 167 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 168 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 172 constexpr perms in _GLIBCXX_VISIBILITY() [all …]
|
| H A D | fs_dir.h | 61 file_status(file_type __ft, perms __prms = perms::unknown) noexcept in _GLIBCXX_VISIBILITY() 73 perms permissions() const noexcept { return _M_perms; } in _GLIBCXX_VISIBILITY() 77 void permissions(perms __prms) noexcept { _M_perms = __prms; } in _GLIBCXX_VISIBILITY() 86 perms _M_perms; in _GLIBCXX_VISIBILITY()
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/ |
| H A D | fs_fwd.h | 140 enum class perms : unsigned { in _GLIBCXX_VISIBILITY() enum 164 constexpr perms in _GLIBCXX_VISIBILITY() 165 operator&(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 167 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 168 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 172 constexpr perms in _GLIBCXX_VISIBILITY() 173 operator|(perms __x, perms __y) noexcept in _GLIBCXX_VISIBILITY() 175 using __utype = typename std::underlying_type<perms>::type; in _GLIBCXX_VISIBILITY() 176 return static_cast<perms>( in _GLIBCXX_VISIBILITY() 180 constexpr perms in _GLIBCXX_VISIBILITY() [all …]
|
| H A D | fs_dir.h | 66 file_status(file_type __ft, perms __prms = perms::unknown) noexcept in _GLIBCXX_VISIBILITY() 78 perms permissions() const noexcept { return _M_perms; } in _GLIBCXX_VISIBILITY() 82 void permissions(perms __prms) noexcept { _M_perms = __prms; } in _GLIBCXX_VISIBILITY() 91 perms _M_perms; in _GLIBCXX_VISIBILITY()
|
| /netbsd-src/bin/getfacl/ |
| H A D | getfacl.c | 102 acl_permset_t perms; in acl_from_stat() local 115 if (acl_get_permset(entry, &perms) == -1) in acl_from_stat() 117 if (acl_clear_perms(perms) == -1) in acl_from_stat() 122 if (acl_add_perm(perms, ACL_READ) == -1) in acl_from_stat() 125 if (acl_add_perm(perms, ACL_WRITE) == -1) in acl_from_stat() 128 if (acl_add_perm(perms, ACL_EXECUTE) == -1) in acl_from_stat() 130 if (acl_set_permset(entry, perms) == -1) in acl_from_stat() 139 if (acl_get_permset(entry, &perms) == -1) in acl_from_stat() 141 if (acl_clear_perms(perms) == -1) in acl_from_stat() 146 if (acl_add_perm(perms, ACL_READ) == -1) in acl_from_stat() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/lib/pyzfs/common/ |
| H A D | allow.py | 63 perms = raw[whokey].keys() 67 self.create.update(perms) 70 self.sets.setdefault(nwho, set()).update(perms) 96 d.setdefault(nwho, set()).update(perms) 111 for (nwho, perms) in sorted(d.items()): 115 if perms: 117 (nwho[1:], ",".join(sorted(perms))) 134 def args_to_perms(parser, options, who, perms): argument 140 if perms: 141 setperms = dict(((p, None) for p in perms if p[0] == "@")) [all …]
|
| /netbsd-src/external/gpl2/xcvs/dist/src/ |
| H A D | acl.c | 65 static int write_perms (const char *user, const char *perms, 437 char *perms; in valid_perm() local 440 perms = get_perms (part_perms); in valid_perm() 443 if (perms[0] == '\0') in valid_perm() 447 if (strstr (perms, "n")) in valid_perm() 450 if (strstr (perms, "p")) in valid_perm() 453 else if (strstr (perms, "a") && perm != 8) in valid_perm() 460 if (strstr (perms, "w")) in valid_perm() 464 if (strstr (perms, "t")) in valid_perm() 468 if (strstr (perms, "w") || strstr (perms, "t") || in valid_perm() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| H A D | FileSystem.h | 86 enum perms { enum 112 inline perms operator|(perms l, perms r) { 113 return static_cast<perms>(static_cast<unsigned short>(l) | 116 inline perms operator&(perms l, perms r) { 117 return static_cast<perms>(static_cast<unsigned short>(l) & 120 inline perms &operator|=(perms &l, perms r) { 124 inline perms &operator&=(perms &l, perms r) { 128 inline perms operator~(perms x) { 130 return static_cast<perms>( 156 perms Perms = perms_not_known; [all …]
|
| /netbsd-src/external/bsd/atf/dist/atf-c++/detail/ |
| H A D | fs_test.cpp | 385 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \ in ATF_TEST_CASE_BODY() macro 400 perms(false, false, false, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 403 perms(false, false, false, false, false, false, false, false, true); in ATF_TEST_CASE_BODY() 406 perms(false, false, false, false, false, true, false, false, false); in ATF_TEST_CASE_BODY() 409 perms(false, false, true, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 412 perms(false, false, false, false, false, false, false, true, false); in ATF_TEST_CASE_BODY() 415 perms(false, false, false, false, true, false, false, false, false); in ATF_TEST_CASE_BODY() 418 perms(false, true, false, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 421 perms(false, false, false, false, false, false, true, false, false); in ATF_TEST_CASE_BODY() 424 perms(false, false, false, true, false, false, false, false, false); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/test/ |
| H A D | test_acl_platform_nfs4.c | 288 static struct { int portable; int machine; } perms[] = { in acl_permset_to_bitmap() local 367 for (i = 0; i < (int)(sizeof(perms)/sizeof(perms[0])); ++i) in acl_permset_to_bitmap() 369 if (mask & perms[i].machine) in acl_permset_to_bitmap() 371 if (acl_get_perm_np(opaque_ps, perms[i].machine)) in acl_permset_to_bitmap() 373 permset |= perms[i].portable; in acl_permset_to_bitmap() 386 static struct { int portable; int machine; } perms[] = { in acl_flagset_to_bitmap() local 423 for (i = 0; i < (int)(sizeof(perms)/sizeof(perms[0])); ++i) in acl_flagset_to_bitmap() 425 if (flags & perms[i].machine) in acl_flagset_to_bitmap() 427 if (acl_get_flag_np(opaque_fs, perms[i].machine)) in acl_flagset_to_bitmap() 429 flagset |= perms[i].portable; in acl_flagset_to_bitmap() [all …]
|
| /netbsd-src/external/bsd/atf/dist/tools/ |
| H A D | fs_test.cpp | 394 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \ in ATF_TEST_CASE_BODY() macro 409 perms(false, false, false, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 412 perms(false, false, false, false, false, false, false, false, true); in ATF_TEST_CASE_BODY() 415 perms(false, false, false, false, false, true, false, false, false); in ATF_TEST_CASE_BODY() 418 perms(false, false, true, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 421 perms(false, false, false, false, false, false, false, true, false); in ATF_TEST_CASE_BODY() 424 perms(false, false, false, false, true, false, false, false, false); in ATF_TEST_CASE_BODY() 427 perms(false, true, false, false, false, false, false, false, false); in ATF_TEST_CASE_BODY() 430 perms(false, false, false, false, false, false, true, false, false); in ATF_TEST_CASE_BODY() 433 perms(false, false, false, true, false, false, false, false, false); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd-src/external/bsd/atf/dist/atf-c/detail/ |
| H A D | fs_test.c | 501 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \ in ATF_TC_BODY() macro 517 perms(false, false, false, false, false, false, false, false, false); in ATF_TC_BODY() 520 perms(false, false, false, false, false, false, false, false, true); in ATF_TC_BODY() 523 perms(false, false, false, false, false, true, false, false, false); in ATF_TC_BODY() 526 perms(false, false, true, false, false, false, false, false, false); in ATF_TC_BODY() 529 perms(false, false, false, false, false, false, false, true, false); in ATF_TC_BODY() 532 perms(false, false, false, false, true, false, false, false, false); in ATF_TC_BODY() 535 perms(false, true, false, false, false, false, false, false, false); in ATF_TC_BODY() 538 perms(false, false, false, false, false, false, true, false, false); in ATF_TC_BODY() 541 perms(false, false, false, true, false, false, false, false, false); in ATF_TC_BODY() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/common/zfs/ |
| H A D | zfs_deleg.c | 151 nvlist_t *perms; in zfs_deleg_verify_nvlist() local 165 error = nvlist_lookup_nvlist(nvp, nvpair_name(who), &perms); in zfs_deleg_verify_nvlist() 172 perm_name = nvlist_next_nvpair(perms, NULL); in zfs_deleg_verify_nvlist() 181 } while ((perm_name = nvlist_next_nvpair(perms, perm_name)) in zfs_deleg_verify_nvlist()
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/ |
| H A D | aci.c | 448 perms, in aci_mask() local 523 if ( acl_get_part( aci, 2, '#', &perms ) <= 0 ) { in aci_mask() 529 if ( aci_list_get_rights( &perms, &desc->ad_cname, val, grant, deny ) == 0 ) { in aci_mask() 1052 struct berval *perms ) in OpenLDAPaciValidatePerms() argument 1056 for ( i = 0; i < perms->bv_len; ) { in OpenLDAPaciValidatePerms() 1057 switch ( perms->bv_val[ i ] ) { in OpenLDAPaciValidatePerms() 1067 …DAP_DEBUG_ACL, "aciValidatePerms: perms needs to be one of x,d,c,s,r,w in '%s'\n", perms->bv_val ); in OpenLDAPaciValidatePerms() 1071 if ( ++i == perms->bv_len ) { in OpenLDAPaciValidatePerms() 1075 while ( i < perms->bv_len && perms->bv_val[ i ] == ' ' ) in OpenLDAPaciValidatePerms() 1078 assert( i != perms->bv_len ); in OpenLDAPaciValidatePerms() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | dsl_deleg.c | 101 nvlist_t *perms; in dsl_deleg_can_allow() local 104 VERIFY(nvpair_value_nvlist(whopair, &perms) == 0); in dsl_deleg_can_allow() 106 while (permpair = nvlist_next_nvpair(perms, permpair)) { in dsl_deleg_can_allow() 176 nvlist_t *perms; in dsl_deleg_set_sync() local 180 perms = fnvpair_value_nvlist(whopair); in dsl_deleg_set_sync() 187 while (permpair = nvlist_next_nvpair(perms, permpair)) { in dsl_deleg_set_sync() 219 nvlist_t *perms; in dsl_deleg_unset_sync() local 223 if (nvpair_value_nvlist(whopair, &perms) != 0) { in dsl_deleg_unset_sync() 237 while (permpair = nvlist_next_nvpair(perms, permpair)) { in dsl_deleg_unset_sync()
|
| /netbsd-src/share/examples/devpubd/hooks/ |
| H A D | Makefile | 9 FILES+= 99-ugen-perms-minipro 10 FILES+= 99-ugen-perms-tigard
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/src/filesystem/ |
| H A D | posix_compat.h | 388 int fchmod_handle(HANDLE h, int perms) { in fchmod_handle() argument 394 if ((perms & 0222) == 0) in fchmod_handle() 402 int fchmodat(int fd, const wchar_t *path, int perms, int flag) { in fchmodat() argument 415 return fchmod_handle(h, perms); in fchmodat() 421 if ((perms & 0222) == 0) in fchmodat() 429 int fchmod(int fd, int perms) { in fchmod() argument 431 return fchmod_handle(h, perms); in fchmod()
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/include/ |
| H A D | filesystem | 69 enum class perms; 181 void permissions(const path& p, perms prms, 183 void permissions(const path& p, perms prms, error_code& ec) noexcept; 184 void permissions(const path& p, perms prms, perm_options opts, 299 enum class _LIBCPP_ENUM_VIS perms : unsigned { 327 inline constexpr perms operator&(perms _LHS, perms _RHS) { 328 return static_cast<perms>(static_cast<unsigned>(_LHS) & 333 inline constexpr perms operator|(perms _LHS, perms _RHS) { 334 return static_cast<perms>(static_cast<unsigned>(_LHS) | 339 inline constexpr perms operator^(perms _LHS, perms _RHS) { [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | make_dirs.c | 54 int make_dirs(const char *path, int perms) in make_dirs() argument 114 if ((ret = mkdir(saved_path, perms)) < 0) { in make_dirs()
|
| /netbsd-src/external/gpl2/lvm2/dist/test/ |
| H A D | mkdtemp | 91 perms=$(ls -dgo "$d" 2>/dev/null) || fail=1 92 case $perms in drwx------*) ;; *) fail=1;; esac
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/ |
| H A D | ops.cc | 487 create_dir(const fs::path& p, fs::perms perm, std::error_code& ec) in create_dir() 491 posix::mode_t mode = static_cast<std::underlying_type_t<fs::perms>>(perm); in create_dir() 524 return create_dir(p, perms::all, ec); in create_directory() 550 return create_dir(p, static_cast<perms>(st.st_mode), ec); in create_directory() 938 fs::permissions(const path& p, perms prms) in permissions() 947 fs::permissions(const path& p, perms prms, error_code& ec) noexcept in permissions() 950 const bool add = is_set(prms, perms::add_perms); in permissions() 951 const bool remove = is_set(prms, perms::remove_perms); in permissions() 952 const bool nofollow = is_set(prms, perms::symlink_nofollow); in permissions() 959 prms &= perms::mask; in permissions()
|