/illumos-gate/usr/src/uts/sun4u/lw8/io/ |
H A D | sgfru.c | 280 sgfru_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred_p, argument 299 init_arg.mode = mode; 1418 if (ddi_model_convert_from(argp->mode & FMODELS) == DDI_MODEL_ILP32) { 1423 sizeof (frup32_info_t), argp->mode) != DDI_SUCCESS) { 1437 sizeof (frup_info_t), argp->mode) != DDI_SUCCESS) { 1455 sizeof (fru_info_t), argp->mode) != DDI_SUCCESS) { 1474 sizeof (segment_t), argp->mode) != DDI_SUCCESS) { 1492 if (ddi_model_convert_from(argp->mode & FMODELS) == DDI_MODEL_ILP32) { 1497 sizeof (append32_info_t), argp->mode) ! [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_deleg_ops.c | 102 deleg_rd_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) argument 115 (mode & (FWRITE|FTRUNC))) { 122 return (vnext_open(arg, mode, cr, ct)); 127 deleg_wr_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) argument 146 return (vnext_open(arg, mode, cr, ct));
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fem.c | 222 int mode, 236 error = vnext_create(arg, name, vap, excl, mode, vpp, cr, flag, 422 int mode, 430 if (mode & (FWRITE|FTRUNC)) 437 rc = vnext_open(arg, mode, cr, ct); 217 smb_fem_fcn_create( femarg_t *arg, char *name, vattr_t *vap, vcexcl_t excl, int mode, vnode_t **vpp, cred_t *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument 420 smb_fem_oplock_open( femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) argument
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_phy.c | 141 __in efx_phy_led_mode_t mode) 152 if (epp->ep_phy_led_mode == mode) 158 if (!((1 << mode) & mask)) { 163 EFSYS_ASSERT3U(mode, <, EFX_PHY_LED_NMODES); 164 epp->ep_phy_led_mode = mode; 139 efx_phy_led_set( __in efx_nic_t *enp, __in efx_phy_led_mode_t mode) argument
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | linux.c | 197 /* temporary location of real mode part */ 209 /* copy real mode part to place */ 310 /* video mode selection */ 322 long mode; local 330 mode = strtol(value, NULL, 0); 331 if (errno != 0 || mode >> 16 != 0 || mode == 0) { 332 printf("bad value for video mode\n"); 335 vid_mode = (uint16_t) mode;
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | policy.c | 907 * file mode bits (i.e., when a process wants to open a 908 * mode 444 file for VREAD|VWRITE, this function should be 912 * override the mode bits that were denied. 928 secpolicy_vnode_access(const cred_t *cr, vnode_t *vp, uid_t owner, mode_t mode) argument 930 if ((mode & VREAD) && priv_policy_va(cr, PRIV_FILE_DAC_READ, B_FALSE, 936 if (mode & VWRITE) { 950 if (mode & VEXEC) { 964 * Like secpolicy_vnode_access() but we get the actual wanted mode and the 965 * current mode of the file, not the missing bits. 971 mode_t mode; local 1542 secpolicy_ipc_access(const cred_t *cr, const struct kipc_perm *ip, mode_t mode) argument 1564 secpolicy_rsm_access(const cred_t *cr, uid_t owner, mode_t mode) argument 1677 secpolicy_proc_owner(const cred_t *scr, const cred_t *tcr, int mode) argument [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | args.c | 172 case 'O': /* shopt options, only in bash mode */ 586 * if mode is inclusive or of PRINT_* 589 void sh_printopts(Shopt_t oflags,register int mode, Shopt_t *mask) argument 595 if(!(mode&PRINT_NO_HEADER)) 597 if(mode&PRINT_TABLE) 647 if(!(mode&(PRINT_ALL|PRINT_VERBOSE))) /* only print set options */ 649 if(mode&PRINT_SHOPT) 660 if (!(mode&PRINT_SHOPT) != !(value&SH_BASHOPT)) 672 if(mode&PRINT_VERBOSE) 678 else if(mode [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 87 setdevaccess(char *dev, uid_t uid, gid_t gid, mode_t mode, argument 122 err = acl_strip(dev, uid, gid, mode); 141 if (chmod(dev, mode) == -1) { 171 int mode; local 226 mode = strtol(mode_str, &ptr, 8); 227 if (mode < 0 || mode > 0777 || *ptr != '\0') { 228 err = -1; /* invalid mode, skip */ 232 ": line %d, invalid mode -- %s\n", 256 } else if (dir_dev_acc("/", &device[1], uid, gid, mode, 429 dir_dev_acc(char *path, char *left_to_do, uid_t uid, gid_t gid, mode_t mode, char *line, void (*errmsg)(char *)) argument [all...] |
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_vols.c | 60 char *mode; member in union:hash_data_s::__anon3185 69 mode_t mode; member in struct:__anon3186 703 char *path, *mode, *cnode; local 725 if (!(mode = strtok(0, " "))) { 739 data = make_svol_data(path, mode, cnode, set - offset); 950 make_svol_data(char *path, char *mode, char *cnode, int set) argument 959 data->u.mode = strdup(mode); 973 free(p->u.mode); 1019 if (!S_ISCHR(statinfo->mode)) [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ppp.c | 1312 uint8_t mode; local 1315 GETINT8(mode, optdata); 1316 switch (mode) { 1327 (void) sprintf(get_line(0, 0), "Mode = %d (%s)", mode, modestr); 1774 uint8_t mode; local 1780 /* check mode */ 1781 GETINT8(mode, optdata); 1782 switch (mode) { 1799 (void) sprintf(get_line(0, 0), "Check Mode = %d (%s)", mode, modestr); 1801 /* process mode */ [all...] |
/illumos-gate/usr/src/cmd/lvm/util/ |
H A D | metaclust.c | 285 * and do the action specified in mode 288 reset_state(uint_t mode, mdsetname_t *sp, char *drivername, md_error_t *ep) argument 308 if ((mode & (RESET_OWNER | CHOOSE_OWNER)) && !mirror_dev) { 324 if (mode & RESET_OWNER) { 340 if ((mode & GET_MIRROR_STATE) && mirror_dev) { 379 if (mode & (RESET_OWNER | CHOOSE_OWNER)) { 411 if (mode & RESET_OWNER) { 447 if (mode & CHOOSE_OWNER) { 477 if (mode & RESET_ABR) { 522 if (mode [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | inode.c | 214 mode_t mode; local 221 * (mode == zero), so we'll work on the assumption that what 227 mode = dp->di_mode & IFMT; 228 if (mode == IFBLK || mode == IFCHR) 230 if (mode == IFLNK && dp->di_size > MAXPATHLEN) { 1259 mode_t mode; local 1265 mode = (dp->di_mode & IFMT); 1266 isdir = (mode == IFDIR) || (mode [all...] |
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | mem_addr.c | 92 if (node && tad[node][rule].mode == 2) 127 switch (sad[i].mode) { 199 switch (tad[node][i].mode) { 335 int mode; local 343 mode = tad[node][rule].mode; 347 if (mode == 2) { 366 if (mode == 2) 549 switch (tad[node][i].mode) { 923 sad[i].mode [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_reiserfs.c | 286 #define S_ISREG(mode) (((mode) & 0170000) == 0100000) 287 #define S_ISDIR(mode) (((mode) & 0170000) == 0040000) 288 #define S_ISLNK(mode) (((mode) & 0170000) == 0120000) 1005 int mode; local 1026 mode = ((struct stat_data *) INFO->current_item)->sd_mode; 1029 if (S_ISLNK (mode)) 1094 if (! S_ISREG (mode)) [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_module.c | 99 mdb_module_create(const char *name, const char *fname, int mode, argument 105 int dlmode = (mode & MDB_MOD_GLOBAL) ? RTLD_GLOBAL : RTLD_LOCAL; 125 if (!(mode & MDB_MOD_BUILTIN)) { 289 if (mdb_module_add_dcmd(mod, dcp, mode) == -1) 294 if (mdb_module_add_walker(mod, wp, mode) == -1) 580 mdb_module_unload_all(int mode) argument 591 (void) mdb_module_unload(mod->mod_name, mode);
|
/illumos-gate/usr/src/cmd/avs/nsctl/ |
H A D | nskernd.c | 324 char *mst, *shd, *bmp, *mode, *ovr, *cnode, *opt, *grp; local 387 mode = strtok(NULL, " "); 413 mst, shd, bmp, mode, ovr, cnode, newflags, grp); 449 * data2 is read(0)/write(1) lock mode. 461 int mode; local 480 mode = CFG_RDLOCK; 482 mode = CFG_WRLOCK; 487 if (cfg_lock(cfg, mode)) {
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | misc_scsi.c | 97 * will get the mode page only i.e. will strip off the header. 127 * will take care of adding mode header and any extra bytes at the end. 458 uchar_t mode; local 463 mode = 0xff; 465 mode = buf[0]; 467 return (mode); 471 * Set page code 5 for TAO mode. 501 * If the device is already in simulation mode and again a 503 * 1st and then take it to simulation mode. This will flush any 514 /* set TAO or DAO writing mode */ 1045 write_init(int mode) argument [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | mkpkgmap.c | 105 extern void attrpreset(int mode, char *owner, char *group); 271 if (entry.ainfo.mode == NOMODE) { 272 entry.ainfo.mode = CURMODE; 299 (int)entry.ainfo.mode, 503 * This function reads the default mode, owner and group from the prototype 510 int mode; local 556 * For mode, don't use scanf, since we want to force an octal 561 mode = strtol(mode_ptr, &pt, 8); 566 gettext("unreadable at mode")); 576 d_mod[nfp] = mode; [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/unistat/ |
H A D | spcs_s_k.c | 257 int mode = 0; local 265 (void) ddi_copyin((void *) ustatus, (void *) p, SPCS_S_REVSIZE, mode); 373 int mode = 0; local 398 sizeof (kstatus->sdata) + sizeof (kstatus->tdata)), mode); 400 (kstatus->icount * sizeof (kstatus->idata[0])), mode); 402 (kstatus->scount * sizeof (kstatus->sdata[0])), mode); 404 (kstatus->tcount * sizeof (kstatus->tdata[0])), mode);
|
/illumos-gate/usr/src/uts/intel/io/agpgart/ |
H A D | agptarget.c | 77 off_t gm_regoff; /* mode selection register offset */ 626 agp_target_ioctl(dev_t dev, int cmd, intptr_t data, int mode, argument 634 if (!(mode & FKIOCTL)) { 659 if (ddi_copyout(&type, (void *)data, sizeof (int), mode)) { 677 sizeof (size_t), mode)) { 703 sizeof (i_agp_info_t), mode)) { 723 sizeof (uint32_t), mode)) { 736 sizeof (uint32_t), mode)) {
|
/illumos-gate/usr/src/boot/lib/libz/ |
H A D | gzwrite.c | 184 if (state->mode != GZ_WRITE || state->err != Z_OK) 264 if (state->mode != GZ_WRITE || state->err != Z_OK) 326 if (state->mode != GZ_WRITE || state->err != Z_OK) 411 if (state->mode != GZ_WRITE || state->err != Z_OK) 480 if (state->mode != GZ_WRITE || state->err != Z_OK) 515 if (state->mode != GZ_WRITE || state->err != Z_OK) 554 if (state->mode != GZ_WRITE)
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | deliver.c | 52 ** mode -- the delivery mode to use. If SM_DEFAULT, use 61 ** If we are running in a non-interactive mode, takes the 66 sendall(e, mode) 68 int mode; 100 ** the message at all if we are in SMTP mode. Local errors 112 /* determine actual delivery mode */ 113 if (mode == SM_DEFAULT) 115 mode = e->e_sendmode; 116 if (mode ! 5106 volatile int mode; local [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ldc.c | 176 * The length of the reliable-mode data queue in terms of the LDC 317 uint32_t mid = ((c)->mode != LDC_MODE_RAW) ? msg->seqid : 0; \ 712 if (ldcp->mode == LDC_MODE_RAW) { 851 * Reliable mode will use the ACKd head instead of the regular tx_head. 852 * Also in Reliable mode, advance ackd_head for all non DATA/INFO pkts, 856 if (ldcp->mode == LDC_MODE_RELIABLE) { 1054 if (ldcp->mode != LDC_MODE_RELIABLE) { 1083 if (ldcp->mode == LDC_MODE_RELIABLE) { 1162 /* Store ackid/seqid iff it is RELIABLE mode & not a RTS/RTR message */ 1166 if (ldcp->mode ! [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | trill.c | 1158 trill_add_nick(trill_inst_t *tip, void *arg, boolean_t self, int mode) argument 1166 if (ddi_copyin(arg, &tnihdr, sizeof (trill_nickinfo_t), mode) != 0) 1181 if (ddi_copyin(arg, tnode->tn_ni, size, mode) != 0) { 1207 trill_do_ioctl(trill_sock_t *tsock, int cmd, void *arg, int mode) argument 1216 if (ddi_copyin(arg, &desigvlan, sizeof (desigvlan), mode) != 0) 1226 if ((ddi_copyin(arg, vlans, sizeof (vlans), mode)) != 0) 1234 error = trill_add_nick(tip, arg, B_TRUE, mode); 1242 mode) != 0) 1250 error = trill_add_nick(tip, arg, B_FALSE, mode); 1258 if (ddi_copyin(arg, &delnick, sizeof (delnick), mode) ! 1611 trill_ioctl(sock_lower_handle_t proto_handle, int cmd, intptr_t arg, int mode, int32_t *rvalp, cred_t *cr) argument [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | kdb_db2.c | 245 k5db2_dbopen(krb5_db2_context *dbc, char *fname, int flags, int mode, int tempdb) argument 277 db = dbopen(fname, flags, mode, 289 db = dbopen(fname, flags, mode, 607 int mode, gotlock, tries; local 611 mode = KRB5_DB_LOCKMODE_EXCLUSIVE; 614 mode = KRB5_LOCKMODE_EXCLUSIVE; 618 mode = KRB5_LOCKMODE_SHARED; 629 if (db_ctx->db_locks_held && (db_ctx->db_lock_mode >= mode)) { 635 if ((mode != KRB5_LOCKMODE_SHARED) && (mode ! 1418 krb5_db2_db_set_lockmode(krb5_context context, krb5_boolean mode) argument 1450 krb5_db2_open(krb5_context kcontext, char *conf_section, char **db_args, int mode) argument [all...] |