Symbol: trap
bin/sh/trap.c
175
if (signo < NSIG && trap[signo] != NULL) {
bin/sh/trap.c
177
out1qstr(trap[signo]);
bin/sh/trap.c
207
if (trap[signo])
bin/sh/trap.c
208
ckfree(trap[signo]);
bin/sh/trap.c
209
trap[signo] = action;
bin/sh/trap.c
226
for (tp = trap ; tp <= &trap[NSIG - 1] ; tp++) {
bin/sh/trap.c
231
if (tp != &trap[0])
bin/sh/trap.c
232
setsignal(tp - trap);
bin/sh/trap.c
247
for (tp = trap ; tp <= &trap[NSIG - 1] ; tp++) {
bin/sh/trap.c
266
if ((t = trap[signo]) == NULL)
bin/sh/trap.c
375
return (trap[SIGCHLD] != NULL && *trap[SIGCHLD] != '\0');
bin/sh/trap.c
386
if (signo == SIGINT && trap[SIGINT] == NULL) {
bin/sh/trap.c
398
if (trap[signo] != NULL && trap[signo][0] != '\0' &&
bin/sh/trap.c
425
if (trap[i]) {
bin/sh/trap.c
449
evalstring(stsavestr(trap[i]), 0);
bin/sh/trap.c
527
if ((p = trap[0]) != NULL && *p != '\0') {
bin/sh/trap.c
533
trap[0] = NULL;
bin/sh/trap.c
83
static char *volatile trap[NSIG]; /* trap handler commands */
games/hack/def.trap.h
67
struct trap *ntrap;
games/hack/def.trap.h
74
extern struct trap *ftrap;
games/hack/def.trap.h
75
#define newtrap() ((struct trap *) alloc(sizeof(struct trap)))
games/hack/extern.h
170
void deltrap(struct trap *);
games/hack/extern.h
177
struct trap *t_at(int, int);
games/hack/extern.h
435
struct trap *maketrap(int, int, int);
games/hack/extern.h
436
void dotrap(struct trap *);
games/hack/hack.Decl.c
79
struct trap *ftrap = 0;
games/hack/hack.apply.c
351
struct trap *ttmp = t_at(dpx, dpy);
games/hack/hack.apply.c
407
struct trap *ttmp = t_at(u.ux, u.uy);
games/hack/hack.bones.c
77
struct trap *ttmp;
games/hack/hack.c
147
struct trap *trap = NULL;
games/hack/hack.c
177
if (!u.uswallow && (trap = t_at(u.ux + u.dx, u.uy + u.dy)) && trap->tseen)
games/hack/hack.c
227
struct trap *ttmp;
games/hack/hack.c
375
if (trap)
games/hack/hack.c
376
dotrap(trap); /* fall into pit, arrow trap, etc. */
games/hack/hack.dog.c
193
struct trap *trap;
games/hack/hack.dog.c
379
if ((info[i] & ALLOW_TRAPS) && (trap = t_at(nx, ny))) {
games/hack/hack.dog.c
380
if (!trap->tseen && rn2(40))
games/hack/hack.invent.c
239
deltrap(struct trap *trap)
games/hack/hack.invent.c
241
struct trap *ttmp;
games/hack/hack.invent.c
243
if (trap == ftrap)
games/hack/hack.invent.c
246
for (ttmp = ftrap; ttmp->ntrap != trap; ttmp = ttmp->ntrap);
games/hack/hack.invent.c
247
ttmp->ntrap = trap->ntrap;
games/hack/hack.invent.c
249
free(trap);
games/hack/hack.invent.c
333
struct trap *
games/hack/hack.invent.c
336
struct trap *trap = ftrap;
games/hack/hack.invent.c
337
while (trap) {
games/hack/hack.invent.c
338
if (trap->tx == x && trap->ty == y)
games/hack/hack.invent.c
339
return (trap);
games/hack/hack.invent.c
340
trap = trap->ntrap;
games/hack/hack.lev.c
191
savetrapchn(int fd, struct trap *trap)
games/hack/hack.lev.c
193
struct trap *trap2;
games/hack/hack.lev.c
194
while (trap) {
games/hack/hack.lev.c
195
trap2 = trap->ntrap;
games/hack/hack.lev.c
196
bwrite(fd, trap, sizeof(struct trap));
games/hack/hack.lev.c
197
free(trap);
games/hack/hack.lev.c
198
trap = trap2;
games/hack/hack.lev.c
200
bwrite(fd, nul, sizeof(struct trap));
games/hack/hack.lev.c
207
struct trap *trap;
games/hack/hack.lev.c
272
trap = newtrap();
games/hack/hack.lev.c
273
mread(fd, trap, sizeof(struct trap));
games/hack/hack.lev.c
274
while (trap->tx) {
games/hack/hack.lev.c
275
trap->ntrap = ftrap;
games/hack/hack.lev.c
276
ftrap = trap;
games/hack/hack.lev.c
277
trap = newtrap();
games/hack/hack.lev.c
278
mread(fd, trap, sizeof(struct trap));
games/hack/hack.lev.c
280
free(trap);
games/hack/hack.lev.c
77
static void savetrapchn(int, struct trap *);
games/hack/hack.mklev.c
726
struct trap *ttmp;
games/hack/hack.mklev.c
774
struct trap *ttmp;
games/hack/hack.mon.c
640
struct trap *ttmp = t_at(nx, ny);
games/hack/hack.pri.c
429
struct trap *ttmp;
games/hack/hack.read.c
311
struct trap *ttmp;
games/hack/hack.search.c
117
struct trap *trap;
games/hack/hack.search.c
152
for (trap = ftrap; trap; trap = trap->ntrap)
games/hack/hack.search.c
153
if (trap->tx == x && trap->ty == y &&
games/hack/hack.search.c
154
!trap->tseen && !rn2(8)) {
games/hack/hack.search.c
156
pline("You find a%s.", traps[trap->ttyp]);
games/hack/hack.search.c
157
if (trap->ttyp == PIERC) {
games/hack/hack.search.c
158
deltrap(trap);
games/hack/hack.search.c
162
trap->tseen = 1;
games/hack/hack.search.c
174
struct trap *trap;
games/hack/hack.search.c
180
for (trap = ftrap; trap; trap = trap->ntrap)
games/hack/hack.search.c
181
if (trap->tx == x && trap->ty == y && trap->tseen) {
games/hack/hack.search.c
183
if ((u.dz < 0) != (!xdnstair && trap->ttyp == TRAPDOOR))
games/hack/hack.search.c
185
pline("That is a%s.", traps[trap->ttyp]);
games/hack/hack.search.c
72
struct trap *ttmp;
games/hack/hack.trap.c
104
dotrap(struct trap *trap)
games/hack/hack.trap.c
106
int ttype = trap->ttyp;
games/hack/hack.trap.c
109
if (trap->tseen && !rn2(5) && ttype != PIT)
games/hack/hack.trap.c
112
trap->tseen = 1;
games/hack/hack.trap.c
128
deltrap(trap);
games/hack/hack.trap.c
178
if (trap->once) {
games/hack/hack.trap.c
179
deltrap(trap);
games/hack/hack.trap.c
200
impossible("You hit a trap of type %u", trap->ttyp);
games/hack/hack.trap.c
208
struct trap *trap = t_at(mtmp->mx, mtmp->my);
games/hack/hack.trap.c
211
if (!trap) {
games/hack/hack.trap.c
217
int tt = trap->ttyp;
games/hack/hack.trap.c
325
struct trap *trap;
games/hack/hack.trap.c
327
if ((trap = t_at(u.ux, u.uy)) != NULL)
games/hack/hack.trap.c
328
switch (trap->ttyp) {
games/hack/hack.trap.c
336
dotrap(trap);
games/hack/hack.trap.c
87
struct trap *
games/hack/hack.trap.c
90
struct trap *ttmp;
games/rogue/rogue.h
349
extern trap traps[];
games/rogue/save.c
136
r_write(fp, (char *) traps, (MAX_TRAPS * sizeof(trap)));
games/rogue/save.c
219
r_read(fp, (char *) traps, (MAX_TRAPS * sizeof(trap)));
games/rogue/trap.c
50
trap traps[MAX_TRAPS];
sbin/iscontrol/fsm.c
440
signal(SIGINT, trap);
sbin/iscontrol/fsm.c
441
signal(SIGHUP, trap);
sbin/iscontrol/fsm.c
442
signal(SIGTERM, trap);
sbin/iscontrol/fsm.c
445
signal(sig, trap);
sys/platform/pc64/x86_64/trap.c
100
extern void trap(struct trapframe *frame);
sys/platform/pc64/x86_64/trap.c
364
KTR_INFO(KTR_KERNENTRY, kernentry, trap, 0,
sys/platform/vkernel64/x86_64/trap.c
301
KTR_INFO(KTR_KERNENTRY, kernentry, trap, 0,
test/nvmm/demo/smallkern/smallkern.h
93
void trap(struct smallframe *);