| /openbsd-src/gnu/llvm/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_rtl_access.cpp | 20 AccessType typ) { in TryTraceMemoryAccess() argument 32 ev->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccess() 33 ev->is_atomic = !!(typ & kAccessAtomic); in TryTraceMemoryAccess() 45 evex->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccess() 46 evex->is_atomic = !!(typ & kAccessAtomic); in TryTraceMemoryAccess() 58 AccessType typ) { in TryTraceMemoryAccessRange() argument 68 ev->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccessRange() 69 ev->is_free = !!(typ & kAccessFree); in TryTraceMemoryAccessRange() 79 AccessType typ) { in TraceMemoryAccessRange() argument 80 if (LIKELY(TryTraceMemoryAccessRange(thr, pc, addr, size, typ))) in TraceMemoryAccessRange() [all …]
|
| H A D | tsan_shadow.h | 61 Shadow(FastState state, u32 addr, u32 size, AccessType typ) { in Shadow() argument 67 raw_ |= (!!(typ & kAccessAtomic) << kIsAtomicShift) | in Shadow() 68 (!!(typ & kAccessRead) << kIsReadShift) | in Shadow() 72 DCHECK_EQ(part_.is_read_, !!(typ & kAccessRead)); in Shadow() 84 void GetAccess(uptr *addr, uptr *size, AccessType *typ) const { in GetAccess() argument 91 if (typ) { in GetAccess() 92 *typ = part_.is_read_ ? kAccessRead : kAccessWrite; in GetAccess() 94 *typ |= kAccessAtomic; in GetAccess() 96 *typ |= kAccessFree; in GetAccess() 101 bool IsBothReadsOrAtomic(AccessType typ) const { in IsBothReadsOrAtomic() argument [all …]
|
| H A D | tsan_suppressions.cpp | 67 static const char *conv(ReportType typ) { in conv() argument 68 switch (typ) { in conv() 106 uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp) { in IsSuppressed() argument 111 const char *stype = conv(typ); in IsSuppressed() 125 uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp) { in IsSuppressed() argument 130 const char *stype = conv(typ); in IsSuppressed()
|
| H A D | tsan_rtl_report.cpp | 130 bool ShouldReport(ThreadState *thr, ReportType typ) { in ShouldReport() argument 140 switch (typ) { in ShouldReport() 158 ScopedReportBase::ScopedReportBase(ReportType typ, uptr tag) { in ScopedReportBase() argument 161 rep_->typ = typ; in ScopedReportBase() 181 AccessType typ; in AddMemoryAccess() local 182 s.GetAccess(&addr0, &size, &typ); in AddMemoryAccess() 188 mop->write = !(typ & kAccessRead); in AddMemoryAccess() 189 mop->atomic = typ & kAccessAtomic; in AddMemoryAccess() 346 ScopedReport::ScopedReport(ReportType typ, uptr tag) in ScopedReport() argument 347 : ScopedReportBase(typ, tag) {} in ScopedReport() [all …]
|
| /openbsd-src/lib/libform/ |
| H A D | fld_def.c | 87 _nc_Make_Argument(const FIELDTYPE *typ, va_list *ap, int *err) in _nc_Make_Argument() argument 91 if (typ != 0 && (typ->status & _HAS_ARGS) != 0) in _nc_Make_Argument() 94 if ((typ->status & _LINKED_TYPE) != 0) in _nc_Make_Argument() 100 p->left = _nc_Make_Argument(typ->left, ap, err); in _nc_Make_Argument() 101 p->right = _nc_Make_Argument(typ->right, ap, err); in _nc_Make_Argument() 111 assert(typ->makearg != (void *)0); in _nc_Make_Argument() 112 if (!(res = (TypeArgument *)typ->makearg(ap))) in _nc_Make_Argument() 134 _nc_Copy_Argument(const FIELDTYPE *typ, const TypeArgument *argp, int *err) in _nc_Copy_Argument() argument 138 if (typ != 0 && (typ->status & _HAS_ARGS) != 0) in _nc_Copy_Argument() 141 if ((typ->status & _LINKED_TYPE) != 0) in _nc_Copy_Argument() [all …]
|
| H A D | fld_newftyp.c | 126 free_fieldtype(FIELDTYPE *typ) in free_fieldtype() argument 128 T((T_CALLED("free_fieldtype(%p)"), (void *)typ)); in free_fieldtype() 130 if (!typ) in free_fieldtype() 133 if (typ->ref != 0) in free_fieldtype() 136 if (typ->status & _RESIDENT) in free_fieldtype() 139 if (typ->status & _LINKED_TYPE) in free_fieldtype() 141 if (typ->left) in free_fieldtype() 142 typ->left->ref--; in free_fieldtype() 143 if (typ->right) in free_fieldtype() 144 typ->right->ref--; in free_fieldtype() [all …]
|
| H A D | fld_ftchoice.c | 52 set_fieldtype_choice(FIELDTYPE *typ, in FORM_EXPORT() 59 (void *)typ, in FORM_EXPORT() 63 if (!typ || !next_choice || !prev_choice) in FORM_EXPORT() 66 SetStatus(typ, _HAS_CHOICE); in FORM_EXPORT() 68 typ->enum_next.onext = next_choice; in FORM_EXPORT() 69 typ->enum_prev.oprev = prev_choice; in FORM_EXPORT() 71 typ->next = next_choice; in FORM_EXPORT() 72 typ->prev = prev_choice; in FORM_EXPORT()
|
| H A D | frm_hook.c | 40 #define GEN_HOOK_SET_FUNCTION( typ, name ) \ argument 41 FORM_IMPEXP int NCURSES_API set_ ## typ ## _ ## name (FORM *form, Form_Hook func)\ 44 T((T_CALLED("set_" #typ"_"#name"(%p,%s)"), (void *) form, TR_FUNC_ARG(0, func)));\ 45 (Normalize_Form( form ) -> typ ## name) = func ;\ 50 #define GEN_HOOK_GET_FUNCTION( typ, name ) \ argument 51 FORM_IMPEXP Form_Hook NCURSES_API typ ## _ ## name ( const FORM *form )\ 53 T((T_CALLED(#typ "_" #name "(%p)"), (const void *) form));\ 54 returnFormHook( Normalize_Form( form ) -> typ ## name );\
|
| H A D | fld_arg.c | 66 set_fieldtype_arg(FIELDTYPE *typ, in FORM_EXPORT() 74 (void *)typ, in FORM_EXPORT() 79 if (typ != 0 && make_arg != (void *)0) in FORM_EXPORT() 81 SetStatus(typ, _HAS_ARGS); in FORM_EXPORT() 82 typ->makearg = make_arg; in FORM_EXPORT() 83 typ->copyarg = copy_arg; in FORM_EXPORT() 84 typ->freearg = free_arg; in FORM_EXPORT()
|
| H A D | fty_generic.c | 168 GenericArgument(const FIELDTYPE *typ, in GenericArgument() argument 173 if (typ != 0 && (typ->status & _HAS_ARGS) != 0 && err != 0 && argiterator != 0) in GenericArgument() 175 if (typ->status & _LINKED_TYPE) in GenericArgument() 182 p->left = GenericArgument(typ->left, argiterator, err); in GenericArgument() 183 p->right = GenericArgument(typ->right, argiterator, err); in GenericArgument() 191 assert(typ->genericarg != (void *)0); in GenericArgument() 192 if (typ->genericarg == 0) in GenericArgument() 200 !(res = (TypeArgument *)typ->genericarg(argp))) in GenericArgument()
|
| /openbsd-src/games/hack/ |
| H A D | def.rm.h | 83 #define IS_WALL(typ) ((typ) <= VWALL) argument 84 #define IS_ROCK(typ) ((typ) < POOL) /* absolutely nonaccessible */ argument 85 #define ACCESSIBLE(typ) ((typ) >= DOOR) /* good position */ argument 86 #define IS_ROOM(typ) ((typ) >= ROOM) /* ROOM or STAIRS */ argument 87 #define ZAP_POS(typ) ((typ) > DOOR) argument 108 unsigned typ:5; member
|
| H A D | hack.vault.c | 129 crm->typ = EGD->fakecorr[fcbeg].ftyp; in restfakecorr() 130 if(!crm->typ) crm->seen = 0; in restfakecorr() 184 if(levl[x][y].typ == CORR) goto fnd; in invault() 196 while(levl[x][y].typ == ROOM) { in invault() 244 EGD->fakecorr[0].ftyp = levl[x][y].typ; in invault() 245 levl[x][y].typ = DOOR; in invault() 253 int x,y,dx,dy,gx,gy,nx,ny,typ; in gd_move() local 273 if(!IS_WALL(typ = (crm = &levl[nx][ny])->typ) && typ != POOL) { in gd_move() 283 if(ACCESSIBLE(typ)) goto newpos; in gd_move() 284 crm->typ = (typ == SCORR) ? CORR : DOOR; in gd_move() [all …]
|
| H A D | hack.mklev.c | 135 levl[(int)xdnstair][(int)ydnstair].typ = STAIRS; in makelevel() 144 levl[(int)xupstair][(int)yupstair].typ = STAIRS; in makelevel() 374 if(levl[x][y].typ == DOOR || levl[x][y].typ == SDOOR) in finddpos() 389 if(levl[x-1][y].typ == DOOR || levl[x+1][y].typ == DOOR || in okdoor() 390 levl[x][y+1].typ == DOOR || levl[x][y-1].typ == DOOR || in okdoor() 391 levl[x-1][y].typ == SDOOR || levl[x+1][y].typ == SDOOR || in okdoor() 392 levl[x][y-1].typ == SDOOR || levl[x][y+1].typ == SDOOR || in okdoor() 393 (levl[x][y].typ != HWALL && levl[x][y].typ != VWALL) || in okdoor() 417 if(!IS_WALL(levl[x][y].typ)) /* avoid SDOORs with '+' as scrsym */ in dosdoor() 419 levl[x][y].typ = type; in dosdoor() [all …]
|
| H A D | hack.search.c | 77 for(lx = u.ux; (num = levl[lx-1][(int)u.uy].typ) && num != CORR; lx--) ; in findit() 78 for(hx = u.ux; (num = levl[hx+1][(int)u.uy].typ) && num != CORR; hx++) ; in findit() 79 for(ly = u.uy; (num = levl[(int)u.ux][ly-1].typ) && num != CORR; ly--) ; in findit() 80 for(hy = u.uy; (num = levl[(int)u.ux][hy+1].typ) && num != CORR; hy++) ; in findit() 84 if (levl[(int)zx][(int)zy].typ == SDOOR) { in findit() 85 levl[(int)zx][(int)zy].typ = DOOR; in findit() 88 } else if (levl[(int)zx][(int)zy].typ == SCORR) { in findit() 89 levl[(int)zx][(int)zy].typ = CORR; in findit() 123 if(levl[(int)x][(int)y].typ == SDOOR) { in dosearch() 125 levl[(int)x][(int)y].typ = DOOR; in dosearch() [all …]
|
| H A D | hack.zap.c | 291 if(room->typ == HWALL || in dozap() 292 room->typ == VWALL){ in dozap() 293 room->typ = ROOM; in dozap() 297 if(room->typ == HWALL || room->typ == VWALL || in dozap() 298 room->typ == SDOOR || room->typ == LDOOR){ in dozap() 299 room->typ = DOOR; in dozap() 302 if(room->typ == SCORR || !room->typ) { in dozap() 303 room->typ = CORR; in dozap() 375 int typ; in bhit() local 384 typ = levl[(int)bhitpos.x][(int)bhitpos.y].typ; in bhit() [all …]
|
| H A D | hack.mkmaze.c | 85 levl[x][y].typ = (x%2 && y%2) ? 0 : HWALL; in makemaz() 92 levl[x][y].typ = in makemaz() 117 switch(levl[x][y].typ) { in makemaz() 148 levl[(int)xupstair][(int)yupstair].typ = STAIRS; in makemaz() 158 levl[x][y].typ = ROOM; in walkfrom() 166 levl[x][y].typ = ROOM; in walkfrom() 188 if(x<3 || y<3 || x>COLNO-3 || y>ROWNO-3 || levl[x][y].typ != 0) in okay()
|
| H A D | hack.apply.c | 274 if(!ZAP_POS(levl[bchx][bchy].typ)) { in bchit() 364 } else if(!lev->typ || lev->typ == SCORR) { in dig() 365 lev->typ = CORR; in dig() 367 } else if(lev->typ == HWALL || lev->typ == VWALL in dig() 368 || lev->typ == SDOOR) { in dig() 369 lev->typ = xdnstair ? DOOR : ROOM; in dig() 378 if(IS_WALL(levl[dpx][dpy].typ)) { in dig() 451 (IS_ROCK(levl[rx][ry].typ) in use_pick_axe() 477 if(lev->typ == DOOR) in use_pick_axe() 480 else if(!IS_ROCK(lev->typ) in use_pick_axe()
|
| H A D | hack.read.c | 399 if((num = lev->typ) == 0) in doread() 402 lev->typ = CORR; in doread() 406 lev->typ = DOOR; in doread() 518 levl[(int)u.ux][(int)u.uy].typ == CORR || in litroom() 537 if (levl[(int)u.ux][(int)u.uy].typ == CORR) { in litroom() 554 if (levl[(int)u.ux][(int)u.uy].typ == DOOR) { in litroom() 555 if (IS_ROOM(levl[(int)u.ux][(int)u.uy+1].typ)) in litroom() 557 else if(IS_ROOM(levl[(int)u.ux][u.uy-1].typ)) in litroom() 560 if(IS_ROOM(levl[u.ux+1][(int)u.uy].typ)) in litroom() 562 else if(IS_ROOM(levl[u.ux-1][(int)u.uy].typ)) in litroom() [all …]
|
| H A D | hack.c | 172 IS_ROCK(levl[u.ux+u.dx][u.uy+u.dy].typ)); in domove() 221 if(IS_ROCK(tmpr->typ) || in domove() 222 (u.dx && u.dy && (tmpr->typ == DOOR || ust->typ == DOOR))){ in domove() 231 if (isok(rx,ry) && !IS_ROCK(levl[(int)rx][(int)ry].typ) && in domove() 232 (levl[(int)rx][(int)ry].typ != DOOR || !(u.dx && u.dy)) && in domove() 252 if (levl[(int)rx][(int)ry].typ == POOL) { in domove() 253 levl[(int)rx][(int)ry].typ = ROOM; in domove() 278 (!u.dx || !u.dy || (IS_ROCK(levl[(int)u.ux][u.uy+u.dy].typ) in domove() 279 && IS_ROCK(levl[u.ux+u.dx][(int)u.uy].typ)))){ in domove() 286 if(u.dx && u.dy && IS_ROCK(levl[(int)u.ux][u.uy+u.dy].typ) && in domove() [all …]
|
| /openbsd-src/lib/libmenu/ |
| H A D | m_hook.c | 46 #define GEN_HOOK_SET_FUNCTION( typ, name ) \ argument 47 MENU_EXPORT(int) NCURSES_API set_ ## typ ## _ ## name (MENU *menu, Menu_Hook func )\ 50 T((T_CALLED("set_" #typ "_" #name "(%p,%s)"), (void *) menu, TR_FUNC_ARG(0, func)));\ 51 (Normalize_Menu(menu) -> typ ## name = func );\ 56 #define GEN_HOOK_GET_FUNCTION( typ, name ) \ argument 57 MENU_EXPORT(Menu_Hook) NCURSES_API typ ## _ ## name ( const MENU *menu )\ 59 T((T_CALLED(#typ "_" #name "(%p)"), (const void *) menu));\ 60 returnMenuHook(Normalize_Menu(menu) -> typ ## name);\
|
| /openbsd-src/sys/kern/ |
| H A D | subr_kubsan.c | 35 #define NBITS(typ) (1 << ((typ)->t_info >> 1)) argument 36 #define SIGNED(typ) ((typ)->t_info & 1) argument 421 kubsan_deserialize_int(struct type_descriptor *typ, unsigned long val) in kubsan_deserialize_uint() 423 switch (NBITS(typ)) { in kubsan_deserialize_uint() 437 kubsan_deserialize_uint(struct type_descriptor *typ, unsigned long val) in kubsan_defer_report() 439 switch (NBITS(typ)) { in kubsan_defer_report() 475 kubsan_format_int(struct type_descriptor *typ, unsigned long val, in kubsan_format_location() 478 switch (typ in kubsan_format_location() 398 kubsan_deserialize_int(struct type_descriptor * typ,unsigned long val) kubsan_deserialize_int() argument 414 kubsan_deserialize_uint(struct type_descriptor * typ,unsigned long val) kubsan_deserialize_uint() argument 452 kubsan_format_int(struct type_descriptor * typ,unsigned long val,char * buf,size_t bufsiz) kubsan_format_int() argument 730 is_negative(struct type_descriptor * typ,unsigned long val) is_negative() argument 736 is_shift_exponent_too_large(struct type_descriptor * typ,unsigned long val) is_shift_exponent_too_large() argument [all...] |
| /openbsd-src/sbin/init/ |
| H A D | init.c | 498 struct ttyent *typ; in f_single_user() local 528 typ = getttynam("console"); in f_single_user() 530 if (typ && (typ->ty_status & TTY_SECURE) == 0 && pp && in f_single_user() 836 new_session(session_t *sprev, int session_index, struct ttyent *typ) in new_session() argument 840 if ((typ->ty_status & TTY_ON) == 0 || in new_session() 841 typ->ty_name == 0 || in new_session() 842 typ->ty_getty == 0) in new_session() 852 if (asprintf(&sp->se_device, "%s%s", _PATH_DEV, typ->ty_name) == -1) in new_session() 855 if (setupargv(sp, typ) == 0) { in new_session() 876 setupargv(session_t *sp, struct ttyent *typ) in setupargv() argument [all …]
|
| /openbsd-src/gnu/llvm/llvm/bindings/ocaml/executionengine/ |
| H A D | llvm_executionengine.mli | 78 (** [get_global_value_address id typ ee] returns a pointer to the 79 identifier [id] as type [typ], which will be a pointer type for a 84 val get_global_value_address : string -> 'a Ctypes.typ -> llexecutionengine -> 'a 86 (** [get_function_address fn typ ee] returns a pointer to the function 87 [fn] as type [typ], which will be a pointer type for a function 88 (e.g. [(int -> int) typ]), and which will be live as long as [fn] 92 val get_function_address : string -> 'a Ctypes.typ -> llexecutionengine -> 'a
|
| /openbsd-src/lib/libcrypto/asn1/ |
| H A D | tasn_new.c | 270 ASN1_TYPE *typ; in ASN1_primitive_new() local 300 typ = malloc(sizeof(ASN1_TYPE)); in ASN1_primitive_new() 301 if (typ != NULL) { in ASN1_primitive_new() 302 typ->value.ptr = NULL; in ASN1_primitive_new() 303 typ->type = V_ASN1_UNDEF; in ASN1_primitive_new() 305 *pval = (ASN1_VALUE *)typ; in ASN1_primitive_new()
|
| /openbsd-src/gnu/usr.bin/binutils/gas/config/ |
| H A D | xtensa-relax.h | 82 OpType typ; /* CONSTANT: op_data is a constant. member 93 OpType typ; member 117 InstrType typ; member
|