Home
last modified time | relevance | path

Searched refs:trap (Results 1 – 25 of 459) sorted by relevance

12345678910>>...19

/openbsd-src/games/hack/
H A Dhack.search.c72 struct trap *ttmp; in findit()
115 struct trap *trap; in dosearch() local
143 for(trap = ftrap; trap; trap = trap->ntrap) in dosearch()
144 if(trap->tx == x && trap->ty == y && in dosearch()
145 !trap->tseen && !rn2(8)) { in dosearch()
147 pline("You find a%s.", traps[trap->ttyp]); in dosearch()
148 if(trap->ttyp == PIERC) { in dosearch()
149 deltrap(trap); in dosearch()
153 trap->tseen = 1; in dosearch()
164 struct trap *trap; in doidtrap() local
[all …]
H A Dhack.lev.c192 savetrapchn(int fd, struct trap *trap) in savetrapchn() argument
194 struct trap *trap2; in savetrapchn()
195 while(trap) { in savetrapchn()
196 trap2 = trap->ntrap; in savetrapchn()
197 bwrite(fd, trap, sizeof(struct trap)); in savetrapchn()
198 free(trap); in savetrapchn()
199 trap = trap2; in savetrapchn()
201 bwrite(fd, nul, sizeof(struct trap)); in savetrapchn()
208 struct trap *trap; in getlev() local
276 trap = newtrap(); in getlev()
[all …]
H A Dhack.trap.c87 struct trap *
90 struct trap *ttmp; in maketrap()
104 dotrap(struct trap *trap) in dotrap() argument
106 int ttype = trap->ttyp; in dotrap()
109 if(trap->tseen && !rn2(5) && ttype != PIT) in dotrap()
112 trap->tseen = 1; in dotrap()
128 deltrap(trap); in dotrap()
177 if(trap->once) { in dotrap()
178 deltrap(trap); in dotrap()
199 impossible("You hit a trap of type %u", trap->ttyp); in dotrap()
[all …]
H A Ddef.trap.h65 struct trap { struct
66 struct trap *ntrap; argument
73 extern struct trap *ftrap; argument
74 struct trap *t_at(int, int);
75 #define newtrap() (struct trap *) alloc(sizeof(struct trap))
H A Dhack.invent.c228 deltrap(struct trap *trap) in deltrap() argument
230 struct trap *ttmp; in deltrap()
232 if(trap == ftrap) in deltrap()
235 for(ttmp = ftrap; ttmp->ntrap != trap; ttmp = ttmp->ntrap) ; in deltrap()
236 ttmp->ntrap = trap->ntrap; in deltrap()
238 free(trap); in deltrap()
320 struct trap *
323 struct trap *trap = ftrap; in t_at() local
325 while(trap) { in t_at()
326 if(trap->tx == x && trap->ty == y) return(trap); in t_at()
[all …]
H A Dhack.h361 void deltrap(struct trap *);
368 struct trap *t_at(int, int);
400 void savetrapchn(int, struct trap *);
647 struct trap *maketrap(int, int, int);
648 void dotrap(struct trap *);
/openbsd-src/regress/bin/ksh/
H A Dtrap.t1 # $OpenBSD: trap.t,v 1.6 2022/10/16 10:44:06 kn Exp $
4 # Check that I/O redirection failure triggers the ERR trap.
14 trap 'echo ERR' ERR
28 trap 'echo ERR' ERR
42 trap 'echo ERR' ERR
66 trap 'echo ERR ; false' ERR
67 trap 'echo EXIT' EXIT
83 trap 'echo ERR' ERR
84 trap 'false ; echo EXIT' EXIT
98 trap 'echo ERR' ERR
[all …]
/openbsd-src/regress/usr.bin/mandoc/roff/it/
H A Dtext.out_ascii4 iitt--tteexxtt - what an input line trap counts as text
7 initial text first line after 1trap traptext second line after 1trap
11 first line after ( + 1c + 1i)trap second line after ( + 1c + 1i)trap
12 traptext third line after ( + 1c + 1i)trap
/openbsd-src/bin/ksh/
H A Dtrap.c120 trap = p->set = 1; in trapsig()
123 if ((p->flags & TF_FATAL) && !p->trap) { in trapsig()
170 if (p->set && ((p->trap && p->trap[0]) || in trap_pending()
171 ((p->flags & (TF_DFL_INTR|TF_FATAL)) && !p->trap))) in trap_pending()
196 trap = 0; in runtraps()
203 ((p->flags & flag) && p->trap == NULL))) in runtraps()
211 char *trapstr = p->trap; in runtrap()
234 p->trap = NULL; in runtrap()
247 p->trap = trapstr; in runtrap()
259 trap = 0; in cleartraps()
[all …]
H A DPROJECTS16 getopts jobs kill pwd read readonly return set shift time trap true
25 * trap code
26 * add the DEBUG trap.
47 finish the differences between function x and x(): trap EXIT, traps
/openbsd-src/gnu/usr.bin/perl/cpan/Math-BigRat/t/
H A Dtrap.t
/openbsd-src/usr.sbin/snmpd/
H A Dtrap.c47 struct ber_element *vblist, *trap; in trap_send() local
61 trap = ober_add_sequence(NULL); in trap_send()
62 vblist = ober_printf_elements(trap, "{Odt}{OO}", in trap_send()
96 if ((msg->sm_varbindresp = ober_dup(trap->be_sub)) == NULL) in trap_send()
125 ober_free_elements(trap); in trap_send()
/openbsd-src/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dxs_special_subs_require.t83 my @trap;
84 local $SIG{__WARN__} = sub { push @trap, join "!", @_ };
87 @trap = sort @trap;
88 is(scalar @trap, 2, "There were 2 warnings");
89 like($trap[0], qr "^Too late to run CHECK block");
90 like($trap[1], qr "^Too late to run INIT block");
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DIntrinsicsNVVM.td2764 // .trap variants
2768 "llvm.nvvm.suld.1d.i8.trap">;
2772 "llvm.nvvm.suld.1d.i16.trap">;
2776 "llvm.nvvm.suld.1d.i32.trap">;
2780 "llvm.nvvm.suld.1d.i64.trap">;
2784 "llvm.nvvm.suld.1d.v2i8.trap">;
2788 "llvm.nvvm.suld.1d.v2i16.trap">;
2792 "llvm.nvvm.suld.1d.v2i32.trap">;
2796 "llvm.nvvm.suld.1d.v2i64.trap">;
2800 "llvm.nvvm.suld.1d.v4i8.trap">;
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.arch/
H A Di386-unwind.c29 trap (void) in trap() function
43 " call " SYMBOL (trap) "\n"
/openbsd-src/gnu/gcc/gcc/config/m32r/
H A Dm32r.opt54 mflush-trap=
56 Specify cache flush trap number
74 mno-flush-trap
76 Don't call any cache flush trap
/openbsd-src/gnu/gcc/gcc/config/mcore/
H A Dlib1.asm65 trap 3 // divide by 0
116 trap 3 // divide by 0
153 trap 3 // divide by 0
209 trap 3 // divide by 0
/openbsd-src/gnu/usr.bin/gcc/gcc/config/mcore/
H A Dlib1.asm65 trap 3 // divide by 0
116 trap 3 // divide by 0
153 trap 3 // divide by 0
209 trap 3 // divide by 0
/openbsd-src/sys/arch/arm/arm/
H A Dfault.c103 int trap; member
258 sd.trap = fsr; in data_abort_handler()
287 sd.trap = fsr; in data_abort_handler()
366 sd.trap = fsr; in data_abort_handler()
369 trapsignal(p, sd.signo, sd.trap, sd.code, sv); in data_abort_handler()
458 sd->trap = fsr; in dab_align()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXIntrinsics.td2600 // Funnel shift, requires >= sm_32. Does not trap if amt is out of range, so
3826 defm SULD_1D_I8_TRAP : SULD_1D<"suld.b.1d.b8.trap", Int16Regs>;
3827 defm SULD_1D_I16_TRAP : SULD_1D<"suld.b.1d.b16.trap", Int16Regs>;
3828 defm SULD_1D_I32_TRAP : SULD_1D<"suld.b.1d.b32.trap", Int32Regs>;
3829 defm SULD_1D_I64_TRAP : SULD_1D<"suld.b.1d.b64.trap", Int64Regs>;
3856 : SULD_1D_ARRAY<"suld.b.a1d.b8.trap", Int16Regs>;
3858 : SULD_1D_ARRAY<"suld.b.a1d.b16.trap", Int16Regs>;
3860 : SULD_1D_ARRAY<"suld.b.a1d.b32.trap", Int32Regs>;
3862 : SULD_1D_ARRAY<"suld.b.a1d.b64.trap", Int64Regs>;
3888 defm SULD_2D_I8_TRAP : SULD_2D<"suld.b.2d.b8.trap", Int16Regs>;
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/opcodes/
H A Dcrx-dis.c159 const trap_entry *trap; in gettrapstring() local
161 for (trap = crx_traps; trap < crx_traps + NUMTRAPS; trap++) in gettrapstring()
162 if (trap->entry == index) in gettrapstring()
163 return trap->name; in gettrapstring()
/openbsd-src/distrib/miniroot/
H A Ddot.profile113 # Set trap handlers to remove timer if the shell is interrupted,
115 trap 'exit 1' INT
116 trap 'timeout=true' TERM
117 trap 'stop_timeout' EXIT
/openbsd-src/gnu/llvm/llvm/docs/
H A DAMDGPUOperandSyntax.rst287 trap section in Operands
290 A set of trap handler registers:
377 trap handler program.
382 …tba 64-bit *trap base address* register. GFX7, G…
383 …[tba] 64-bit *trap base address* register (an SP3 syntax). GFX7, G…
384 …[tba_lo,tba_hi] 64-bit *trap base address* register (an SP3 syntax). GFX7, G…
387 High and low 32 bits of *trap base address* may be accessed as separate registers:
392 …tba_lo Low 32 bits of *trap base address* register. GFX7, G…
393 …tba_hi High 32 bits of *trap base address* register. GFX7, G…
394 …[tba_lo] Low 32 bits of *trap base address* register (an SP3 syntax). GFX7, G…
[all …]
/openbsd-src/gnu/usr.bin/binutils/cpu/
H A Dfrv.cpu149 (unit u-trap "Trap Unit" ()
567 (unit u-trap "Trap Unit" ()
1030 (unit u-trap "Trap Unit" ()
5651 "return from trap"
5671 (define-pmacro (trap-semantics cond base offset)
5700 (define-pmacro (trap-r prefix cc i-f op ope cond attr comment)
5706 (trap-semantics (cond (.sym i-f CCi_2)) GRi GRj)
5707 ((fr400 (unit u-trap))
5708 (fr500 (unit u-trap)) (fr550 (unit u-trap)))
5713 "integer trap always"
[all …]
/openbsd-src/gnu/gcc/gcc/config/m88k/
H A Dm88k.opt37 Add code to trap on logical shift counts larger than 31
45 Add code to trap on integer divide by zero

12345678910>>...19