/illumos-gate/usr/src/uts/common/io/ksensor/ |
H A D | ksensor_drv.c | 76 ksensor_ioctl_kind(minor_t min, intptr_t arg, int mode) in ksensor_ioctl_kind() argument 85 mode & FKIOCTL) != 0) { in ksensor_ioctl_kind() 93 ksensor_ioctl_scalar(minor_t min, intptr_t arg, int mode) in ksensor_ioctl_scalar() argument 102 mode & FKIOCTL) != 0) { in ksensor_ioctl_scalar() 110 ksensor_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, in ksensor_ioctl() argument 115 if ((mode & FREAD) == 0) { in ksensor_ioctl() 122 return (ksensor_ioctl_kind(m, arg, mode)); in ksensor_ioctl() 124 return (ksensor_ioctl_scalar(m, arg, mode)); in ksensor_ioctl()
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_log.c | 125 openlogfile(char *fname, char *mode) in openlogfile() argument 128 mode != NULL && *mode != '\0'); in openlogfile() 130 if ((logfp = fopen(fname, mode)) == NULL) { in openlogfile() 197 char *fname, *mode, *lpath; in ndmp_log_open_file() local 257 mode = "w"; in ndmp_log_open_file() 259 mode = "a"; in ndmp_log_open_file() 261 return (openlogfile(fname, mode)); in ndmp_log_open_file()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfnew.c | 58 else if(f->mode&SF_AVAIL) 69 if(((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0) || 88 { if(f->mode&SF_AVAIL) 108 f->mode = (flags&SF_READ) ? SF_READ : SF_WRITE; 115 f->mode |= SF_INIT; 126 (void)_sfmode(f,f->mode&SF_RDWR,0);
|
H A D | sfopen.c | 31 Sfio_t* sfopen(Sfio_t* f, const char* file, const char* mode) in sfopen() argument 33 Sfio_t* sfopen(f,file,mode) in sfopen() 36 reg char* mode; /* mode of the stream */ 39 return _sfopen(f, file, mode);
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/db/ |
H A D | db.c | 48 kdb2_dbopen(fname, flags, mode, type, openinfo) in kdb2_dbopen() argument 50 int flags, mode; 64 mode, openinfo, flags & DB_FLAGS)); 67 mode, openinfo, flags & DB_FLAGS)); 70 mode, openinfo, flags & DB_FLAGS));
|
/illumos-gate/usr/src/ucbcmd/tset/ |
H A D | tset.c | 434 struct termio mode; variable 481 bmove((char *)&mode, (char *)&oldmode, sizeof (mode)); in main() 507 modes.c_lflag = mode.c_lflag; in main() 508 modes.c_oflag = mode.c_oflag; in main() 509 modes.c_iflag = mode.c_iflag; in main() 510 modes.c_cflag = mode.c_cflag; in main() 530 mode.c_lflag = modes.c_lflag; in main() 531 mode.c_oflag = modes.c_oflag; in main() 532 mode.c_iflag = modes.c_iflag; in main() 1159 sizeof (mode))) in setmode() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | lock_file.c | 65 krb5_lock_file(krb5_context context, int fd, int mode) in krb5_lock_file() argument 74 switch (mode & ~KRB5_LOCKMODE_DONTBLOCK) { in krb5_lock_file() 98 if (mode & KRB5_LOCKMODE_DONTBLOCK) { in krb5_lock_file() 132 krb5_lock_file(context, fd, mode) in krb5_lock_file() argument 135 int mode;
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vlds.c | 610 mode) != 0) { in vlds_ioctl() 658 mode) != 0) { in vlds_ioctl() 691 mode) != 0) { in vlds_ioctl() 768 mode) != 0) { in vlds_ioctl() 803 mode) != 0) { in vlds_ioctl() 824 mode) != 0) { in vlds_ioctl() 853 mode) != 0) { in vlds_ioctl() 901 mode) != 0) { in vlds_ioctl() 934 mode) != 0) { in vlds_ioctl() 983 mode) != 0) { in vlds_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/make/lib/vroot/ |
H A D | access.cc | 33 vroot_result= access(path, vroot_args.access.mode); in access_thunk() 37 int access_vroot(char *path, int mode, pathpt vroot_path, pathpt vroot_vroot) in access_vroot() argument 39 vroot_args.access.mode= mode; in access_vroot()
|
H A D | mount.cc | 37 vroot_result= mount(path, vroot_args.mount.name, vroot_args.mount.mode); in mount_thunk() 41 int mount_vroot(char *target, char *name, int mode, pathpt vroot_path, pathpt vroot_vroot) in mount_vroot() argument 44 vroot_args.mount.mode= mode; in mount_vroot()
|
H A D | open.cc | 38 vroot_result= open(path, vroot_args.open.flags, vroot_args.open.mode); in open_thunk() 42 int open_vroot(char *path, int flags, int mode, pathpt vroot_path, pathpt vroot_vroot) in open_vroot() argument 45 vroot_args.open.mode= mode; in open_vroot()
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | dirs.c | 42 int mode in mkdir_lpdir() argument 45 mkdir_lpdir (path, mode) in mkdir_lpdir() 47 int mode; 55 ret = Mkdir(path, mode);
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | cryptoadm.c | 240 get_dev_list(dev_t dev, caddr_t arg, int mode, int *rval) in get_dev_list() argument 305 STRUCT_INIT(soft_list, mode); in get_soft_list() 358 get_dev_info(dev_t dev, caddr_t arg, int mode, int *rval) in get_dev_info() argument 805 return (get_dev_list(dev, ARG, mode, rval)); in cryptoadm_ioctl() 808 return (get_dev_info(dev, ARG, mode, rval)); in cryptoadm_ioctl() 811 return (get_soft_list(dev, ARG, mode, rval)); in cryptoadm_ioctl() 814 return (get_soft_info(dev, ARG, mode, rval)); in cryptoadm_ioctl() 817 return (load_dev_disabled(dev, ARG, mode, rval)); in cryptoadm_ioctl() 820 return (load_soft_disabled(dev, ARG, mode, rval)); in cryptoadm_ioctl() 823 return (load_soft_config(dev, ARG, mode, rval)); in cryptoadm_ioctl() [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | mc5.c | 111 unsigned char mode; member 226 if (mc5->mode == MC5_MODE_144_BIT) in init_mask_data_array() 240 mc5->mode == MC5_MODE_144_BIT ? in init_mask_data_array() 265 dbgi_wr_data3(adap, mc5->mode == MC5_MODE_144_BIT ? in init_lara7000() 271 dbgi_wr_data3(adap, mc5->mode == MC5_MODE_144_BIT ? in init_lara7000() 293 if (i <= 1 && mc5->mode == MC5_MODE_72_BIT) in init_lara7000() 382 V_MODE(mc5->mode == MC5_MODE_72_BIT) | in mc5_dbgi_mode_enable() 390 V_MODE(mc5->mode == MC5_MODE_72_BIT) | in mc5_dbgi_mode_disable() 423 if (mc5->mode == MC5_MODE_72_BIT) in t1_mc5_init() 637 if (mode != MC5_MODE_144_BIT && mode != MC5_MODE_72_BIT) in t1_mc5_create() [all …]
|
/illumos-gate/usr/src/uts/i86xpv/io/ |
H A D | privcmd.c | 130 do_privcmd_mmap(void *uarg, int mode, cred_t *cr) in do_privcmd_mmap() argument 138 if (ddi_copyin(uarg, mmc, sizeof (*mmc), mode)) in do_privcmd_mmap() 153 if (ddi_copyin(umme, mme, sizeof (*mme), mode)) { in do_privcmd_mmap() 206 do_privcmd_mmapbatch(void *uarg, int mode, cred_t *cr) in do_privcmd_mmapbatch() argument 215 if (ddi_copyin(uarg, mmb, sizeof (*mmb), mode)) in do_privcmd_mmapbatch() 273 privcmd_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cr, int *rval) in privcmd_ioctl() argument 281 if ((mode & FMODELS) != FNATIVE) in privcmd_ioctl() 286 return (do_privcmd_hypercall((void *)arg, mode, cr, rval)); in privcmd_ioctl() 289 return (do_privcmd_mmap((void *)arg, mode, cr)); in privcmd_ioctl() 293 return (do_privcmd_mmapbatch((void *)arg, mode, cr)); in privcmd_ioctl()
|
/illumos-gate/usr/src/uts/common/io/ath/ |
H A D | ath_rate.c | 299 ath_rate_setup(ath_t *asc, uint32_t mode) in ath_rate_setup() argument 308 switch (mode) { in ath_rate_setup() 310 asc->asc_rates[mode] = ATH_HAL_GETRATETABLE(ah, HAL_MODE_11A); in ath_rate_setup() 313 asc->asc_rates[mode] = ATH_HAL_GETRATETABLE(ah, HAL_MODE_11B); in ath_rate_setup() 316 asc->asc_rates[mode] = ATH_HAL_GETRATETABLE(ah, HAL_MODE_11G); in ath_rate_setup() 319 asc->asc_rates[mode] = ATH_HAL_GETRATETABLE(ah, HAL_MODE_TURBO); in ath_rate_setup() 322 asc->asc_rates[mode] = ATH_HAL_GETRATETABLE(ah, HAL_MODE_108G); in ath_rate_setup() 326 "invalid mode %u\n", mode)); in ath_rate_setup() 330 rt = asc->asc_rates[mode]; in ath_rate_setup() 340 rs = &ic->ic_sup_rates[mode]; in ath_rate_setup()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/checksum/sha2/ |
H A D | sha2_test.c | 196 #define SHA2_ALGO_TEST(_m, mode, diglen, testdigest) \ in main() argument 200 SHA2Init(SHA ## mode ## _MECH_INFO_TYPE, &ctx); \ in main() 204 "\tResult: ", #mode); \ in main() 214 #define SHA2_PERF_TEST(mode, diglen) \ in main() argument 225 SHA2Init(SHA ## mode ## _MECH_INFO_TYPE, &ctx); \ in main() 236 (void) printf("SHA%-9s%llu us (%.02f CPB)\n", #mode, \ in main()
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-xopen-xcu6.p5m | 36 file path=usr/xpg6/bin/bc mode=0555 37 file path=usr/xpg6/bin/crontab mode=4555 38 file path=usr/xpg6/bin/dc mode=0555 39 file path=usr/xpg6/bin/ed mode=0555 40 file path=usr/xpg6/bin/edit mode=0555 42 file path=usr/xpg6/bin/expr mode=0555 43 file path=usr/xpg6/bin/getconf mode=0555 44 file path=usr/xpg6/bin/ls mode=0555
|
/illumos-gate/usr/src/uts/common/io/dld/ |
H A D | dld_drv.c | 631 cred_t *cred, int mode) in drv_ioc_prop_common() argument 661 if (ddi_copyin((void *)arg, kprop, dsize, mode) != 0) { in drv_ioc_prop_common() 742 if (mode != LINK_TAGMODE_VLANONLY && in drv_ioc_prop_common() 743 mode != LINK_TAGMODE_NORMAL) { in drv_ioc_prop_common() 746 dlp->dl_tagmode = mode; in drv_ioc_prop_common() 1278 state.ss_mode = mode; in drv_ioc_secobj_get() 1412 sizeof (buf), mode); in drv_ioc_readtran() 1439 if ((mode & FREAD) == 0) in drv_ioc_getled() 1485 if ((mode & FWRITE) == 0) in drv_ioc_setled() 1712 ddi_copyin((void *)arg, buf, sz, mode) != 0) { in drv_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | dl.c | 62 conv_dl_mode(int mode, int fabricate, Conv_dl_mode_buf_t *dl_mode_buf) in conv_dl_mode() argument 81 conv_arg.oflags = conv_arg.rflags = mode; in conv_dl_mode() 84 if (mode & RTLD_NOW) { in conv_dl_mode() 86 } else if ((mode & RTLD_LAZY) || fabricate) { in conv_dl_mode() 89 if (mode & RTLD_GLOBAL) { in conv_dl_mode() 95 conv_arg.oflags = mode; in conv_dl_mode() 96 conv_arg.rflags = mode & ~(RTLD_LAZY | RTLD_NOW | RTLD_GLOBAL); in conv_dl_mode()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | crypto.c | 101 unsigned int mode, char *ivec) in __desN_crypt() argument 104 unsigned int m = mode & (DES_ENCRYPT | DES_DECRYPT); in __desN_crypt() 106 unsigned int flags = mode & ~(DES_ENCRYPT | DES_DECRYPT); in __desN_crypt() 119 j = (mode & DES_DECRYPT) ? keynum - 1 - i : i; in __desN_crypt() 121 if (mode & DES_DECRYPT && i == 0) in __desN_crypt() 129 if ((mode & DES_DECRYPT) || i != keynum - 1 || i%2) in __desN_crypt() 138 stat = cbc_crypt(keys[0].c, buf, len, mode, ivec); in __desN_crypt() 141 if (mode & DES_DECRYPT) in __desN_crypt() 156 unsigned mode = (encrypt_flag ? DES_ENCRYPT : DES_DECRYPT) | DES_HW; in __dh_desN_crypt() local 174 (char *)buf->value, buf->length, mode, ivec.c); in __dh_desN_crypt() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/ |
H A D | fwide.c | 27 fwide(Sfio_t* f, int mode) in fwide() argument 29 STDIO_INT(f, "fwide", int, (Sfio_t*, int), (f, mode)) in fwide() 31 if (mode > 0) in fwide() 36 else if (mode < 0) in fwide()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | strmode.c | 39 int mode; in strmode() local 41 mode = 0; in strmode() 47 mode |= (p->mask1 & (c << p->shift1)) | (p->mask2 & (c << p->shift2)); in strmode() 50 return(mode); in strmode()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libdll/ |
H A D | dlfcn.c | 65 extern void* dlopen(const char* path, int mode) in dlopen() argument 71 if (mode) in dlopen() 72 mode = (BIND_IMMEDIATE|BIND_FIRST|BIND_NOSTART); in dlopen() 73 if (!(dll = (void*)shl_load(path, mode, 0L))) in dlopen() 131 extern void* dlopen(const char* path, int mode) in dlopen() argument 135 if (!(dll = (void*)load((char*)path, mode, getenv("LIBPATH")))) in dlopen() 275 extern void* dlopen(const char* path, int mode) in dlopen() argument 279 NoP(mode); in dlopen() 361 extern void* dlopen(const char* path, int mode) in dlopen() argument 391 dll->module = NSLinkModule(image, path, (mode & RTLD_LAZY) ? 0 : NSLINKMODULE_OPTION_BINDNOW); in dlopen() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppinput.c | 116 if (!(pp.mode & DUMP)) in pppush() 189 pp.mode |= MARKHOSTED; in pppush() 205 pp.mode |= HOSTED; in pppush() 213 pp.mode &= ~HOSTED; in pppush() 226 if (pp.mode & MARKC) in pppush() 229 pp.mode &= ~MARKC; in pppush() 296 pp.mode &= ~MARKMACRO; in ppexpand() 315 if (pp.mode & MARKMACRO) in ppexpand() 317 pp.mode &= ~MARKMACRO; in ppexpand() 478 pp.mode |= LOADING; in ppload() [all …]
|