/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_util.c | 175 * mode (input) - bitmask of the following: 181 * conditions specified by mode. 189 ulong_t mode, ulong_t class, ndmpd_file_handler_func_t *func) 199 new->fh_mode = mode; 440 ulong_t mode = 0; local 448 mode |= NDMPD_SELECT_MODE_READ; 454 mode |= NDMPD_SELECT_MODE_WRITE; 460 mode |= NDMPD_SELECT_MODE_EXCEPTION; 464 if (mode) { 466 handler->fh_fd, mode); 188 ndmpd_add_file_handler(ndmpd_session_t *session, void *cookie, int fd, ulong_t mode, ulong_t class, ndmpd_file_handler_func_t *func) argument 2557 ndmpd_get_file_entry_type(int mode, ndmp_file_type *ftype) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_node.c | 38 #include <sys/mode.h> 158 hp->hs_dirent.mode << shift, m)); 958 hdp->mode = HFREG; 962 hdp->mode = HFDIR; 971 hdp->mode = hdp-> mode | (fsp -> hsfs_vol.vol_prot & 0777); 988 hdp->mode = HFREG; 992 hdp->mode = HFDIR; 1001 hdp->mode = hdp-> mode | (fs [all...] |
H A D | hsfs_vfsops.c | 211 /* default mode, uid, gid */ 231 mode_t mode, int flags, struct cred *cr, int isroot); 246 mode_t *mode, cred_t *cr); 292 mode_t mode; local 341 error = hs_getmdev(vfsp, uap->spec, uap->flags, &dev, &mode, cr); 358 error = hs_mountfs(vfsp, dev, dpn.pn_path, mode, flags, cr, 0); 571 mode_t mode, 1238 * inode number even in pure ISO9660 mode. 1339 hs_getmdev(struct vfs *vfsp, char *fspec, int flags, dev_t *pdev, mode_t *mode, argument 1387 vap.va_mask = AT_MODE; /* get protection mode */ 567 hs_mountfs( struct vfs *vfsp, dev_t dev, char *path, mode_t mode, int mount_flags, struct cred *cr, int isroot) argument 1463 mode_t mode = 0; local [all...] |
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | token.c | 508 * file mode adr_u_int (in octal) 515 int32_t mode; local 520 adrm_int32(adr, &mode, 1); 551 * mode adr_int32 (printed in octal) 564 int32_t mode; local 568 adrm_int32(adr, &mode, 1); 598 * mode adr_int32 (printed in octal) 611 int32_t mode; local 615 adrm_int32(adr, &mode, 1); 645 * mode adr_int3 658 int32_t mode; local 839 int32_t uid, gid, cuid, cgid, mode, seq; local [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | memcache.c | 215 static int memcache_access(LDAPMemCache *cache, int mode, 1419 memcache_access(LDAPMemCache *cache, int mode, 1426 if (mode == MEMCACHE_ACCESS_ADD) { 1454 else if ((mode == MEMCACHE_ACCESS_APPEND) || 1455 (mode == MEMCACHE_ACCESS_APPEND_LAST)) { 1487 if (mode == MEMCACHE_ACCESS_APPEND) 1507 else if (mode == MEMCACHE_ACCESS_FIND) { 1530 else if (mode == MEMCACHE_ACCESS_DELETE) { 1541 else if (mode == MEMCACHE_ACCESS_DELETE_ALL) { 1546 else if (mode [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_acl.c | 507 mode_to_ace4_access(o_mode_t mode, int isdir, int isowner, int isallow, argument 515 haswriteperm = (mode & 02); 516 hasreadperm = (mode & 04); 518 haswriteperm = !(mode & 02); 519 hasreadperm = !(mode & 04); 541 if (mode & 04) { 545 if (mode & 02) { 552 if (mode & 01) { 895 o_mode_t mode = 0; local 900 mode | [all...] |
/illumos-gate/usr/src/cmd/power/ |
H A D | handlers.c | 124 char *mode; member in struct:bmtoc 131 "enable", "poll-mode", PM_START_CPUPM_POLL, EBUSY, 132 "enable", "event-mode", PM_START_CPUPM_EV, EBUSY, 138 char *mode; local 141 if ((mode = LINEARG(2)) == NULL) 142 mode = "\0"; 146 strcmp(mode, bp->mode) == 0) { 155 behavior, mode);
|
/illumos-gate/usr/src/cmd/abi/appcert/scripts/ |
H A D | AppcertUtil.pm | 881 # Call with mode 'on' and the name of the handler subroutine. 882 # Call with mode 'off' to set signal handling back to defaults 888 my ($mode, $handler) = @_; 897 if ($mode eq 'on') { 901 } elsif ($mode eq 'off') { 905 } elsif ($mode eq 'ignore') { 1188 my ($mask, $mode, $test); 1191 $mode = (stat($file))[2]; 1194 $test = $mode & $mask;
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | paths.c | 136 uint_t mode = (LA_SER_LIBPATH | PD_FLG_UNIQUE); local 143 mode |= LA_SER_CONFIG; 145 DBG_CALL(Dbg_libs_path(lml, rpl_libpath, mode, 176 &rpl_libdirs, AL_CNT_SEARCH, mode, 190 uint_t mode = local 193 DBG_CALL(Dbg_libs_path(lml, prm_libpath, mode, 217 &prm_libdirs, AL_CNT_SEARCH, mode,
|
/illumos-gate/usr/src/boot/sys/boot/efi/loader/ |
H A D | main.c | 592 COMMAND_SET(mode, "mode", "change or display EFI text modes", command_mode); 598 unsigned int mode; local 609 mode = strtol(argv[1], &cp, 0); 611 printf("Invalid mode\n"); 614 status = conout->QueryMode(conout, mode, &cols, &rows); 616 printf("invalid mode %d\n", mode); 619 status = conout->SetMode(conout, mode); 621 printf("couldn't set mode [all...] |
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | kernel.c | 407 vn_open(char *path, int x1, int flags, int mode, vnode_t **vpp, int x2, int x3) argument 454 fd = open64(realpath, flags - FREAD, mode); 492 vn_openat(char *path, int x1, int flags, int mode, vnode_t **vpp, int x2, argument 502 ret = vn_open(realpath, x1, flags, mode, vpp, x2, x3); 928 kernel_init(int mode) argument 940 (mode & FWRITE) ? gethostid() : 0); 949 spa_init(mode);
|
/illumos-gate/usr/src/uts/common/io/urf/ |
H A D | urf_usbgem.c | 311 uint16_t mode; local 331 mode = RCR_AB /* accept broadcast */ 336 /* promiscious mode implies all multicast and all physical */ 337 mode |= RCR_AAM | RCR_AAP; 340 mode |= RCR_AAM; 346 mode |= RCR_AM; 354 lp->rcr |= mode; 360 if (mode & RCR_AM) {
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlaggr.c | 891 * Given a LACP mode string, find the corresponding LACP mode number. Returns 898 dladm_aggr_lacpmode_t *mode; local 901 mode = &lacp_modes[i]; 902 if (strncasecmp(str, mode->mode_str, 903 strlen(mode->mode_str)) == 0) { 904 *lacp_mode = mode->mode_id; 913 * Given a LACP mode number, returns a printable string, or NULL if the 914 * LACP mode number is invalid. 920 dladm_aggr_lacpmode_t *mode; local [all...] |
/illumos-gate/usr/src/cmd/smbsrv/smbadm/ |
H A D | smbadm.c | 464 uint32_t mode = 0; local 469 if (mode != 0) { 476 mode = SMB_SECMODE_DOMAIN; 481 mode = SMB_SECMODE_DOMAIN; 486 mode = SMB_SECMODE_WORKGRP; 513 (mode == SMB_SECMODE_WORKGRP) ? "workgroup" : "domain"); 517 if (mode == SMB_SECMODE_WORKGRP) { 537 jdi.mode = SMB_SECMODE_WORKGRP; 580 jdi.mode = SMB_SECMODE_DOMAIN; 756 * Displays current security mode an [all...] |
/illumos-gate/usr/src/cmd/mv/ |
H A D | mv.c | 1395 chg_mode(char *target, uid_t uid, gid_t gid, mode_t mode) argument 1400 /* Don't change mode if target is symlink */ 1412 if (mode & (S_ISUID | S_ISGID)) { 1414 mode &= ~S_ISUID & ~S_ISGID; 1418 if (chmod(target, mode) != 0) { 1471 mode_t fixmode = (mode_t)0; /* cleanup mode after copy */ 1637 mode_t mode; local 1668 gettext("%s: failed to set file mode" 1783 mode = FMODE(s3); 1795 if (mode [all...] |
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | arith.c | 354 * if mode>0, an error will be fatal with value <mode> 357 Sfdouble_t sh_strnum(register const char *str, char** ptr, int mode) argument 372 d = strval(str,&last,arith,mode); 373 if(!ptr && *last && mode>0)
|
/illumos-gate/usr/src/lib/libcrypt/common/ |
H A D | des_soft.c | 128 unsigned mode; local 133 mode = (unsigned)desp->des_mode; 137 switch (mode) {
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | config_parsing.c | 108 parse_fips_mode(char *buf, boolean_t *mode) argument 116 *mode = B_FALSE; 118 *mode = B_TRUE;
|
/illumos-gate/usr/src/lib/libxcurses/h/ |
H A D | mks.h | 204 #ifndef M_DEFMODE /* Default directory creation mode */ 205 #define M_DEFMODE ((mode_t)S_IRALL|S_IWALL)/* Default file creation mode*/ 404 LEXTERN FILE *__m_popenvp (const char *mode, const char *shell, 501 LEXTERN void m_devstd (int fd, int mode); /* end raw I/O transfer */ 504 # define m_devstd(fd, mode)
|
/illumos-gate/usr/src/lib/libpp/common/ |
H A D | ppcall.c | 73 pp.mode |= MARKMACRO; 80 if ((sym->flags & SYM_PREDEFINED) && !(pp.mode & (HOSTED|INACTIVE))) 446 if (ret < 0 && sym->hidden && !(pp.mode & EXPOSE) && !(pp.state & HEADER) && (pp.in->type == IN_FILE || pp.in->type == IN_MACRO || pp.in->type == IN_EXPAND))
|
/illumos-gate/usr/src/cmd/rcap/rcapstat/ |
H A D | rcapstat.c | 43 static char mode[RC_MODE_LEN]; variable 182 (void) strncpy(mode, hdr.rs_mode, RC_MODE_LEN); 277 mode, col->col_name, DELTA(lcols_pg_eff),
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioUnixfile.cc | 51 // Constructor with pathname and mode arg 55 const FileAccess acc): // access mode 56 AudioStream(path), fd(-1), block(TRUE), mode(acc), 326 if (!opened() || !mode.Readable()) 416 if (!opened() || !mode.Writeable())
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | tape.c | 746 mode_t mode; local 761 mode = curfile.dip->di_mode; 781 switch (mode & IFMT) { 784 (void) fprintf(stderr, gettext("%s: unknown file mode 0%lo\n"), 785 rname, (ulong_t)(mode&IFMT)); 860 if (mknod(rname, mode, full_dev) < 0) { 865 ((s->st_mode & S_IFMT) != (mode & S_IFMT)) || 895 if (chmod(rname, mode) < 0 && !complained_chmod) { 962 if (fchmod(ofile, mode) < 0 && !complained_chmod) { 1684 closemt(int mode) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_svc.c | 468 int mode; local 621 * Set to automatic mode such that threads are automatically 624 mode = RPC_SVC_MT_AUTO; 625 if (!rpc_control(RPC_SVC_MTMODE_SET, &mode)) { 627 "statd:unable to set automatic MT mode."); 632 * Set non-blocking mode and maximum record size for 820 * it's a directory, also makes sure that it is mode 755. 834 * Some older systems might have mode 777 directories. Fix that.
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_sa.c | 204 uint64_t uid, gid, mode, rdev, xattr, parent; local 239 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, &mode, 8); 257 SA_ADD_BULK_ATTR(sa_attrs, count, SA_ZPL_MODE(zfsvfs), NULL, &mode, 8);
|