/illumos-gate/usr/src/tools/protocmp/ |
H A D | protodir.c | 87 char *type, *class, *file, *src, *maj, *min, *perm, *owner, *group; in parse_proto_line() local 181 if (!(perm = strtok(NULL, FS))) { in parse_proto_line() 186 e->perm = strtol(perm, NULL, 8); in parse_proto_line() 221 if (e->perm != dup->perm) { in parse_proto_line() 225 pkgname, e->perm, dup->name, dup->perm); in parse_proto_line() 322 e->perm = p->perm; in parse_proto_link()
|
/illumos-gate/usr/src/lib/lib9p/common/backend/ |
H A D | fs.c | 1081 mode_t perm; in fs_create() local 1119 perm |= S_IFBLK; in fs_create() 1122 perm |= S_IFCHR; in fs_create() 1170 return (perm); in fs_p9perm() 1229 perm = fs_p9perm(perm, st->st_mode, false); in fs_icreate() 1401 perm = fs_p9perm(perm, st->st_mode, true); in fs_imkdir() 1446 mode_t perm; in fs_imknod() local 1521 perm = fs_p9perm(perm, st->st_mode, false); in fs_imkfifo() 1567 perm = fs_p9perm(perm, st->st_mode, false); in fs_imksocket() 2299 mode_t perm; in fs_lcreate() local [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_main.c | 327 priv_set_t *perm = NULL; in smb_init_daemon_priv() local 342 perm = priv_allocset(); in smb_init_daemon_priv() 343 if (perm == NULL) in smb_init_daemon_priv() 347 (void) getppriv(PRIV_PERMITTED, perm); in smb_init_daemon_priv() 348 (void) setppriv(PRIV_SET, PRIV_EFFECTIVE, perm); in smb_init_daemon_priv() 355 priv_emptyset(perm); in smb_init_daemon_priv() 356 ret = setppriv(PRIV_SET, PRIV_INHERITABLE, perm); in smb_init_daemon_priv() 358 priv_freeset(perm); in smb_init_daemon_priv() 430 int perm; in smbd_service_init() member 455 if ((mkdir(dir[i].name, dir[i].perm) < 0) && in smbd_service_init()
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_gld.c | 692 uint_t perm; in ixgbe_m_propinfo() local 747 perm = (hw->phy.media_type == ixgbe_media_type_copper) ? in ixgbe_m_propinfo() 749 mac_prop_info_set_perm(prh, perm); in ixgbe_m_propinfo() 755 perm = (hw->phy.media_type == ixgbe_media_type_copper) ? in ixgbe_m_propinfo() 757 mac_prop_info_set_perm(prh, perm); in ixgbe_m_propinfo() 764 perm = (hw->phy.media_type == ixgbe_media_type_copper) ? in ixgbe_m_propinfo() 766 mac_prop_info_set_perm(prh, perm); in ixgbe_m_propinfo() 773 perm = (hw->phy.media_type == ixgbe_media_type_copper) ? in ixgbe_m_propinfo() 775 mac_prop_info_set_perm(prh, perm); in ixgbe_m_propinfo() 784 mac_prop_info_set_perm(prh, perm); in ixgbe_m_propinfo() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ldc_shm.c | 524 tmp_mte.mte_r = (perm & LDC_MEM_R) ? 1 : 0; in i_ldc_mem_bind_handle() 525 tmp_mte.mte_w = (perm & LDC_MEM_W) ? 1 : 0; in i_ldc_mem_bind_handle() 526 tmp_mte.mte_x = (perm & LDC_MEM_X) ? 1 : 0; in i_ldc_mem_bind_handle() 530 tmp_mte.mte_cr = (perm & LDC_MEM_R) ? 1 : 0; in i_ldc_mem_bind_handle() 642 mhdl->perm = perm; in i_ldc_mem_bind_handle() 848 minfo->perm = mhdl->perm; in ldc_mem_info() 1266 uint64_t map_perm = perm; in i_ldc_mem_map() 1432 cookie_addr, perm); in i_ldc_mem_map() 1494 mhdl->perm = perm; in i_ldc_mem_map() 1871 if ((perm & LDC_MEM_RW) == 0) { in ldc_mem_dring_bind() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/preroot/ |
H A D | realopen.c | 34 realopen(const char* path, int mode, int perm) in realopen() argument 40 return(open(buf, mode, perm)); in realopen()
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | ldc.h | 154 uint8_t perm; /* RWX permissions */ member 187 uint8_t mtype, uint8_t perm, ldc_mem_cookie_t *cookie, uint32_t *ccount); 196 uint32_t ccount, uint8_t mtype, uint8_t perm, caddr_t *vaddr, 206 uint8_t mtype, uint8_t perm, ldc_mem_cookie_t *dcookie, uint32_t *ccount);
|
H A D | lpad.h | 48 unsigned int perm:1; member 61 #define flag_perm flags.flag_bits.perm
|
/illumos-gate/usr/src/cmd/getfacl/ |
H A D | getfacl.c | 273 display(int perm) in display() argument 283 if (perm & 4) in display() 287 if (perm & 2) in display() 291 if (perm & 1) in display()
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | udf_inode.h | 523 #define VA2UD_PERM(perm) \ argument 524 (((perm) & 0x7) | (((perm) & 0x38) << 2) | (((perm) & 0x1C0) << 4)) 525 #define UD2VA_PERM(perm) \ argument 526 (((perm) & 0x7) | (((perm) & 0xE0) >> 2) | (((perm) & 0x1C00) >> 4))
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | dsl_deleg.h | 79 int dsl_deleg_access(const char *ddname, const char *perm, cred_t *cr); 80 int dsl_deleg_access_impl(struct dsl_dataset *ds, const char *perm, cred_t *cr);
|
/illumos-gate/usr/src/lib/libresolv2/common/dst/ |
H A D | support.c | 301 dst_s_fopen(const char *filename, const char *mode, int perm) in dst_s_fopen() argument 316 if (perm) in dst_s_fopen() 317 chmod(pathname, perm); in dst_s_fopen()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | privlib.c | 481 priv_set_t *perm = NULL; in __init_daemon_priv() local 513 perm = priv_allocset(); in __init_daemon_priv() 514 if (perm == NULL) in __init_daemon_priv() 518 (void) getppriv(permitted, perm); in __init_daemon_priv() 519 (void) setppriv(PRIV_SET, effective, perm); in __init_daemon_priv() 531 priv_emptyset(perm); in __init_daemon_priv() 532 if (setppriv(PRIV_SET, limit, perm) != 0) in __init_daemon_priv() 546 priv_freeset(perm); in __init_daemon_priv()
|
/illumos-gate/usr/src/cmd/find/ |
H A D | find.c | 2202 mode_t perm; in getmode() local 2205 perm = (mode_t)0; in getmode() 2219 perm |= ((S_IRUSR|S_IRGRP|S_IROTH) & in getmode() 2222 perm |= ((S_IWUSR|S_IWGRP|S_IWOTH) & pp->p_who); in getmode() 2224 perm |= ((S_IXUSR|S_IXGRP|S_IXOTH) & pp->p_who); in getmode() 2230 perm |= ((S_IRUSR|S_IRGRP|S_IROTH) & pp->p_who); in getmode() 2232 perm |= ((S_IWUSR|S_IWGRP|S_IWOTH) & pp->p_who); in getmode() 2248 perm = pp->p_perm; in getmode() 2252 perm = pp->p_perm; in getmode() 2257 startmode &= ~(perm & pp->p_who); in getmode() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_auth.c | 1238 int flavor, int perm, cred_t *cr) in nfsauth4_secinfo_access() argument 1242 if (! (perm & M_4SEC_EXPORTED)) { in nfsauth4_secinfo_access() 1249 if ((perm & (M_ROOT | M_NONE | M_MAP)) == 0) { in nfsauth4_secinfo_access() 1250 perm &= ~M_4SEC_EXPORTED; in nfsauth4_secinfo_access() 1251 if (perm == M_RO) in nfsauth4_secinfo_access() 1253 if (perm == M_RW) in nfsauth4_secinfo_access() 1269 int i, flavor, perm; in nfsauth_access() local 1353 perm = sp[i].s_flags; in nfsauth_access() 1356 perm &= ~M_4SEC_EXPORTED; in nfsauth_access() 1357 if (perm == M_RO) in nfsauth_access() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | adb_openclose.c | 279 int tries, gotlock, perm, krb5_mode, ret = 0; in osa_adb_get_lock() local 287 perm = 0; in osa_adb_get_lock() 290 perm = 1; in osa_adb_get_lock() 338 if (perm) { in osa_adb_get_lock()
|
/illumos-gate/usr/src/cmd/ipcrm/ |
H A D | ipcrm.c | 57 #define IPC_KEYMATCH(perm, zoneid, key) \ argument 58 ((perm).ipcx_key == (key) && (perm).ipcx_zoneid == (zoneid))
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sigqueue.c | 63 if (error == 0 && sigsend->perm == 0) in sigqkill() 87 else if (error == 0 && sigsend->perm == 0) in sigqkill()
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_phy.c | 316 uint32_t perm = 0; in sfxge_phy_cap_test() local 325 efx_phy_adv_cap_get(enp, EFX_PHY_CAP_PERM, &perm); in sfxge_phy_cap_test() 331 *mutablep = (perm & (1 << field)) ? B_TRUE : B_FALSE; in sfxge_phy_cap_test()
|
/illumos-gate/usr/src/lib/librsm/inc/ |
H A D | rsmapi.h | 164 rsm_permission_t perm, 233 rsm_permission_t perm,
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | cp.c | 170 int perm; /* permissions to preserve */ member 598 … (state->wflags & ~O_EXCL) : state->wflags)|O_cloexec, ent->fts_statp->st_mode & state->perm)) < 0) in visit() 660 …>fts_statp->st_mode & state->perm) != (st.st_mode & state->perm) && chmod(state->path, ent->fts_st… in visit() 661 …OR_SYSTEM|2, "%s: cannot reset mode to %s", state->path, fmtmode(st.st_mode & state->perm, 0) + 1); in visit() 983 state->perm = state->uid ? S_IPERM : (S_IPERM & ~S_ISVTX); in b_cp()
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_token.c | 931 au_to_ipc_perm(struct kipc_perm *perm) in au_to_ipc_perm() argument 942 value = (int32_t)perm->ipc_uid; in au_to_ipc_perm() 944 value = (int32_t)perm->ipc_gid; in au_to_ipc_perm() 946 value = (int32_t)perm->ipc_cuid; in au_to_ipc_perm() 948 value = (int32_t)perm->ipc_cgid; in au_to_ipc_perm() 950 value = (int32_t)perm->ipc_mode; in au_to_ipc_perm() 954 value = (int32_t)perm->ipc_key; in au_to_ipc_perm()
|
/illumos-gate/usr/src/lib/libsec/common/ |
H A D | acl.y | 53 %type <acl_perm> perms perm aclent_perm ace_perms 521 ace_perms: perm {$$ = $1;} 529 perm: perms COLON {$$ = $1;}
|
/illumos-gate/usr/src/common/bzip2/ |
H A D | huffman.c | 172 Int32 *perm, in BZ2_hbCreateDecodeTables() argument 183 if (length[j] == i) { perm[pp] = j; pp++; }; in BZ2_hbCreateDecodeTables()
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_deleg.h | 94 const char *zfs_deleg_canonicalize_perm(const char *perm);
|