/illumos-gate/usr/src/cmd/cron/ |
H A D | permit.c | 96 FILE *cap; in within() local 99 if ((cap = fopen(filename, "r")) == NULL) in within() 101 while (fgets(line, UNAMESIZE, cap) != NULL) { in within() 108 fclose(cap); in within() 112 fclose(cap); in within()
|
/illumos-gate/usr/src/uts/sun/io/dada/impl/ |
H A D | dcd_capabilities.c | 41 dcd_ifgetcap(struct dcd_address *ap, char *cap, int whom) 44 return (*A_TO_TRAN(ap)->tran_getcap)(ap, cap, whom); 48 dcd_ifsetcap(struct dcd_address *ap, char *cap, int value, int whom) 51 return (*A_TO_TRAN(ap)->tran_setcap)(ap, cap, value, whom);
|
/illumos-gate/usr/src/lib/libds/common/ |
H A D | libds.c | 359 if (cap == NULL || ops == NULL || cap->svc_id == NULL || in ds_register() 364 if (cap->nvers > VLDS_MAX_VERS) { in ds_register() 389 for (i = 0; i < cap->nvers; i++) { in ds_register() 390 vlds_vers[i].vlds_major = cap->vers[i].major; in ds_register() 391 vlds_vers[i].vlds_minor = cap->vers[i].minor; in ds_register() 394 vlds_cap.vlds_nver = cap->nvers; in ds_register() 437 dsp->dsl_service = strdup(cap->svc_id); in ds_register() 448 ds_svc_reg(ds_capability_t *cap, ds_ops_t *ops) in ds_svc_reg() argument 450 return (ds_register(cap, ops, 0)); in ds_svc_reg() 460 ds_clnt_reg(ds_capability_t *cap, ds_ops_t *ops) in ds_clnt_reg() argument [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/mdb/ |
H A D | Makefile | 43 format/tst.format-cap-E.mdb \ 44 format/tst.format-cap-E.mdb.out \ 45 format/tst.format-cap-G.mdb \ 46 format/tst.format-cap-G.mdb.out \ 47 format/tst.format-cap-J.mdb \ 48 format/tst.format-cap-J.mdb.out \ 49 format/tst.format-cap-P.mdb \ 50 format/tst.format-cap-P.mdb.out \ 51 format/tst.format-cap-R.mdb \ 52 format/tst.format-cap-R.mdb.out \
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | tidbit.c | 192 char *cap, in tidbit() argument 196 tidbit(term, cap, va_alist) in tidbit() 198 *cap; in tidbit() 318 va_start(ap, cap); 323 if (!cap || !*cap) 326 else if ((pp = wherelist(cap, boolnames))) { 345 } else if ((pp = wherelist(cap, numnames))) { 366 } else if ((pp = wherelist(cap, strnames))) {
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | cpucaps_impl.h | 83 #define CAP_ENABLED(cap) ((cap)->cap_value != 0) argument 84 #define CAP_DISABLED(cap) (!CAP_ENABLED(cap)) argument
|
/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/ |
H A D | ao_main.c | 62 uint64_t cap; in ao_ms_init() local 70 if (cmi_hdl_rdmsr(hdl, IA32_MSR_MCG_CAP, &cap) != CMI_SUCCESS) in ao_ms_init() 73 if (!(cap & MCG_CAP_CTL_P)) in ao_ms_init() 76 if ((cap & MCG_CAP_COUNT_MASK) != AMD_MCA_BANK_COUNT) { in ao_ms_init() 80 (u_longlong_t)cap & MCG_CAP_COUNT_MASK, in ao_ms_init()
|
/illumos-gate/usr/src/uts/intel/io/vmm/intel/ |
H A D | vtd.c | 71 volatile uint64_t cap; member 79 #define VTD_CAP_SAGAW(cap) (((cap) >> 8) & 0x1F) argument 80 #define VTD_CAP_ND(cap) ((cap) & 0x7) argument 81 #define VTD_CAP_CM(cap) (((cap) >> 7) & 0x1) argument 82 #define VTD_CAP_SPS(cap) (((cap) >> 34) & 0xF) argument 83 #define VTD_CAP_RWBF(cap) (((cap) >> 4) & 0x1) argument 147 nd = VTD_CAP_ND(vtdmap->cap); in vtd_max_domains() 265 if (VTD_CAP_RWBF(vtdmap->cap)) { in vtd_wbflush() 505 if (VTD_CAP_CM(vtdmap->cap) != 0) in vtd_init() 828 tmp &= VTD_CAP_SAGAW(vtdmap->cap); in vtd_create_domain() [all …]
|
H A D | vmx.h | 139 struct vmxcap cap[VM_MAXCPU]; member 157 vmx_cap_en(const struct vmx *vmx, enum vmx_caps cap) in vmx_cap_en() argument 159 return ((vmx->vmx_caps & cap) == cap); in vmx_cap_en()
|
/illumos-gate/usr/src/lib/scsi/plugins/smp/sas2/common/ |
H A D | sas2_functions.c | 66 uint_t cap; in sas2_rq_setframe() local 73 cap = smp_target_getcap(tp); in sas2_rq_setframe() 78 if (cap & SMP_TARGET_C_LONG_RESP) { in sas2_rq_setframe() 559 uint_t cap = smp_target_getcap(tp); in sas2_config_zone_perm_table_rq_len() local 562 if (cap & SMP_TARGET_C_ZG_256) in sas2_config_zone_perm_table_rq_len() 936 if (cap & SMP_TARGET_C_LONG_RESP) in smp_default_request_len() 941 if (cap & SMP_TARGET_C_LONG_RESP) in smp_default_request_len() 946 if (cap & SMP_TARGET_C_LONG_RESP) in smp_default_request_len() 960 if (cap & SMP_TARGET_C_LONG_RESP) in smp_default_request_len() 965 if (cap & SMP_TARGET_C_LONG_RESP) in smp_default_request_len() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sysconfig.c | 193 pgcnt_t cap, rss, free; in sysconfig() local 197 cap = btop(curproc->p_zone->zone_phys_mcap); in sysconfig() 198 if (cap > physinstalled) in sysconfig() 209 if (cap > rss) in sysconfig() 210 free = cap - rss; in sysconfig()
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | tgoto.c | 45 (tgoto)(const char *cap, int col, int row) 50 __m_trace("tgoto(%p = \"%s\", %d, %d)", cap, col, row); 53 str = tparm((char *)cap, (long) row, (long) col, 0L, 0L, 0L, 0L, 0L, 0L, 0L);
|
H A D | mvcur.c | 449 cost(cap, index, p1, p2) in cost() argument 450 char *cap; in cost() 453 cur_term->_move[index]._seq = cap; 455 if (cap == (char *) 0 || cap[0] == '\0') { 459 tparm(cap, (long) p1, (long) p2, 0, 0, 0, 0, 0, 0, 0), 463 if (cap == cursor_down && strchr(cap, '\n') != (char *) 0)
|
/illumos-gate/usr/src/cmd/captoinfo/ |
H A D | captoinfo.c | 160 if (((*codes)[0] == cap[0]) && ((*codes)[1] == cap[1])) in capsearch() 164 if (((*ocodes)[0] == cap[0]) && ((*ocodes)[1] == cap[1])) in capsearch() 615 char *cap; in addpadding() local 623 if (ispadchar(*cap)) { in addpadding() 797 char cap[2]; in handlema() local 807 cap[1] = '\0'; in handlema() 813 tpr(trace, cap); in handlema() 852 prchar(stderr, cap[0]); in handlema() 877 char *cap; in adddefaults() local 891 putstr("cr", cap); in adddefaults() [all …]
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/ |
H A D | parallel.c | 184 uint_t cap; in is_a_prnio() local 187 if (ioctl(fd, PRNIOC_GET_IFCAP, &cap) == -1) { in is_a_prnio() 191 if ((cap & PRN_1284_STATUS) == 0) { in is_a_prnio() 193 if (cap & PRN_BIDI) { in is_a_prnio() 194 cap &= ~PRN_BIDI; in is_a_prnio() 195 (void) ioctl(fd, PRNIOC_SET_IFCAP, &cap); in is_a_prnio()
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | cap.c | 224 Elf_cap_entry(Lm_list *lml, Cap *cap, int ndx, const char *str, size_t str_size, in Elf_cap_entry() argument 233 switch (cap->c_tag) { in Elf_cap_entry() 238 if (str && (cap->c_un.c_ptr < str_size)) { in Elf_cap_entry() 239 str += cap->c_un.c_ptr; in Elf_cap_entry() 245 str = conv_cap_val(cap->c_tag, cap->c_un.c_val, mach, 0, in Elf_cap_entry() 250 conv_cap_tag(cap->c_tag, 0, &inv_buf), str); in Elf_cap_entry()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | tcsearch.c | 46 _tcsearch(char *cap, short offsets[], char *names[], int size, int n) in _tcsearch() argument 53 cmp = ((n == 0) ? strcmp(cap, names[offsets[m]]) : in _tcsearch() 54 strncmp(cap, names[offsets[m]], n)); in _tcsearch()
|
H A D | tgoto.c | 50 tgoto(char *cap, int col, int row) in tgoto() argument 54 cp = tparm_p2(cap, row, col); in tgoto()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | pmap.c | 232 xdr_rmtcall_args(XDR *xdrs, struct rmtcallargs *cap) in xdr_rmtcall_args() argument 236 if (xdr_rpcprog(xdrs, &(cap->prog)) && in xdr_rmtcall_args() 237 xdr_rpcvers(xdrs, &(cap->vers)) && in xdr_rmtcall_args() 238 xdr_rpcproc(xdrs, &(cap->proc))) { in xdr_rmtcall_args() 240 if (!xdr_u_int(xdrs, &(cap->arglen))) in xdr_rmtcall_args() 243 if (!(*(cap->xdr_args))(xdrs, cap->args_ptr)) in xdr_rmtcall_args() 246 cap->arglen = position - argposition; in xdr_rmtcall_args() 248 if (!xdr_u_int(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
|
/illumos-gate/usr/src/uts/common/io/softmac/ |
H A D | softmac_capab.c | 375 dl_capability_ack_t *cap; in i_capab_ack() local 382 cap = (dl_capability_ack_t *)prim; in i_capab_ack() 383 if (cap->dl_sub_length == 0) in i_capab_ack() 387 if ((sizeof (*cap) + cap->dl_sub_length) > MBLKL(mp)) { in i_capab_ack() 392 sub = (dl_capability_sub_t *)((caddr_t)cap + cap->dl_sub_offset); in i_capab_ack() 393 end = (dl_capability_sub_t *)((caddr_t)cap + cap->dl_sub_length in i_capab_ack()
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_set.c | 371 if (arrows[i].cap && arrows[i].descr && in unterm() 372 strcmp(arrows[i].cap, arrows[i].descr)) in unterm() 373 addmac(arrows[i].cap, NOSTR, NOSTR, arrows); in unterm() 379 if (immacs[i].cap && immacs[i].descr && strcmp(immacs[i].cap, immacs[i].descr)) in unterm() 380 addmac(immacs[i].cap, NOSTR, NOSTR, immacs); in unterm()
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | mvcur.c | 436 cost(char *cap, int index, int p1, int p2) in cost() argument 438 cur_term->_move[index]._seq = cap; in cost() 440 if (cap == (char *) 0 || cap[0] == '\0') { in cost() 444 tparm(cap, (long) p1, (long) p2, 0, 0, 0, 0, 0, 0, 0), in cost() 447 if (cap == cursor_down && strchr(cap, '\n') != (char *) 0) in cost()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | cap.msg | 31 # Message file for elfedit 'cap' module 183 The cap:tag command is used to display or alter the\n\ 219 The cap:hw1 command is used to display or alter the\n\ 222 If cap:hw1 is called without arguments, the current\n\ 239 The cap:sf1 command is used to display or alter the\n\ 242 If cap:sf1 is called without arguments, the current\n\ 259 The cap:hw2 command is used to display or alter the\n\ 262 If cap:hw2 is called without arguments, the current\n\ 279 The cap:hw3 command is used to display or alter the\n\ 282 If cap:hw3 is called without arguments, the current\n\ [all …]
|
/illumos-gate/usr/src/cmd/pcieadm/ |
H A D | pcieadm_cfgspace.c | 3929 *versp = &cap->ppc_vers[0]; in pcieadm_cap_info_fixed() 5045 uint16_t cap; in pcieadm_cfgspace() local 5154 while (cap != 0 && cap != PCI_EINVAL8) { in pcieadm_cfgspace() 5166 cap &= PCI_CAP_PTR_MASK; in pcieadm_cfgspace() 5176 walk.pcw_capoff = cap; in pcieadm_cfgspace() 5197 cap = nextcap; in pcieadm_cfgspace() 5223 cap = PCIE_EXT_CAP; in pcieadm_cfgspace() 5225 while (cap != 0 && cap != PCI_EINVAL16) { in pcieadm_cfgspace() 5238 cap &= 0xffc; in pcieadm_cfgspace() 5260 walk.pcw_capoff = cap; in pcieadm_cfgspace() [all …]
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | plat_ecc_unum.c | 788 plat_capability_data_t *cap; in plat_ecc_capability_send() local 801 cap = (plat_capability_data_t *)wrapperp->ecc_msg_data; in plat_ecc_capability_send() 804 cap->capd_major_version = PLAT_ECC_CAP_VERSION_MAJOR; in plat_ecc_capability_send() 805 cap->capd_minor_version = PLAT_ECC_CAP_VERSION_MINOR; in plat_ecc_capability_send() 806 cap->capd_msg_type = PLAT_ECC_CAPABILITY_MESSAGE; in plat_ecc_capability_send() 807 cap->capd_msg_length = wrapperp->ecc_msg_len; in plat_ecc_capability_send() 810 cap->capd_capability = PLAT_ECC_CAPABILITY_DOMAIN_DEFAULT; in plat_ecc_capability_send() 816 (void) snprintf(cap->capd_solaris_version, ver_len, "%s %s", in plat_ecc_capability_send() 866 plat_ecc_capability_sc_set(uint32_t cap) in plat_ecc_capability_sc_set() argument 868 plat_ecc_capability_map_sc = cap; in plat_ecc_capability_sc_set() [all …]
|