Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd-9-stable/tools/regression/bin/sh/builtins/
Dtrap5.04 trap - USR1
5 initial=$(trap)
6 trap -- -l USR1
7 added=$(trap)
9 trap - USR1
10 second=$(trap)
13 added2=$(trap)
14 added3=$(trap --)
17 trap -- - USR1
18 third=$(trap)
Dtrap3.04 trap '' garbage && exit 3
5 trap - garbage && exit 3
6 trap true garbage && exit 3
7 trap '' 99999 && exit 3
8 trap - 99999 && exit 3
9 trap true 99999 && exit 3
Dtrap2.02 # This is really a test for outqstr(), which is readily accessible via trap.
7 trap -- "$teststring" USR1
8 traps=$(trap)
13 # in the normative description of the trap builtin shows the
15 echo '$(trap) is broken'
18 trap - USR1
20 traps2=$(trap)
Dtrap1.03 test "$(trap 'echo trapped' EXIT; :)" = trapped || exit 1
5 test "$(trap 'echo trapped' EXIT; /usr/bin/true)" = trapped || exit 1
7 result=$(${SH} -c 'trap "echo trapped" EXIT; /usr/bin/false')
11 result=$(${SH} -c 'trap "echo trapped" EXIT; exec /usr/bin/false')
16 trap 'result=$((result+1))' INT
Dtrap10.03 # Check that the return statement will not break the EXIT trap, ie. all
4 # trap commands are executed before the script exits.
6 test "$(trap 'printf trap; echo ped' EXIT; f() { return; }; f)" = trapped || exit 1
Dtrap8.04 # further trap names in the same trap command after an invalid one.
6 test -n "$(trap true garbage TERM 2>/dev/null || trap)" || exit 3
Dtrap11.03 # Check that the return statement will not break the USR1 trap, ie. all
4 # trap commands are executed before the script resumes.
6 result=$(${SH} -c 'trap "printf trap; echo ped" USR1; f() { return $(kill -USR1 $$); }; f')
Dtrap4.04 trap 'rm -rf $T' 0
13 trap 'trap "" PIPE; echo trapped >&3 2>/dev/null' PIPE
Dtrap9.03 test "$(trap 'printf trap; echo ped' EXIT; f() { :; }; f)" = trapped || exit 1
Dexit3.03 # exit without arguments differs from exit $? in an EXIT trap.
5 trap 'false; exit' 0
Dexit2.83 # exit without arguments is the same as exit $? outside a trap.
5 trap 'true; true' 0
Dexit1.03 # exit with an argument should overwrite the exit status in an EXIT trap.
5 trap 'true; exit $?' 0
/freebsd-9-stable/bin/sh/
Dtrap.c78 static char *volatile trap[NSIG]; /* trap handler commands */ variable
171 if (signo < NSIG && trap[signo] != NULL) { in trapcmd()
173 out1qstr(trap[signo]); in trapcmd()
203 if (trap[signo]) in trapcmd()
204 ckfree(trap[signo]); in trapcmd()
205 trap[signo] = action; in trapcmd()
222 for (tp = trap ; tp <= &trap[NSIG - 1] ; tp++) { in clear_traps()
227 if (tp != &trap[0]) in clear_traps()
228 setsignal(tp - trap); in clear_traps()
243 for (tp = trap ; tp <= &trap[NSIG - 1] ; tp++) { in have_traps()
[all …]
/freebsd-9-stable/tools/regression/bin/sh/execution/
Dredir6.012 check $LINENO "$(trap "echo bye" EXIT; : >/dev/null)" bye
13 check $LINENO "$(trap "echo bye" EXIT; { :; } >/dev/null)" bye
14 check $LINENO "$(trap "echo bye" EXIT; (:) >/dev/null)" bye
15 check $LINENO "$(trap "echo bye" EXIT; (: >/dev/null))" bye
16 check $LINENO "$(${SH} -c 'trap "echo bye" EXIT; : >/dev/null')" bye
17 check $LINENO "$(${SH} -c 'trap "echo bye" EXIT; { :; } >/dev/null')" bye
18 check $LINENO "$(${SH} -c 'trap "echo bye" EXIT; (:) >/dev/null')" bye
19 check $LINENO "$(${SH} -c 'trap "echo bye" EXIT; (: >/dev/null)')" bye
Dredir7.012 check $LINENO "$(trap "echo bye" EXIT; f() { :; }; f >/dev/null)" bye
13 check $LINENO "$(trap "echo bye" EXIT; f() { :; }; { f; } >/dev/null)" bye
14 check $LINENO "$(trap "echo bye" EXIT; f() { :; }; (f) >/dev/null)" bye
15 check $LINENO "$(trap "echo bye" EXIT; f() { :; }; (f >/dev/null))" bye
16 check $LINENO "$(${SH} -c 'trap "echo bye" EXIT; f() { :; }; f >/dev/null')" bye
17 check $LINENO "$(${SH} -c 'trap "echo bye" EXIT; f() { :; }; { f; } >/dev/null')" bye
18 check $LINENO "$(${SH} -c 'trap "echo bye" EXIT; f() { :; }; (f) >/dev/null')" bye
19 check $LINENO "$(${SH} -c 'trap "echo bye" EXIT; f() { :; }; (f >/dev/null)')" bye
/freebsd-9-stable/sys/ia64/ia64/
Dexception.S724 #define IA32_TRAP trap
740 CALL(trap, 0, cr.ifa)
826 CALL(trap, 20, cr.ifa) // Page Not Present trap
912 CALL(trap, 20, cr.ifa) // Page Not Present trap
955 CALL(trap, 3, cr.ifa)
998 CALL(trap, 4, cr.ifa)
1122 CALL(trap, 5, r30)
1126 CALL(trap, 6, cr.ifa)
1130 CALL(trap, 7, cr.ifa)
1204 CALL(trap, 8, cr.ifa) // die horribly
[all …]
/freebsd-9-stable/contrib/llvm/patches/
Dpatch-r262415-llvm-r201994-sparc.diff16 + def TA5 : F3_2<0b10, 0b111010, (outs), (ins), "ta 5", [(trap)]>;
34 Index: test/CodeGen/SPARC/trap.ll
36 --- test/CodeGen/SPARC/trap.ll
37 +++ test/CodeGen/SPARC/trap.ll
42 + tail call void @llvm.trap()
49 +declare void @llvm.trap()
/freebsd-9-stable/contrib/amd/
DFREEBSD-Xlist116 *conf/trap/trap_aix3.h
117 *conf/trap/trap_aux.h
118 *conf/trap/trap_dgux.h
119 *conf/trap/trap_freebsd3.h
120 *conf/trap/trap_hcx.h
121 *conf/trap/trap_hpux.h
122 *conf/trap/trap_hpux11.h
123 *conf/trap/trap_irix.h
124 *conf/trap/trap_isc3.h
125 *conf/trap/trap_linux.h
[all …]
/freebsd-9-stable/contrib/groff/src/roff/troff/
Ddiv.h96 struct trap { struct
97 trap *next; argument
100 trap(symbol, vunits, trap *); argument
112 trap *page_trap_list;
113 trap *find_next_trap(vunits *);
Ddiv.cpp342 trap *top_level_diversion::find_next_trap(vunits *next_trap_pos) in find_next_trap()
344 trap *next_trap = 0; in find_next_trap()
345 for (trap *pt = page_trap_list; pt != 0; pt = pt->next) in find_next_trap()
381 trap *next_trap = find_next_trap(&next_trap_pos); in output()
460 trap *next_trap = find_next_trap(&next_trap_pos); in space()
483 trap::trap(symbol s, vunits n, trap *p) in trap() function in trap
490 trap *first_free_slot = 0; in add_trap()
491 trap **p; in add_trap()
507 *p = new trap(nam, pos, 0); in add_trap()
512 for (trap *p = page_trap_list; p; p = p->next) in remove_trap()
[all …]
/freebsd-9-stable/contrib/ofed/management/opensm/osmeventplugin/src/
Dosmeventplugin.c140 static void handle_trap_event(_log_events_t * log, osm_epi_trap_event_t * trap) in handle_trap_event() argument
144 trap->trap_num, in handle_trap_event()
145 trap->port_id.node_guid, in handle_trap_event()
146 trap->port_id.node_name, trap->port_id.port_num); in handle_trap_event()
/freebsd-9-stable/contrib/tcsh/nls/greek/
Dset29 6 Trace/BPT trap
11 8 IOT trap
14 11 EMT trap
/freebsd-9-stable/sys/sparc64/sparc64/
Ddb_trace.c229 int trap; in db_backtrace() local
235 trap = 0; in db_backtrace()
241 if (trap) { in db_backtrace()
243 trap = 0; in db_backtrace()
265 trap = 1; in db_backtrace()
/freebsd-9-stable/contrib/tcsh/nls/german/
Dset29 6 Trace/BPT trap
11 8 IOT trap
14 11 EMT trap
/freebsd-9-stable/contrib/tcsh/nls/russian/
Dset29 6 Trace/BPT trap
11 8 IOT trap
14 11 EMT trap

12345678910>>...14