trap
if (p->trap != NULL) {
print_value_quoted(p->trap);
if (trap) {
if (trap)
if (trap)
volatile sig_atomic_t trap;
if (trap)
sigtraps[SIGEXIT_].trap)) {
if (trap)
if (trap)
char *trap; /* trap command */
extern volatile sig_atomic_t trap; /* traps pending? */
trap = p->set = 1;
if ((p->flags & TF_FATAL) && !p->trap) {
if (p->set && ((p->trap && p->trap[0]) ||
((p->flags & (TF_DFL_INTR|TF_FATAL)) && !p->trap)))
trap = 0;
((p->flags & flag) && p->trap == NULL)))
char *trapstr = p->trap;
p->trap = NULL;
p->trap = trapstr;
trap = 0;
if ((p->flags & TF_USER_SET) && (p->trap && p->trap[0]))
afree(p->trap, APERM);
p->trap = str_save(s, APERM); /* handles s == 0 */
struct trap *ntrap;
extern struct trap *ftrap;
struct trap *t_at(int, int);
#define newtrap() (struct trap *) alloc(sizeof(struct trap))
struct trap *ftrap = 0;
struct trap *ttmp = t_at(dpx,dpy);
struct trap *ttmp = t_at(u.ux, u.uy);
struct trap *ttmp;
struct trap *trap;
if(!u.uswallow && (trap = t_at(u.ux+u.dx, u.uy+u.dy)) && trap->tseen)
struct trap *ttmp;
if(trap) dotrap(trap); /* fall into pit, arrow trap, etc. */
struct trap *trap;
if((info[i] & ALLOW_TRAPS) && (trap = t_at(nx,ny))){
if(!trap->tseen && rn2(40)) continue;
void deltrap(struct trap *);
struct trap *t_at(int, int);
void savetrapchn(int, struct trap *);
struct trap *maketrap(int, int, int);
void dotrap(struct trap *);
deltrap(struct trap *trap)
struct trap *ttmp;
if(trap == ftrap)
for(ttmp = ftrap; ttmp->ntrap != trap; ttmp = ttmp->ntrap) ;
ttmp->ntrap = trap->ntrap;
free(trap);
struct trap *
struct trap *trap = ftrap;
while(trap) {
if(trap->tx == x && trap->ty == y) return(trap);
trap = trap->ntrap;
savetrapchn(int fd, struct trap *trap)
struct trap *trap2;
while(trap) {
trap2 = trap->ntrap;
bwrite(fd, trap, sizeof(struct trap));
free(trap);
trap = trap2;
bwrite(fd, nul, sizeof(struct trap));
struct trap *trap;
trap = newtrap();
mread(fd, (char *)trap, sizeof(struct trap));
while(trap->tx) {
trap->ntrap = ftrap;
ftrap = trap;
trap = newtrap();
mread(fd, (char *)trap, sizeof(struct trap));
free(trap);
struct trap *ttmp;
struct trap *ttmp;
{ struct trap *ttmp = t_at(nx, ny);
struct trap *ttmp;
struct trap *ttmp;
struct trap *trap;
for(trap = ftrap; trap; trap = trap->ntrap)
if(trap->tx == x && trap->ty == y &&
!trap->tseen && !rn2(8)) {
pline("You find a%s.", traps[trap->ttyp]);
if(trap->ttyp == PIERC) {
deltrap(trap);
trap->tseen = 1;
struct trap *trap;
for(trap = ftrap; trap; trap = trap->ntrap)
if(trap->tx == x && trap->ty == y && trap->tseen) {
if((u.dz < 0) != (!xdnstair && trap->ttyp == TRAPDOOR))
pline("That is a%s.", traps[trap->ttyp]);
struct trap *ttmp;
dotrap(struct trap *trap)
int ttype = trap->ttyp;
if(trap->tseen && !rn2(5) && ttype != PIT)
trap->tseen = 1;
deltrap(trap);
if(trap->once) {
deltrap(trap);
impossible("You hit a trap of type %u", trap->ttyp);
struct trap *trap = t_at(mtmp->mx, mtmp->my);
if(!trap) {
int tt = trap->ttyp;
struct trap *trap;
if ((trap = t_at(u.ux,u.uy)))
switch(trap->ttyp) {
dotrap(trap);
struct trap *
struct trap *ttmp;
char * trap;
trap = dequotetolower(to);
s = strlen(trap);
if ((j >= 0) && (strcasecmp(trap+j, m->addr) == 0))
dbk.size = strlen(trap);
dbk.data = trap;
void trap(unsigned long, unsigned long, unsigned long, unsigned long,
int trap;
sd.trap = fsr;
sd.trap = fsr;
sd.trap = fsr;
trapsignal(p, sd.signo, sd.trap, sd.code, sv);
sd->trap = fsr;
void trap(int type, struct trapframe *frame);
void trap(struct trapframe *);
void trap(struct trapframe *);
Name(trap),
void trap(struct trapframe *frame);
paddr_t trap;
for (trap = EXC_RST; trap < EXC_END; trap += 32)
memcpy((void *)trap, trapcode, trapcodeend - trapcode);
void trap(struct trapframe *tf, unsigned type, vaddr_t pc, long tstate);
static void trap_gttmmio(struct intel_vgpu *vgpu, bool trap)
if (trap != vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO].tracked)
vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO].tracked = trap;
struct ber_oid sysuptime, trap;
if (smi_string2oid("snmpTrapOID.0", &trap) == -1)
if ((varbind = ober_printf_elements(varbind, "{OO}", &trap, oid)) == NULL)
ober_free_elements(trap);
struct ber_element *vblist, *trap;
trap = ober_add_sequence(NULL);
vblist = ober_printf_elements(trap, "{Odt}{OO}",
if ((msg->sm_varbindresp = ober_dup(trap->be_sub)) == NULL)