/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nfs.c | 525 detail_mode(mode) 526 int mode; 530 switch (mode & S_IFMT) { 541 (void) sprintf(get_line(0, 0), "Mode = 0%o", mode); 545 (mode & S_ISUID) != 0, 546 (mode & S_ISGID) != 0, 547 (mode & S_ISVTX) != 0); 549 perms(mode >> 6 & 0x7)); 551 perms(mode >> 3 & 0x7)); 553 perms(mode 559 int fltype, mode, nlinks, uid, gid, size, blksz; local 595 int mode; local [all...] |
/illumos-gate/usr/src/uts/common/io/aac/ |
H A D | aac_ioctl.c | 98 int mode) 105 status = aac_check_revision(softs, arg, mode); 113 status = aac_ioctl_send_fib(softs, arg, mode); 117 status = aac_open_getadapter_fib(softs, arg, mode); 121 status = aac_next_getadapter_fib(softs, arg, mode); 129 status = aac_send_raw_srb(softs, dev, arg, mode); 133 status = aac_get_pci_info(softs, arg, mode); 137 status = aac_query_disk(softs, arg, mode); 141 status = aac_delete_disk(softs, arg, mode); 145 status = aac_supported_features(softs, arg, mode); 97 aac_do_ioctl(struct aac_softstate *softs, dev_t dev, int cmd, intptr_t arg, int mode) argument 159 aac_check_revision(struct aac_softstate *softs, intptr_t arg, int mode) argument 217 aac_ioctl_send_fib(struct aac_softstate *softs, intptr_t arg, int mode) argument 309 aac_open_getadapter_fib(struct aac_softstate *softs, intptr_t arg, int mode) argument 357 aac_next_getadapter_fib(struct aac_softstate *softs, intptr_t arg, int mode) argument 434 aac_send_raw_srb(struct aac_softstate *softs, dev_t dev, intptr_t arg, int mode) argument 639 aac_get_pci_info(struct aac_softstate *softs, intptr_t arg, int mode) argument 668 aac_query_disk(struct aac_softstate *softs, intptr_t arg, int mode) argument 705 aac_delete_disk(struct aac_softstate *softs, intptr_t arg, int mode) argument 741 aac_supported_features(struct aac_softstate *softs, intptr_t arg, int mode) argument [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | access.c | 66 int mode; local 74 mode = ((fmode & (R_OK|W_OK|X_OK)) << 6); 102 if (mode) { 103 error = VOP_ACCESS(vp, mode, 0, tmpcr, NULL);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | enx_ctl.c | 55 eibnx_devctl_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, argument
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ipc.h | 52 mode_t mode; /* access modes */ member in struct:ipc_perm
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfpoll.c | 52 #define RDREADY(f) (((f->mode&SF_READ) && f->next < f->endb) || \ 53 ((f->mode&SF_WRITE) && f->proc && f->proc->ndata > 0) ) 56 #define WRREADY(f) (!(f->mode&SF_WRITE) || f->next == f->data) 65 m = f->mode&SF_RDWR; 66 if((int)f->mode != m && _sfmode(f,m,0) < 0) 123 if((f->mode&SF_WRITE) && HASAUXFD(f)) 150 { if((f->mode&SF_WRITE) && HASAUXFD(f)) 179 { if((f->mode&SF_WRITE) && HASAUXFD(f)) 212 { if((f->mode&SF_WRITE) && HASAUXFD(f) )
|
H A D | sfmode.c | 25 /* Functions to set a given stream to some desired mode 97 pool = f->mode&SF_POOL; 98 f->mode &= ~SF_POOL; 99 if((f->flags&SF_WRITE) && !(f->mode&SF_WRITE)) 102 ((f->mode&SF_WRITE) && f->next == f->data) ) 104 f->mode |= pool; 360 reg Sfio_t* f; /* change r/w mode and sync file pointer for this stream */ 361 reg int wanted; /* desired mode */ 373 if((f->mode&(SF_SYNCED|SF_READ)) == (SF_SYNCED|SF_READ) ) 375 f->mode [all...] |
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | vsnprintf.c | 42 f.mode = SF_WRITE;
|
H A D | vswscanf.c | 41 f.mode = SF_READ;
|
/illumos-gate/usr/src/lib/libast/common/tm/ |
H A D | tvtouch.c | 91 int mode; local 148 umask(mode = umask(0)); 149 mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); 150 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0) 272 umask(mode = umask(0)); 273 mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); 274 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0)
|
/illumos-gate/usr/src/uts/intel/io/heci/ |
H A D | heci.h | 125 int mode); 129 struct heci_file *file, int mode); 133 struct heci_file_private *file_ext, int mode); 137 struct heci_file_private *file_ext, int mode);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/checksum/edonr/ |
H A D | edonr_test.c | 154 #define EDONR_ALGO_TEST(_m, mode, testdigest) \ 157 uint8_t digest[mode / 8]; \ 158 EdonRInit(&ctx, mode); \ 162 "\tResult: ", #mode); \ 163 if (bcmp(digest, testdigest, mode / 8) == 0) { \ 172 #define EDONR_PERF_TEST(mode) \ 175 uint8_t digest[mode / 8]; \ 183 EdonRInit(&ctx, mode); \ 194 (void) printf("Edon-R-%-6s%llu us (%.02f CPB)\n", #mode,\
|
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/ |
H A D | ofw_memory.c | 45 int mode; member in struct:ofw_mapping 53 int mode; member in struct:ofw_mapping2 92 mapptr[i].mode); 110 mapptr2[i].mode);
|
/illumos-gate/usr/src/boot/lib/libz/ |
H A D | infback.c | 279 state->mode = TYPE; 291 switch (state->mode) { 296 state->mode = DONE; 306 state->mode = STORED; 312 state->mode = LEN; /* decode codes */ 317 state->mode = TABLE; 321 state->mode = BAD; 332 state->mode = BAD; 355 state->mode = TYPE; 370 state->mode [all...] |
/illumos-gate/usr/src/common/acl/ |
H A D | acl_common.c | 379 mode_to_ace_access(mode_t mode, boolean_t isdir, int isowner, int isallow) argument 386 haswriteperm = (mode & S_IWOTH); 387 hasreadperm = (mode & S_IROTH); 389 haswriteperm = !(mode & S_IWOTH); 390 hasreadperm = !(mode & S_IROTH); 411 if (mode & S_IROTH) { 415 if (mode & S_IWOTH) { 422 if (mode & S_IXOTH) { 740 o_mode_t mode = 0; local 745 mode | 1575 acl_trivial_access_masks(mode_t mode, boolean_t isdir, trivial_acl_t *masks) argument 1638 acl_trivial_create(mode_t mode, boolean_t isdir, ace_t **acl, int *count) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_ioctl.c | 56 intptr_t arg, int mode); 58 intptr_t arg, int mode); 60 intptr_t arg, int mode); 62 intptr_t arg, int mode); 68 int mode); 70 int mode); 73 intptr_t arg, int mode); 75 intptr_t arg, int mode); 77 int mode); 79 int mode); 153 hermon_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument 241 hermon_ioctl_flash_read(hermon_state_t *state, dev_t dev, intptr_t arg, int mode) argument 362 hermon_ioctl_flash_write(hermon_state_t *state, dev_t dev, intptr_t arg, int mode) argument 464 hermon_ioctl_flash_erase(hermon_state_t *state, dev_t dev, intptr_t arg, int mode) argument 536 hermon_ioctl_flash_init(hermon_state_t *state, dev_t dev, intptr_t arg, int mode) argument 761 hermon_ioctl_info(hermon_state_t *state, dev_t dev, intptr_t arg, int mode) argument 823 hermon_ioctl_ports(hermon_state_t *state, intptr_t arg, int mode) argument 944 hermon_ioctl_loopback(hermon_state_t *state, intptr_t arg, int mode) argument 1223 hermon_ioctl_reg_read(hermon_state_t *state, intptr_t arg, int mode) argument 1298 hermon_ioctl_reg_write(hermon_state_t *state, intptr_t arg, int mode) argument 1362 hermon_ioctl_write_boot_addr(hermon_state_t *state, dev_t dev, intptr_t arg, int mode) argument 3034 hermon_loopback_copyout(hermon_loopback_ioctl_t *lb, intptr_t arg, int mode) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_ioctl.c | 53 intptr_t arg, int mode); 55 intptr_t arg, int mode); 57 intptr_t arg, int mode); 59 intptr_t arg, int mode); 65 int mode); 67 int mode); 70 intptr_t arg, int mode); 72 int mode); 74 int mode); 76 int mode); 134 tavor_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument 227 tavor_ioctl_flash_read(tavor_state_t *state, dev_t dev, intptr_t arg, int mode) argument 368 tavor_ioctl_flash_write(tavor_state_t *state, dev_t dev, intptr_t arg, int mode) argument 482 tavor_ioctl_flash_erase(tavor_state_t *state, dev_t dev, intptr_t arg, int mode) argument 569 tavor_ioctl_flash_init(tavor_state_t *state, dev_t dev, intptr_t arg, int mode) argument 767 tavor_ioctl_info(tavor_state_t *state, dev_t dev, intptr_t arg, int mode) argument 847 tavor_ioctl_ports(tavor_state_t *state, intptr_t arg, int mode) argument 990 tavor_ioctl_loopback(tavor_state_t *state, intptr_t arg, int mode) argument 1329 tavor_ioctl_ddr_read(tavor_state_t *state, intptr_t arg, int mode) argument 1405 tavor_ioctl_reg_read(tavor_state_t *state, intptr_t arg, int mode) argument 1481 tavor_ioctl_reg_write(tavor_state_t *state, intptr_t arg, int mode) argument 2596 tavor_loopback_copyout(tavor_loopback_ioctl_t *lb, intptr_t arg, int mode) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | rmcadm.c | 50 static int rmcadm_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, 311 rmcadm_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred_p, argument 336 switch (ddi_model_convert_from(mode & FMODELS)) { 346 sizeof (rr32), mode)) { 362 sizeof (rr), mode)) { 369 sizeof (rr), mode) != 0) { 386 rr.req.msg_len, mode) != 0) { 477 rr.resp.msg_bytes, mode) != 0) { 494 switch (ddi_model_convert_from(mode & FMODELS)) { 515 sizeof (rr32), mode)) { [all...] |
/illumos-gate/usr/src/uts/common/io/net80211/ |
H A D | net80211_proto.c | 398 * operating mode. For real 11g we mark all the 11b rates 400 * 11b rates. There's also a pseudo 11a-mode used to mark only 405 enum ieee80211_phymode mode) 423 ASSERT(mode < IEEE80211_MODE_MAX); 426 for (j = 0; j < basic[mode].ir_nrates; j++) { 427 if (basic[mode].ir_rates[j] == rs->ir_rates[i]) { 538 enum ieee80211_phymode mode; local 545 * Select mode; we can be called early in which case we 546 * always use auto mode. We know we'll be called when 551 mode 404 ieee80211_setbasicrates(struct ieee80211_rateset *rs, enum ieee80211_phymode mode) argument 651 enum ieee80211_phymode mode; local [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc.c | 64 static int rdcioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, 296 cmn_err(CE_NOTE, "!SNDR bitmap mode override"); 302 "!SNDR: unknown bitmap mode %d - autodetecting mode", 467 convert_ioctl_args(int cmd, intptr_t arg, int mode, _rdc_ioctl_t *args) argument 471 if (ddi_copyin((void *)arg, &args32, sizeof (_rdc_ioctl32_t), mode)) 529 rdc_status_copy32(const void *arg, void *usetp, size_t size, int mode) argument 567 return (ddi_copyout(&set32, usetp, size, mode)); 575 rdcstatus(_rdc_ioctl_t *args, int mode) argument 586 if (ddi_model_convert_from(mode 668 rdcioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, int *rvp) argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/amd64/ |
H A D | framebuffer.c | 97 efifb_from_gop(struct efi_fb *efifb, EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE *mode, argument 102 efifb->fb_addr = mode->FrameBufferBase; 103 efifb->fb_size = mode->FrameBufferSize; 447 print_efifb(int mode, struct efi_fb *efifb, int verbose) argument 451 if (mode >= 0) 452 printf("mode %d: ", mode); 473 u_int mode; local 491 mode = strtol(argv[2], &cp, 0); 493 sprintf(command_errbuf, "mode i [all...] |
/illumos-gate/usr/src/lib/libdll/common/ |
H A D | dlfcn.c | 67 extern void* dlopen(const char* path, int mode) argument 73 if (mode) 74 mode = (BIND_IMMEDIATE|BIND_FIRST|BIND_NOSTART); 75 if (!(dll = (void*)shl_load(path, mode, 0L))) 133 extern void* dlopen(const char* path, int mode) argument 137 if (!(dll = (void*)load((char*)path, mode, getenv("LIBPATH")))) 277 extern void* dlopen(const char* path, int mode) argument 281 NoP(mode); 363 extern void* dlopen(const char* path, int mode) argument 393 dll->module = NSLinkModule(image, path, (mode 506 dlopen(const char* path, int mode) argument [all...] |
/illumos-gate/usr/src/common/dis/i386/ |
H A D | dis_tables.c | 83 uint_t it_always64:1; /* 64 bit when in 64 bit mode */ 284 * "y" - means the operand size is always 64 bits in 64 bit mode 373 * this decodes the r_m field for mode's 0, 1, 2 in 16 bit mode 386 * This decodes 32 bit addressing mode r_m field for modes 0, 1, 2 399 * This decodes 64 bit addressing mode r_m field for modes 0, 1, 2 501 * "decode table" for 64 bit mode MOVSXD instruction (opcode 0x63) 567 * Decode table for 0x0FC7 opcode (group 9) mode 3 2297 * Even in 64 bit mode, usually only 4 byte immediate operands are supported. 2311 #define REG_ONLY 3 /* mode t 2452 dtrace_get_modrm(dis86_t *x, uint_t *mode, uint_t *reg, uint_t *r_m) argument 2467 dtrace_rex_adjust(uint_t rex_prefix, uint_t mode, uint_t *reg, uint_t *r_m) argument 2486 dtrace_vex_adjust(uint_t vex_byte1, uint_t mode, uint_t *reg, uint_t *r_m) argument 2608 dtrace_get_operand(dis86_t *x, uint_t mode, uint_t r_m, int wbit, int opindex) argument 2904 uint_t mode = 0; /* mode value from ModRM byte */ local 5426 dtrace_disx86_str(dis86_t *dis, uint_t mode, uint64_t pc, char *buf, size_t buflen) argument [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | template.c | 346 CK_ULONG mode) 360 return (data_object_set_default_attributes(tmpl, mode)); 363 return (cert_x509_set_default_attributes(tmpl, mode)); 370 tmpl, mode)); 379 tmpl, mode)); 388 tmpl, mode)); 473 CK_ULONG mode) 477 tmpl, mode)); 481 tmpl, mode)); 484 tmpl, mode)); 343 template_add_default_attributes(TEMPLATE * tmpl, CK_ULONG class, CK_ULONG subclass, CK_ULONG mode) argument 470 template_check_required_attributes(TEMPLATE * tmpl, CK_ULONG class, CK_ULONG subclass, CK_ULONG mode) argument 541 template_check_required_base_attributes(TEMPLATE * tmpl, CK_ULONG mode) argument 1105 template_validate_attribute(TEMPLATE * tmpl, CK_ATTRIBUTE * attr, CK_ULONG class, CK_ULONG subclass, CK_ULONG mode) argument 1167 template_validate_attributes(TEMPLATE * tmpl, CK_ULONG class, CK_ULONG subclass, CK_ULONG mode) argument 1192 template_validate_base_attribute(TEMPLATE * tmpl, CK_ATTRIBUTE * attr, CK_ULONG mode) argument [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_ioctl.c | 198 * mode = flags 210 ql_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred_p, argument 245 rval = ql_xioctl(ha, cmd, arg, mode, cred_p, rval_p); 254 sizeof (bits), mode)) { 264 sizeof (bits), mode)) { 278 rval = ql_nv_util_load(ha, (void *)arg, mode); 282 rval = ql_nv_util_dump(ha, (void *)arg, mode); 286 rval = ql_adm_op(ha, (void *)arg, mode); 931 ql_nv_util_load(ql_adapter_state_t *ha, void *bp, int mode) argument 948 if (ddi_copyin(bp, nv, ha->nvram_cache->size, mode) ! 1042 ql_nv_util_dump(ql_adapter_state_t *ha, void *bp, int mode) argument 1149 ql_vpd_load(ql_adapter_state_t *ha, void *bp, int mode) argument 1279 ql_vpd_dump(ql_adapter_state_t *ha, void *bp, int mode) argument 1565 ql_r_m_w_flash(ql_adapter_state_t *ha, caddr_t dp, uint32_t bc, uint32_t faddr, int mode) argument 1645 ql_adm_op(ql_adapter_state_t *ha, void *arg, int mode) argument 1741 ql_adm_adapter_info(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 1903 ql_adm_device_list(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 2030 ql_adm_prop_update_int(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 2081 ql_adm_fw_dump(ql_adapter_state_t *ha, ql_adm_op_t *dop, void *udop, int mode) argument 2141 ql_adm_nvram_dump(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 2179 ql_adm_nvram_load(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 2217 ql_adm_flash_load(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 2275 ql_adm_vpd_dump(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 2318 ql_adm_vpd_load(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 2361 ql_adm_vpd_gettag(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument 2420 ql_adm_updfwmodule(ql_adapter_state_t *ha, ql_adm_op_t *dop, int mode) argument [all...] |