/illumos-gate/usr/src/tools/smatch/src/ |
H A D | evaluate.c | 55 return expr && valid_type(expr->ctype); in valid_expr_type() 86 …addr->ctype = &lazy_ptr_ctype; /* Lazy evaluation: we need to do a proper job if somebody does &sy… in evaluate_symbol_expression() 94 expr->ctype = sym; in evaluate_symbol_expression() 108 sym->ctype.alignment = 1; in evaluate_string() 110 sym->ctype.modifiers = MOD_STATIC; in evaluate_string() 111 sym->ctype.base_type = array; in evaluate_string() 114 initstr->ctype = sym; in evaluate_string() 119 array->ctype.alignment = 1; in evaluate_string() 120 array->ctype.modifiers = MOD_STATIC; in evaluate_string() 121 array->ctype.base_type = &char_ctype; in evaluate_string() [all …]
|
H A D | symbol.c | 51 if (sym->ctype.modifiers & MOD_INLINE) { in access_symbol() 101 if (sym->ctype.alignment > info->max_align) in lay_out_union() 102 info->max_align = sym->ctype.alignment; in lay_out_union() 114 sym = sym->ctype.base_type; in bitfield_base_size() 116 sym = sym->ctype.base_type; in bitfield_base_size() 132 if (sym->ctype.alignment > info->max_align) in lay_out_struct() 133 info->max_align = sym->ctype.alignment; in lay_out_struct() 148 align_bit_mask = bytes_to_bits(sym->ctype.alignment) - 1; in lay_out_struct() 165 sym->ctype.base_type->bit_offset = bit_offset; in lay_out_struct() 198 if (!sym->ctype.alignment) in examine_struct_union_type() [all …]
|
H A D | parse.c | 621 sym->ctype.modifiers = ptr->modifiers; in init_parser() 622 sym->ctype.base_type = ptr->type; in init_parser() 673 static void apply_ctype(struct position pos, struct ctype *thistype, struct ctype *ctype); 677 struct symbol *ctype; in apply_modifiers() local 680 ctype = ctx->mode->to_mode(ctx->ctype.base_type); in apply_modifiers() 681 if (!ctype) in apply_modifiers() 683 show_typename(ctx->ctype.base_type)); in apply_modifiers() 685 ctx->ctype.base_type = ctype; in apply_modifiers() 689 static struct symbol * alloc_indirect_symbol(struct position pos, struct ctype *ctype, int type) in alloc_indirect_symbol() argument 693 sym->ctype.base_type = ctype->base_type; in alloc_indirect_symbol() [all …]
|
H A D | symbol.h | 100 struct ctype { struct 109 struct ctype ctype; argument 183 struct ctype ctype; member 301 extern const char * type_difference(struct ctype *c1, struct ctype *c2, 327 extern const char *builtin_ctypename(struct ctype *ctype); 335 static inline int valid_type(const struct symbol *ctype) in valid_type() argument 337 return ctype && ctype != &bad_ctype; in valid_type() 342 return examine_symbol_type(sym->ctype.base_type); in get_base_type() 353 type = type->ctype.base_type; in is_int_type() 355 type = type->ctype.base_type; in is_int_type() [all …]
|
H A D | expand.c | 70 return (sym->ctype.modifiers & (MOD_STATIC | MOD_EXTERN)) ? 2 : 1; in expand_symbol_expression() 75 int no_expand = expr->ctype->ctype.modifiers & MOD_UNSIGNED; in get_longlong() 76 long long mask = 1ULL << (expr->ctype->bit_size - 1); in get_longlong() 156 if (!(newtype->ctype.modifiers & MOD_LONGLONG) && \ in cast_value() 157 !(newtype->ctype.modifiers & MOD_LONGLONGLONG)) { in cast_value() 158 if ((newtype->ctype.modifiers & MOD_LONG)) in cast_value() 166 static void warn_shift_count(struct expression *expr, struct symbol *ctype, long long count) in warn_shift_count() argument 174 if (ctype->type == SYM_NODE) in warn_shift_count() 175 ctype = ctype->ctype.base_type; in warn_shift_count() 179 warning(expr->pos, "shift too big (%llu) for type %s", count, show_typename(ctype)); in warn_shift_count() [all …]
|
H A D | show-parse.c | 77 sym->bit_size, sym->ctype.alignment, in do_debug_symbol() 78 modifier_string(sym->ctype.modifiers), show_ident(sym->ident), in do_debug_symbol() 79 show_as(sym->ctype.as), in do_debug_symbol() 83 FOR_EACH_PTR(sym->ctype.contexts, context) { in do_debug_symbol() 100 do_debug_symbol(sym->ctype.base_type, indent+2); in do_debug_symbol() 170 …printf("\t%s:%d:%ld at offset %ld.%d", show_ident(sym->ident), sym->bit_size, sym->ctype.alignment… in show_struct_member() 283 const char *builtin_ctypename(struct ctype *ctype) in builtin_ctypename() argument 288 if (&typenames[i].sym->ctype == ctype) in builtin_ctypename() 337 mod = sym->ctype.modifiers; in do_show_type() 338 as = sym->ctype.as; in do_show_type() [all …]
|
H A D | linearize.c | 30 static pseudo_t add_binary_op(struct entrypoint *ep, struct symbol *ctype, int op, pseudo_t left, p… 31 static pseudo_t add_setval(struct entrypoint *ep, struct symbol *ctype, struct expression *val); 588 if (sym->ctype.modifiers & (MOD_EXTERN | MOD_STATIC | MOD_ADDRESSABLE)) in show_entry() 946 base = base->ctype.base_type; in bitfield_base_type() 948 return base->ctype.base_type; in bitfield_base_type() 957 struct symbol *ctype = expr->ctype; in linearize_address_gen() local 959 if (!ctype) in linearize_address_gen() 961 ad->type = ctype; in linearize_address_gen() 982 insn->is_volatile = ad->type && (ad->type->ctype.modifiers & MOD_VOLATILE); in add_load() 998 store->is_volatile = ad->type && (ad->type->ctype.modifiers & MOD_VOLATILE); in add_store() [all …]
|
H A D | sparse-llvm.c | 32 return symbol_type(sym->ctype.base_type); in func_return_type() 44 struct symbol *arg_sym = arg->ctype.base_type; in sym_func_type() 57 base_type = sym->ctype.base_type; in sym_array_type() 119 if (is_void_type(sym->ctype.base_type)) in sym_ptr_type() 122 type = symbol_type(sym->ctype.base_type); in sym_ptr_type() 181 return symbol_type(sym->ctype.base_type); in symbol_type() 192 ret = symbol_type(sym->ctype.base_type); in symbol_type() 242 if (sym->ctype.modifiers & MOD_STATIC) in data_linkage() 250 if (sym->ctype.modifiers & MOD_STATIC) in function_linkage() 355 static LLVMValueRef val_to_value(unsigned long long val, struct symbol *ctype) in val_to_value() argument [all …]
|
H A D | compile-i386.c | 116 struct symbol *ctype; member 195 struct symbol *ctype, const char *comment); 331 return get_regclass_bits(expr->ctype->bit_size); in get_regclass() 379 emit_move(value, reg, value->ctype, "reload register"); in get_reg_value() 807 struct symbol *base_type = sym->ctype.base_type; in emit_func_pre() 859 if ((sym->ctype.modifiers & MOD_STATIC) == 0) in emit_func_post() 969 struct symbol *base_type = sym->ctype.base_type; in emit_initializer() 1052 struct symbol *base_type = sym->ctype.base_type; in emit_array() 1062 emit_object_pre(show_ident(sym->ident), sym->ctype.modifiers, in emit_array() 1063 sym->ctype.alignment, in emit_array() [all …]
|
H A D | smatch_unknown_value.c | 45 .ctype = &llong_ctype, 50 .ctype = &llong_ctype, 55 fake_fn_symbol.ctype.base_type = &llong_ctype; in initialize_local_variables() 56 fake_node_symbol.ctype.base_type = &fake_fn_symbol; in initialize_local_variables()
|
H A D | builtin.c | 35 expr->ctype = &int_ctype; in evaluate_to_int_const_expr() 80 sym = expr->fn->ctype; in eval_args() 214 switch (expr->ctype->bit_size) { in expand_bswap() 241 if (!is_float_type(arg->ctype)) { in evaluate_fp_unop() 243 show_ident(expr->fn->ctype->ident)); in evaluate_fp_unop() 264 if (!arg || !(type = arg->ctype)) in evaluate_overflow_gen() 270 type = type->ctype.base_type; in evaluate_overflow_gen() 275 type = type->ctype.base_type; in evaluate_overflow_gen() 280 type = type->ctype.base_type; in evaluate_overflow_gen() 283 if (type->ctype.base_type != &int_type || type == &bool_ctype) in evaluate_overflow_gen() [all …]
|
H A D | dissect.c | 84 int wptr = is_ptr(type) && !(type->ctype.modifiers & MOD_CONST); in u_lval() 95 if (!type->ctype.base_type) in fix_mode() 127 sym.ctype.base_type = &bad_ctype; in no_member() 136 struct symbol *ret = mem->ctype.base_type; in report_member() 169 sym->ctype.modifiers = MOD_EXTERN; in expr_symbol() 173 if (!sym->ctype.base_type) in expr_symbol() 174 sym->ctype.base_type = &bad_ctype; in expr_symbol() 215 while ((base = node->ctype.base_type) != NULL) in examine_sym_node() 218 node->ctype.base_type = in examine_sym_node() 254 return sym->ctype.base_type // builtin_fn_type in base_type() [all …]
|
H A D | c2xml.c | 152 if ((sym->ctype.modifiers & 1<<i) && modifiers[i]) in examine_modifiers() 163 newNumProp(node, "alignment", sym->ctype.alignment); in examine_layout() 188 if (sym->ctype.base_type) { in examine_symbol() 189 if ((base = builtin_typename(sym->ctype.base_type)) == NULL) { in examine_symbol() 190 if (!sym->ctype.base_type->aux) { in examine_symbol() 191 examine_symbol(sym->ctype.base_type, root_node); in examine_symbol() 194 xmlGetProp((xmlNodePtr)sym->ctype.base_type->aux, BAD_CAST "id")); in examine_symbol()
|
/illumos-gate/usr/src/cmd/localedef/ |
H A D | ctype.c | 42 int32_t ctype; member 77 ctn->ctype |= (_ISUPPER | _ISALPHA | _ISGRAPH | _ISPRINT); in add_ctype_impl() 80 ctn->ctype |= (_ISLOWER | _ISALPHA | _ISGRAPH | _ISPRINT); in add_ctype_impl() 83 ctn->ctype |= (_ISALPHA | _ISGRAPH | _ISPRINT); in add_ctype_impl() 86 ctn->ctype |= (_ISDIGIT | _ISGRAPH | _ISPRINT | _ISXDIGIT); in add_ctype_impl() 89 ctn->ctype |= _ISSPACE; in add_ctype_impl() 92 ctn->ctype |= _ISCNTRL; in add_ctype_impl() 95 ctn->ctype |= (_ISGRAPH | _ISPRINT); in add_ctype_impl() 98 ctn->ctype |= _ISPRINT; in add_ctype_impl() 101 ctn->ctype |= (_ISPUNCT | _ISGRAPH | _ISPRINT); in add_ctype_impl() [all …]
|
/illumos-gate/usr/src/test/libc-tests/cfg/symbols/ |
H A D | ctype_h.cfg | 17 # Definitions found in ctype.h 23 type | locale_t | ctype.h | -ALL +SUSv4+ 32 func | isalnum | int | int | ctype.h | +ALL 33 func | isalpha | int | int | ctype.h | +ALL 34 func | isascii | int | int | ctype.h | -ALL +XPG3+ 35 func | isblank | int | int | ctype.h | -ALL +C99+ 36 func | iscntrl | int | int | ctype.h | +ALL 37 func | isdigit | int | int | ctype.h | +ALL 38 func | isgraph | int | int | ctype.h | +ALL 39 func | islower | int | int | ctype.h | +ALL [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regclass.c | 35 regclass_t ctype; member 108 static Ctype_t ctype[] = variable 155 static int Is_wc_1(int c) { return iswctype(c, ctype[CTYPES+0].wtype); } in Is_wc_1() 156 static int Is_wc_2(int c) { return iswctype(c, ctype[CTYPES+1].wtype); } in Is_wc_2() 157 static int Is_wc_3(int c) { return iswctype(c, ctype[CTYPES+2].wtype); } in Is_wc_3() 158 static int Is_wc_4(int c) { return iswctype(c, ctype[CTYPES+3].wtype); } in Is_wc_4() 159 static int Is_wc_5(int c) { return iswctype(c, ctype[CTYPES+4].wtype); } in Is_wc_5() 160 static int Is_wc_6(int c) { return iswctype(c, ctype[CTYPES+5].wtype); } in Is_wc_6() 161 static int Is_wc_7(int c) { return iswctype(c, ctype[CTYPES+6].wtype); } in Is_wc_7() 162 static int Is_wc_8(int c) { return iswctype(c, ctype[CTYPES+7].wtype); } in Is_wc_8() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | valid_cksumtype.c | 31 krb5_c_valid_cksumtype(krb5_cksumtype ctype) in krb5_c_valid_cksumtype() argument 36 if (krb5_cksumtypes_list[i].ctype == ctype) in krb5_c_valid_cksumtype() 44 valid_cksumtype(krb5_cksumtype ctype) in valid_cksumtype() argument 46 return krb5_c_valid_cksumtype (ctype); in valid_cksumtype()
|
H A D | coll_proof_cksum.c | 31 krb5_c_is_coll_proof_cksum(krb5_cksumtype ctype) in krb5_c_is_coll_proof_cksum() argument 36 if (krb5_cksumtypes_list[i].ctype == ctype) in krb5_c_is_coll_proof_cksum() 47 is_coll_proof_cksum(krb5_cksumtype ctype) in is_coll_proof_cksum() argument 49 return krb5_c_is_coll_proof_cksum (ctype); in is_coll_proof_cksum()
|
H A D | keyed_cksum.c | 32 krb5_c_is_keyed_cksum(krb5_cksumtype ctype) in krb5_c_is_keyed_cksum() argument 37 if (krb5_cksumtypes_list[i].ctype == ctype) { in krb5_c_is_keyed_cksum() 53 is_keyed_cksum(krb5_cksumtype ctype) in is_keyed_cksum() argument 55 return krb5_c_is_keyed_cksum (ctype); in is_keyed_cksum()
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | tt.c | 19 ctype(int il, int ic) in ctype() function 39 return(c<ncol && ctype(i,c)=='s'); in fspan() 46 if (ctype(i,c) != 's') return(0); in lspan() 48 if (c < ncol && ctype(i,c)== 's') in lspan() 50 for(k=0; ctype(i,--c) == 's'; k++); in lspan() 59 for(k=1; c<ncol && ctype(i,c)=='s'; k++) in ctspan() 98 t = ctype(i,c); in thish()
|
H A D | t5.c | 86 switch(ctype(nlin,icol)) /* numerical or alpha, subcol */ in gettbl() 98 while (ctype(nlin,icol+1)== 's') /* spanning */ in gettbl() 124 switch(ctype(il,c)) in nodata() 137 k = ctype(lin,0); in oneh() 140 if (k != ctype(lin,icol)) in oneh() 185 if (ifform==0 && ctype(ir,ij)=='^') return(1); in vspand()
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_string.c | 156 return (current_codepage[c & mask].ctype & CODEPAGE_ISUPPER); in smb_isupper() 169 return (current_codepage[c & mask].ctype & CODEPAGE_ISLOWER); in smb_islower() 370 unicode[b].ctype = CODEPAGE_ISNONE; in smb_unicode_init() 380 switch (a_unicode[a].ctype) { in smb_unicode_init() 385 unicode[b].ctype = CODEPAGE_ISNONE; in smb_unicode_init() 395 unicode[b].ctype = CODEPAGE_ISNONE; in smb_unicode_init() 399 unicode[b].ctype = CODEPAGE_ISUPPER; in smb_unicode_init() 410 unicode[b].ctype = CODEPAGE_ISNONE; in smb_unicode_init() 414 unicode[b].ctype = CODEPAGE_ISLOWER; in smb_unicode_init()
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | awk.def | 61 char ctype; /* CELL, BOOL, JUMP, etc. */ 62 char csub; /* subtype of ctype */ 142 #define isjump(n) (n->ctype == OJUMP) 143 #define isexit(n) (n->ctype == OJUMP && n->csub == JEXIT) 144 #define isbreak(n) (n->ctype == OJUMP && n->csub == JBREAK) 145 #define iscont(n) (n->ctype == OJUMP && n->csub == JCONT) 146 #define isnext(n) (n->ctype == OJUMP && n->csub == JNEXT) 149 #define istrue(n) (n->ctype == OBOOL && n->csub == BTRUE) 150 #define istemp(n) (n->ctype == OCELL && n->csub == CTEMP) 151 #define isfld(n) (!donefld && n->csub==CFLD && n->ctype==OCELL && \ [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/backend/ |
H A D | struct.c | 1 struct ctype { struct 8 struct ctype ctype; member
|
/illumos-gate/usr/src/cmd/diskinfo/ |
H A D | diskinfo.c | 283 char *vid, *pid, *serial, *opath, *ctype, *pctype, *c; in enumerate_disks() local 332 ctype = NULL; in enumerate_disks() 339 nvlist_query_string(cattrs, DM_CTYPE, &ctype); in enumerate_disks() 340 ctype = strdup(ctype); in enumerate_disks() 343 if (ctype != NULL) { in enumerate_disks() 344 for (c = ctype; *c != '\0'; c++) in enumerate_disks() 346 pctype = ctype; in enumerate_disks() 460 free(ctype); in enumerate_disks()
|