/third_party/ltp/lib/ |
H A D | tst_res.c | 107 static void tst_condense(int tnum, int ttype, const char *tmesg); 108 static void tst_print(const char *tcid, int tnum, int ttype, const char *tmesg); 151 const char *strttype(int ttype) in strttype() argument 162 PAIR_LOOKUP(ttype_pairs, TTYPE_RESULT(ttype)); in strttype() 168 static void tst_res__(const char *file, const int lineno, int ttype, in tst_res__() argument 175 int ttype_result = TTYPE_RESULT(ttype); in tst_res__() 182 * Save the test result type by ORing ttype into the current exit in tst_res__() 197 tst_print(TCID, 0, ttype, tmesg); in tst_res__() 210 tst_condense(tst_count + 1, ttype, tmesg); in tst_res__() 213 tst_print(TCID, tst_count + 1, ttype, tmes in tst_res__() 223 tst_condense(int tnum, int ttype, const char *tmesg) tst_condense() argument 277 tst_print(const char *tcid, int tnum, int ttype, const char *tmesg) tst_print() argument 483 tst_brk__(const char *file, const int lineno, int ttype, void (*func)(void), const char *arg_fmt, ...) tst_brk__() argument 532 tst_resm_(const char *file, const int lineno, int ttype, const char *arg_fmt, ...) tst_resm_() argument 548 tst_resm_hexd_(const char *file, const int lineno, int ttype, const void *buf, size_t size, const char *arg_fmt, ...) tst_resm_hexd_() argument 587 tst_brkm__(const char *file, const int lineno, int ttype, void (*func)(void), const char *arg_fmt, ...) tst_brkm__() argument [all...] |
H A D | tst_test.c | 175 static void update_results(int ttype) in update_results() argument 180 switch (ttype) { in update_results() 199 static void print_result(const char *file, const int lineno, int ttype, in print_result() argument 208 switch (TTYPE_RESULT(ttype)) { in print_result() 228 tst_brk(TBROK, "Invalid ttype value %i", ttype); in print_result() 232 if (ttype & TERRNO) { in print_result() 237 if (ttype & TTERRNO) { in print_result() 242 if (ttype & TRERRNO) { in print_result() 252 ret = snprintf(str, size, "%s%s: %s", tst_ttype2color(ttype), in print_result() 291 tst_vres_(const char *file, const int lineno, int ttype, const char *fmt, va_list va) tst_vres_() argument 305 tst_cvres(const char *file, const int lineno, int ttype, const char *fmt, va_list va) tst_cvres() argument 329 tst_vbrk_(const char *file, const int lineno, int ttype, const char *fmt, va_list va) tst_vbrk_() argument 350 tst_res_(const char *file, const int lineno, int ttype, const char *fmt, ...) tst_res_() argument 360 tst_brk_(const char *file, const int lineno, int ttype, const char *fmt, ...) tst_brk_() argument [all...] |
H A D | tst_sys_conf.c | 57 int ttype, iret; in tst_sys_conf_save() local 71 ttype = (conf->flags & TST_SR_TBROK_MISSING) ? TBROK : TCONF; in tst_sys_conf_save() 72 tst_brk(ttype | TERRNO, "Path not found: %s", conf->path); in tst_sys_conf_save() 82 ttype = (conf->flags & TST_SR_TBROK_RO) ? TBROK : TCONF; in tst_sys_conf_save() 83 tst_brk(ttype | TERRNO, "Path is not writable: %s", conf->path); in tst_sys_conf_save()
|
H A D | safe_net.c | 111 int rval, ttype; in safe_socket() local 122 ttype = TCONF; in safe_socket() 125 ttype = TBROK; in safe_socket() 128 tst_brkm_(file, lineno, ttype | TERRNO, cleanup_fn, in safe_socket() 142 int rval, ttype; in safe_socketpair() local 151 ttype = TCONF; in safe_socketpair() 154 ttype = TBROK; in safe_socketpair() 157 tst_brkm_(file, lineno, ttype | TERRNO, NULL, in safe_socketpair()
|
H A D | tst_ansi_color.c | 13 char* tst_ttype2color(int ttype) in tst_ttype2color() argument 15 switch (TTYPE_RESULT(ttype)) { in tst_ttype2color()
|
/third_party/ltp/include/ |
H A D | tst_test.h | 51 void tst_res_(const char *file, const int lineno, int ttype, 55 #define tst_res(ttype, arg_fmt, ...) \ 57 TST_RES_SUPPORTS_TCONF_TFAIL_TINFO_TPASS_TWARN(!((TTYPE_RESULT(ttype) ?: TCONF) & \ 59 tst_res_(__FILE__, __LINE__, (ttype), (arg_fmt), ##__VA_ARGS__);\ 62 void tst_resm_hexd_(const char *file, const int lineno, int ttype, 66 #define tst_res_hexd(ttype, buf, size, arg_fmt, ...) \ 67 tst_resm_hexd_(__FILE__, __LINE__, (ttype), (buf), (size), \ 73 void tst_brk_(const char *file, const int lineno, int ttype, 77 #define tst_brk(ttype, arg_fmt, ...) \ 79 TST_BRK_SUPPORTS_ONLY_TCONF_TBROK(!((ttype) [all...] |
H A D | tst_res_flags.h | 16 #define TTYPE_RESULT(ttype) ((ttype) & TTYPE_MASK)
|
H A D | tst_ansi_color.h | 19 char* tst_ttype2color(int ttype);
|
/third_party/python/Tools/i18n/ |
H A D | pygettext.py | 327 def __call__(self, ttype, tstring, stup, etup, line): 330 ## print('ttype:', token.tok_name[ttype], 'tstring:', tstring, 332 self.__state(ttype, tstring, stup[0]) 334 def __waiting(self, ttype, tstring, lineno): 340 if ttype == tokenize.STRING and is_literal_string(tstring): 344 if ttype in (tokenize.COMMENT, tokenize.NL, tokenize.ENCODING): 348 if ttype == tokenize.NAME and tstring in ('class', 'def'): 351 if ttype == tokenize.NAME and tstring in opts.keywords: 354 if ttype [all...] |
/third_party/ltp/include/old/ |
H A D | test.h | 116 const char *strttype(int ttype); 118 void tst_resm_(const char *file, const int lineno, int ttype, 121 #define tst_resm(ttype, arg_fmt, ...) \ 122 tst_resm_(__FILE__, __LINE__, (ttype), \ 125 void tst_resm_hexd_(const char *file, const int lineno, int ttype, 128 #define tst_resm_hexd(ttype, buf, size, arg_fmt, ...) \ 129 tst_resm_hexd_(__FILE__, __LINE__, (ttype), (buf), (size), \ 132 void tst_brkm__(const char *file, const int lineno, int ttype,
|
H A D | ltp_priv.h | 44 void tst_vbrk_(const char *file, const int lineno, int ttype, 47 void tst_brk_(const char *file, const int lineno, int ttype, 50 void tst_vres_(const char *file, const int lineno, int ttype, 53 void tst_res_(const char *file, const int lineno, int ttype,
|
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
H A D | clock_nanosleep01.c | 36 #define TYPE_NAME(x) .ttype = x, .desc = #x 42 int ttype; /* test type (enum) */ member 141 if (tc->ttype & (BAD_TS_ADDR_REQ | BAD_TS_ADDR_REM) && in do_test() 148 if (tc->ttype & (SEND_SIGINT | BAD_TS_ADDR_REM)) in do_test() 154 if (tc->ttype == BAD_TS_ADDR_REQ) in do_test() 159 if (tc->ttype == BAD_TS_ADDR_REM) in do_test() 190 if (tc->ttype == SEND_SIGINT) { in do_test()
|
/third_party/ltp/testcases/kernel/kvm/ |
H A D | lib_host.c | 25 int ttype, valid_result[] = {TPASS, TFAIL, TBROK, TWARN, TINFO, TCONF}; in tst_kvm_validate_result() local 31 ttype = TTYPE_RESULT(value); in tst_kvm_validate_result() 34 if (ttype == valid_result[i]) in tst_kvm_validate_result() 113 int ttype; in tst_kvm_print_result() local 118 ttype = TTYPE_RESULT(result->result); in tst_kvm_print_result() 121 if (ttype == TBROK) in tst_kvm_print_result() 122 tst_brk_(file, result->lineno, ttype, "%s", result->message); in tst_kvm_print_result() 124 tst_res_(file, result->lineno, ttype, "%s", result->message); in tst_kvm_print_result()
|
/third_party/toybox/toys/pending/ |
H A D | telnet.c | 33 char *ttype; 168 str_iac(TT.ttype); in handle_negotiations() 208 (TT.ttype)? put_iac(3, IAC,WILL,TELOPT_TTYPE): in handle_ddww() 298 TT.ttype = getenv("TERM"); in telnet_main() 299 if(!TT.ttype) TT.ttype = ""; in telnet_main() 300 if(strlen(TT.ttype) > IACBUFSIZE-1) TT.ttype[IACBUFSIZE - 1] = '\0'; in telnet_main()
|
/third_party/ltp/testcases/kernel/fs/binfmt_misc/ |
H A D | binfmt_misc02.sh | 68 local ttype=$(echo "$1" | awk -F $delimiter '{print $3}') 79 [ "$ttype" = "E" ] && local tstring="This is test for extension" 80 [ "$ttype" = "M" ] && local tstring="This is test for magic"
|
/third_party/skia/modules/skottie/src/ |
H A D | Layer.cpp | 341 TransformType ttype) { in getTransform() 342 const auto cache_valid_mask = (1ul << ttype); in getTransform() 349 fTransformCache[ttype] = this->doAttachTransform(abuilder, cbuilder, ttype); in getTransform() 354 return fTransformCache[ttype]; in getTransform() 359 TransformType ttype) { in getParentTransform() 362 return parent_builder->getTransform(abuilder, cbuilder, ttype); in getParentTransform() 365 if (ttype == TransformType::k3D) { in getParentTransform() 379 TransformType ttype) { in doAttachTransform() 385 auto parent_transform = this->getParentTransform(abuilder, cbuilder, ttype); in doAttachTransform() 339 getTransform(const AnimationBuilder& abuilder, CompositionBuilder* cbuilder, TransformType ttype) getTransform() argument 357 getParentTransform(const AnimationBuilder& abuilder, CompositionBuilder* cbuilder, TransformType ttype) getParentTransform() argument 377 doAttachTransform(const AnimationBuilder& abuilder, CompositionBuilder* cbuilder, TransformType ttype) doAttachTransform() argument [all...] |
/third_party/selinux/libsepol/src/ |
H A D | assertion.c | 48 unsigned int stype, unsigned int ttype, in report_failure() 55 p->p_type_val_to_name[ttype], in report_failure() 61 p->p_type_val_to_name[ttype], in report_failure() 67 p->p_type_val_to_name[ttype], in report_failure() 147 unsigned int stype, unsigned int ttype, in report_assertion_extended_permissions() 156 ebitmap_t *tattr = &p->type_attr_map[ttype]; in report_assertion_extended_permissions() 202 p->p_type_val_to_name[ttype], in report_assertion_extended_permissions() 325 unsigned int stype, unsigned int ttype, in check_assertion_extended_permissions_avtab() 333 ebitmap_t *tattr = &p->type_attr_map[ttype]; in check_assertion_extended_permissions_avtab() 47 report_failure(sepol_handle_t *handle, policydb_t *p, const avrule_t *avrule, unsigned int stype, unsigned int ttype, const class_perm_node_t *curperm, uint32_t perms) report_failure() argument 145 report_assertion_extended_permissions(sepol_handle_t *handle, policydb_t *p, const avrule_t *avrule, unsigned int stype, unsigned int ttype, const class_perm_node_t *curperm, uint32_t perms, avtab_key_t *k, avtab_t *avtab) report_assertion_extended_permissions() argument 324 check_assertion_extended_permissions_avtab(avrule_t *avrule, avtab_t *avtab, unsigned int stype, unsigned int ttype, avtab_key_t *k, policydb_t *p) check_assertion_extended_permissions_avtab() argument
|
H A D | expand.c | 1495 static int exp_rangetr_helper(uint32_t stype, uint32_t ttype, uint32_t tclass, in exp_rangetr_helper() argument 1515 key.target_type = ttype; in exp_rangetr_helper() 1530 state->out->p_type_val_to_name[ttype - 1], in exp_rangetr_helper() 1541 rt->target_type = ttype; in exp_rangetr_helper() 1707 uint32_t ttype, class_perm_node_t * perms, in expand_terule_helper() 1724 avkey.target_type = ttype + 1; in expand_terule_helper() 1838 uint32_t stype, uint32_t ttype, in expand_avrule_helper() 1853 avkey.target_type = ttype + 1; in expand_avrule_helper() 3288 type_datum_t *ttype = p->type_val_to_struct[k->target_type - 1]; in expand_avtab_node() local 3299 if (stype && ttype in expand_avtab_node() 1703 expand_terule_helper(sepol_handle_t * handle, policydb_t * p, uint32_t * typemap, uint32_t specified, cond_av_list_t ** cond, cond_av_list_t ** other, uint32_t stype, uint32_t ttype, class_perm_node_t * perms, avtab_t * avtab, int enabled) expand_terule_helper() argument 1835 expand_avrule_helper(sepol_handle_t * handle, uint32_t specified, cond_av_list_t ** cond, uint32_t stype, uint32_t ttype, class_perm_node_t * perms, avtab_t * avtab, int enabled, av_extended_perms_t *extended_perms) expand_avrule_helper() argument 3410 type_datum_t *ttype = p->type_val_to_struct[k->target_type - 1]; expand_cond_av_node() local [all...] |
/third_party/selinux/checkpolicy/test/ |
H A D | dispol.c | 65 char *stype, *ttype, *tclass; in render_key() local 67 ttype = p->p_type_val_to_name[key->target_type - 1]; in render_key() 69 if (stype && ttype) in render_key() 70 fprintf(fp, "%s %s : %s ", stype, ttype, tclass); in render_key() 73 else if (ttype) in render_key() 74 fprintf(fp, "%u %s : %s ", key->source_type, ttype, tclass); in render_key() 349 display_id(p, fp, SYM_TYPES, ft->ttype - 1, ""); in filenametr_display()
|
/third_party/mesa3d/src/vulkan/runtime/ |
H A D | vk_sync_timeline.c | 44 vk_sync_timeline_type_validate(const struct vk_sync_timeline_type *ttype) in vk_sync_timeline_type_validate() argument 53 assert(!(req_features & ~ttype->point_sync_type->features)); in vk_sync_timeline_type_validate() 64 ASSERTED const struct vk_sync_timeline_type *ttype = in vk_sync_timeline_init() local 66 vk_sync_timeline_type_validate(ttype); in vk_sync_timeline_init() 141 const struct vk_sync_timeline_type *ttype = in vk_sync_timeline_alloc_point_locked() local 143 const struct vk_sync_type *point_sync_type = ttype->point_sync_type; in vk_sync_timeline_alloc_point_locked()
|
/third_party/python/Lib/xml/etree/ |
H A D | ElementPath.py | 78 ttype, tag = token 85 yield ttype, "{%s}%s" % (namespaces[prefix], uri) 89 yield ttype, "{%s}%s" % (default_namespace, tag) 95 parsing_attribute = ttype == '@'
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | evaluate.c | 2975 struct symbol *ttype, *stype; in evaluate_cast() local 3005 tclass = classify_type(ctype, &ttype); in evaluate_cast() 3014 if (ttype == &void_ctype) in evaluate_cast() 3033 if ((member = find_member_type(ttype, stype))) { in evaluate_cast() 3061 if (ttype != stype) { in evaluate_cast() 3062 if ((tclass & TYPE_RESTRICT) && restricted_value(source, ttype)) in evaluate_cast() 3064 show_typename(ttype)); in evaluate_cast() 3066 if (ttype == &bool_ctype) { in evaluate_cast() 3077 if ((ttype == &ulong_ctype || ttype in evaluate_cast() [all...] |
/third_party/ltp/testcases/lib/ |
H A D | test.sh | 48 local ttype="$1" 50 tst_flag2mask "$ttype"
|
/third_party/python/Lib/ |
H A D | cgitb.py | 88 for ttype, token, start, end, line in tokenize.generate_tokens(reader): 89 if ttype == tokenize.NEWLINE: break 90 if ttype == tokenize.NAME and token not in keyword.kwlist:
|
/third_party/ltp/testcases/kernel/syscalls/ppoll/ |
H A D | ppoll01.c | 32 #define TYPE_NAME(x) .ttype = x, .desc = #x 35 int ttype; /* test type (enum) */ member
|