/freebsd/contrib/ncurses/ncurses/tty/ |
H A D | lib_vidattr.c | 111 chtype newmode, in NCURSES_EXPORT() 124 newmode &= A_ATTRIBUTES; in NCURSES_EXPORT() 126 T((T_CALLED("vidputs(%p,%s)"), (void *) SP_PARM, _traceattr(newmode))); in NCURSES_EXPORT() 169 newmode &= ~table[n]; in NCURSES_EXPORT() 170 } else if ((table[n] & newmode) != 0) { in NCURSES_EXPORT() 172 newmode &= ~table[n]; in NCURSES_EXPORT() 173 if (newmode == retain) in NCURSES_EXPORT() 176 retain = newmode; in NCURSES_EXPORT() 181 newmode &= ~(SP_PARM->_xmc_suppress); in NCURSES_EXPORT() 183 TR(TRACE_ATTRS, ("suppressed attribute is %s", _traceattr(newmode))); in NCURSES_EXPORT() [all …]
|
/freebsd/contrib/ncurses/ncurses/widechar/ |
H A D | lib_vid_attr.c | 78 attr_t newmode, in NCURSES_EXPORT() 100 newmode &= A_ATTRIBUTES; in NCURSES_EXPORT() 102 T((T_CALLED("vid_puts(%s,%d)"), _traceattr(newmode), color_pair)); in NCURSES_EXPORT() 116 newmode &= ~(SP_PARM->_xmc_suppress); in NCURSES_EXPORT() 144 && (newmode & A_REVERSE) != 0) { in NCURSES_EXPORT() 148 newmode &= ~mask; in NCURSES_EXPORT() 151 if (newmode == previous_attr in NCURSES_EXPORT() 156 newmode &= ~A_REVERSE; in NCURSES_EXPORT() 159 turn_off = (~newmode & previous_attr) & ALL_BUT_COLOR; in NCURSES_EXPORT() 160 turn_on = (newmode & ~(previous_attr & TPARM_ATTR)) & ALL_BUT_COLOR; in NCURSES_EXPORT() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | setmode.c | 86 mode_t clrval, newmode, value; in getmode() local 89 newmode = omode; in getmode() 99 value = (newmode & S_IRWXU) >> 6; in getmode() 103 value = (newmode & S_IRWXG) >> 3; in getmode() 107 value = newmode & S_IRWXO; in getmode() 112 newmode &= ~((clrval<<6) & set->bits); in getmode() 114 newmode &= ~((clrval<<3) & set->bits); in getmode() 116 newmode &= ~(clrval & set->bits); in getmode() 120 newmode |= (value<<6) & set->bits; in getmode() 122 newmode |= (value<<3) & set->bits; in getmode() [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | drm_edid.c | 1099 struct drm_display_mode *newmode; in drm_dmt_modes_for_range() local 1105 newmode = drm_mode_duplicate(dev, &drm_dmt_modes[i]); in drm_dmt_modes_for_range() 1106 if (newmode) { in drm_dmt_modes_for_range() 1107 drm_mode_probed_add(connector, newmode); in drm_dmt_modes_for_range() 1134 struct drm_display_mode *newmode; in drm_gtf_modes_for_range() local 1139 newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0); in drm_gtf_modes_for_range() 1140 if (!newmode) in drm_gtf_modes_for_range() 1143 fixup_mode_1366x768(newmode); in drm_gtf_modes_for_range() 1144 if (!mode_in_range(newmode, edid, timing) || in drm_gtf_modes_for_range() 1145 !valid_inferred_mode(connector, newmode)) { in drm_gtf_modes_for_range() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/ |
H A D | zfs_acl_chmod_aclmode_001_pos.ksh | 234 typeset newmode=$3 323 obits=$(get_substr $newmode $pos 1) 329 (( bits &= $(get_substr $newmode 2 1) )) 334 (( bits_owner = $(get_substr $newmode 1 1) )) 405 log_fail "Unexpect acl: $node, $aclmode ($newmode)" 471 for newmode in "${argv[@]}" ; do 472 log_must usr_exec $CHMOD $newmode $obj 473 log_must usr_exec $CHMOD $newmode $target 474 verify_aclmode $mode $obj $newmode
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | default_permissions.cc | 361 const mode_t newmode = 0755; in TEST_F() local 372 in.body.setattr.mode == newmode); in TEST_F() 378 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 417 const mode_t newmode = 0755; in TEST_F() local 429 in.body.setattr.mode == newmode); in TEST_F() 435 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 512 mode_t newmode = 0777; in TEST_F() local 527 expect_chmod(ino_out, newmode, fsize); in TEST_F() 537 EXPECT_EQ(S_IFREG | newmode, sb.st_mode); in TEST_F() 556 mode_t newmode = 0777; in TEST_F() local [all …]
|
H A D | setattr.cc | 86 const mode_t newmode = 0644; in TEST_F() local 105 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 116 ASSERT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno); in TEST_F() 120 EXPECT_EQ(S_IFREG | newmode, sb.st_mode); in TEST_F() 130 const mode_t newmode = 0644; in TEST_F() local 145 in.body.setattr.mode == newmode); in TEST_F() 151 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 153 EXPECT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno); in TEST_F() 169 const mode_t newmode = 0666; in TEST_F() local 197 in.body.setattr.mode == newmode); in TEST_F() [all …]
|
H A D | default_permissions_privileged.cc | 107 const mode_t newmode = 01644; in TEST_F() local 118 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 121 EXPECT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno); in TEST_F()
|
H A D | access.cc | 95 const mode_t newmode = 0644; in TEST_F() local 109 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 112 EXPECT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno); in TEST_F()
|
H A D | read.cc | 425 const mode_t newmode = 0755; in TEST_F() local 448 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 514 const mode_t newmode = 0755; in TEST_F() local 537 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 548 ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno); in TEST_F() 1414 const mode_t newmode = 0755; in TEST_P() local 1432 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_P() 1439 ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno); in TEST_P()
|
H A D | write.cc | 1470 const mode_t newmode = 0755; in TEST_F() local 1486 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 1492 ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno); in TEST_F() 1505 const mode_t newmode = 0755; in TEST_P() local 1523 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_P() 1529 ASSERT_EQ(0, fchmod(fd, newmode)) << strerror(errno); in TEST_P()
|
/freebsd/bin/chmod/ |
H A D | chmod.c | 67 mode_t newmode; in main() local 182 newmode = getmode(set, p->fts_statp->st_mode); in main() 189 (newmode & ALLPERMS) == (p->fts_statp->st_mode & ALLPERMS)) in main() 191 if (fchmodat(AT_FDCWD, p->fts_accpath, newmode, atflag) == -1 in main() 203 S_IFMT) | newmode, m2); in main() 207 newmode, m2); in main()
|
/freebsd/crypto/heimdal/appl/telnet/telnet/ |
H A D | terminal.c | 193 int newmode; local 195 newmode = getconnmode()|(force?MODE_FORCE:0); 197 TerminalNewMode(newmode); 200 if ((newmode & (MODE_ECHO|MODE_EDIT)) == MODE_EDIT) {
|
/freebsd/contrib/telnet/telnet/ |
H A D | terminal.c | 221 int newmode; in setconnmode() local 223 newmode = getconnmode()|(force?MODE_FORCE:0); in setconnmode() 225 TerminalNewMode(newmode); in setconnmode() 228 if ((newmode & (MODE_ECHO|MODE_EDIT)) == MODE_EDIT) { in setconnmode()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_acl.c | 140 int newmode; in ufs_sync_inode_from_acl() local 142 newmode = ip->i_mode & ACL_PRESERVE_MASK; in ufs_sync_inode_from_acl() 143 newmode |= acl_posix1e_acl_to_mode(acl); in ufs_sync_inode_from_acl() 144 UFS_INODE_SET_MODE(ip, newmode); in ufs_sync_inode_from_acl() 377 mode_t mode, newmode; in ufs_setacl_nfs4_internal() local 414 newmode = ip->i_mode & ACL_PRESERVE_MASK; in ufs_setacl_nfs4_internal() 415 newmode |= mode; in ufs_setacl_nfs4_internal() 416 UFS_INODE_SET_MODE(ip, newmode); in ufs_setacl_nfs4_internal()
|
/freebsd/contrib/ncurses/ncurses/trace/ |
H A D | lib_traceatr.c | 87 _traceattr2(int bufnum, chtype newmode) in _traceattr2() argument 139 if ((newmode & names[n].val) != 0) { in _traceattr2() 146 short pairnum = (short) PairNumber(newmode); in _traceattr2() 169 if (ChAttrOf(newmode) == A_NORMAL) { in _traceattr2() 182 _traceattr(attr_t newmode) in _traceattr() argument 184 return _traceattr2(0, newmode); in _traceattr()
|
/freebsd/sbin/etherswitchcfg/ |
H A D | etherswitchcfg.c | 701 newmode(struct cfg *cfg, enum cmdmode mode) in newmode() function 778 newmode(&cfg, MODE_PORT); in main() 784 newmode(&cfg, MODE_VLANGROUP); in main() 786 newmode(&cfg, MODE_CONFIG); in main() 788 newmode(&cfg, MODE_PHYREG); in main() 790 newmode(&cfg, MODE_REGISTER); in main() 794 newmode(&cfg, MODE_ATU); in main() 833 newmode(&cfg, MODE_NONE); in main() 839 newmode(&cfg, MODE_NONE); in main() 845 newmode(&cfg, MODE_NONE); in main() [all …]
|
/freebsd/sys/arm/ti/am335x/ |
H A D | am335x_dmtpps.c | 249 int newmode; in dmtpps_set_hw_capture() local 252 newmode = 0; in dmtpps_set_hw_capture() 254 newmode = sc->pps_state.ppsparam.mode & PPS_CAPTUREASSERT; in dmtpps_set_hw_capture() 256 if (newmode == sc->pps_curmode) in dmtpps_set_hw_capture() 258 sc->pps_curmode = newmode; in dmtpps_set_hw_capture() 260 if (newmode == PPS_CAPTUREASSERT) in dmtpps_set_hw_capture()
|
/freebsd/usr.sbin/ppp/ |
H A D | main.c | 213 int optc, newmode, arg; in ProcessArgs() local 223 newmode = Nam2mode(cp); in ProcessArgs() 224 switch (newmode) { in ProcessArgs() 266 sw->mode = newmode; in ProcessArgs() 267 if (newmode == PHYS_FOREGROUND) in ProcessArgs()
|
/freebsd/usr.bin/ul/ |
H A D | ul.c | 525 setnewmode(int newmode) in setnewmode() argument 528 if (curmode != NORMAL && newmode != NORMAL) in setnewmode() 530 switch (newmode) { in setnewmode() 573 curmode = newmode; in setnewmode()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_syncookies.c | 195 uint8_t newmode; in pf_set_syncookies() local 225 newmode = PF_SYNCOOKIES_NEVER; in pf_set_syncookies() 227 newmode = adaptive ? PF_SYNCOOKIES_ADAPTIVE : PF_SYNCOOKIES_ALWAYS; in pf_set_syncookies() 230 error = pf_syncookies_setmode(newmode); in pf_set_syncookies()
|
/freebsd/sys/dev/usb/serial/ |
H A D | ufoma.c | 1225 int newmode; in ufoma_sysctl_open() local 1240 if((newmode = ufoma_str_to_mode(subbuf)) == -1){ in ufoma_sysctl_open() 1245 if(sc->sc_modetable[i] == newmode){ in ufoma_sysctl_open() 1246 sc->sc_modetoactivate = newmode; in ufoma_sysctl_open()
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_subr.c | 2133 mode_t newmode; in tmpfs_chmod() local 2170 newmode = node->tn_mode & ~ALLPERMS; in tmpfs_chmod() 2171 newmode |= mode & ALLPERMS; in tmpfs_chmod() 2172 atomic_store_short(&node->tn_mode, newmode); in tmpfs_chmod() 2196 mode_t newmode; in tmpfs_chown() local 2247 newmode = node->tn_mode & ~(S_ISUID | S_ISGID); in tmpfs_chown() 2248 atomic_store_short(&node->tn_mode, newmode); in tmpfs_chown()
|
/freebsd/sys/x86/x86/ |
H A D | local_apic.c | 984 enum lat_timer_mode newmode) in lapic_change_mode() argument 986 if (la->la_timer_mode == newmode) in lapic_change_mode() 988 switch (newmode) { in lapic_change_mode() 1001 panic("lapic_change_mode %d", newmode); in lapic_change_mode() 1003 la->la_timer_mode = newmode; in lapic_change_mode()
|
/freebsd/contrib/lua/src/ |
H A D | lgc.h | 199 LUAI_FUNC void luaC_changemode (lua_State *L, int newmode);
|