Home
last modified time | relevance | path

Searched refs:maj (Results 1 – 25 of 75) sorted by relevance

123

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dstore_cred.c44 OM_uint32 maj = GSS_S_COMPLETE; local
87 maj = GSS_S_FAILURE;
92 maj = GSS_S_FAILURE;
98 maj = GSS_S_FAILURE;
109 return (maj);
125 OM_uint32 maj, maj2, min; local
172 maj = krb5_gss_inquire_cred(minor_status, input_cred,
174 if (GSS_ERROR(maj))
179 maj = GSS_S_CREDENTIALS_EXPIRED;
186 maj = GSS_S_NO_CRED;
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmkdev.c100 major_t maj; in __major() local
104 maj = (devnum >> ONBITSMINOR); in __major()
105 if (devnum == NODEV || maj > OMAXMAJ) { in __major()
112 maj = (devnum >> NBITSMINOR); in __major()
118 if (maj > MAXMAJ) { in __major()
126 maj = devnum >> NBITSMAJOR32; in __major()
127 if (devnum == NODEV || maj > MAXMAJ32) { in __major()
138 return (maj); in __major()
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevpolicy.c128 major_t maj; in loadprivs() local
131 if (modctl(MODGETMAJBIND, line, col - line + 1, &maj) in loadprivs()
158 char *maj; in loadpolicy() local
185 maj = strtok(line, "\n\t "); in loadpolicy()
187 if (maj == NULL) in loadpolicy()
193 if (strcmp(maj, "*") == 0) { in loadpolicy()
209 min = strchr(maj, ':'); in loadpolicy()
222 if (modctl(MODGETMAJBIND, maj, strlen(maj) + 1, in loadpolicy()
238 err_print(MINOR_TOO_LONG, maj, min); in loadpolicy()
/illumos-gate/usr/src/uts/common/io/
H A Dclone.c168 major_t maj; in clnopen() local
184 maj = etoimajor(emaj); /* get internal major of cloned driver */ in clnopen()
186 if (maj >= devcnt) in clnopen()
207 if (ddi_hold_installed_driver(maj) == NULL) in clnopen()
210 if ((str = STREAMSTAB(maj)) == NULL) { in clnopen()
211 ddi_rele_driver(maj); in clnopen()
230 ddi_rele_driver(maj); in clnopen()
242 dp = &devimpl[maj]; in clnopen()
322 ddi_rele_driver(maj); in clnopen()
H A Dl_strplumb.c57 kstr_open(major_t maj, minor_t min, vnode_t **vpp, int *fd) in kstr_open() argument
62 vp = makespecvp(makedevice(maj, min), VCHR); in kstr_open()
217 kstr_autopush(int op, major_t *maj, minor_t *min, minor_t *lastmin, in kstr_autopush() argument
249 push.sap_major = *maj; in kstr_autopush()
262 *maj = push.sap_major; in kstr_autopush()
268 *maj = push.sap_major; in kstr_autopush()
274 *maj = push.sap_major; in kstr_autopush()
296 push.sap_major = *maj; in kstr_autopush()
324 push.sap_major = *maj; in kstr_autopush()
H A Dvcons_conf.c75 major_t maj = (major_t)-1; in _NOTE() local
80 maj = ddi_driver_major(wc_dip); in _NOTE()
84 return (maj); in _NOTE()
/illumos-gate/usr/src/tools/protolist/
H A Dprotolist.c51 char maj[10], min[10]; in visit_dir() local
68 maj[0] = min[0] = symsrc[0] = '-'; in visit_dir()
69 maj[1] = min[1] = symsrc[1] = '\0'; in visit_dir()
106 (void) sprintf(maj, "%ld", major(st->st_rdev)); in visit_dir()
114 (void) sprintf(maj, "%ld", major(st->st_rdev)); in visit_dir()
146 inum, st->st_nlink, maj, min); in visit_dir()
/illumos-gate/usr/src/uts/common/sys/
H A Dconf.h83 #define STREAMSTAB(maj) (devopsp[(maj)] == NULL ? NULL : \ argument
84 (devopsp[(maj)]->devo_cb_ops == NULL ? \
86 devopsp[(maj)]->devo_cb_ops->cb_str))
87 #define CBFLAG(maj) (devopsp[(maj)]->devo_cb_ops->cb_flag) argument
H A Dautoconf.h245 #define NETWORK_DRV(maj) (devnamesp[(maj)].dn_flags & DN_NETWORK_DRIVER) argument
246 #define GLDV3_DRV(maj) (devnamesp[(maj)].dn_flags & DN_GLDV3_DRIVER) argument
247 #define NETWORK_PHYSDRV(maj) \ argument
248 (devnamesp[(maj)].dn_flags & DN_NETWORK_PHYSDRIVER)
H A Dmkdev.h98 #define makedev(maj, min) (__makedev(NEWDEV, maj, min)) argument
/illumos-gate/usr/src/test/util-tests/tests/cpio/
H A Dcpio_test.ksh61 typeset -i maj
77 maj=$1; min=$2
78 ((maj == 0 || min == 0)) && continue
79 ((maj > 0x7f || min > 0x7f)) && continue
85 typeset expect_cpio=$(printf "%d,%3d" $maj $min)
86 typeset expect_gtar=$(printf "%d,%d" $maj $min)
88 echo "Using device $DEVICE (major=$maj/minor=$min) as test subject"
/illumos-gate/usr/src/cmd/svc/rootisramdisk/
H A Drootisramdisk.c43 major_t maj; in root_is_ramdisk() local
50 maj = major(st.st_dev); in root_is_ramdisk()
52 fprintf(stderr, "major = %lu\n", (long unsigned)maj); in root_is_ramdisk()
55 if (modctl(MODGETNAME, driver, sizeof (driver), &maj) != 0) { in root_is_ramdisk()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dval_cred.c81 OM_uint32 maj; local
89 maj = krb5_gss_validate_cred_1(minor_status, cred_handle, context);
90 if (maj == 0) {
97 return maj;
/illumos-gate/usr/src/uts/common/os/
H A Ddriver.c606 major_t maj; in cdev_size() local
609 if ((maj = getmajor(dev)) >= devcnt) in cdev_size()
612 dnp = &(devnamesp[maj]); in cdev_size()
614 if (devopsp[maj] && devopsp[maj]->devo_cb_ops && in cdev_size()
615 !devopsp[maj]->devo_cb_ops->cb_str) { in cdev_size()
630 major_t maj; in cdev_Size() local
633 if ((maj = getmajor(dev)) >= devcnt) in cdev_Size()
636 dnp = &(devnamesp[maj]); in cdev_Size()
638 if (devopsp[maj] && devopsp[maj]->devo_cb_ops && in cdev_Size()
639 !devopsp[maj]->devo_cb_ops->cb_str) { in cdev_Size()
H A Ddevpolicy.c280 devpolicyent_bymajor(major_t maj) in devpolicyent_bymajor() argument
293 if (devpolicy[mid].t_major == maj) in devpolicyent_bymajor()
295 else if (maj < devpolicy[mid].t_major) in devpolicyent_bymajor()
312 major_t maj = getmajor(dev); in devpolicy_find() local
316 if (maj == clone_major) in devpolicy_find()
317 maj = getminor(dev); in devpolicy_find()
321 i = devpolicyent_bymajor(maj); in devpolicy_find()
327 res = NETWORK_DRV(maj) ? netpolicy : dfltpolicy; in devpolicy_find()
/illumos-gate/usr/src/cmd/cpio/
H A Dcpiostat.c41 major_t maj, min; in convert() local
43 maj = major(dev); /* get major number */ in convert()
47 return ((maj << 8) | min); in convert()
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_ddi.c81 makedevice(major_t maj, minor_t minor) in makedevice() argument
84 return (((dev_t)maj << NBITSMINOR64) | (minor & MAXMIN64)); in makedevice()
86 return (((dev_t)maj << NBITSMINOR) | (minor & MAXMIN)); in makedevice()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvio_util.h159 #define VIO_VER_IS_NEGOTIATED(ver, maj, min) \ argument
160 ((ver.major == (maj)) && (ver.minor == (min)))
162 boolean_t vio_ver_is_supported(vio_ver_t ver, uint16_t maj, uint16_t min);
/illumos-gate/usr/src/cmd/devinfo/
H A Ddevinfo.c132 major_t maj; in partinfo() local
141 maj = major(statbuf.st_rdev); in partinfo()
147 device, maj, min, in partinfo()
155 device, maj, min, in partinfo()
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_vtops.c155 major_t maj; in devvt_create_rvp() local
158 if ((maj = vt_wc_attached()) == (major_t)-1) in devvt_create_rvp()
177 vap->va_rdev = makedevice(maj, min); in devvt_create_rvp()
236 major_t maj; in devvt_create_snode() local
241 if ((maj = vt_wc_attached()) == (major_t)-1) in devvt_create_snode()
260 vap->va_rdev = makedevice(maj, min); in devvt_create_snode()
H A Dsdev_ptsops.c166 major_t maj; in devpts_create_rvp() local
180 maj = ptms_subsidiary_attached(); in devpts_create_rvp()
181 if (maj == (major_t)-1) { in devpts_create_rvp()
202 vap->va_rdev = makedevice(maj, min); in devpts_create_rvp()
/illumos-gate/usr/src/cmd/filesync/
H A Drename.c144 long maj, min; in find_oldname() local
151 maj = new->f_info[side].f_d_maj; in find_oldname()
173 if (((side == OPT_SRC) ? fp->f_s_maj : fp->f_d_maj) != maj) in find_oldname()
/illumos-gate/usr/src/cmd/modload/
H A Ddrvsubr.c617 int maj; in get_cached_n_to_m_file() local
656 maj = atoi(entry); in get_cached_n_to_m_file()
657 if (maj > size) in get_cached_n_to_m_file()
658 size = maj; in get_cached_n_to_m_file()
700 maj = atoi(entry); in get_cached_n_to_m_file()
701 if ((ptr->cached_file[maj] = strdup(drv)) == NULL) { in get_cached_n_to_m_file()
707 (void) strcpy(ptr->cached_file[maj], drv); in get_cached_n_to_m_file()
713 for (maj = 0; maj <= ptr->size; maj++) in get_cached_n_to_m_file()
714 free(ptr->cached_file[maj]); in get_cached_n_to_m_file()
758 int maj; in get_name_to_major_entry() local
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_dyndns.c434 display_stat(OM_uint32 maj, OM_uint32 min) in display_stat() argument
440 (void) gss_display_status(&min2, maj, GSS_C_GSS_CODE, GSS_C_NULL_OID, in display_stat()
1023 OM_uint32 min, maj, time_rec; in dyndns_establish_sec_ctx() local
1039 if ((maj = gss_import_name(&min, &service_buf, in dyndns_establish_sec_ctx()
1041 display_stat(maj, min); in dyndns_establish_sec_ctx()
1052 maj = gss_init_sec_context(&min, cred_handle, gss_context, in dyndns_establish_sec_ctx()
1056 if (maj != GSS_S_COMPLETE && maj != GSS_S_CONTINUE_NEEDED) { in dyndns_establish_sec_ctx()
1062 display_stat(maj, min); in dyndns_establish_sec_ctx()
1067 if ((maj == GSS_S_COMPLETE) && in dyndns_establish_sec_ctx()
1076 if ((maj == GSS_S_COMPLETE) && in dyndns_establish_sec_ctx()
[all …]
/illumos-gate/usr/src/uts/common/fs/specfs/
H A Dspecvnops.c319 major_t maj; in spec_size() local
334 maj = getmajor(dev); in spec_size()
335 if (maj >= devcnt) { in spec_size()
342 if (STREAMSTAB(maj)) { in spec_size()
454 major_t maj = getmajor(dev); in spec_clone() local
456 int sysclone = (maj == clone_major); in spec_clone()
470 if ((maj != newmaj) && !sysclone) { in spec_clone()
473 maj, newmaj); in spec_clone()
565 major_t maj; in spec_open() local
638 maj = getmajor(dev); in spec_open()
[all …]

123