Searched refs:mode (Results 526 - 550 of 1589) sorted by relevance

<<21222324252627282930>>

/illumos-gate/usr/src/cmd/setfacl/
H A Dsetfacl.c374 parse_entry_list(aclent_t **aclpp, int *aclcntp, char *listp, int mode) argument
384 if (convert_to_aclent_t(listp, aclcntp, aclpp, mode) == -1)
391 if (convert_to_aclent_t(listp, aclcntp, aclpp, mode) == -1)
405 convert_to_aclent_t(char *entryp, int *cntp, aclent_t **aclpp, int mode) argument
435 if (parse_entry(entryp, &tmpacl, mode) == -1)
446 switch (mode) {
488 gettext("Unrecognized mode: internal error\n"));
497 if (mode == DELETE) {
603 parse_entry(char *fieldp, aclent_t *aclentp, int mode) argument
671 if (mode !
[all...]
/illumos-gate/usr/src/tools/depcheck/
H A Dget_depend_info174 $mode = $MODE{$destfile};
181 if (($mode !~ /(.)(.*)7/) && ($mode !~ /(.)(.*)5/) && ($mode !~ /(.)(.*)3/) && ($mode !~ /(.)(.*)1/)){
384 return ($outstring) if ($NoStrings eq true); # we are running in conservative mode
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddca_dsa.c53 crypto_key_t *key, int kmflag, int mode);
383 crypto_key_t *key, int kmflag, int mode)
461 if (mode == DCA_DSA_SIGN && xlen > DSAPARTLEN) {
476 if (mode == DCA_DSA_SIGN) {
488 if (mode == DCA_DSA_SIGN)
506 if (mode == DCA_DSA_SIGN) {
545 int kmflag, crypto_req_handle_t req, int mode)
553 rv = dca_dsainit(&ctx, mechanism, key, kmflag, mode);
565 if (mode == DCA_DSA_SIGN) {
568 ASSERT(mode
382 dca_dsainit(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, crypto_key_t *key, int kmflag, int mode) argument
542 dca_dsaatomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *data, crypto_data_t *sig, int kmflag, crypto_req_handle_t req, int mode) argument
[all...]
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cmp.c157 av1394_ioctl_plug_init(av1394_inst_t *avp, void *arg, int mode) argument
162 if (ddi_copyin(arg, &pi, sizeof (pi), mode) != 0) {
185 if (ddi_copyout(&pi, arg, sizeof (pi), mode) != 0) {
198 av1394_ioctl_plug_fini(av1394_inst_t *avp, void *arg, int mode) argument
226 av1394_ioctl_plug_reg_read(av1394_inst_t *avp, void *arg, int mode) argument
234 if (ddi_copyin(arg, &pr, sizeof (pr), mode) != 0) {
263 if (ddi_copyout(&pr, arg, sizeof (pr), mode) != 0) {
275 av1394_ioctl_plug_reg_cas(av1394_inst_t *avp, void *arg, int mode) argument
283 if (ddi_copyin(arg, &pl, sizeof (pl), mode) != 0) {
317 if (ddi_copyout(&pl, arg, sizeof (pl), mode) !
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci_tpgs.c42 int *mode);
190 * get the failover mode, ownership and if it has extended failover
191 * capability. The mode(bits5-4/byte5) is defined as implicit, explicit, or
196 * Online-nonoptimized will be a mode of secondary
197 * and an ownership of online. Thought about using a different mode but
198 * it appears the states are really for the states for secondary mode.
205 vhci_tpgs_get_target_fo_mode(struct scsi_device *sd, int *mode, argument
215 *mode = *state = *xlf_capable = 0;
224 if (vhci_tpgs_inquiry(ap, bp, mode)) {
248 vhci_tpgs_inquiry(struct scsi_address *ap, struct buf *bp, int *mode) argument
[all...]
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c33 PWOpen(char *path, char *mode) argument
71 if (!(pdesc->dfp = fdopen(fd_d, mode))) {
75 if (!(pdesc->ifp = fdopen(fd_i, mode))) {
80 if (pdesc->wfp = fdopen(fd_w, mode)) {
88 if (mode[0] == 'w') {
/illumos-gate/usr/src/lib/libcmd/common/
H A Dcat.c402 char* mode; local
410 mode = "r";
426 mode = opt_info.num ? "rt" : "r";
523 sfopen(fp, NiL, mode);
525 else if (!(fp = sfopen(NiL, cp, mode)))
/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dmakemap.c97 int mode; local
307 mode = O_RDONLY;
312 mode = O_RDWR;
315 mode |= O_CREAT|O_TRUNC;
323 errno = smdb_open_database(&database, mapname, mode, smode, sff,
/illumos-gate/usr/src/uts/common/io/drm/
H A Ddrm_context.c183 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
210 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
233 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
313 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
333 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c284 krb5_error_code osa_adb_get_lock(osa_adb_db_t db, int mode) argument
288 if (db->lock->lockmode >= mode) {
295 switch (mode) {
315 } else if (ret == EBADF && mode == KRB5_DB_LOCKMODE_EXCLUSIVE)
365 db->lock->lockmode = mode;
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Ddisp4.c486 short trayNum, mode, pagesPrinted; local
493 getmessage(m, S_PAPER_CHANGED, &printer, &trayNum, &paper, &mode,
497 mode, pagesPrinted);
515 pps->forms[trayNum].isAvailable = mode;
516 if ((chgd || !mode) && (!pagesPrinted) && pps->exec) {
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfhdr.h462 /* to test for executable access mode of a file */
486 #define SF_MMAP 00000001 /* in memory mapping mode */
494 #define SF_WIDE 00000400 /* in wide mode - stdio only */
517 /* bits for the mode field, SF_INIT defined in sfio_t.h */
666 int mode; /* type of pool */ member in struct:_sfpool_s
874 #define SFKILL(f) ((f)->mode = (SF_AVAIL|SF_LOCK) )
875 #define SFKILLED(f) (((f)->mode&(SF_AVAIL|SF_LOCK)) == (SF_AVAIL|SF_LOCK) )
883 #define SETLOCAL(f) ((f)->mode |= SF_LOCAL)
884 #define GETLOCAL(f,v) ((v) = ((f)->mode&SF_LOCAL), (f)->mode
[all...]
/illumos-gate/usr/src/uts/sun4v/io/glvc/
H A Dglvc.c62 * For interrupt mode
78 #define GLVC_TIMEOUT_POLL 5000000 /* Timeout in intr mode */
79 #define GLVC_POLLMODE_POLL 500000 /* Interval in polling mode */
94 static int glvc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode,
160 uint8_t intr_mode; /* 1 = polling mode, 2 = interrupt mode */
200 intptr_t arg, int mode);
373 * we are in the polling mode
476 " polling mode", instance);
489 "err = %d , use polling mode", instanc
894 glvc_ioctl_opt_op(glvc_soft_state_t *softsp, intptr_t arg, int mode) argument
948 glvc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred_p, int *rval_p) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/
H A Dpcf8591_nct.c401 call_copyin(caddr_t arg, struct pcf8591_unit *unitp, int mode) argument
410 sizeof (i2c_transfer_t), mode) != DDI_SUCCESS) {
434 i2ct.i2c_wlen, mode) != DDI_SUCCESS) {
443 call_copyout(caddr_t arg, struct pcf8591_unit *unitp, int mode) argument
470 ((intptr_t)arg + uskip), 3*sizeof (uint16_t), mode)
483 sizeof (i2c_transfer_t), mode) != DDI_SUCCESS) {
493 i2c_actlen, mode) != DDI_SUCCESS) {
515 pcf8591_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, argument
548 (caddr_t)arg, sizeof (uint8_t), mode) != DDI_SUCCESS) {
558 sizeof (uint8_t), mode) !
[all...]
/illumos-gate/usr/src/uts/common/ipp/
H A Dippctl.c496 int mode,
530 if ((rc = ippctl_copyin((caddr_t)arg, mode, &cbuf,
569 rc = ippctl_copyout((caddr_t)arg, mode, dbuf, dbuflen);
598 int mode,
615 switch (ddi_model_convert_from(mode & FMODELS)) {
623 sizeof (ippctl_ioctl32_t), mode) != 0)
632 mode) != 0)
643 mode) != 0)
668 if (ddi_copyin(ubuf, (caddr_t)kbuf, ubuflen, mode) != 0) {
683 int mode,
492 ippctl_ioctl( dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument
596 ippctl_copyin( caddr_t arg, int mode, char **kbufp, size_t *kbuflenp) argument
681 ippctl_copyout( caddr_t arg, int mode, char *kbuf, size_t kbuflen) argument
[all...]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dzlib.c160 #define F_OPEN(name, mode) \
161 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
185 #define fdopen(fd, mode) NULL /* No fdopen() */
195 #define F_OPEN(name, mode) fopen((name), (mode))
3596 /* mode */
3612 mode; /* current inflate mode */ member in struct:internal_state
3614 /* mode dependent information */
3624 /* mode independen
4166 inflate_block_mode mode; /* current inflate_block mode */ member in struct:inflate_blocks_state
5278 mode; /* current inflate_codes mode */ member in struct:inflate_codes_state
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dio.c444 int mode = ((struct checkpt*)sh.jmplist)->mode; local
447 ((struct checkpt*)sh.jmplist)->mode = 0;
453 ((struct checkpt*)sh.jmplist)->mode = mode;
552 ((struct checkpt*)shp->jmplist)->mode = SH_JMPERREXIT;
669 mode_t mode; local
673 mode = (flags & O_CREAT) ? va_arg(ap, int) : 0;
737 if((mode=sh_iocheckfd(shp,fd))==IOCLOSE)
740 if(!(mode
911 io_usename(char *name, int *perm, int mode) argument
1587 sh_ioaccess(int fd,register int mode) argument
1888 int mode = LFLUSHO; local
1889 ioctl(sffileno(sfstderr),TIOCLBIC,&mode); local
1933 pipeexcept(Sfio_t* iop, int mode, void *data, Sfdisc_t* handle) argument
1951 register int mode; local
2146 subexcept(Sfio_t* sp,register int mode, void *data, Sfdisc_t* handle) argument
2327 sh_iogetiop(int fd, int mode) argument
[all...]
H A Dmacro.c146 * If <mode> greater than 1 file expansion is performed if the result
148 * If <mode> negative, than expansion rules for assignment are applied.
150 char *sh_mactrim(Shell_t *shp, char *str, register int mode) argument
157 mp->arith = (mode==3);
160 mp->pattern = (mode==1||mode==2);
163 if(mode<0)
164 mp->assign = -mode;
175 if(mode==2)
179 if((mode
1031 register int dolg=0, mode=0; local
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvldc.c63 static int vldc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode,
1102 /* validate mode */
1124 D1("vldc_set_ldc_mode: vport status %d, mode %d\n",
1133 attr.mode = vport->ldc_mode;
1195 int mode)
1202 if (ddi_copyin(arg, &copy_info, sizeof (copy_info), mode) == -1) {
1240 rv = ddi_copyout(vport->cookie_buf, src_addr, copy_size, mode);
1253 if (ddi_copyout(&copy_info, arg, sizeof (copy_info), mode) != 0) {
1263 int mode)
1270 if (ddi_copyin(arg, &copy_info, sizeof (copy_info), mode) !
1194 i_vldc_ioctl_read_cookie(vldc_port_t *vport, int vldc_instance, void *arg, int mode) argument
1262 i_vldc_ioctl_write_cookie(vldc_port_t *vport, int vldc_instance, void *arg, int mode) argument
1331 i_vldc_ioctl_opt_op(vldc_port_t *vport, vldc_t *vldcp, void *arg, int mode) argument
1425 vldc_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_vops.c217 smb_vop_open(vnode_t **vpp, int mode, cred_t *cred) argument
219 return (VOP_OPEN(vpp, mode, cred, &smb_ct));
223 smb_vop_close(vnode_t *vp, int mode, cred_t *cred) argument
225 (void) VOP_CLOSE(vp, mode, 1, (offset_t)0, cred, &smb_ct);
229 smb_vop_other_opens(vnode_t *vp, int mode) argument
231 return (((mode & FWRITE) && vn_has_other_opens(vp, V_WRITE)) ||
232 (((mode & FWRITE) == 0) && vn_is_opened(vp, V_WRITE)) ||
233 ((mode & FREAD) && vn_has_other_opens(vp, V_READ)) ||
234 (((mode & FREAD) == 0) && vn_is_opened(vp, V_READ)) ||
516 * This is a wrapper round VOP_ACCESS. VOP_ACCESS checks the given mode
525 smb_vop_access(vnode_t *vp, int mode, int flags, vnode_t *dir_vp, cred_t *cr) argument
1322 smb_vop_eaccess(vnode_t *vp, int *mode, int flags, vnode_t *dir_vp, cred_t *cr) argument
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dbscv.c926 * mode handling simpler.
1921 bscv_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cred, int *rvalp) argument
1977 * (FWRITE set in mode) for those ioctls which change lom
1980 if (!(mode & FWRITE)) {
1997 res = bscv_ioc_dogstate(ssp, arg, mode);
2001 res = bscv_prog(ssp, arg, mode);
2005 res = bscv_ioc_psustate(ssp, arg, mode);
2009 res = bscv_ioc_fanstate(ssp, arg, mode);
2013 res = bscv_ioc_fledstate(ssp, arg, mode);
2017 res = bscv_ioc_ledstate(ssp, arg, mode);
2077 bscv_ioc_dogstate(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2104 bscv_ioc_psustate(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2136 bscv_ioc_fanstate(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2167 bscv_ioc_fledstate(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2194 bscv_ioc_ledstate(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2271 bscv_ioc_info(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2311 bscv_ioc_mread(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2348 bscv_ioc_volts(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2374 bscv_ioc_stats(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2398 bscv_ioc_temp(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2440 bscv_ioc_cons(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2470 bscv_ioc_eventlog2(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2598 bscv_ioc_info2(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2670 bscv_ioc_test(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2743 bscv_ioc_mprog2(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
2817 bscv_ioc_mread2(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
4284 bscv_prog(bscv_soft_state_t *ssp, intptr_t arg, int mode) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb2.c543 ** mode -- File permisions for a created database.
566 smdb_db_open(database, db_name, mode, mode_mask, sff, type, user_info, db_params)
569 int mode;
608 bitset(mode, O_CREAT))
611 result = smdb_lock_file(&lock_fd, db_name, mode, sff,
618 mode |= O_TRUNC;
619 mode &= ~(O_CREAT|O_EXCL);
638 if (bitset(O_CREAT, mode))
640 if (bitset(O_TRUNC, mode))
642 if (mode
[all...]
/illumos-gate/usr/src/cmd/cdrw/
H A Ddevice.c50 * Old sun drives have a vendor specific mode page for setting/getting speed.
171 (void) printf("Could not read mode page 2A! \n");
547 * the first device found depending on the mode argument.
548 * possible mode values are:
554 scan_for_cd_device(int mode, cd_device **found) argument
565 TRACE(traceall_msg("scan_for_cd_devices (mode=%d) called\n", mode));
567 if (mode) {
598 if ((writers_found == 1) && (mode != SCAN_LISTDEVS)) {
602 } else if ((mode
728 write_next_track(int mode, bstreamhandle h) argument
[all...]
/illumos-gate/usr/src/uts/common/sys/fibre-channel/impl/
H A Dfp.h288 static int fp_ioctl(dev_t dev, int cmd, intptr_t data, int mode,
360 static int fp_send_rnid(fc_local_port_t *port, intptr_t data, int mode,
362 static int fp_get_rnid(fc_local_port_t *port, intptr_t data, int mode,
364 static int fp_set_rnid(fc_local_port_t *port, intptr_t data, int mode,
372 static int fp_fciocmd(fc_local_port_t *port, intptr_t data, int mode,
374 static int fp_copyout(void *from, void *to, size_t len, int mode);
375 static int fp_fcio_copyout(fcio_t *fcio, intptr_t data, int mode);
377 static int fp_fillout_p2pmap(fc_local_port_t *port, fcio_t *fcio, int mode);
379 static int fp_fillout_loopmap(fc_local_port_t *port, fcio_t *fcio, int mode);
/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/
H A Dssc100.c296 ssc100_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, argument
329 sizeof (i2c_port_t), mode) != DDI_SUCCESS) {
345 sizeof (i2c_port_t), mode) != DDI_SUCCESS) {
357 sizeof (uint8_t), mode) != DDI_SUCCESS) {
374 sizeof (i2c_bit_t), mode) != DDI_SUCCESS) {
404 sizeof (i2c_bit_t), mode) != DDI_SUCCESS) {
413 sizeof (i2c_bit_t), mode) != DDI_SUCCESS) {
452 sizeof (i2c_reg_t), mode) != DDI_SUCCESS) {
463 sizeof (i2c_reg_t), mode) != DDI_SUCCESS) {

Completed in 1898 milliseconds

<<21222324252627282930>>